Ad Management mod

Started by SMFHacks.com Team, January 30, 2006, 08:41:19 PM

Previous topic - Next topic

Bigguy

I don`t think there is but it`s a good idea. Glad you got it installed.

PrizeLive.com

Quote from: Uzbek on July 14, 2006, 04:45:02 AM
I have installed the mod - works perfect! Great job.

One question - I put adsense ticking "show under menu" and leaving boards field empty so it shows on all boards.
Now I want to put different banner and I want to show it in certain board. Is it possible to set priority, let's say "Second banner" has higher priority, so it would show insted of adsense on that particular board?

If not such a functionality would be a nice addition.

You can select what ads are shown on which boards.
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Bigguy

Yes this is true, but you can`t set priority like he was asking.

Quote from: SurfExcelerator.com on July 14, 2006, 12:21:16 PM
Quote from: Uzbek on July 14, 2006, 04:45:02 AM
I have installed the mod - works perfect! Great job.

One question - I put adsense ticking "show under menu" and leaving boards field empty so it shows on all boards.
Now I want to put different banner and I want to show it in certain board. Is it possible to set priority, let's say "Second banner" has higher priority, so it would show insted of adsense on that particular board?

If not such a functionality would be a nice addition.

You can select what ads are shown on which boards.

PrizeLive.com

Quote from: Bigguy on July 14, 2006, 01:26:40 PM
Yes this is true, but you can`t set priority like he was asking.

Doing this would be what he wants... Have google on all boards but have something else on a different board... That's setting priority..
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Bigguy

Ok, I guess I was talking about both ads on the same board but show one before the other all the time or something along that lines.

PrizeLive.com

Yeah but he doesn't want both shown... He said "instead of"....

Quote from: Uzbek on July 14, 2006, 04:45:02 AM
Is it possible to set priority, let's say "Second banner" has higher priority, so it would show insted of adsense on that particular board?
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Bigguy

Well, I guess I read it wrong then, sorry about that.

PrizeLive.com

Quote from: Bigguy on July 14, 2006, 04:08:57 PM
Well, I guess I read it wrong then, sorry about that.

Haha no biggie.
Get Paid Instantly via PayPal (or other options) at PrizeLive.com!

Osidguy

#628
Hello,

I have apparently successfully installed the mod (all 'success' messages in admin), I have activated it successfully, but cannot see the link under Configuration.

Any ideas?

Thanks

I ought to add that I have SMF 1.0.7.
and have installed ad_mod_1-0-7_v1-0-2b.zip:

which has the following files

install.php (1596 bytes)
install.xml (9949 bytes)
package-info.xml (585 bytes)
readme.txt (682 bytes)

cut-killer

hello

sorry for my english... i cant good....

ok...

i heave installed ad managment, wunderfull mod.. thank you...

my problem, when i klick a link, then goes in my window up... i will make it "target blank"

how to ? also the link must be open in a new windows, not this from my own site...

thank you...


aussieferal

Is there a way to make the ads only appear for guests?

jerm

Quote from: Uzbek on July 14, 2006, 04:45:02 AM
I have installed the mod - works perfect! Great job.

One question - I put adsense ticking "show under menu" and leaving boards field empty so it shows on all boards.
Now I want to put different banner and I want to show it in certain board. Is it possible to set priority, let's say "Second banner" has higher priority, so it would show insted of adsense on that particular board?

If not such a functionality would be a nice addition.

Once you set an ad as board specific, only that ad will show in that board. all other ads wont show. The only way to have rotating ads on board specific, is to make another ad that is board specific to that board. Hope that makes sense.

Quote from: Osidguy on July 15, 2006, 05:36:54 AM
Hello,

I have apparently successfully installed the mod (all 'success' messages in admin), I have activated it successfully, but cannot see the link under Configuration.

Any ideas?

Thanks

I ought to add that I have SMF 1.0.7.
and have installed ad_mod_1-0-7_v1-0-2b.zip:

which has the following files

install.php (1596 bytes)
install.xml (9949 bytes)
package-info.xml (585 bytes)
readme.txt (682 bytes)


You installed version 1.* To find the ad managment, go to features and settings

Quote from: cut-killer on July 15, 2006, 05:50:33 AM
hello

sorry for my english... i cant good....

ok...

i heave installed ad managment, wunderfull mod.. thank you...

my problem, when i klick a link, then goes in my window up... i will make it "target blank"

how to ? also the link must be open in a new windows, not this from my own site...

thank you...



if i understand correctly, this all depends on the code your ad company has given you, and not my mod.

jerm

Quote from: aussieferal on July 15, 2006, 09:18:12 AM
Is there a way to make the ads only appear for guests?
disable the permission for everyone. Then enable it for guests

Webrunner

#633
I really like this mod, great work!  :D

I have one question though.
I am have a lot of custom pages in which i create the page header with SSI. The banners dont show up in these pages. Probably because the mod tries to detect what forum or section it is in (in fact it isn't in one of the forums but on a seperate page.) For an example page see here: http://www.vrouwenpower.nl/horoscoop/

The banner you see working now is hardcoded into index.template.php so that is not the mod working.

What modifications do i have to make to the pages to make the ads show up? I rather not modify the mod since that will make upgrading and updating more difficult.
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

cut-killer

Quote from: cut-killer on July 15, 2006, 05:50:33 AM
hello

sorry for my english... i cant good....

ok...

i heave installed ad managment, wunderfull mod.. thank you...

my problem, when i klick a link, then goes in my window up... i will make it "target blank"

how to ? also the link must be open in a new windows, not this from my own site...

thank you...



if i understand correctly, this all depends on the code your ad company has given you, and not my mod.


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

hello

i use this code...

<script type="text/javascript"><!--
google_ad_client = "pub-0096697545230609";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>



i cant see where or what i can make to show in target blank window... i think.. must make it @ the code from you hack...  ? what you think ?

mfg

jerm

Quote from: Webrunner on July 16, 2006, 07:26:55 AM
I really like this mod, great work!  :D

I have one question though.
I am have a lot of custom pages in which i create the page header with SSI. The banners dont show up in these pages. Probably because the mod tries to detect what forum or section it is in (in fact it isn't in one of the forums but on a seperate page.) For an example page see here: http://www.vrouwenpower.nl/horoscoop/

The banner you see working now is hardcoded into index.template.php so that is not the mod working.

What modifications do i have to make to the pages to make the ads show up? I rather not modify the mod since that will make upgrading and updating more difficult.

what version of the mod are you running?

Quote from: cut-killer on July 16, 2006, 12:40:40 PM
Quote from: cut-killer on July 15, 2006, 05:50:33 AM
hello

sorry for my english... i cant good....

ok...

i heave installed ad managment, wunderfull mod.. thank you...

my problem, when i klick a link, then goes in my window up... i will make it "target blank"

how to ? also the link must be open in a new windows, not this from my own site...

thank you...



if i understand correctly, this all depends on the code your ad company has given you, and not my mod.


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

hello

i use this code...

<script type="text/javascript"><!--
google_ad_client = "pub-0096697545230609";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "image";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>



i cant see where or what i can make to show in target blank window... i think.. must make it @ the code from you hack...  ? what you think ?

mfg
google adsense does not allow you to open up their ads in a popup or another window

Webrunner

I downloaded it today, i downloaded ad_mod_rc2_v2.zip
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

jerm

Quote from: Webrunner on July 16, 2006, 01:52:07 PM
I downloaded it today, i downloaded ad_mod_rc2_v2.zip

you can add this code to your page:
$ads = show_indexAds();
if(!empty($ads))
if($ads['type']==0)
echo $ads['content'];
else
eval($ads['content']);
unset($ads);

This will be triggered whne you have this checked off:
QuoteDisplay ads on every page right below the menu

Webrunner

I am sorry, i wasn't clear enough.
The pageheader is entirely created with SSI, so the code used on the page is from index.template.php
Now it gives me undefined functions error in index.template.php
f.i Fatal error: Call to undefined function show_indexAds() in /home/website/html/forum/Themes/vp/index.template.php on line 749

It does this only on pages that are created with SSI, so inside the forum it works great.
Any ideas?
I already tried to include LoadAds.php but that doesn't work :(
There is a difference between knowing the path and walking the path.

=========================================
Vrouwen Power! | Sprintweb: No nonsense e-Business consultancy

jerm

Do this:
require_once($sourcedir . '/LoadAds.php');
loadAds();
Now you can use the function show_indexAds();

Make sure that $souredir is defined.

Advertisement: