Log in

View Full Version : Question about plugins (what the?)


bhxtyrant
10-11-2005, 06:15 PM
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
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