Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Thema gestartet von: 1MileCrash in Juni 09, 2005, 01:52:00 VORMITTAG

Titel: easily place banners on your forums
Beitrag von: 1MileCrash in Juni 09, 2005, 01:52:00 VORMITTAG
looking for the easiest way to put ads or sponser banners on your forums? Well, i think this little trick is as easy as it's going to get.

The news box, used to display the forum news. If you have multiple news entrys, they will change with each refresh of the page. They also allow bbc code, so you can easily place images and links in the news box.

I did this for the default theme, so doing it for another theme may require a different (harder) technique (i.e. if it uses text for the word "newsbox" instead of an image.)

All i did was make (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg255.echo.cx%2Fimg255%2F2286%2Fnewsbox24qy.gif&hash=df68f073c6767055e30a89269c045a1c4527850c) to replace (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg295.echo.cx%2Fimg295%2F5702%2Fincase3ak.gif&hash=b661be81f57b15f2c61cf84fbb8e38460cff49dc).Then i uploaded it to themes/default/images/english as newsbox.gif, overwriting the old file.

Now, the "newsbox" is going to say "sponsors". So you can place a linking banner to your sponsor, and not look stupid. Like, "hey, that's not news you dumby". Keep the banner under around 53 pix, or you'll get a scroll bar. Eew. width can go up to around 250 pix.

using bbc code, just edit the "news" to display the linking image. since the page changes with every refresh of the page, you can put multiple banners in there own "newsbox".

Just a little trick i thought id share.  :P

another good idea is to make a page to let companies know how to advertise on your forum, than put a link in the "sponsor" box to the page. I.E.- "If you are interested in advertising on www.*****.com, click here" yada ya or something like that.
Titel: Re: easily place banners on your forums
Beitrag von: dtm.exe in Juni 09, 2005, 02:02:19 VORMITTAG
Good idea.  Thanks for the tip :).

-Dan The Man
Titel: Re: easily place banners on your forums
Beitrag von: 1MileCrash in Juni 09, 2005, 02:09:37 VORMITTAG
thanks. I just didnt feel like doing alot of work to put banners on my forums.  :P
and i never use that news box thing anyway. I made an announcements forum. works good enough  :P
Titel: Re: easily place banners on your forums
Beitrag von: bfromd in Juli 15, 2005, 08:22:15 VORMITTAG
hello, i dont no if you can help but here we go, i have a personal logo id like to have in the background of forum pages im using theme one now i tried to create them but it did not show . it was succesfully uploaded, but the background was all white, i uploaded it from my desktop.....can you help?
Titel: Re: easily place banners on your forums
Beitrag von: rebelbah in August 02, 2005, 01:03:25 NACHMITTAGS
how do you make the banners useing what programs
thanks for any assistance


Zitat von: Tippmaster in Juni 09, 2005, 02:09:37 VORMITTAG
thanks. I just didnt feel like doing alot of work to put banners on my forums.  :P
and i never use that news box thing anyway. I made an announcements forum. works good enough  :P
Titel: Re: easily place banners on your forums
Beitrag von: SoftDux in Juni 20, 2006, 03:18:41 NACHMITTAGS
Zitat von: Tippmaster in Juni 09, 2005, 01:52:00 VORMITTAG
looking for the easiest way to put ads or sponser banners on your forums? Well, i think this little trick is as easy as it's going to get.

The news box, used to display the forum news. If you have multiple news entrys, they will change with each refresh of the page. They also allow bbc code, so you can easily place images and links in the news box.

I did this for the default theme, so doing it for another theme may require a different (harder) technique (i.e. if it uses text for the word "newsbox" instead of an image.)

All i did was make (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg255.echo.cx%2Fimg255%2F2286%2Fnewsbox24qy.gif&hash=df68f073c6767055e30a89269c045a1c4527850c) to replace (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg295.echo.cx%2Fimg295%2F5702%2Fincase3ak.gif&hash=b661be81f57b15f2c61cf84fbb8e38460cff49dc).Then i uploaded it to themes/default/images/english as newsbox.gif, overwriting the old file.

Now, the "newsbox" is going to say "sponsors". So you can place a linking banner to your sponsor, and not look stupid. Like, "hey, that's not news you dumby". Keep the banner under around 53 pix, or you'll get a scroll bar. Eew. width can go up to around 250 pix.

using bbc code, just edit the "news" to display the linking image. since the page changes with every refresh of the page, you can put multiple banners in there own "newsbox".

Just a little trick i thought id share.  :P

another good idea is to make a page to let companies know how to advertise on your forum, than put a link in the "sponsor" box to the page. I.E.- "If you are interested in advertising on www.*****.com, click here" yada ya or something like that.


Quite a neat little trick. Could work well with phpadsnew. I wonder if the news box can be moved, to say the bottom of the page?
Titel: Re: easily place banners on your forums
Beitrag von: 1MileCrash in Juni 20, 2006, 08:33:23 NACHMITTAGS
sure it could. just make your own table/div/whatever in the main_below sub template in index.template.php, the variable for a random news item is ', $context['random_news_line'], '
Titel: Re: easily place banners on your forums
Beitrag von: dairin in Juni 24, 2006, 02:37:00 VORMITTAG
@Tippmaster -> how to make the news box not only showing in the main page ?? i want it to show in all pages in the forum
Titel: Re: easily place banners on your forums
Beitrag von: dairin in August 01, 2006, 07:54:31 NACHMITTAGS
any1 can help ?? Tippmaster ??
Titel: Re: easily place banners on your forums
Beitrag von: Me_angus in Oktober 24, 2006, 03:44:56 NACHMITTAGS
where would I look for the "text" that says news in my theme (Pod_v1)?