News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Programmers: Is this hopeless and impossible to make?

Started by Surferbird, April 14, 2006, 05:14:28 PM

Previous topic - Next topic

Surferbird

I have fight hard to get this banner rotating code to work between Load time and copyright info at footer of default theme in rc2. Is this hopeless to try? Please tell me someone because it start to look like wasting time? Code is here:
What i have got is much Parse Error, nothing more  :-[
<!-- Bannerinvaihto.fi -bannerikoodi alkaa -->
<center>
<iframe src="http://www.bannerinvaihto.fi/ads/work.php?n=576&size=1&c=" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no">
<script language="JavaScript">document.write('<s'+'cript language="JavaScript" src="http://www.bannerinvaihto.fi/ads/work.php?n=576&size=1&j=1&c=&code='+new Date().getTime()+'"></s'+'cript>');</script></iframe>
</center>
<!-- Bannerinvaihto.fi -bannerikoodi loppuu -->


.:: Always something to ask - always grateful for assistance ::.

Harzem

find the code in index.template.php:

// Show the load time?
if ($context['show_load_time'])


and replace it with:

echo '
<!-- Bannerinvaihto.fi -bannerikoodi alkaa -->
<center>
<iframe src="http://www.bannerinvaihto.fi/ads/work.php?n=576&size=1&c=" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no">
<script language="JavaScript">document.write(\'<s\'+\'cript language="JavaScript" src="http://www.bannerinvaihto.fi/ads/work.php?n=576&size=1&j=1&c=&code=\'+new Date().getTime()+\'"></s\'+\'cript>\');</script></iframe>
</center>
<!-- Bannerinvaihto.fi -bannerikoodi loppuu --> ';

// Show the load time?
if ($context['show_load_time'])


Surferbird

It really works  :D

Really BIG THANKS, looks so easy after all  :o

You are an angel my friend  :D
.:: Always something to ask - always grateful for assistance ::.

Advertisement: