News:

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

Main Menu

Adding banner

Started by sonarone, September 27, 2010, 04:44:30 AM

Previous topic - Next topic

sonarone

Sorry for threadmining, but could I ask for some help with this? I've found the right place in the index.template.php (ver 1.1.11) in the default theme, around line 206?

I am trying to insert this code or something similar and I've been at it for hours.


<img src="<http://www.gundamaustralia.com/forum/images/image001.jpg>"
alt="<Hobbylink Japan>" width="<468>" height="<60>" usemap="#map" />
<map name="map" id="">
<area shape="rect" coords="0,0,<468>,<60>" href="<http://www.hlj.com/top/Gun>"
alt="" />
</map>


Any advice would be kindly appreciated very much.

Thank you. ;D

Edit: I've installed and tried to use ad management to run my banners but the code I'm trying to use disagrees with it. I would prefer to use ad management but I'm having trouble getting a reply in the support topic.

Edit2:

Using the above  index.template.php file (which is incompatible with my default/core template), I have altered the code in my default template to display the banner in a crude way.

I changed (now at around line 193)

<td align="right" class="catbg">

to

<td id="header_right">

Followed on line 194 by

<img src="http://www.gundamaustralia.com/forum/images/image001.jpg"
alt="Hobbylink Japan" />


The image displays now, albeit crudely (it was designed to run under the menu) but how do I add a hyperlink to the image? The above 'map' code (inside the first code tags) seems to be incompatible with the forum coding (php?), and I've tried a number of different trial and error methods which inevitably result in a parsing error. I should note at this point that I have absolutely no idea what I'm doing but I am trying to learn as I go. :-[

Also the image displays on white BG instead of the SMF Blue that my logo is displayed on. How do I fix that?

As you could see (link below my av) the proportions are bad, what dimensions should I be using in that space?

The banner does not display in other themes, do I have to edit each theme's index.template.php individually? As I understood it the other themes I have installed read most of the structural information from the default or core theme. I had a look at the one other theme that my members are using ('As' theme) but I can't find a similar section of code to try and alter.

Thanks again for your help, and sorry if I'm getting the jargon all wrong :)

sonarone

I'm sorry for the bump but I urgently need to run this banner and I'm stuck fast. Can anyone help please?

Advertisement: