Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 08-24-2006, 11:29 PM
ktp101 ktp101 is offline
 
Join Date: Jan 2006
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default no sigs or avatars

i was wondering if it was possible to have no sigs or avatars displayed in a certain forum.
looked at forum permissions etc but couldnt find a way without disabling them over the full site.
so if anyone can either advise me or create some kind of mdification it would be very appreciated.
thanks in advance.
version i'm running is 3.6.0
Reply With Quote
  #2  
Old 08-25-2006, 01:28 AM
gtsch's Avatar
gtsch gtsch is offline
 
Join Date: Feb 2006
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One way you could do it is make a conditional statement based on forum in the template around the sig and avatar.
Code:
<if condition="in_array($thread[forumid], array(X,Y,Z))">blah</if>
Reply With Quote
  #3  
Old 08-25-2006, 03:40 AM
Freesteyelz's Avatar
Freesteyelz Freesteyelz is offline
 
Join Date: Jan 2006
Posts: 1,552
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you only want one or a few forums to not display the avatars and sigs then do the code above with the adjustment of:

Code:
<if condition="in_array($thread[forumid], array(x,y,z))">
<else />
avatar or sig code here...
</if>
Replace "x", "y" and "z" for the forum(s) ID you do not want to have the avatars and signatures displayed.
Reply With Quote
  #4  
Old 08-25-2006, 08:48 AM
ktp101 ktp101 is offline
 
Join Date: Jan 2006
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok tried to mess around with the above code but i'm no coder so wasnt too sure on what i was doing.

can someone show me an example code of avatars being not shown in forum id = 79

which templates do i edit, postbit?
and where do i enter the code, is it a replacement or to go above or below any specific part.
Reply With Quote
  #5  
Old 08-25-2006, 01:17 PM
ericgtr's Avatar
ericgtr ericgtr is offline
 
Join Date: Apr 2003
Location: Portland, Oregon
Posts: 1,407
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is one way, keep in mind you will have to add only the forums you want to exclude, so every forumid do that you put in the array will show avatars and sigs, all others will not.

In your postbit (or postbit_legacy) find:

Code:
<if condition="$show['avatar']">
Replace with:
Code:
<if condition="$show['avatar'] AND in_array($thread[forumid], array(xx,xx,xx))">
Now, in the same file we can do this for the signature as well. Find:
Code:
<if condition="$post['signature']">
Replace with:
Code:
<if condition="$post['signature'] AND in_array($thread[forumid], array(xx,xx,xx))">
Reply With Quote
  #6  
Old 08-25-2006, 03:34 PM
ktp101 ktp101 is offline
 
Join Date: Jan 2006
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ericgtr
Here is one way, keep in mind you will have to add only the forums you want to exclude, so every forumid do that you put in the array will show avatars and sigs, all others will not.
thank you, thats easy for me to understand now
Reply With Quote
Reply

Thread Tools
Display Modes

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 05:34 PM.


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.04123 seconds
  • Memory Usage 2,205KB
  • Queries Executed 13 (?)
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_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete