vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Private Messages Enhancements - LAM - PM Security Notice (https://vborg.vbsupport.ru/showthread.php?t=252038)

mawby 10-12-2010 10:00 PM

LAM - PM Security Notice
 
1 Attachment(s)
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;

https://vborg.vbsupport.ru/attachmen...1&d=1286977955

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;

https://vborg.vbsupport.ru/attachmen...1&d=1286978137

The authorised banner;

https://vborg.vbsupport.ru/attachmen...1&d=1286978137

The untrusted banner;

https://vborg.vbsupport.ru/attachmen...1&d=1286978137


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.

BlackJacket 10-13-2010 03:08 PM

This is an awesome mod! Tagged for later use.

YankForum 10-13-2010 04:01 PM

tnx , this is a very nice plugin , i installed it but i dont get these bars on my site, i'm using vbulleting 4.0.6
-------------
EDIT: it didn't show up at first but after a few minutes it showed up all by itself

COL NIL SATIS 10-13-2010 04:05 PM

tagged...this looks great !!

Lojo 10-13-2010 09:31 PM

Great mod, tagged for later.

Dr.osamA 10-14-2010 05:10 AM

1 Attachment(s)
Excellent = 5 stars

installed

+ translated to Arabic
be nice and add the transltion to orignal post plzz

thanxx

CharlieDelta 10-15-2010 07:05 PM

What a great idea.
5 stars.

Bounce 10-15-2010 09:06 PM

Now showing for me here :confused:

Settings set... vb 4.0.7

CharlieDelta 10-16-2010 12:14 AM

I just noticed that the icons are not showing up. I have uploaded the images to my 'images/misc' directory. Should they have been put in a different location?

Update; I got it, moved the images to my style misc directory.

Blooded 10-16-2010 12:24 AM

very good mod :D thanks mate

LordVader 10-16-2010 02:07 AM

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

DS MrSinister 10-16-2010 03:32 AM

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

Great Job Sir..

mawby 10-16-2010 07:00 AM

Quote:

Originally Posted by CharlieDelta (Post 2110577)
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.

mawby 10-16-2010 07:11 AM

Quote:

Originally Posted by hIBEES (Post 2110535)
Now showing for me here :confused:

Settings set... vb 4.0.7

Quote:

Originally Posted by LordVader (Post 2110588)
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. :confused:

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?

LordVader 10-16-2010 07:50 AM

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

Bounce 10-16-2010 10:02 AM

Quote:

Originally Posted by mawby (Post 2110646)
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. :confused:

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

mawby 10-17-2010 07:46 AM

Quote:

Originally Posted by LordVader (Post 2110653)
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 (Post 2110674)
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:

LordVader 10-18-2010 10:37 AM

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

DS MrSinister 10-18-2010 08:11 PM

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

CharlieDelta 10-19-2010 02:25 AM

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.

Bounce 10-19-2010 07:25 PM

Quote:

Originally Posted by DS MrSinister (Post 2111445)

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

Eduardo Leon 10-19-2010 08:05 PM

yes !

thnx for sharing this .

INSTALLED !

DS MrSinister 10-19-2010 11:20 PM

your very welcome. :D

mawby 10-20-2010 07:05 AM

I've updated with the product with DS MrSinister suggested vB 4.0.7 fix. :up:

sonixax 10-21-2010 11:57 PM

not working on 4.0.8

DS MrSinister 10-22-2010 01:09 AM

Quote:

Originally Posted by sonixax (Post 2112576)
not working on 4.0.8

use the new file or use my fixed in post 19.

0verl0rd 10-22-2010 11:49 AM

Tag for later! Thanks for sharing!

Xexiu 02-08-2011 02:17 PM

Something similar or the same for vbulletin 3.8.x?

Thank you.

fionix 02-10-2011 07:18 AM

Quote:

Originally Posted by DS MrSinister (Post 2111445)
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 ?

Valcav 08-11-2011 01:59 AM

1 Attachment(s)
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):

https://vborg.vbsupport.ru/attachmen...1&d=1313030992

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

clutchthese 09-10-2011 03:28 PM

^^ i'd also like to see that added.

This is a fantastic mod. Installed, nominated!

mawby 09-16-2011 07:57 AM

Quote:

Originally Posted by Valcav (Post 2232070)
So how to:
* add Bold text + Maybe how to change the color of that text
* add more text to it (like that red text)

Hi,

This product uses templates and phrases to allow it to be easily customised. If you want to add bold text to the verified message then edit the phrase LAM_PMSecurityNotice_Verified_Details and add the <b>bold text here</b> HTML formatting tags to the message. Similarly, </br> can be used to add multiple lines, and <font color="colour code here"> can be used to change the colour of the text.

For example;
HTML Code:

This <b>bold message</b> was sent by an official staff member. Its contents can be trusted.</br>This new line uses the <font color="red">red</font> coloured text.
If you want to edit any other phrases simple search for phrase variable names beginning with LAM_PMSecurityNotice and you'll find them easily enough.

basilrath 09-16-2011 08:37 AM

sweet and nice job installed

needed this for my verified members group :)

Valcav 09-17-2011 12:06 PM

thank you very much for this answer!!!

to add a few things (I hope):
<i>Italic</i>
<u>Underline</u>
<font size="1">Size 1</font>
<font size="2">Size 2</font>
<font size="3">Size 3</font>

1 more question,
if it's possible (or how to/where) to have "Verified" , "Authorised" , "Untrusted" bigger

invitezone 07-30-2012 05:29 PM

I would love to use this but I need another option before I can use it.
Is it possible somehow to have this only visible to certain usergroups.
I am using it to tell members 'warning this pm is from a public usergroup, the contents cannot be trusted' , or whatever it is.
I dont want the public members to see that message when they PM each other, because it looks like im being a bit rude about them LOL :p.

So any way to show it only for certain usergroups? That would be awesome.


All times are GMT. The time now is 05:50 PM.

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.01502 seconds
  • Memory Usage 1,839KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_html_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (35)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete