The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
For both plugins? That could be the problem, because unless you set the execution order you probably don't know which one is running first. But if you're using the same hook for more than one plugin you could also combine them into one. (What Sherif posted above might also work because it's using two hook locations).
|
#12
|
|||
|
|||
Quote:
These are the plugins I am using. hook parse_templates PHP Code:
hook global_start PHP Code:
|
#13
|
|||
|
|||
Quote:
Parse template hook for this code PHP Code:
|
#14
|
|||
|
|||
Quote:
P.S.: If anyone is willing to help further I would gladly provide log in to my test site if anyone is up for it. To be honest I have reached my skill level on this one. |
#15
|
|||
|
|||
Quote:
Plugin Hook: parse_templates Code:
ob_start(); require_once('test.php'); $php_include = ob_get_contents(); ob_end_clean(); $templater = vB_Template::create('COTW_SIDEMENU'); $templater->register('php_include', $php_include); $cotw_sidemenu = $templater->render(); vB_Template::preRegister('COTW_SOTW',array('cotw_sidemenu' => $cotw_sidemenu)); To be fair, why you are including external file from outside. just write php code in plugins or make functions. |
#16
|
|||
|
|||
Quote:
HURRRAAYYYYYY!!!! FOR SHERRRIFFFFFF Needless to say I will NOT shoot the sherif Thanks a bunch for your help. Also thanks to our advisor kh99, without your guys help I would have probably exploded my server or something. Thanks again guys. I'm so stoked this works now. About your question I guess I have not been too familiar yet with vb plugin system as you can tell; as a noob still I feel more comfortable using files. I feel I have more control and organization with files than plugins. Performance wise does it have any impact choosing one over the other?? |
#17
|
|||
|
|||
Quote:
|
#18
|
|||
|
|||
Quote:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|