vBulletin

Thank you for visiting. This is our website archive. Please visit our main website by clicking the banner above.
vBulletin FAQ is dedicated to helping the forum owner build, manage and profit from his vBulletin Forum
vBulletin Web Hosting - Free skins and styles for your vBulletin - Search Engine Optimization




Forum Keywords for AuctionAds

-=Sniper=-
06-26-2007, 04:24 PM
You must have an AuctionAds account for this hack.

To learn more about AuctionAds, and to sign up - Click Here (http://www.vbulletin-faq.com/forum/auctionads.php)

This hack allows you to choose different keywords for different forums, allowing you to display different eBay ads on a forum by forum basis. So, with this hack, every forum (and the threads in it) will display ads according to the keyword you set for that forum.


Installation:

Step 1 (Upload the Files):

Upload the AdminCP and Includes folders to your server.Step 2(Upload the Product):

Go to your AdminCP.
Plugins & Products -> Manage Products -> Click [Add/Import Product] -> Select the file 'product-auctionads.xml'.
Click 'Import'.Step 3(Adjust Settings):

Go to your AdminCP.
Scroll down the list until you see the 'Forum Keywords for AuctionAds' options. Click that and then click 'Keyword Options'
Click Yes to activate the system
Set your default keyword(s)
Add a keyword(s) for each forum you choose and click the enable button for that forum. (if you dont choose a keyword, the default keyword you set earlier will be used)Step 4(Add AuctionAds Code to Templates):

Get your AuctionAds code for the ad size you choose.
At the begining of that code add this line:<if condition="$vbulletin->options['auctionads_onoff']">

And at the end of the code add this:</if>

Find the line in the code: auctionads_ad_kw = "";
Replace that line with: auctionads_ad_kw = "$auctionads_keywords";
Now open your forumsidplay and showthread templates and insert the amended AuctionAds code wherever you want the ads to display. (one common placement is immediately after $navbar in the template code.Your auctionAds code should look similar to this when you place it in your templates.

<if condition="$vbulletin->options['auctionads_onoff']">
<script type="text/javascript"><!--
auctionads_ad_client = "YOUR AUCTIONADS PUBLISHER ID";
auctionads_ad_campaign = "YOUR AUCTIONADS CAMPAIGN NUMBER";
auctionads_ad_width = "728";
auctionads_ad_height = "90";
auctionads_ad_kw = "$auctionads_keywords";
auctionads_color_border = "CFF8A3";
auctionads_color_bg = "FFFFFF";
auctionads_color_heading = "00A0E2";
auctionads_color_text = "000000";
auctionads_color_link = "008000";
--></script>
<script type="text/javascript" src="http://ads.auctionads.com/pagead/show_ads.js">
</script>
</if>




This hack was created by vBulletinExpert.com for vBulletin-FAQ.com. Visit the vBulletin FAQ support forum for AuctionAds (http://www.vbulletin-faq.com/forum/forumdisplay.php?f=105). Vist vBulletinExpert.com for custom hacks and coding.

todd2222
07-06-2007, 07:55 AM
Ok maybe I'm stupid or something but when I go to vbulletin options and select "Forum Keywords for AuctionAds" I only see the first two options:

On/Off
Default Keywords

Then the "save" and "Reset" buttons and then the the footer with the link to vbulletin.com

nothing else.

I copied auctionads.php to admincp

I copied cpnav_auctionads.xml to includes\xml

I uploaded the product

Anyone have any ideas? I'm running the 3.6.7 PL1

Plus it appears that this will only work of forum or thread display pages, will it work on other pages? calendar? usercp? Will it use the default keyword? Or would I need to do another if/then to determine if the page is within a forum?

Thanks!
Todd

Peggy
07-06-2007, 08:19 AM
This is for forum display, and show thread templates.
Which of course, are the main templates used in your forum. Just about every area of your forum uses one or the other.

After you have this all installed, you should have a menu for AuctionAds in the left menu column of your acp. That's where you set the keywords for each forum.

If you decline to set keywords for a certain forum, it will automatically use your default keywords.

todd2222
07-06-2007, 08:37 AM
Thanks Peggy!

I see the link now.....

Peggy
07-06-2007, 08:38 AM
You're welcome. I learned the hard way, lol.

todd2222
07-06-2007, 12:49 PM
So I got of my keywords setup but when I make this change:

auctionads_ad_kw = "$auctionads_keywords";

The keywords are not loading, it just tells me "ERROR - No Keywords" in place of the ads.

The keywords are just not printing, am I missing something?

Joeychgo
07-06-2007, 01:51 PM
do you have a default keyword?

Do you have individual forums enabled with no keyword for them?

todd2222
07-06-2007, 02:08 PM
Thanks Joey but those are ok.

I figure something old but I don't understand -

If works if I put the variable in showthread or forumsidplay but I'm putting it in Left_column (http://www.vbulletin.org/forum/showthread.php?t=91888)which makes it not work....maybe I need to change the hook location....but I wouldn't know where to move it to :(

Joeychgo
07-06-2007, 02:39 PM
Its not meant for anything but the showthread and forumdisplay.

todd2222
07-06-2007, 03:25 PM
Its not meant for anything but the showthread and forumdisplay.

bummer....I was going to place an if clause around the whole thing to have it not show up when on other pages.....but if it won't load the keyword for when it is on showthread and forumdisplay I'm out of luck....

Joeychgo
07-07-2007, 01:42 AM
There may be an update for that at some point.

popowich
07-07-2007, 08:38 AM
Should campaigns be used like channels?

Make a new campaign for *every* banner slot?

Is that doable with this hack too?

-Raymond

todd2222
07-09-2007, 05:20 PM
There may be an update for that at some point.

That would be great as I would also like to put them in the postbit.

Thanks
Todd

todd2222
07-09-2007, 05:27 PM
Should campaigns be used like channels?

Make a new campaign for *every* banner slot?



That's how I use them. The only difference is with google you can choose more than one channel but with AuctionAds you can only choose one.


Is that doable with this hack too?



Yep, just create the spinets from auctionads with different campaigns and then update it following the instructions.

-=Sniper=-
07-25-2007, 04:17 PM
I'll make it so you can use it in other sections of the forum, if I get the time tomorrow then else will have to wait till next week.

nymyth
07-26-2007, 12:39 PM
I have been using this and it worked great. However, recently I managed to figure out how to use openads, and I know am rotating adsense and auctionads in my showthread. However, I notice it isnt forum specific anymore...

Can anyone help me out here....cheers.

Joeychgo
07-26-2007, 01:24 PM
I dont think there is anyway to make both work together - but im not a coder so I could be wrong.

-=Sniper=-
07-27-2007, 03:57 AM
I think you will need to create a separate zone or campaign for each forum in openads. Though I've never used so could not be sure.

fajrnet
03-29-2008, 11:07 AM
Step 4(Add AuctionAds Code to Templates):

I did not understand this step
what is name of template to put this code:
<if condition="$vbulletin->options['auctionads_onoff']">

Joeychgo
03-29-2008, 01:52 PM
whatever templates you want the ads to appear - such as showthread


vBulletin

seo book

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum