View Full Version : Mini Mods - PM security certificate (edited mod)
Nickbe
10-10-2007, 10:00 PM
You will find the original mod here: https://vborg.vbsupport.ru/showthread.php?t=136678
I loved the idea but I did not like the look and I had a few more issues with it. I thought the mod was useless unless it also had a warning for unverified PM's.
I edited the mod to include a warning for unverified PM's and I made it fit in better with the PM box. I also changed the pictures.
Installation:
In either POSTBIT and/or POSTBIT_LEGACY, paste the following code at the top. If you do not know the difference edit both.
(NOTE: Make sure your moderators have their primary usergroup set to moderator not secondary otherwise both the verified and unverified warning will show up")
<if condition="THIS_SCRIPT=='private' && is_member_of($post, INSERT YOUR MOD USEGROUP ID's)">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/verified.gif" width="44" height="39" 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</strong> staff member. It's contents can be trusted.</font></td>
</tr>
</table>
</if>
<if condition="THIS_SCRIPT=='private' && is_member_of($post, [B]INSERT UNVERIFIED USERGROUP ID'S">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/unverified.gif" width="44" height="39" alt="Verified!" /></td>
<td class="alt2"><strong><font size="2" color="#0f4390">U N V E R I F I E D</font></strong><br /><font size="1">This message is from someone other than a staff Member. If it contains spam please report it to the forum <a href="INSERT YOUR FORUM URL/private.php?do=newpm&u=1">admin</a>.</font></font></td>
</tr>
</table>
</if>
</if>
To edit the usergroups on the 'verified' in the first line of code find:
<if condition="THIS_SCRIPT=='private' && is_member_of($post, INSERT YOUR MOD USEGROUP ID's)">
And replace with appropriate usegroup ID's.
(Your usergroup ID numbers can be found in your usergroup section in the admincp. You will see each usergroup has an ID number assigned to it)
Here you will want to place the administrator user group ID and all moderator groups ID's. By default it is 5,6,7 and should look like this:
<if condition="THIS_SCRIPT=='private' && is_member_of($post, 5, 6, 7)">
If you need to add more separate with a ,
To add usergroups to the unsafe list find this line of code (about 14 lines down):
&& is_member_of($post, INSERT UNVERIFIED USERGROUP ID'S">
and add in the desired user group numbers. By default it should only be group "2" (registered members)
It should look something like this:
<if condition="THIS_SCRIPT=='private' && is_member_of($post, 2)">
NEW Pics are in the .ZIP file below add them to images/misc
Shazz
10-11-2007, 01:53 PM
I guess people with the mod "Read PM" installed shouldn't have this lol
Nickbe
10-11-2007, 02:07 PM
No idea what you are talking about, I have been coding for 2 months I am a newbie but I made this, it works fine and I like it so i thought I would share.
PoetJA-1975
10-11-2007, 09:13 PM
It's a nice share too - may install when I get over my hangover :P
Thanx,
Jacquii.
yoyoyoyo
10-11-2007, 11:09 PM
hmm - not sure if I like implying that my members can't be trusted, but thanks for sharing. ;)
Nickbe
10-12-2007, 12:44 AM
Thats why it says unverified 'if' feel free to change the text and picture.
All I know is that I got 7 PM's about two different people in the first day. They tried spamming a product and I caught them.
PoetJA-1975
10-12-2007, 05:28 AM
hmmm - I thought there was a little something amiss - Your code doesn't allow for Member groups other than "Members" for the hack to work - Say you have groups like Elite or Senior Member or Contributors..... Your edited code would NOT work....
It should be:
<if condition="THIS_SCRIPT=='private' && is_member_of($post, 5, 6, 7)">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar/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</strong> staff member. It's contents can be trusted.</font></td>
</tr>
</table>
</if>
<if condition="THIS_SCRIPT=='private' && is_member_of($post, [B]INCLUDE EACH OF YOUR OTHER USERGROUP IDs">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/unverified.gif" width="27" height="32" alt="Verified!" /></td>
<td class="alt2"><strong><font size="2" color="#fa2424">U N V E R I F I E D</font></strong><br /><font size="1">If this message contains spam please report to a forum staff member.</font></td>
</tr>
</table>
</if>
Actually I even customized it a little and made graphics for my site - I'll share too - But I really like the "spam prevention" aspect of the rewrite = Thanx for sharing ;)
Jacquii.
<if condition="THIS_SCRIPT=='private' && is_member_of($post, 5, 6, 7)">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/verified.gif" width="64" height="64" alt="Verified!" /></td>
<td class="alt2"><strong><font size="4" color="#00A000">V E R I F I E D</font></strong><br /><font size="1">This message was sent by an official Member of the <b>[I]your forum name Moderating Team</b>. It's contents can be trusted.</font></td>
</tr>
</table>
<br />
</if>
<if condition="THIS_SCRIPT=='private' && is_member_of($post, INCLUDE EACH OF YOUR OTHER USERGROUP IDS)">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/unverified.gif" width="64" height="64" alt="Verified!" /></td>
<td class="alt2"><strong><font size="4" color="#4064C0">A T T E N T I O N !</font></strong><br /><font size="1">This message is from someone other than a "YOUR FORUM NAME" Staff Member... If it contains spam please <a href="YOUR URL/sendmessage.php"><strong>Report It</strong></a> or contact the <a href="YOUR URL/sendmessage.php?do=mailmember&u=1">Webmaster</a>.</font></td>
</tr>
</table>
<br />
</if>
http://i220.photobucket.com/albums/dd134/ThickMadam1/verified.gif
https://vborg.vbsupport.ru/external/2007/10/17.gif
Nickbe
10-12-2007, 05:43 AM
Just here to learn, thanks for the rewrite that helps a lot with something else I am working on.
PoetJA-1975
10-12-2007, 05:49 AM
No prob - Thanx for the sharing!
So do you have your own Forum?
Jacquii.
Nickbe
10-12-2007, 08:51 AM
Yeh www.forex4noobs.com/forums/
PoetJA-1975
10-12-2007, 09:21 AM
Nice looking site! Don't know much about forex though - but quite loving the style!
Anyway - I correct my correction post LOL - I'd forgotten the <if> statement would need to be in for both edits...
Great little template mod - I appreciate the sharing ;)
Jacquii.
puertoblack2003
10-12-2007, 04:14 PM
thanks for the share and upgraded mines.Though i tested both and saw that PoetJA-1975 codes is cleaner but used your images its better for my forum skin.
thanks to both of you
-pb
Nickbe
10-12-2007, 05:22 PM
puertoblack2003: Yeh it is a lot cleaner I replaced mine too. (kept my images though)
PoetJA-1975: Thanks I will replace the code from your post in the original posted code. Is the code you have posted on there now the correct code? Did you edit it because I notice one of the <if> tags is not closed </if>
That is my first ever attempt at a website, I am constantly updating things to make it more efficient but for a first site I think it's pretty good.
I am also working on www.forex4noobs.com/education/ (educations section)
Hornstar
10-13-2007, 03:08 AM
Not bad. thanks for sharing. I feel this would be very useful on one of my sites, thanks.
PoetJA-1975
10-13-2007, 04:29 AM
Did you edit it because I notice one of the <if> tags is not closed </if>
The only "change" really is that if you have other usergroups then you need to add the usergroup ids into the code as shown below... I also closed the </if> tag....
<if condition="THIS_SCRIPT=='private' && is_member_of($post, INCLUDE EACH OF YOUR OTHER USERGROUP IDs)">
BTW - I love my images :P
Thanx again for the sharing ;)
Jacquii.
Nickbe
10-13-2007, 04:51 AM
Ok great so the original code was good? I jsut needed to let people know they could change the usergroup info?
I liked the fact that your image is a question mark, it is less IN YOUR FACE.
I will make a new one and upload
PoetJA-1975
10-13-2007, 06:16 AM
LOL - ok - AND yes - the original code was right, as you have to have both sections coded with <if> conditionals because it's specifically for the PM system ;) --- You just have to be sure you have all your usergroup ids listed or it wouldn't show for all....
Anyway- thanx again for the modification - It's quite nice and will cut down on spamming via the PM system :)
Jacquii.
Nickbe
10-13-2007, 09:16 AM
Updated with new pics I have question mark with blue background now so it is less 'in your face'
Thanks for the update PoetJA-1975 that original <else> tag has helped me with some other things. ( I did not know it existed)
PoetJA-1975
10-13-2007, 07:34 PM
yep - it exists :P --- And glad to help - The NEW images look AWESOME!
Jacquii.
Munzo
10-14-2007, 08:30 PM
You have an error in the code:
<if condition="THIS_SCRIPT=='private' && is_member_of($post, INSERT YOUR MOD USEGROUP ID's">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/verified.gif" width="44" height="39" 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</strong> staff member. It's contents can be trusted.</font></td>
</tr>
</table>
</if>
[B]<if condition="THIS_SCRIPT=='private' && is_member_of($post, INSERT UNVERIFIED USERGROUP ID'S">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/unverified.gif" width="44" height="39" alt="Verified!" /></td>
<td class="alt2"><strong><font size="2" color="#0f4390">U N V E R I F I E D</font></strong><br /><font size="1">This message is from someone other than a staff Member. If it contains spam please report it to the forum <a href="INSERT YOUR FORUM URL/private.php?do=newpm&u=1">admin</a>.</font></font></td>
</tr>
</table>
</if>
</if>
The fix is easy:
<if condition="THIS_SCRIPT=='private' && is_member_of($post, INSERT YOUR MOD USEGROUP ID's)">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/verified.gif" width="44" height="39" 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</strong> staff member. It's contents can be trusted.</font></td>
</tr>
</table>
</if>
[B]<if condition="THIS_SCRIPT=='private' && is_member_of($post, INSERT UNVERIFIED USERGROUP ID'S)">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/unverified.gif" width="44" height="39" alt="Verified!" /></td>
<td class="alt2"><strong><font size="2" color="#0f4390">U N V E R I F I E D</font></strong><br /><font size="1">This message is from someone other than a staff Member. If it contains spam please report it to the forum <a href="INSERT YOUR FORUM URL/private.php?do=newpm&u=1">admin</a>.</font></font></td>
</tr>
</table>
</if>
</if>
Good Day!
cheat-master30
10-14-2007, 09:14 PM
I'll try this later, for the sake of it. Couldn't you use <else> or something though?
Nickbe
10-14-2007, 10:55 PM
somebody tried to use <else> and it did not work
KingPin6
10-19-2007, 07:09 PM
since there are generally only two kinds of groups, trusted and non trusted I added an else statement and it works fine for me, thought I'd share it :
<if condition="THIS_SCRIPT=='private'">
<if condition="is_member_of($post, groups,that,are,trsuted)">
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/verified.gif" width="44" height="39" 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>
<else />
<table table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="30"><img src="$stylevar[imgdir_misc]/unverified.gif" width="44" height="39" alt="UnVerified!" /></td>
<td class="alt2"><strong><font size="2" color="#0f4390">U N V E R I F I E D</font></strong><br /><font size="1">This message is from someone other than a staff Member. If it contains spam please report it to the forum <a href="/private.php?do=newpm&u=1">admin</a>.</font></font></td>
</tr>
</table>
</if>
</if>so all groups in the trusted line (line #2) get passed thru and all others get the suspect image :) also fixed the alt tag since both contained word verified.
JadedSouls
10-21-2007, 07:43 PM
I fixed my problem - I was having both verified/unverified showing up with certain staff because they are in more than one usergroup.
Love the mod tho..
Red Spider
11-07-2007, 06:33 PM
I requested the original hack. Nice update :)
newtsys
11-27-2007, 06:37 PM
great hack thanks =)
newtsys
12-06-2007, 10:59 PM
never mind found it thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.