vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   no sigs or avatars (https://vborg.vbsupport.ru/showthread.php?t=124837)

ktp101 08-24-2006 11:29 PM

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

gtsch 08-25-2006 01:28 AM

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>

Freesteyelz 08-25-2006 03:40 AM

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.

ktp101 08-25-2006 08:48 AM

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.

ericgtr 08-25-2006 01:17 PM

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

ktp101 08-25-2006 03:34 PM

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 :D


All times are GMT. The time now is 07:26 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.01142 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete