Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
PM security certificate (edited mod) Details »»
PM security certificate (edited mod)
Version: 1.10, by Nickbe Nickbe is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.8 Rating:
Released: 10-10-2007 Last Update: 10-12-2007 Installs: 25
Template Edits
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 10-11-2007, 01:53 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess people with the mod "Read PM" installed shouldn't have this lol
Reply With Quote
  #3  
Old 10-11-2007, 02:07 PM
Nickbe Nickbe is offline
 
Join Date: Jul 2007
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 10-11-2007, 09:13 PM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a nice share too - may install when I get over my hangover :P
Thanx,

Jacquii.
Reply With Quote
  #5  
Old 10-11-2007, 11:09 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm - not sure if I like implying that my members can't be trusted, but thanks for sharing.
Reply With Quote
  #6  
Old 10-12-2007, 12:44 AM
Nickbe Nickbe is offline
 
Join Date: Jul 2007
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 10-12-2007, 05:28 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>



Reply With Quote
  #8  
Old 10-12-2007, 05:43 AM
Nickbe Nickbe is offline
 
Join Date: Jul 2007
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just here to learn, thanks for the rewrite that helps a lot with something else I am working on.
Reply With Quote
  #9  
Old 10-12-2007, 05:49 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No prob - Thanx for the sharing!
So do you have your own Forum?

Jacquii.
Reply With Quote
  #10  
Old 10-12-2007, 08:51 AM
Nickbe Nickbe is offline
 
Join Date: Jul 2007
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeh www.forex4noobs.com/forums/
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04474 seconds
  • Memory Usage 2,315KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_html
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete