Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

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
  #22  
Old 10-14-2007, 09:14 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll try this later, for the sake of it. Couldn't you use <else> or something though?
Reply With Quote
  #23  
Old 10-14-2007, 10:55 PM
Nickbe Nickbe is offline
 
Join Date: Jul 2007
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

somebody tried to use <else> and it did not work
Reply With Quote
  #24  
Old 10-19-2007, 07:09 PM
KingPin6's Avatar
KingPin6 KingPin6 is offline
 
Join Date: Sep 2006
Posts: 50
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 :

Code:
<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.
Reply With Quote
  #25  
Old 10-21-2007, 07:43 PM
JadedSouls's Avatar
JadedSouls JadedSouls is offline
 
Join Date: May 2007
Location: Canada, eh?
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #26  
Old 11-07-2007, 06:33 PM
Red Spider's Avatar
Red Spider Red Spider is offline
 
Join Date: Jan 2006
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I requested the original hack. Nice update
Reply With Quote
  #27  
Old 11-27-2007, 06:37 PM
newtsys newtsys is offline
 
Join Date: Dec 2004
Location: Idaho
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great hack thanks =)
Reply With Quote
  #28  
Old 12-06-2007, 10:59 PM
newtsys newtsys is offline
 
Join Date: Dec 2004
Location: Idaho
Posts: 78
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

never mind found it thanks
Reply With Quote
Reply

Thread Tools

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 01:14 AM.


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.06639 seconds
  • Memory Usage 2,279KB
  • Queries Executed 22 (?)
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_code
  • (5)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
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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