Log in

View Full Version : Signature for moderators


symptome
08-05-2008, 11:06 AM
I want to display a short message in the signature of all moderators of the board. But I want it that way that the moderator can't change something.
So, perhaps the moderator can have it's own signature that will show up in addition to the generel moderator signature. Or this feature inactivates the individual signatures for moderators.

Do you know something like that?

Thanks!
Marcel

Dismounted
08-05-2008, 12:05 PM
You can edit the postbit(_legacy) template to include something in their signature if their usergroup is X.
<if condition="is_member_of($bbuserinfo, X)">You are a member of usergroup X!</if>

symptome
08-05-2008, 12:37 PM
great idea.
But is the sequence above really correct? (i use legacy)

--------------- Added 1217950083 at 1217950083 ---------------

--------------- Added 1217950123 at 1217950123 ---------------

Found something :

<if condition="in_array($post['usergroupid'], array(5,7))">

Dismounted
08-06-2008, 06:47 AM
The code you posted will not take in account secondary usergroups. Just found a little bug in my code - try it now.
<if condition="is_member_of($post, X)">You are a member of usergroup X!</if>

sarum
08-17-2008, 08:20 PM
is there a way to force the usergroup to show signature?
so its always displayed

maybe hide show sig box on posts?

cheat-master30
08-17-2008, 08:24 PM
If you added this mod outside of the signature if conditional, it'll always show anyway. If not, I'll get the template mod you'd need.

--------------- Added 17 Aug 2008 at 22:32 ---------------

Disable Signature Removal:

newreply:

Find:

<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>Remove:

<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>newthread:

Find:

<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>Remove:

<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>SHOWTHREAD:

Find:

<if condition="$bbuserinfo['signature']">
<div style="float:$stylevar[right]"><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="5" checked="checked" />$vbphrase[show_your_signature]</label></div>
</if>Remove:

<if condition="$bbuserinfo['signature']">
<div style="float:$stylevar[right]"><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="5" checked="checked" />$vbphrase[show_your_signature]</label></div>
</if>

Edit: Won't take sneaky manipulation of server side code by savvy users into account, but stops them using the 'Show my Signature' box.

sarum
08-17-2008, 08:35 PM
If you added this mod outside of the signature if conditional, it'll always show anyway. If not, I'll get the template mod you'd need.

--------------- Added 17 Aug 2008 at 22:32 ---------------

Disable Signature Removal:

newreply:

Find:

<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>Remove:

<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>newthread:

Find:

<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>Remove:

<if condition="$bbuserinfo['signature'] != ''"><div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" $checked[signature] />$vbphrase[show_your_signature]</label></div></if>SHOWTHREAD:

Find:

<if condition="$bbuserinfo['signature']">
<div style="float:$stylevar[right]"><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="5" checked="checked" />$vbphrase[show_your_signature]</label></div>
</if>Remove:

<if condition="$bbuserinfo['signature']">
<div style="float:$stylevar[right]"><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="5" checked="checked" />$vbphrase[show_your_signature]</label></div>
</if>

Edit: Won't take sneaky manipulation of server side code by savvy users into account, but stops them using the 'Show my Signature' box.

perfect thank you

cheat-master30
08-17-2008, 09:05 PM
No problem.