Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-27-2011, 05:58 PM
creative-friend creative-friend is offline
 
Join Date: Feb 2009
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How To Hide Avatar And Signature In Specific Forum

Hello

I Just Wanted to know if there is any way to Hide Avatar And Signature In Specific Forum i did that in VB3.....and tried the same coding in VB4 but its not working

Can anyone help with this please???

Thank u.
Reply With Quote
  #2  
Old 01-28-2011, 12:05 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by creative-friend View Post
Hello

I Just Wanted to know if there is any way to Hide Avatar And Signature In Specific Forum i did that in VB3.....and tried the same coding in VB4 but its not working

Can anyone help with this please???

Thank u.
Do you want to hide it from guests or from different groups?

If the first have a look at my mod:

https://vborg.vbsupport.ru/showthread.php?t=250094

It can also be tweaked to hide it from other groups too.
Reply With Quote
  #3  
Old 01-28-2011, 03:22 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't edit the template, just write a plugin like:
PHP Code:
if ($this->thread['forumid'] == x)
{
$show['avatar'] = false;
$post['signature'] = '';

Reply With Quote
  #4  
Old 01-28-2011, 08:57 PM
creative-friend creative-friend is offline
 
Join Date: Feb 2009
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by borbole View Post
Do you want to hide it from guests or from different groups?

If the first have a look at my mod:

https://vborg.vbsupport.ru/showthread.php?t=250094

It can also be tweaked to hide it from other groups too.
I Wana Hide Avatar And Signature In My Religion Section From Everyone.....

Quote:
Originally Posted by Lynne View Post
Don't edit the template, just write a plugin like:
PHP Code:
if ($this->thread['forumid'] == x)
{
$show['avatar'] = false;
$post['signature'] = '';

What do you mean??

Can you please explain abit...
Reply With Quote
  #5  
Old 01-28-2011, 11:52 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by creative-friend View Post
What do you mean??

Can you please explain abit...
Adding or Editing a Plugin
Reply With Quote
  #6  
Old 01-29-2011, 02:49 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by creative-friend View Post
I Wana Hide Avatar And Signature In My Religion Section From Everyone.....
If you want to do that with my mod, change this code at the mod file

PHP Code:
if (!$vbulletin->userinfo['userid'] && $forum['guests_avatars']) 
to this:

PHP Code:
if ($forum['guests_avatars']) 
Or you can create a new mod by following Lynne's advice above.
Reply With Quote
  #7  
Old 01-30-2011, 09:46 PM
creative-friend creative-friend is offline
 
Join Date: Feb 2009
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Okay when doing this what do i have to select on Hook Location??

Quote:
Originally Posted by borbole View Post
If you want to do that with my mod, change this code at the mod file

PHP Code:
if (!$vbulletin->userinfo['userid'] && $forum['guests_avatars']) 
to this:

PHP Code:
if ($forum['guests_avatars']) 
Or you can create a new mod by following Lynne's advice above.
Bro what will that do??i have changed the code like you said but i cant see anything happening??
Reply With Quote
  #8  
Old 01-30-2011, 10:45 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by creative-friend View Post
Okay when doing this what do i have to select on Hook Location??
Tyr a postbit one like postbit_display_complete.
Reply With Quote
  #9  
Old 02-01-2011, 01:33 PM
creative-friend creative-friend is offline
 
Join Date: Feb 2009
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Tyr a postbit one like postbit_display_complete.
Okay Thats Done

So Do I Have To change anything here

I Mean forum Id or something.....where i dont want to show avatar and signature??

Quote:
if ($this->thread['forumid'] == x)
{
$show['avatar'] = false;
$post['signature'] = '';
}
--------------- Added [DATE]1296575332[/DATE] at [TIME]1296575332[/TIME] ---------------

Great All Done.....

I changed the X to forum Id and it worked fine

Thanks Alot Lynne

Thank u very much.

--------------- Added [DATE]1296575562[/DATE] at [TIME]1296575562[/TIME] ---------------

One more thing

what do i have to do for the sub forums??
Reply With Quote
  #10  
Old 02-01-2011, 02:56 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=246993" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=246993</a>
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 02:11 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
  • Page Generation 0.04549 seconds
  • Memory Usage 2,277KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_php
  • (10)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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