Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Surferbird on April 14, 2006, 05:14:28 PM

Title: Programmers: Is this hopeless and impossible to make?
Post by: Surferbird on April 14, 2006, 05:14:28 PM
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 -->


Title: Re: Programmers: Is this hopeless and impossible to make?
Post by: Harzem on April 14, 2006, 05:19:16 PM
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'])

Title: Re: Programmers: Is this hopeless and impossible to make?
Post by: Surferbird on April 14, 2006, 05:24:19 PM
It really works  :D

Really BIG THANKS, looks so easy after all  :o

You are an angel my friend  :D