NameSilo

Php include in vbulletin header

Spaceship Spaceship
Watch
Impact
19
Hey
I am trying to include my Network bar in Vbulletin...and i am using the <?php include(); ?> function to do it..btu it doesnt work..anyone know how to do it?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Just edit the 'header' template. No need for php code.
 
0
•••
i know...but i want it to include it from my network site...so that when i have 2add/delete a site...[from the network bar] i just do it in 1 file
in every other website i am adding:
<?php include('http://www.roundpi.com/network.php'); ?> and thats what i wana do here
 
0
•••
Well, you could:

Create a plugin in the 'global_start' hook, with the following:
PHP:
$network_bar = file_get_contents('http://www.roundpi.com/network.php');

Then in your header template, just add
PHP:
$network_bar
 
0
•••
ah the only problem is..im using 3.0.14
 
0
•••
in the global.php try this after the <?php tag...

Code:
ob_start();
include("path_to_your.php");
$included_network_bar = ob_get_contents();
ob_end_clean();

then in your template just put this $included_network_bar where you want your bar to appear.
this should work.
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back