View Full Version : PHP Start Include?
January 22nd, 2005, 05:25 PM
Does the gallery read the PHPSTARTINCLUDE template? I have something that runs in there that allows for something to show up in the navbar, but it doesn't so I was just wondering if the Gallery does not read the PHPSTARTINCLUDE.
I appreciate any information that you can give me - thanks!!!
January 22nd, 2005, 05:27 PM
Yep, it works for me... I load my phpAdsNew banners from there...
January 22nd, 2005, 05:41 PM
It will read the template, but will not allow any variables to be passed to the navbar unless you add that variable to the global list in the construct_adv_navbar() function.
January 22nd, 2005, 06:37 PM
and I did that but it's still not working properly ... I added it to the global list but still doesn't show up
January 22nd, 2005, 06:42 PM
the link also doesn't show up on the home page of the CMPS as well, but does everywhere else
January 22nd, 2005, 08:44 PM
What's the code you have in that template?
January 22nd, 2005, 08:48 PM
in the PHPSTART I have:
// Example of how to include a seperate file:
// $header = ob_get_contents();
$urlinks = parse_bbcode2($bbuserinfo['field11'], 0, 0, 0, 1);
$urlinks = str_replace('<br />', '', $urlinks );
$urlinks = str_replace('</a>', '</a></td></tr>', $urlinks);
$urlinks = str_replace('<a', '<tr><td class="vbmenu_option"><a', $urlinks);
and then in the functions_gallery.php in the Construct Navbar I have:
global $vboptions, $vba_options, $vbphrase, $stylevar, $bbuserinfo, $show, $pmbox, $urlinks;
January 22nd, 2005, 08:56 PM
That should work then... If you'd like to submit a support ticket I'll be glad to take a look and see why it's not.
January 22nd, 2005, 09:15 PM
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.