![]() |
Hide Thread Info
Is there a way in vB 4 to hide certain information in specific threads? By that I mean I run a movie review website and the top of the thread has the authors name, their avatar, join date, posts, etc. and I would like this stuff hidden for all threads in specific forums, displaying only the body of the text. Can this be done?
|
*bump*
I've been doing a lot more research and I've found that this sort of thing was possible for vB 3.8. It was done so by editing the postbit template. (See this discussion.) I've attached an image and the material I would like to hide is confined to the yellow highlighted portion, more specifically: the Username, the Avatar, the Join Date and Posts, and Title (in this case Year One). And I want to do it for specific forums, not all. Can anyone please help me out with this? http://img691.imageshack.us/img691/3083/43853317.png |
You need to edit the postbit template and wrap the info you wish to hide in a conditional i.e.
Code:
<vb:if condition="$thread[forumid] != 8888">THE POSTBIT CODE YOU WANT TO HIDE HERE</vb:if> To specify several forums at a time use this: Code:
<vb:if condition="in_array($forum['forumid'], array(1,2,3))"> |
Thanks for the code. I've entered it where I think it's suppose to go yet the information is still being displayed. I tried clearing my browser cache but that didn't help. Here is the code as it is in my postbit. Does it look like? I appreciate you taking the time to help.
(What I added is in bold.) Code:
<vb:if condition="in_array($forum['forumid'], array(2,4,5,6))"> Quick update: the code for a single forum works. The one for multiple does not. --------------- Added [DATE]1282677989[/DATE] at [TIME]1282677989[/TIME] --------------- Figured it out. Thanks for the help! |
All times are GMT. The time now is 09:14 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|