Menu

News

Monday 20. of November 2006 Speed up PHP5 and Mysql on osx

Friday 01. of September 2006 New version of phpadsnew

Wednesday 26. of July 2006 Me and my macBook

Saturday 03. of June 2006 Advanced pop-up and acronym manager

Site Sponsors

Advertise using Text-Link-Ads

CMS Solutions

System CMS

 

Foro Apple

Foro Apple

 

Cocktails

Cocktails of the World

of the world!

Want to advertise here?

Single page or site-wide advertisements. Gain your PR with back-links from a high ranked site.

Click here to request more information

LTG php ads new

24 April 2005

I just finnished coding a new plugin in the Initiates file downloadLTG PHP Ads New extention and wanted to show it here first before I will put it into Opens external link in new windowTER with updated documentation. The plugin was written for the website Opens external link in new windowL!VE Travel Guides where I work for on a daily base.

What does it do?

The extension ltg_phpadsnew create an interface in TYPO3 to the well know Opens external link in new windowphpadsnew advertising server. You can maintain and manage your advertisement in phpadsnew and with this little interface you can show these advertisements on your site.

The plugin PI1

The first plugin I made in the extension could basicly only be used on one single page. Or with some handly typoscript you could show it in seperate trees. Well, the handy typoscript turned not out to be that handy when your website is bigger then 3000 pages, that's why I wrote the PI2 plugin.

The plugin PI2

The extra code I have been writing for the last couple of days consist of two parts.

  1. Add advertisements in the list module under page
  2. Add the display plugin (witch is also callable from TypoScript)

Adding Advertisements:

You can add advertisements on any page with the following options:

  • Force option, you can make a advertisements always show up
  • Weight option, the heigher the weight.. the higher it will show above other advertisements
  • Depth option, how many levels deep should this advertisement be active
  • keywords option, use keywords also found on pages you can specify on what pages it should show up.

Displaying Advertisements:

The plugin will gather and render the advertisements on a page, looking for advertisements on higher, up in the tree pages filter and sort them like you want them to show up. The following options are available:

  • Setup an SQL Order By to sort the advertisements. Default set to: forceshow desc, weight desc, crdate asc
  • Set a maximum number of advertisements shown on that page (see side note).
  • Wrap single advertisements, like .wrap option in TYPO3
  • Wrap all advertisements, like allWrap in TYPO3

Rendering rules for advertisements:

The advertisements are rendered in the following order:

  1. Gather all advertisements shown on the page, they will ALWAYS be shown.
  2. Gather all forced advertisements in the page tree. They will ALWAYS be shown if the advertisement is within the tree depth AND the keywords match.
  3. Get all advertsisments on the tree untill the number of advertisements as set in the plugin, they are also filtered by keywords and tree depth.

Keyword matching Rules:

If one of the keywords fields is empty, on the page OR on in the advertisements then there is no filter action. If both are set, the need to intersect before it's get shown.

 site note:

 The option for the maximum number of advertisements is only used when advertisements loaded higher in the tree and the option is not set to forced. We created a force option so high paying advertisers will always show up, so we don't check the maximum number of advertisers. Also advertisers that want to show an advertisements just on a single page is shown, otherwise there is a change that they pay for an advertisement but it will never shown up.

Download and test

You can ofcourse Initiates file downloaddownload and test the extension. it has been developed in a 0.4.0 version of TYPO3 and I did a quick test for backward compatibility which succeeded.

Let me know if it worked for you, have any requests on it etc. I will tune up the documentation and put it on TER

Cheers,

R. van Twisk
Opens window for sending emailries(at)remove-this.vantwisk.nl
Opens external link in new windowcallto://r.vantwisk.nl