The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
opening a php ...
Hi,
From inside the forum home template .. i'm wanting to open a php file so that it shows that file clearly on the forum home page... without using an iframe .. obviously the php file is in my root folder .. Does anyone have the coding I would use to do this please? i've tried to read up about it on php sites but have found some of it a bit confusing to do exactly what i'm wanting .. Thanks Eddie |
#2
|
|||
|
|||
Quote:
|
#3
|
|||
|
|||
basically ..the file im wanting to add is a shoutcast statistics file that shows the dj and listener count ... im wanting to show this on my forumhome templete page....
by doing what that link u offered above ..it doesnt show up on my site at all ..loading the index.php file on its own tab works ..I just want to incorporate it into the forum home templete without adding all the code into the templete ... hope I explained that ok |
#4
|
|||
|
|||
I think using the method from the article should have worked. Can you post the exact code you used (and the hook location)?
|
#5
|
|||
|
|||
Quote:
code is: Code:
ob_start(); require_once('/home/****/public_html/****/shoutcast/index.php'); $php_include = ob_get_contents(); ob_end_clean(); vB_Template::preRegister('FORUMHOME',array('php_include' => $php_include)); using the hook: Code:
{vb:raw php_include} correct me if i'm wrong .. doing this should literally put what ever is being used in the "index.php" file (which this file also calls other files for use) onto the forumhome page where I decided to put it? Thanks Eddie |
#6
|
|||
|
|||
Maybe try this:
PHP Code:
|
#7
|
|||
|
|||
ive sent u a pm ..
it still doesn't show after using the code you gave there .. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|