PDA

View Full Version : PHP external link in header



The Ring Lord
Sun 14th Sep '08, 12:44pm
I'd like to use an image block fomr my gallery in teh header of my Forum. The gallery is gallery2. The image block code they list is

Use a PHP block like the one shown below to include an image block in a PHP page outside of Gallery.

<?php @readfile('http://www.theringlord.org/gallery/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=title'); ?>

how do I put this in my header code?


My header code is

<!-- logo -->
<a name="top"></a>
<div class="toplinks">
<div class="forumbanner"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></div>
<div class="trlbanner">
<a href="http://www.theringlord.com"><img src="http://theringlord.org/forum/images/TRLBanner.jpg" border="0"></a></div>
</div>
</div>
<!-- /logo -->
<!-- content table -->
$spacer_open
$_phpinclude_output
$ad_location[ad_header_end]


Thanks in advance!

Zachery
Sun 14th Sep '08, 1:03pm
You cannot, you'll need to use hooks to eval that first, then use a varible in the template.

http://www.vbulletin.com/docs/html/templates_externalfiles