PDA

View Full Version : Trying to hide userinfo in certain forums


ryancooper
11-10-2011, 09:54 PM
I am trying to hide the poster user info in certain forums. I am assuming that I need to do a if/else statement. I have this so far but It's not working correctly...



<vb:if condition="!in_array($forum[forumid], array(166, 2, 3))">
SHOW THIS
<vb:else />
SHOW THAT
</vb:if>


It seems to be hiding it in ALL forums? I am assuming it is something to do with forum[forumid], setting?

So for example a user visits forum 44 and everything looks normal but when that same user visits forum 166 2 or 3 the poster info is not in the post. Eventually I would like to remove the sig of the poster too.

Thanks,
Ryan

kh99
11-11-2011, 03:48 PM
Where are you putting that, in postbit? Try using $GLOBALS[forumid] - I just read somewhere that that should workin most places.

ryancooper
11-11-2011, 06:57 PM
Will do thanks for the reply! :)

ryancooper
11-28-2011, 04:35 PM
That seemed to hide it in all forums as well :(