NameSilo

Php include in vbulletin header

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
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?
 
Close
0
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.
 
Close
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
 
Close
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
 
Close
0
ah the only problem is..im using 3.0.14
 
Close
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.
 
Close
0
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Portfolio sites: new ways to sort, filter and group your domains
Your public portfolio page has a few new tools for visitors. Portfolio: Newest first The sort menu now has "Newest first". It shows the...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back