Advertisement:

Where to add banner rotating code?

Aloittaja Surferbird, huhtikuu 11, 2006, 06:50:32 IP

« edellinen - seuraava »

Surferbird

I wonder where i have to put banner rotating code? I want to have the banner between copyrights and loadtime info if possible? I could not get it to work but i'm no coder or programmer. I use 1.1 rc2 vers.  ;D

Is here not anyone who can solve this?
.:: Always something to ask - always grateful for assistance ::.

Wolfenrook

I might be able to help more if you specify what template you are using.

Wolfenrook
Thoughts are free, it's their consequences that often have a cost.

Surferbird

It is the dafault template and 1.1 rc2. Slightly modified with white background as here the default looks like.
.:: Always something to ask - always grateful for assistance ::.

Deaks

im guessing its the same theme I helped you with before.

So look for

<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';



now you want to add the code where I have entered <here>

<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';

<here>

// Show the load time?
if ($context['show_load_time'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Surferbird

Yes, correct quess  :D

I have try and try different places but parse error is my only result  :(
.:: Always something to ask - always grateful for assistance ::.

Deaks

where I have said to put it can you paste that part of the code on here please.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

Surferbird

#6
Ok, I put a bit longer code, first try was only the bannercode  ;)


<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';
<!-- 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'])
echo '
<span class="smalltext">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'])
{
.:: Always something to ask - always grateful for assistance ::.

WebWorm

I tried something different with the site I work with:

http://www.edcforums.com

I put a rotating banner Javascript code in the Current Theme's Settings Top HTML Box, and also put the site banner graphic in there.

Then I went into the template and just reduced the size of the default banner space (changed the code so that the banner is 1px high).

This streamlined my content, but YMMV. Worked for me.

Surferbird

Did you got it between load and copyright? It is the place i want, not on the top because there is my own logobanner. If it is impossible to get installed there i have to leave banner rotation?
Unfortunatly my forum screewed up really good and of course i hade no backup yet because bannercode was still missing...now i have to build it up again from scratch. I hade really bad luck. It was nothing more than my old Cuteftp soft that get crazy and upped something old crap accedentily and wrote over some important files in SMF from old Queue. I'll come back with this after reinstalling my SMF, ok :(
.:: Always something to ask - always grateful for assistance ::.

Surferbird

I'm back, got my SMF reinstalled after disaster but the banner rotating code place is still the BIG problem!

Is it impossible to get code placed between load time and copyright ?
.:: Always something to ask - always grateful for assistance ::.

Surferbird

#10
This is fixed so ignore this message, the fix is here if someone need it  ;D

http://www.simplemachines.org/community/index.php?topic=81973.0

Big Thanks go to HarzeM  ;D
.:: Always something to ask - always grateful for assistance ::.

Advertisement: