PDA

View Full Version : Forum Block rules not worked since upgrade


Skivey
08-07-2013, 07:19 PM
I seem to have a problem since an upgrade, and ive only just noticed... im pretty sure it was the 4.2.1 upgrade

I have rules in my php that tells my blocks to show something to 1 usergroup and something else to another group... but now it seems that it shows everything the same thing.

Please can someone check I havent done something?

Regards

if(is_member_of(vB::$vbulletin->userinfo,24)){
$my_output='<center><b>Welcome to the Forum</b></center>';
}else{
$my_output='<script type="text/javascript"><!--
google_ad_client = "ca-pub-2764312150803413";
/* sideblock */
google_ad_slot = "1598615235";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';
}

Matt

Lynne
08-07-2013, 09:26 PM
Is your cache time set to 0 for the block?

Skivey
08-10-2013, 07:03 PM
no 60, err.. ok... so now i changed to 0, was that teh problem or have i gone all premature here?

thanks for the reply

Lynne
08-10-2013, 09:36 PM
If your cache time is 60, then it only gets refreshed/checked every 60 minutes.

Is it working now?

Skivey
08-11-2013, 08:26 PM
yes!

Thanks lynne, yet another piece of help you have given me.

Forever appreciative

Matt