The Arcive of vBulletin Modifications Site. |
|
Hide Signature and Avatar in specific forum Details »»
|
|||||||||||||||||||||||||||
|
Hide Signature and Avatar in specific forum
Developer Last Online: Jul 2013
Hello everybody,
This is my first modification I post in vBulletin.org, and I hope it will be a good start for me and I keep posting new modifications for you. Today's post is about hiding signature or/and avatars in threads in specific forum, its very easy and simple.
Find: Code:
<if condition="$post['signature']"> Replace it with: Code:
<if condition="$post['signature'] AND !in_array($thread['forumid'],array(2,47))"> You're done ! ![]()
Open your postbit, or postbit_legacy template. Find: Code:
<if condition="$show['avatar']"> Replace it with: Code:
<if condition="$show['avatar'] AND !in_array($thread['forumid'],array(2,47))"> IMPORTANT NOTICE: Replace 2 & 47 with the forum id you want to hide avatars from it, if you want to add more forum numbers add comma between them. I hope this modification would be useful for everyone. Regards, Ibrahim Mohammed Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
|
|
#3
|
||||
|
||||
|
Quote:
|
|
#4
|
||||
|
||||
|
great work, thank you!
Installed |
|
#5
|
|||
|
|||
|
if we want to hide sigg in multiple forums... can we just add comma and put next forum id? would that work?
coz when i try to add, multiple forums. i get this error Code:
The following error occurred when attempting to evaluate this template: Parse error: syntax error, unexpected ',' in /8888/8888/888888/includes/adminfunctions_template.php(3939) : eval()'d code on line 167 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. PHP Code:
|
|
#6
|
|||
|
|||
|
any way to change this to hide the member names as well?
|
|
#7
|
||||
|
||||
|
Yes, find (Or Similar):
Code:
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
Code:
<if condition="$show['profile']" AND $thread['forumid'] != 2">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
that should do it as when I removed that code the names were gone from my forums. I did not trick it via the forum id I simplt removed, saved, viewed, then corrected it back to original. S-MAN |
|
#8
|
||||
|
||||
|
Quote:
![]() PHP Code:
![]() S-MAN |
|
#9
|
|||
|
|||
|
Quote:
this is not working this is working good : <if condition="$show['avatar'] AND ($thread['forumid'] != 3 and $thread['forumid'] != 58 and $thread['forumid'] != 34 )"> |
|
#10
|
|||
|
|||
|
Interesting addon for some forums (private mainly or closed), but doesn?t work with multiple forums on postbit template with v3.8.2 :/
|
![]() |
|
|