The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
calling a file
Hi,
Trying to load a file within the vbulletin page. PHP Code:
At the moment it is loading above the header. Thanks. |
#2
|
||||
|
||||
Search the forums for ob_start(); and you will find exactly what you need.
|
#3
|
|||
|
|||
Thanks for the help.
I created a plugin called shop123. Hook Location is gobal_start Code in the plugin is: PHP Code:
Code: PHP Code:
PHP Code:
Have I missed something here. |
#4
|
||||
|
||||
Code:
$templater->register('includeshopbody', $includeshopbody); |
#5
|
|||
|
|||
Thanks again, that fixed it.
I have the plugin "Hook Location is gobal_start" with this: PHP Code:
|
#6
|
||||
|
||||
The same process as above. Just make sure none of your vars are the same thing
|
#7
|
|||
|
|||
I am trying to call a file to show in the admincp.
In my admincp/configuration.php in have: PHP Code:
I created a plugin called oscShop Body Admin. Hook Location is gobal_start Code in the plugin is: PHP Code:
My template is oscShop_admin Code: PHP Code:
But if it is in the admincp directory it shows nothing in the Admin Control Panel when selected. |
#8
|
|||
|
|||
Your problem is that you are trying to mix admin and front-end functions. AdminCP scripts do not use the template engine and the version of global.php in the admincp directory is only a limited copy of the version in the forumhome directory. Hence why it does work when placed outside of the admincp directory.
|
#9
|
|||
|
|||
Is there any other way I can get it to call the file.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|