News:

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

Main Menu

Adding some code to the main page

Started by Greek, January 14, 2007, 06:27:37 PM

Previous topic - Next topic

Greek

I would like to add some code at the bottom of home page (index.php), before the SMF copyright.
Wich file sould I edit and in what point exactly?

I have added my code via Ad mod and Global Headers and Footers, but the code is displaying on all pages of forum. I need it to be displayed ONLY in home page as I said.

Any help is appreciated  :)
Thanks..

richiehale

you can either edit the code of that page, or you could also use, the Ad Management mod, which will allow you to put it only on certain pages.

Greek

#2
I have tried with Ad mod, but the code is displaying ONLY on the top and NOT at the bottom of main page(only).
Are you sure, that I sould add the code in index.php?


Croco

in index.template.php search for theme_copyright() then you coud add berfore the <td valign="middle" align="center" style="white-space: nowrap;"> this <td><img src="YourImagePath" width="100" height="100"></img></td>

you have to change YourImagePath and you could change the 100 as it fit you
I am back. I will try to catch up with some stuff soon.
Regards,
Croco

My sites
Andareena.com
Andareen.net(Under Constraction :P)

New plans coming soon


Good links for you to visit:
Docs
Search

Greek

Quote from: Croco on January 16, 2007, 02:04:14 PM
in index.template.php search for theme_copyright() then you coud add berfore the <td valign="middle" align="center" style="white-space: nowrap;"> this <td><img src="YourImagePath" width="100" height="100"></img></td>

you have to change YourImagePath and you could change the 100 as it fit you

Ok finally I found it. I added my code at the end of BoardIndex.template.php and works now (because I wanted my code to be displayed only on the main page).

In any case I thank you very much for your help. I am thankfull to you  :)

Croco

I am back. I will try to catch up with some stuff soon.
Regards,
Croco

My sites
Andareena.com
Andareen.net(Under Constraction :P)

New plans coming soon


Good links for you to visit:
Docs
Search

Advertisement: