Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
You can just add banner code from a third party banner system, or even an affiliate program, to your templates (ie: page.tpl.php) if you want. You can also create blocks with third party banner code in them and place them in your sidebars if that works better for you.
I don't know how technical/extensive you want the ad system to be. Phpadsnew, and the offshoot MMM, are very powerful and open source. You can find them at http://phpadsnew.com/two/
Hotscripts.com has an extensive listing of free, commercial and open source solutions. You should be able to find what best suits your needs there.
For any module, you need to make sure to download the version matching with the version of your Drupal installation. The error you got looks like what usually happens when trying to use a 4.7 module with Drupal 4.6 (or the other way around...)
Well i did use it with both drupal 4.7 and 4.6 and it gave me the same error arround!... i dont kno how to deal with it but mmm i'll try to upload it to my web server coz i been using it in my own home server so far... so would it work then and make any difference if i use it in my webserver?
i worked on phpadsnew and it seems to be complicated... so what am i suppose to do to get the html code of the banner from phpadsnew to my drupal? ... anyone can help me in this? like i want to add the banner in drupal and still i can see the clicks counting... plz show me how..
or else can you tell me about another banner system script works along with drupal, counting links and got the same good options of phpadsnew script, or even close to it..?
Go to inventory. Add a publisher (use the name of your site). Then to to zone overview for that publisher and add a zone (like 468x60).
Now go to inventory. Add an advertiser. Then click on campaign overview, and add a new campaign. Go to banner overview for that campaign and add a new banner to that campaign.
Now go to inventory > publishers and zones > publisher name > zone overview and then click on invocation code.
Choose "remote invocation for frames" and generate your incovation code. THIS is the code that you put into your drupal template.
Now go to Settings > Maintenance > recalculate priority to make sure the ad you created will show up for you.
For your phptemplate engine based theme:
Now open up page.tpl.php for the drupal theme you're using and put the invocation code from phpadsnew where you want it to show up on your drupal page. Upload page.tpl.php back to your theme directory and you should see your ad there.
...in theory.. I may have missed a step somewhere re: phpadsnew, but you can check the phpadsnew docs for how to setup campaigns, etc.
As for other ad scripts, check hotscripts.com -- but I think phpadsnew is a great choice once you get your head around the logic (just like Drupal).
i got the code now and thanks for telling me how to get it.. after i post it in my php.tpl.php then what i have to do? the site is showing up the ad, that's great..
but let's say i got a company and it wants me to show up its ads in certain place in my drupal... and i wanna have a log of the clicks and everything about their ads in my phpadsnew.. how to put their ad in my drupal page and in the same time i can see how many clicks they got and everything...
plus: i don't want counting down clicks, i want phpadsnew to show me the actual clicks!
You really have to read the documentation for phpadsnew and drupal to find out everything they're both capable of. They both have a lot going on.
Phpadsnew allows your advertisers/clients to login to see statistics relating to their ad with you -- including ad impressions, clicks, percentages, daily/monthly/weekly stats, etc.. They can even download the stats to their computer.
As for showing ads in certain areas of your drupal site, this can be done using zones and even drupal conditions in your templates.
For instance, you can create multiple zones in phpadsnew. Pick some iab standard sizes like 468x60, 120x600, and 125x125 and make a zone for each one. Add banners to each zone and then add the invocation for each zone to your template where you want each banner type to show up.
If you only want an ad zone to show up on a specific drupal node, then add the appropriate php if statement to your invocation code.
For example, something like this:
<?php if ($page == 0): ?>
your phpadsnew zone invocation code
<?php endif; ?>
Search this site for theme snippets on how to show different things based on the node/page.
I have nothing against the drupal banner module and it might be just what you need. I just prefer phpadsnew's power and features and I use it across multiple sites/domains using iframes and javascript for text ads.
i use the banner module and never had an install issue the issue i had was placeing the code into the theme because the php varies a little with each theme. all i can say is if you follow the install you shouldn't have an issue and honestly the intigration into drupal makes it better than phpAdsnew (for single site install).
what i'm trying to get at is, even after you get phpAdsnew to work go back and play around and see if you get the banner module working. I think it's worth it.
i used Banner module and it worked probably but i still dont know how to show the banner in my site altought i made configrations in the banner module and uploaded some banners that i can view in with my admin member ship hmmmm i also set the group of the banner but yet i dont see the banner showed in my site
by the way im using my home server hmmm and the installation of banner module was good but still i dont see no banners ... tell me how to show those banners ? what i have exactly to do :) ?
Thank got it to work
does anyone know how can i display the banner in the header of the page using the banner module or any other code any help or advice
that would be great if you could help. i use goofy.theme and i have tried everything. what exectly would you need me to send you?
I can e-mail you whatever.
Here is the node where I describe my efforts thus far. http://drupal.org/node/46881
Comments
Use banner module
http://drupal.org/project/banner
Another way?
i saw that module and it wasn't working probably with me, actually i tried it in my server at home and i got this error in drupal v4.6 and v4.7
Fatal error: Call to undefined function: form_textfield() in c:\web\site\modules\banner\banner.module on line 51
how to make it work probably then?
or else, any other ways to put a banner?
Thanks
You can add banner code to your template
You can just add banner code from a third party banner system, or even an affiliate program, to your templates (ie: page.tpl.php) if you want. You can also create blocks with third party banner code in them and place them in your sidebars if that works better for you.
Banner sys!
what banner system you advice me to use, i mean give me a name for a good third party banner system if you got one in ur mind... plz.. thanks :)
phpAdsNew
phpAdsNew: http://phpadsnew.com
I like phpadsnew
I don't know how technical/extensive you want the ad system to be. Phpadsnew, and the offshoot MMM, are very powerful and open source. You can find them at http://phpadsnew.com/two/
Hotscripts.com has an extensive listing of free, commercial and open source solutions. You should be able to find what best suits your needs there.
Their php ad management area is at
http://hotscripts.com/PHP/Scripts_and_Programs/Ad_Management/index.html
Of course
But I only have one mysql account.
Module versions
For any module, you need to make sure to download the version matching with the version of your Drupal installation. The error you got looks like what usually happens when trying to use a 4.7 module with Drupal 4.6 (or the other way around...)
i did!
Well i did use it with both drupal 4.7 and 4.6 and it gave me the same error arround!... i dont kno how to deal with it but mmm i'll try to upload it to my web server coz i been using it in my own home server so far... so would it work then and make any difference if i use it in my webserver?
complicated!
oky ppl..
i worked on phpadsnew and it seems to be complicated... so what am i suppose to do to get the html code of the banner from phpadsnew to my drupal? ... anyone can help me in this? like i want to add the banner in drupal and still i can see the clicks counting... plz show me how..
or else can you tell me about another banner system script works along with drupal, counting links and got the same good options of phpadsnew script, or even close to it..?
Thank you..
Come on!
come on guys.. plz help me in this...
phpadsnew and template
In phpadsnew:
Go to inventory. Add a publisher (use the name of your site). Then to to zone overview for that publisher and add a zone (like 468x60).
Now go to inventory. Add an advertiser. Then click on campaign overview, and add a new campaign. Go to banner overview for that campaign and add a new banner to that campaign.
Now go to inventory > publishers and zones > publisher name > zone overview and then click on invocation code.
Choose "remote invocation for frames" and generate your incovation code. THIS is the code that you put into your drupal template.
Now go to Settings > Maintenance > recalculate priority to make sure the ad you created will show up for you.
For your phptemplate engine based theme:
Now open up page.tpl.php for the drupal theme you're using and put the invocation code from phpadsnew where you want it to show up on your drupal page. Upload page.tpl.php back to your theme directory and you should see your ad there.
...in theory.. I may have missed a step somewhere re: phpadsnew, but you can check the phpadsnew docs for how to setup campaigns, etc.
As for other ad scripts, check hotscripts.com -- but I think phpadsnew is a great choice once you get your head around the logic (just like Drupal).
Good night and good luck.
phpadsnew campaigns!
i got the code now and thanks for telling me how to get it.. after i post it in my php.tpl.php then what i have to do? the site is showing up the ad, that's great..
but let's say i got a company and it wants me to show up its ads in certain place in my drupal... and i wanna have a log of the clicks and everything about their ads in my phpadsnew.. how to put their ad in my drupal page and in the same time i can see how many clicks they got and everything...
plus: i don't want counting down clicks, i want phpadsnew to show me the actual clicks!
can u help me in that? plz, thanks
Test and read the docs
You really have to read the documentation for phpadsnew and drupal to find out everything they're both capable of. They both have a lot going on.
Phpadsnew allows your advertisers/clients to login to see statistics relating to their ad with you -- including ad impressions, clicks, percentages, daily/monthly/weekly stats, etc.. They can even download the stats to their computer.
As for showing ads in certain areas of your drupal site, this can be done using zones and even drupal conditions in your templates.
For instance, you can create multiple zones in phpadsnew. Pick some iab standard sizes like 468x60, 120x600, and 125x125 and make a zone for each one. Add banners to each zone and then add the invocation for each zone to your template where you want each banner type to show up.
If you only want an ad zone to show up on a specific drupal node, then add the appropriate php if statement to your invocation code.
For example, something like this:
Search this site for theme snippets on how to show different things based on the node/page.
I have nothing against the drupal banner module and it might be just what you need. I just prefer phpadsnew's power and features and I use it across multiple sites/domains using iframes and javascript for text ads.
Can you use a similar code
Can you use a similar code for languages something like:
Sorry if this seems like a stupid quenstion - but I'm quite novice with programming and drupal!
Thanks
I use banner module
i use the banner module and never had an install issue the issue i had was placeing the code into the theme because the php varies a little with each theme. all i can say is if you follow the install you shouldn't have an issue and honestly the intigration into drupal makes it better than phpAdsnew (for single site install).
what i'm trying to get at is, even after you get phpAdsnew to work go back and play around and see if you get the banner module working. I think it's worth it.
Regards,
underpressure
http://ravalonline.com
I'll try it!
I'll try that module again later though i think it's not going to work with me.. but it worth trying as you said :)
so anyone can help me in the previose question.. plz..
i used Banner module and it
i used Banner module and it worked probably but i still dont know how to show the banner in my site altought i made configrations in the banner module and uploaded some banners that i can view in with my admin member ship hmmmm i also set the group of the banner but yet i dont see the banner showed in my site
by the way im using my home server hmmm and the installation of banner module was good but still i dont see no banners ... tell me how to show those banners ? what i have exactly to do :) ?
replay me
Is there anyone to help me with the banner module?
can someone help me in
can someone help me in banner module my ads are not displayed in the block
can someone tell me did i missed something or ????
cache
make sure you have turned on the banner caching.
if that doesn't fix it, can you be more specific about your problem.
___
Warren County, Virginia News & Networking: http://warrencountyreport.com
Thank got it to work
Thank got it to work
does anyone know how can i display the banner in the header of the page using the banner module or any other code any help or advice
Thanks
good luck
God help you on that one. I've been trying for two months to get it in goofy or any theme and get no response.
___
Warren County, Virginia News & Networking: http://warrencountyreport.com
yeah i know right me too
yeah i know right me too tryin for so long lets see how long will it take before some one comes up with a solution
I got mine working
Check my site in my Sig. i got mine working the theme is pushbutton, the only thing i haven't tried yet is grouping the banner.
if you want it like mine let me know what theme you are useing and i'll see if i can be of help.
Regards,
underpressure
http://ravalonline.com
heycan you tell me how you
hey
can you tell me how you did it
i dont want to group banners all i want is one banner should show up in the header please help me if you can
Thanks
Your Template
Sure thing, i will help you in anyway i can but first you need to tell me the name of the Template you are useing and perhaps the header code.
Regards,
underpressure
http://ravalonline.com
awesome
that would be great if you could help. i use goofy.theme and i have tried everything. what exectly would you need me to send you?
I can e-mail you whatever.
Here is the node where I describe my efforts thus far.
http://drupal.org/node/46881
___
Warren County, Virginia News & Networking: http://warrencountyreport.com
oops
I just switched to the slash theme. is it easier to add it to a php theme?
___
Warren County, Virginia News & Networking: http://warrencountyreport.com
i m using the chameleon
i m using the chameleon theme