Uutiset:

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

Main Menu
Advertisement:

advertising between posts

Aloittaja altf4, lokakuu 13, 2005, 04:46:04 AP

« edellinen - seuraava »

altf4

just a question ...

is it possible to make advertisings between posts ?

the idea is simple ..

if more posts as 2 .. then insert a "post" with the advertising between the 1st and the secound

or somethings like that ;-)

like

post User A
GoogleAds
Post User B
Post User C



Elijah Bliss

Someone made a mod for this, you'll have to do a search.

altf4

i searched aleadry ...
but no results ...
maybe i just use the wrong keywords ;-)


Elmacik

a member has done this. but i dont remember him, (apologises)
here is what he have done and working very well

in your index.template.php find:
//show member's signature

scroll down to find the last  }
before it, add your adds like this (for example, google ads)

echo '
<tr align=center><td style="padding: 0 0 1px 0; border: 1px solid #7A7777; background-color: #6B8EAE;">
<script type="text/javascript"><!--
google_ad_client = "pub-6539986036551354";
google_alternate_ad_url = "http://www.translatum.gr/empty.html";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_channel ="1128379812";
google_color_border = "6B8EAE";
google_color_bg = "6B8EAE";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td></tr>';


this is for SMF 1.1 RC 1
Home of Elmacik

altf4

thanks alot ...

i putet this before :
if ($message['id'] == $context['first_message'])

and copied the structure (that it looks abit like a real entry ;-))

luiscamino

i'm using 1.1rc2 but can't find "//show member's signature" anywhere in my theme's files. any other code around the area we should put the ads?

Lainaus käyttäjältä: altf4 - lokakuu 13, 2005, 05:43:41 AP
i searched aleadry ...
but no results ...
maybe i just use the wrong keywords ;-)

or maybe that still the search engine is the "least great" thing about smf...
luis gonzález-camino calleja
www.luiscamino.com
www.avantglance.com
www.clubsonyericsson.com

H

Please search.

There is a post about adsense floating about somewhere which gives the code for RC1, if you go to one of the later pages the RC2 code is posted
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

luiscamino

ok, it was slightly different: "// Show the member's signature?" in display.template.php.

for some reason my ad is being displayed at the top of the first post, but i think i like it more that way :)

http://www.clubsonyericsson.com/forum/index.php/topic,1648.0.html
luis gonzález-camino calleja
www.luiscamino.com
www.avantglance.com
www.clubsonyericsson.com

Advertisement: