vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   navbar is cleared out for error messages (https://vborg.vbsupport.ru/showthread.php?t=158106)

Mazinger 09-18-2007 02:38 AM

navbar is cleared out for error messages
 
If you install any mod that uses a plugin, and add a variable in the navbar like this: $mynewmod

When there's error messages, like no permission, no results... etc, the code disappear.

For more info, check this: http://www.vbulletin.com/forum/proje...?issueid=22950

Mazinger 09-20-2007 07:57 AM

any help?

Dismounted 09-20-2007 09:36 AM

I've experienced this problem on my site as my style depends a lot on the navbar, this was my fix :).

Hook Location: error_generic
PHP Code:

if (!$navbar)
{
    eval(
'$navbar = "' fetch_template('navbar') . '";');



Mazinger 09-20-2007 10:00 AM

How do I do that?

Dismounted 09-20-2007 10:09 AM

Admin CP > Plugins & Products > Add New Plugin

Mazinger 09-20-2007 10:18 AM

I still can't do this unfortunatelly.

I went to Add New Plugin, and selected the product that I want this to be applied to, then hook location: error_generic, title: error_generic, and selected active, then 'Save'.

Still no solution. :(

Mazinger 09-30-2007 12:01 PM

Quote:

Originally Posted by Mazinger (Post 1343036)
I still can't do this unfortunatelly.

I went to Add New Plugin, and selected the product that I want this to be applied to, then hook location: error_generic, title: error_generic, and selected active, then 'Save'.

Still no solution. :(

BUMP

Mazinger 10-01-2007 11:33 PM

Bump :(

Dismounted 10-02-2007 05:15 AM

Add whatever the variable you need in the navbar above the eval().

Mazinger 10-02-2007 10:56 AM

I did another method...

I copied the plugin of the mod attached to hook global_start.

And added new plugin, and pasted the same code, and selected the hook error_generic.

I got blank page. :(


All times are GMT. The time now is 03:16 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.01093 seconds
  • Memory Usage 1,727KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete