vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Mini Mods - PM security certificate (edited mod) (https://vborg.vbsupport.ru/showthread.php?t=160003)

Nickbe 10-10-2007 10:00 PM

PM security certificate (edited mod)
 
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")

Quote:

<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[bbtitle]</strong> staff member. It's contents can be trusted.</font></td>
</tr>
</table>
</if>
<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>

To edit the usergroups on the 'verified' in the first line of code find:

Quote:

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

Quote:

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

Quote:

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

Quote:

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

<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="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>
</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="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.

HTML Code:

<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][COLOR="Red"]your forum name[/COLOR][/I] 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/d...1/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/


All times are GMT. The time now is 11:12 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.01130 seconds
  • Memory Usage 1,760KB
  • 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
  • (1)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete