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

