Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
LAM - PM Security Notice Details »»
LAM - PM Security Notice
Version: 4.0.6.1, by mawby mawby is offline
Developer Last Online: Jul 2020 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 4.0.6 Rating:
Released: 10-12-2010 Last Update: 10-19-2010 Installs: 68
Uses Plugins Auto-Templates
Re-useable Code Additional Files Translations  
No support by the author.

This product displays a small banner above private messages from certain user groups to inform the user if they are reading a PM from a trusted user group or not.


Installation
  1. Download and uncompress the attached .zip file
    LAM_PMSecurityNotice.zip
  2. Upload the images
    Copy the contents of the upload folder onto your web server
    Note: If you use a custom style you may need to copy/move the images into your style's misc image folder
  3. Install the product
    AdminCP -> Plugins & Products -> Add/Import Product -> Import Product

Configuration

This product supports three different messages;
Verified - This is used on my site to show that a PM has come from a moderator, a super moderator or an administrator, and therefore its contents can be trusted.

Authorised - This is used on my site to show a PM has come from an authorised trader - someone who has paid to trade on my site.

Untrusted - And as I get a lot of people who just create accounts to try and sell junk via the PM system, this one I use to show a PM has come from an newbie account.
All of the above are triggered by the PM senders group ID, and these are controlled by the following options;



You can simply change the settings above to suit your needs. If a particular banner isn't wanted then leave the setting blank. This product is fully phrased so you can change any of the messages as needed.


Example

Here are some examples of each of the banners. The verified banner;



The authorised banner;



The untrusted banner;




Version History

4.0.6.1 - Fixed problem with vBulletin 4.0.7 (2010/10/20)
4.0.6 - Initial release (2010/10/13)


Credits

Although I've written this product for vB 4 the original idea came from the PM Security Certificate product written by magnus.
Thanks to DS MrSinister for spotting the vBulletin 4.0.7 problem.

Download Now

File Type: zip LAM_PMSecurityNotice.zip (10.6 KB, 245 views)

Screenshots

File Type: png admincp.png (45.3 KB, 0 views)
File Type: png verified.png (41.8 KB, 0 views)
File Type: png authorised.png (12.8 KB, 0 views)
File Type: png untrusted.png (28.9 KB, 0 views)

Show Your Support

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

Comments
  #22  
Old 10-19-2010, 07:25 PM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DS MrSinister View Post

Try this and see if it fixes your problem.

Replace your LAM - PM Security Notice --> postbit_display_complete plugin code with the one below.
Fixed my problem, many many thanks
Reply With Quote
  #23  
Old 10-19-2010, 08:05 PM
Eduardo Leon's Avatar
Eduardo Leon Eduardo Leon is offline
 
Join Date: Oct 2009
Location: Peru
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes !

thnx for sharing this .

INSTALLED !
Reply With Quote
  #24  
Old 10-19-2010, 11:20 PM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your very welcome.
Reply With Quote
  #25  
Old 10-20-2010, 07:05 AM
mawby mawby is offline
 
Join Date: Jun 2004
Location: Wiltshire, England
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've updated with the product with DS MrSinister suggested vB 4.0.7 fix. :up:
Reply With Quote
  #26  
Old 10-21-2010, 11:57 PM
sonixax sonixax is offline
 
Join Date: Sep 2010
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working on 4.0.8
Reply With Quote
  #27  
Old 10-22-2010, 01:09 AM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sonixax View Post
not working on 4.0.8
use the new file or use my fixed in post 19.
Reply With Quote
  #28  
Old 10-22-2010, 11:49 AM
0verl0rd 0verl0rd is offline
 
Join Date: Oct 2010
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tag for later! Thanks for sharing!
Reply With Quote
  #29  
Old 02-08-2011, 02:17 PM
Xexiu Xexiu is offline
 
Join Date: May 2008
Location: Barcelona
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Something similar or the same for vbulletin 3.8.x?

Thank you.
Reply With Quote
  #30  
Old 02-10-2011, 07:18 AM
fionix fionix is offline
 
Join Date: Apr 2007
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by DS MrSinister View Post
LordVader*

Try this and see if it fixes your problem.

Replace your LAM - PM Security Notice --> postbit_display_complete plugin code with the one below.

Code:
global $vbulletin;
if (THIS_SCRIPT=='private') {
	$LAM_PMSecurityNotice_IDs = explode(',', $vbulletin->options['LAM_PMSecurityNotice_Verified']);
	if (in_array($post[usergroupid], $LAM_PMSecurityNotice_IDs)) {
		$templater = vB_Template::create('LAM_PMSecurityNotice');
		$templater->register('LAM_PMSecurityNotice_Icon', "LAM_PMSecurityNotice_Verified.gif");
		$templater->register('LAM_PMSecurityNotice_AltText', $vbphrase['LAM_PMSecurityNotice_Verified_AltText']);
		$templater->register('LAM_PMSecurityNotice_Title', $vbphrase['LAM_PMSecurityNotice_Verified_Title']);
		$templater->register('LAM_PMSecurityNotice_Details', $vbphrase['LAM_PMSecurityNotice_Verified_Details']);
		$templater->register('LAM_PMSecurityNotice_TitleColour', "#339900");
		$template_hook[postbit_start] .= $templater->render();
	}

	$LAM_PMSecurityNotice_IDs = explode(',', $vbulletin->options['LAM_PMSecurityNotice_Authorised']);
	if (in_array($post[usergroupid], $LAM_PMSecurityNotice_IDs)) {
		$templater = vB_Template::create('LAM_PMSecurityNotice');
		$templater->register('LAM_PMSecurityNotice_Icon', "LAM_PMSecurityNotice_Authorised.gif");
		$templater->register('LAM_PMSecurityNotice_AltText', $vbphrase['LAM_PMSecurityNotice_Authorised_AltText']);
		$templater->register('LAM_PMSecurityNotice_Title', $vbphrase['LAM_PMSecurityNotice_Authorised_Title']);
		$templater->register('LAM_PMSecurityNotice_Details', $vbphrase['LAM_PMSecurityNotice_Authorised_Details']);
		$templater->register('LAM_PMSecurityNotice_TitleColour', "#339900");
		$template_hook[postbit_start] .= $templater->render();
	}

	$LAM_PMSecurityNotice_IDs = explode(',', $vbulletin->options['LAM_PMSecurityNotice_Untrusted']);
	if (in_array($post[usergroupid], $LAM_PMSecurityNotice_IDs)) {
		$templater = vB_Template::create('LAM_PMSecurityNotice');
		$templater->register('LAM_PMSecurityNotice_Icon', "LAM_PMSecurityNotice_Untrusted.gif");
		$templater->register('LAM_PMSecurityNotice_AltText', $vbphrase['LAM_PMSecurityNotice_Untrusted_AltText']);
		$templater->register('LAM_PMSecurityNotice_Title', $vbphrase['LAM_PMSecurityNotice_Untrusted_Title']);
		$templater->register('LAM_PMSecurityNotice_Details', $vbphrase['LAM_PMSecurityNotice_Untrusted_Details']);
		$templater->register('LAM_PMSecurityNotice_TitleColour', "#993300");
		$template_hook[postbit_start] .= $templater->render();
	}
}
Also vb4.0.7 fixed
Can you please explain where to find ths exactly in VB 4.1.1 ?
Reply With Quote
  #31  
Old 08-11-2011, 01:59 AM
Valcav Valcav is offline
 
Join Date: Nov 2010
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

It works...

But now (maybe feature request): How can I change it so that it looks a little bit more like this (ps, that site is running on vb3.X):



I was able to add something between official & staff... But on the site I saw that, there is that part in bold...
And also like you can see there is a little bit more text...

So how to:
* add Bold text + Maybe how to change the color of that text
* add more text to it (like that red text)

Is there a possibility to make it so that those things are also added in the "LAM - PM Security Notice" Setting Group?
Just asking...
And if this could be done,
that would be very great!

Friendly greetings,
Valcav
Attached Images
File Type: png Verified.png (7.4 KB, 0 views)
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 06:50 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.06042 seconds
  • Memory Usage 2,340KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete