The Arcive of vBulletin Modifications Site. |
|
How to include php in vbAdvanced??? Details »»
|
|||||||||||||||||||||||||
I have this in my php include start template:
ob_start(); require("SCRIPT-URL_HERE"); $scriptNAMEhere = ob_get_contents(); ob_end_clean(); And I include it in a template with the code $scriptNAMEhere This works for all regular templates, how do I get it to work with vbAdvanced? I know how to include php in a module, but this code needs to be included between the header tags and not in a module. How do I do it? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
sorry i dont know how to help with that. since i dont even know how to include php correctly in a module and have that show up.
but since you know that would you be willing to look into my php script that i would like to include in a module and help me getting it to show up? by the way did you try: Code:
eval('$home[$mods[\'modid\']][\'content\'] = "' . fetch_template('your_template_name_here') . '";');
Code:
foreach ($modules AS $omods)
{
if ($omods['identifier'] == 'buddylist' AND in_array($omods['modid'], explode(',', $pages['modules'])))
{
$showbuddies = true;
$buddyid = $omods['modid'];
}
if ($omods['identifier'] == 'onlineusers' AND in_array($omods['modid'], explode(',', $pages['modules'])))
{
$showonline = true;
$onlineid = $omods['modid'];
}
}
|
![]() |
|
|