I want to use conditional on forum block.
I've tried this PHP code on the forum block and it works
But the result is getting cached, altough i have set cache life to "0".
I don't know maybe template editing (with normal conditional tag) is a solution here instead of PHP code on forum block?
I have looked on "block_html" template but i am not sure if i should modify there, because i thought if i modify there, all forum blocks will be affected, not on specific forum block.
I've tried this PHP code on the forum block and it works
PHP Code:
$s .= '<div style="text-align:center">
Hello World...';
if (is_member_of($vbulletin->userinfo, 1, 2, 3, 4, 8, 13)) {
$s .= '<br /><br />
You are a special member';
}
$s .= '</div>';
return $s;
I don't know maybe template editing (with normal conditional tag) is a solution here instead of PHP code on forum block?
I have looked on "block_html" template but i am not sure if i should modify there, because i thought if i modify there, all forum blocks will be affected, not on specific forum block.
Comment