Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: argeta - marraskuu 07, 2011, 03:12:57 AP

Otsikko: Adding banner
Kirjoitti: argeta - marraskuu 07, 2011, 03:12:57 AP
Which file should I use to add banner on forum? I wanna to add it in header of forum. And where to insert a banner code?
Otsikko: Re: Adding banner
Kirjoitti: Ricky. - marraskuu 07, 2011, 04:10:15 AP
In your forum root..
under :
Themes/YourThemeFolder/

find
index.template.php

There, search for theme_linktree();
Add your banner before or after it, ie. which suits you best.

Add it like ..
echo '<your aanner code here>' ;
Otsikko: Re: Adding banner
Kirjoitti: argeta - marraskuu 07, 2011, 07:03:07 AP
I did something wronk :-[

http://i44.tinypic.com/29nv0ox.jpg
Otsikko: Re: Adding banner
Kirjoitti: Ricky. - marraskuu 07, 2011, 07:44:34 AP
Enclose your code in echo command as I mentioned in above example.
Otsikko: Re: Adding banner
Kirjoitti: argeta - marraskuu 07, 2011, 11:05:50 AP
I did it all, but got this message:

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/content/92/6809892/html/forum/Themes/default/index.template.php on line 335


Where is a problem?  ???
Otsikko: Re: Adding banner
Kirjoitti: Ricky. - marraskuu 07, 2011, 01:27:19 IP
You need to make sure you string properly.  You see,  non-php code should be enclosed in  ' ' .