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
  #12  
Old 10-16-2010, 02:07 AM
LordVader LordVader is offline
 
Join Date: Aug 2009
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Doesn't work at all for me

I uploaded the images to me images/misc directory & my images/style/misc directory

Its been over half an hour now & still nothing showing up.

I'm running vb-4.0.7

Thanks

Will.
Reply With Quote
  #13  
Old 10-16-2010, 03:32 AM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works like a charm for me.. I also tweaked it a little bit. as you can see in the attach image.

Great Job Sir..
Attached Images
File Type: png pm.png (11.5 KB, 0 views)
Reply With Quote
  #14  
Old 10-16-2010, 07:00 AM
mawby mawby is offline
 
Join Date: Jun 2004
Location: Wiltshire, England
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CharlieDelta View Post
Update; I got it, moved the images to my style misc directory.
Thanks for the update. I've added a note to the installation instructions regarding custom templates.
Reply With Quote
  #15  
Old 10-16-2010, 07:11 AM
mawby mawby is offline
 
Join Date: Jun 2004
Location: Wiltshire, England
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hIBEES View Post
Now showing for me here

Settings set... vb 4.0.7
Quote:
Originally Posted by LordVader View Post
Doesn't work at all for me
.....
I'm running vb-4.0.7
My sites only on 4.0.6 so I haven't tested 4.0.7 yet, but I am planning on upgrading in the next couple of weeks. I really can't see that being the problem though.

Do either of you run custom templates? If so could you try creating a default vB template and seeing if that works OK. Or do either of you run any other PM enhancement plugins?

Either way I will get to the bottom of this! Just please bear with me whilst I get my site up to 4.0.7 first - unless either of you are willing to PM me login details for your site so I can take a look?
Reply With Quote
  #16  
Old 10-16-2010, 07:50 AM
LordVader LordVader is offline
 
Join Date: Aug 2009
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah

I'm using the Underground theme from CompleteVB i do NOT recommend them, nice themes, crap technical support.

I am also using these two which i believe are both PM related

https://vborg.vbsupport.ru/showthread.php?t=243405

https://vborg.vbsupport.ru/showthread.php?t=241248

But i am quite happy to let you have a play around in my site if you think you can crack it

Thanks

Will.
Reply With Quote
  #17  
Old 10-16-2010, 10:02 AM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mawby View Post
My sites only on 4.0.6 so I haven't tested 4.0.7 yet, but I am planning on upgrading in the next couple of weeks. I really can't see that being the problem though.

Do either of you run custom templates? If so could you try creating a default vB template and seeing if that works OK. Or do either of you run any other PM enhancement plugins?

Either way I will get to the bottom of this! Just please bear with me whilst I get my site up to 4.0.7 first - unless either of you are willing to PM me login details for your site so I can take a look?

No custom templates here, running the modpm as well but uninstalled that and still no joy

https://vborg.vbsupport.ru/showthread.php?t=241248
Reply With Quote
  #18  
Old 10-17-2010, 07:46 AM
mawby mawby is offline
 
Join Date: Jun 2004
Location: Wiltshire, England
Posts: 145
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LordVader View Post
I'm using the Underground theme from CompleteVB i do NOT recommend them, nice themes, crap technical support.

I am also using these two which i believe are both PM related
Quote:
Originally Posted by hIBEES View Post
No custom templates here, running the modpm as well but uninstalled that and still no joy
Thanks both.

I think the best plan at the moment is for me to upgrade to 4.0.7 as that seems to be the most plausible common factor here. I'll then check out modpm if I still can't identify the problem. If all else fails, LordVader, I'll take you up on your offer to investigate it on your site. :up:
Reply With Quote
  #19  
Old 10-18-2010, 10:37 AM
LordVader LordVader is offline
 
Join Date: Aug 2009
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hiya Mawby

No great rush, but it does look like a sweet upgrade & i know my mod's will get a kick out of being all official ... LOL

Looking forward to seeing it in action & thanks for taking the time to try & help.

And feel free to call me ( Will )

Thanks

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

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
Reply With Quote
  #21  
Old 10-19-2010, 02:25 AM
CharlieDelta CharlieDelta is offline
 
Join Date: Apr 2010
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am running 4.0.7 with custom templates and no issues, other than the images hick up. I however am not running any other pm mods.
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:34 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.04637 seconds
  • Memory Usage 2,347KB
  • 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
  • (6)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