simalert |
02-28-2007 01:04 PM |
Quote:
Originally Posted by pollon
(Post 1192584)
I would like the PM Security Certificate to appear only in PMs sent by the admins (or by selected usergroups). is that possbile?
|
Yes, very much so.
Just change the numbers in the first line according to which groups you want to have this on their sent PMs. By default it's set to '5, 6, 7' but you can change this to the groups you want (see your user group manager in admin control panel to get group numbers).
Code:
<if condition="THIS_SCRIPT=='private' && is_member_of($post, 5, 6, 7)">
<br />
<table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="98%" align="center" style="border-bottom-width:0px">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/verified.gif" width="27" height="32" alt="Verified!" /></td>
<td class="alt2"><strong><font size="2" color="#339900">V E R I F I E D</font></strong><br /><font size="1">This message was sent by an official <strong>$vboptions[bbtitle]</strong> staff member. It's contents can be trusted.</font></td>
</tr>
</table>
<br />
</if>
In the above code, it's this bit you have to change
Quote:
<if condition="THIS_SCRIPT=='private' && is_member_of($post, 5, 6, 7)">
<br />
|
You could also use the above to create a similar mod for your forum to create verficiations or actions based on other user groups too, not just site staff. Or you could have one for admins and one for moderators etc.
|