Welcome to Geeklog, Anonymous Tuesday, December 24 2024 @ 09:10 pm EST

Geeklog Forums

php in header


JamesL

Anonymous
Is it possible to reference php in the header. I should mention I using the smooth blue 1.41 theme with geeklog 1.4 and I'm wanting to replace the image/title in the header with a banner than rotates on reload. For this I'm using a php script swapping out
Text Formatted Code
<td class="main-mid" width="100%" align="right" nowrap="nowrap">
          <img src="{layout_url}/interface/logo_staumc.gif" alt="" border="0" align="left">
      <div class="header1">{site_name}</div>
          <div class="header2">{site_slogan}</div>
        </td>
 

from the defeault header.thtml for
Text Formatted Code
<td class="main-mid" width="100%" align="center" nowrap="nowrap">
          <img src="{site_url}/images/STAUMC/banner/rotate.php" border="0" align="center">
        </td>
 

I know rotate.php works on it's own but it will not display in the header. Any help much appreciated. James
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by JamesL: Is it possible to reference php in the header.

Sure. Geeklog's getimage.php does the same thing.

Does your rotate.php return an image?

bye, Dirk
 Quote

JamesL

Anonymous
The rotate.php is here. If getimage.php will do the same how is it used?
 Quote

JamesL

Anonymous
*here http://www.staumc.co.uk/images/STAUMC/banner/rotate.php
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
It actually works just fine for me. I just replaced the logo in a local Geeklog install with the link to your rotate.php and it displayed the image in my site's header.

bye, Dirk
 Quote

JamesL

Anonymous
duh! the problem was actually the firefox adblock plugin. Thanks for the help
 Quote

All times are EST. The time is now 09:10 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content