vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Question about plugins (what the?) (https://vborg.vbsupport.ru/showthread.php?t=98147)

bhxtyrant 10-11-2005 06:15 PM

Question about plugins (what the?)
 
Hey guys i wanted to ask is something reguarding plugins.Ok first thing is first.With the help of some guys at vB.com Forums i made two plugins.These plugins are used to call custom tamplates i created into certain current templates.I used the Hook "parse_templates" and the code
PHP Code:

eval('$mainbody_begin = "' fetch_template('mainbody_begin') . '";'); 

This works perfectly fine except it only seems to work if you are logged in at the forum.If you are viewing it as a guest it doesnt work.So my question is is there a setting i'm missing to make it work for guests as well as members?

The main reason i did it this way was to solve the issue of me having to hard code my stuff into many of the vb templates using the plugin system makes it a snap.Any help would be appreciated :)

Andreas 10-11-2005 06:34 PM

That Plugin will always be executed, so it must be some error in the place you are further processing $mainbody_begin

bhxtyrant 10-11-2005 06:45 PM

hmm not sure the way i have it set is i have $mainbody_begin inside of the forumhome,forumdisplay,and showthread templates and a few other such as error templates.But they onyl seem to work when logged into the forum.Perhaps an improper hook?I really habve no clue to be honest.I'm a complete newbie to the plugin system.

bump


All times are GMT. The time now is 07:43 AM.

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.01034 seconds
  • Memory Usage 1,711KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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