can anyone tell me techniques or show me ways to put a banners in my drupal? thanks!

Comments

svemir’s picture

famo’s picture

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

kayman-1’s picture

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.

famo’s picture

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 :)

zaja’s picture

kayman-1’s picture

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

piraxter@drupal.org’s picture

But I only have one mysql account.

svemir’s picture

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...)

famo’s picture

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?

famo’s picture

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..

famo’s picture

come on guys.. plz help me in this...

kayman-1’s picture

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.

famo’s picture

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

kayman-1’s picture

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.

JonasB’s picture

Can you use a similar code for languages something like:

<?php if ($language == 1): ?>

your phpadsnew zone invocation code

<?php endif; ?>

Sorry if this seems like a stupid quenstion - but I'm quite novice with programming and drupal!

Thanks

underpressure’s picture

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

famo’s picture

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..

famo’s picture

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 :) ?

famo’s picture

Is there anyone to help me with the banner module?

vikramdhani’s picture

can someone help me in banner module my ads are not displayed in the block
can someone tell me did i missed something or ????

Dan McDermott’s picture

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

vikramdhani’s picture

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

Dan McDermott’s picture

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

vikramdhani’s picture

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

underpressure’s picture

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

vikramdhani’s picture

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

underpressure’s picture

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

Dan McDermott’s picture

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

Dan McDermott’s picture

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

vikramdhani’s picture

i m using the chameleon theme