Forums / Developer / phpAdsNew

phpAdsNew

Author Message

Willie Seabrook

Tuesday 27 April 2004 4:36:40 pm

Hi,

Firstly, I posted the following on the phpAdsNew forum:

-----------------

Hi,

We use a content management system called eZPublish (http://ez.no/) that has a very extensive content model and templating system.

My problem is to integrate phpAdsNew with eZPublish for the purpose of tracking the response of bulk email to our clients and also to aid in the pushing of our products on our website.

Staff can easily add new products and descriptions etc but filling out simple forms that require no knowledge of html.

We need to run html ads, but I don't want to have them copying and pasting the html required for each ad because they simply don't have the skills.

What would be the best way to integrate remote pulling of html ads from our site? I think that for each html banner url I type in, i'd have to modify the phpAds code so that the url is pulled down through an http request using php, passing all the phpAds parameters such as banner_id etc in get parameters to the page. There, in the template, the ad would be constructed and the data sent back to phpAds.

Regards,
Willie Seabrook

--------

Secondly, does anyone have any experience integrating phpAdsNew? I saw a few posts in the forum search. I need to be able to have ads generated by templates so I can have consistent advertisements for different types of content objects. IE: for a product I have a view called 'advertisement' in addition to 'full' and 'line' etc so that ez users can easily generate consistent ads in order to push favoured products etc.

Might there be anyone of help or interested?

Regards,
Willie

Willie Seabrook

Wednesday 28 April 2004 2:25:15 pm

I've started to modify some code so that the html advertisements in PAN will integrate with ezpublish templates. Will post it when I'm done.

Bruce Morrison

Wednesday 28 April 2004 3:58:30 pm

Hi Willie

I've intergrated phpadsnew with an ezPublish site. We use the keywaords feature to enable ads to be specific to a particular "page". To do with I use the node_id of a particular page as the keyword. I'm not sure if this would fit your needs but it does not require that the phpadsnew code is modified.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Willie Seabrook

Thursday 29 April 2004 5:37:56 pm

There are two area's where I have created code:

Firstly: Creating a new template operator that can call the PAN system. It works like so:


{let type='js',
     what='zone:1'
     context=array()}

	{ads($type, $what, $context)}
{/let}

And it will fetch the appropriate ads.

The second are is where I have modified the PAN code. I needed to allow non-technical users to create ads for certain types of content objects, for instance - pushing certain products and tracking the response of that by displaying an html advertisement for a Product contentobject conforming to a consistent format on the front page.

So what I have done is created an advertisement view for the Product content object, that will generate the appropriate html for all products (featuring a box, a link to more information that is tracked by PAN, an image link to more information that is tracked by PAN and an html post form that instantly adds that product to a request more information form, that is also tracked by pan.

Where I modified the PAN code is where an advertiser enters a new html banner. Instead of putting in the actual html, which would be impossible, due to the complexity of the html and also because they don't understand the need for consistency of look and brand on a website - even if I provided a cut and paste template people would modify it if they thought bright pink <h1> title look good etc ;-)..... they put in code like <url>http://www.mycompany.com/index.php/content/view/advertisement/8729</url> (which they can understand and enforces consistency)

Then when PAN ads that ad to its db, it fetches that url, parses the html, modifies the href's and post forms for tracking purposes and places it in the db.

Its an ok implementation and will do in the mean time. The next job is so that they can add adverts like that from inside ez. IE create a FrontPageProductAdvertisement contentobject that will allow them to select the content object by means of a select box. Then there would be a workflow event that would place the appropriate code in the db.

Any suggestions or comments as to how it could be done better?

Regards,
Willie

John Mina

Thursday 03 June 2004 4:28:33 am

Hi Willie, Hi Bruce,
a month later i was stuck in the same problem
after 2 days nwo I find phpadsnew si agreat and marvelopus way to deal with baners in a simple easy way.

What i want to ask about is, how would i related a baner to a sectrion adn all articles in that section, so it wont show in the other sections?

appricaiting your help
Sincerely
John Mina