![]() |
Hide Signature and Avatar in specific forum
1 Attachment(s)
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 ! :D
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 |
|
Quote:
|
great work, thank you!
Installed |
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: PHP Code:
|
any way to change this to hide the member names as well?
|
Quote:
Code:
<if condition="$show['profile']"> Code:
<if condition="$show['profile']" AND $thread['forumid'] != 2"> 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 |
Quote:
PHP Code:
S-MAN |
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 )"> |
Quote:
|
Quote:
I need help from someone on 2 last issues- Removing the "last post" user name (or even the column) Removing the "user name" for the thread starter. https://vborg.vbsupport.ru/ IF someone could help me out in any kind of way it would be greatly appreciated. |
Quote:
Use it as this: (there was to many spaces in the previous example): Code:
<if condition="$post['signature'] AND $thread['forumid'] != x,x,x,x,x"> Another route at the problem/s: Code:
<if condition="in_array($forum[forumid], array(x,x,x,x,x))"> |
Not working even in single forum in 3.8.2
|
http://i472.photobucket.com/albums/r...ction/help.jpg
Could someone help me with: Removing the "last post" user name (or even the column) Removing the "user name" for the thread starter. Could someone point me in a direction- it would be really helpful. |
Quote:
Parse error: syntax error, unexpected ',' in /var/www/vhosts/"my forum"/httpdocs/foros/includes/adminfunctions_template.php(3939) : eval()'d code on line 163 For the second code I don?t understand what it means Code:
Something you want to hide |
Quote:
For the second code I'll explain: Example- you wanted to hide your user name and user title in a specific forum- but not all forums. You would open up you postbit_legacy and find the following (or similar): Code:
<div id="postmenu_$post[postid]"> Code:
<if condition="in_array($forum[forumid], array(42,26,25,9,8))"> Then After it you would add: Code:
</if> User Name User Title Post Count (if you know what you're doing you can pull a username off of the postcount # alone) Location Msn/yahoo/skype Reputation Add Rep Infractions Quote Thanks Signatures Avatars (Side Note: I'm running Vbulletin 3.8.1 pl1) |
how can i hide signature in more than 1 forum....i have tried but giving me error..
|
is there a way to have this for a user to turn on and off for the hole board like is a user is on a iphone or on 56k so the site loads faster ? please let me know thanks for this mod
|
its not working on multiple forums
|
Quote:
|
Quote:
Many thanks ;) |
Very useful, thanks!! :)
|
How would I hide this for unregistered users? What I want to do is hide avatar, signature, and membernames from unregistered users while still letting them view some thread content.
My guess is that I would replace the condition !in_array($thread['forumid'],array(2,47)) with in_array(*whatever variable for group membership*) |
thank u
|
Quote:
|
k thanks for the help just must have over looked it
|
Quote:
Code:
<if condition="$show['member']"> and if you have many user groups that you want to hide from them, use this one: Code:
<if condition="!is_member_of($vbulletin->userinfo, array('1','2','3'))"> |
Quote:
Quote:
and then use this code: Code:
<if condition="$member['field6']=='show'"> |
Good, i like this... installed.
Also, I added an "else": PHP Code:
|
Just an FYI
I did not want to display signatures or avatars to unregistered users, but there are also three forums that I did not want them to display to members. so I used the following... In case anyone was looking to do the same... PHP Code:
|
not working in VB 3.8.6 any idea?
|
Hide Signature and Avatar in specific forums
Great idea, but this thread has turned into chaos and confusion. :mad: Edit: ---- Actually, the mod works excellently! Version 3.8.6 PL1 Thank you ArbStar! :up: Marks Installed! |
Thanks everyone, I finally got this to work.
|
How can i do this in VB4??
|
Does this work in 4.x?
|
Quote:
You could use the same concept but edit the codes to match with VB4 codes format. |
Quote:
Thanks in Advance :-) |
All times are GMT. The time now is 05:32 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:
|