PDA

View Full Version : no sigs or avatars


ktp101
08-24-2006, 11:29 PM
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.
<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:


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


<if condition="$show['avatar']">


Replace with:

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

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


Replace with:

<if condition="$post['signature'] AND in_array($thread[forumid], array(xx,xx,xx))">

ktp101
08-25-2006, 03:34 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.



thank you, thats easy for me to understand now :D