Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Hide Signature and Avatar in specific forum Details »»
Hide Signature and Avatar in specific forum
Version: 2.00, by ArbStar ArbStar is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.8.x Rating:
Released: 02-14-2009 Last Update: Never Installs: 35
Template Edits
Re-useable Code Translations  
No support by the author.

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.
  • Hiding signatures
First, open your postbit, or postbit_legacy template.


Find:

Code:
<if condition="$post['signature']">

Replace it with:

Code:
<if condition="$post['signature'] AND !in_array($thread['forumid'],array(2,47))">
IMPORTANT NOTICE: Replace 2 & 47 with the forum id you want to hide signatures from it, if you want to add more forum numbers add comma between them.

You're done !

  • Hiding Avatars
Now we will do the same thing with avatars, its also easy like the signature hiding.
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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-09-2009, 08:23 PM
down.low down.low is offline
 
Join Date: Mar 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
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>
Replace with:

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>
Now don't forget to follow this mod authors directions regarding the forum ID.

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
Thanks for the help- It didn't work quite right for me but I ended up figuring something else out for my problems.





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.



IF someone could help me out in any kind of way it would be greatly appreciated.
Reply With Quote
  #13  
Old 05-09-2009, 08:35 PM
down.low down.low is offline
 
Join Date: Mar 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by q8manar View Post
this is not working

this is working good
:
<if condition="$show['avatar'] AND ($thread['forumid'] != 3 and $thread['forumid'] != 58 and $thread['forumid'] != 34 )">


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))">

Something you want to hide

</if>
Any forum id not listing here (The x's need to be replaced)- would not see something in particular.
Reply With Quote
  #14  
Old 05-09-2009, 09:22 PM
nomoreturn's Avatar
nomoreturn nomoreturn is offline
 
Join Date: Apr 2009
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not working even in single forum in 3.8.2
Reply With Quote
  #15  
Old 05-10-2009, 02:07 AM
down.low down.low is offline
 
Join Date: Mar 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default




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.
Reply With Quote
  #16  
Old 05-10-2009, 10:48 AM
trotskid trotskid is offline
 
Join Date: Feb 2009
Posts: 204
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by down.low View Post
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))">

Something you want to hide

</if>
Any forum id not listing here (The x's need to be replaced)- would not see something in particular.
For the first code appears this error:

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
Regards
Reply With Quote
  #17  
Old 05-11-2009, 03:54 AM
down.low down.low is offline
 
Join Date: Mar 2009
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trotskid View Post
For the first code appears this error:

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
Regards
The error I don't know--

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]">
                <if condition="$show['profile']">
                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
                <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                <else />
                $post[musername]
                </if>
            </div>

            <if condition="$post['usertitle']"><div class="smallfont" align="center">$post[usertitle]</div></if>
            <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
Then before it you would add:
Code:
<if condition="in_array($forum[forumid], array(42,26,25,9,8))">
The forums with an Id of 42,26,25,9,8 would see their user names & titles but anything not listed in the array()) would not...

Then After it you would add:
Code:
</if>
I've done this in a whole sub-forum removing: (making it a anonymous sub-forum)

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)
Reply With Quote
  #18  
Old 07-22-2009, 12:23 PM
creative-friend creative-friend is offline
 
Join Date: Feb 2009
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can i hide signature in more than 1 forum....i have tried but giving me error..
Reply With Quote
  #19  
Old 07-23-2009, 01:33 PM
alloutvb alloutvb is offline
 
Join Date: May 2004
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #20  
Old 07-27-2009, 10:12 AM
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its not working on multiple forums
Reply With Quote
  #21  
Old 07-28-2009, 10:20 AM
ArbStar's Avatar
ArbStar ArbStar is offline
 
Join Date: Jan 2007
Location: Toronto, ON
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by trotskid View Post
For the first code appears this error:

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
Regards
You should put ( ! ) Before ( in_array(); )
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05062 seconds
  • Memory Usage 2,340KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (16)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete