NameSilo

Php include in vbulletin header

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Just edit the 'header' template. No need for php code.
 
0
Close
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
Close
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
Close
ah the only problem is..im using 3.0.14
 
0
Close
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
Close
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back