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)

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


All times are GMT. The time now is 01:54 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.01160 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete