News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Install a banner ... ?

Started by EternalSkyChaz, May 21, 2006, 11:24:31 PM

Previous topic - Next topic

EternalSkyChaz

Hi,

I just tried to install a banner above my SMF forum and it created all kinds of problems.  Is there some security built in to the SMF 1.1RC2 coding that prevents this?

This is the code I used:

<div style="height:200;" align="center"><img src="http://www.eternalsky.us/img/pcs/ESky2Banner.gif" /></div>

And I inserted this just above the opening PHP tag at the top of the index.php that gets the whole forum rolling.

I had session ID errors, I could not log in and suddenly, my profile pic was lost.  Once I deleted it, everything went back to normal.

Has anyone else tried the same thing successuflly?  if so, can you tell me what I did wrong?

Thanks!

[nofollow]

onijin

#1
This is what I did:

in index.template.php
find:
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">


add after:
<tr>
<td colspan="2" align="center" width="100%" valign="top" class="windowbg2">
<a href="/forum/index.php"><img src="banner here"></a>
</td>
</tr>



Since I removed the shown avatar, the row only needs to span 2 columns... However, you may need to increase that number to 3 or 4.  Forgot how many the default number of columns is.

EternalSkyChaz

When you say that you removed the shown avatar, do you mean you removed just the space where it says "Hello, Chaz" and shows my pic?

Would that not also remove the "you have 0 new messages," etc. area that resides right next to the ava?
[nofollow]

onijin

No just the avatar.  I'm using tinyportal, so there were too many avatars being shown.
Just play with the "colspan=x" until you get a number that suits you. could be anywhere from 2~4

EternalSkyChaz

Thanks.  I will give it a try over the weekend!
[nofollow]

Advertisement: