Author Topic: How can I put adverts into Lazarus?  (Read 3326 times)

0 Members and 1 Guest are viewing this topic.

Offline Carbonize

  • Administrator
  • *
  • Posts: 4,298
  • Karma: +110/-10
    • carbonize.co.uk
How can I put adverts into Lazarus?
« on: May 21, 2007, 18:49:29 »
I got asked to write a mod to put adverts into Lazarus as one of the entries. I then decided to build this ability into Lazarus because otherwise you would have to redo the mod every update.

Anyways just login to the admin and goto the Style section. At the bottom you will find the Ad Block section. It has the instructions there but I will reiterate them here.

1 - Select at what position you would like the ad block to appear. 1 will put the ad block at the very start of each guestbook page. 2 will put it after the first entry and so on. The highest number, which will always be one higher than the number you have selected to display per page, will put the ad block after all the entries on each page.

2 - Put the HTML for your ad block into the text area provided. For example you could put Google Adsense in there but putting in the code like

Code: [Select]
<script type="text/javascript"><!--
google_ad_client = "pub-5921975225751435";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as_rimg";
google_cpa_choice = "CAAQzPq39gEaCDZIxmAJstf6KPC34IEBMAA";
google_ad_channel = "";
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

3 - Remember that anything you put in there will appear in a table row of the guestbook.

And thats it.

Just remember I am not recommending you use the code above as it is MY Adsense code meaning I will get any revenue it generates and not yourself. I just put it there as an example.

Also remember that you don't have to use it to display adverts, you can put anything in there.


Offline Penguin

  • Member
  • *
  • Posts: 47
  • Karma: +0/-0
Re: How can I put adverts into Lazarus?
« Reply #1 on: August 05, 2007, 02:05:08 »
Talking about that and as a suggestion, when we pick the position 1, it would place the banner above the row "NAME/COMMENTS" instead of right below it.

Offline Carbonize

  • Administrator
  • *
  • Posts: 4,298
  • Karma: +110/-10
    • carbonize.co.uk
Re: How can I put adverts into Lazarus?
« Reply #2 on: August 15, 2007, 15:11:48 »
No it should show position 1 as the first entry below the NAME/COMMENTS text. I hope so anyways.


Tags: