Hello:
I'm trying to hide some div's that I have in templates/individuals_templateDV.html from group visitor.
Div's are #non, #positive, #rfresh,
I'm using code from post viewtopic.php?t=465
I have this code in my footer-extra.php
Code: Select all
<?php
$memberInfo = getMemberInfo();
if($memberInfo['group'] !='visitor'){
?>
<script type='text/javascript'>
document.observe("dom:loaded", function() {
$j('#non, #positive, #rfresh').hide();
});
</script>
<?php
}
?>
I tried adding a esle statement
Code: Select all
<?php
$memberInfo = getMemberInfo();
if($memberInfo['group'] !='visitor'){
?>
<script type='text/javascript'>
document.observe("dom:loaded", function() {
$j('#non, #positive, #rfresh').hide();
}else{
$j('#non, #positive, #rfresh').show();
});
</script>
<?php
}
?>
90% of the time I can figure it out, but it's the other 10% I spend hours and hours stumped.
Not sure how to move forward or what's missing.