PDA

View Full Version : Miscellaneous Hacks - Forum Keywords For AuctionAds


-=Sniper=-
06-26-2007, 10:00 PM
1.1 - If you have 1.0 installed, uninstall it and install the new improved version.

You must have an AuctionAds account for this hack.

To lear more about AuctionAds and to sign up - Click Here (http://www.auctionads.com/)

This hack allows you to choose different keywords for different forums, allowing you to display differen 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 a default keyword
Choose a keyword(s) for each forum you chose 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).

CMGU
06-26-2007, 10:47 PM
thanks very interesting
Install - firts

projectego
06-27-2007, 12:10 PM
Sounds interesting... I haven't had chance to play with AuctionAds yet, but I'll definitely install this for now. :)

-=Sniper=-
06-27-2007, 12:30 PM
thanks, will post a update later today giving more control, so please wait till then before installing.

joeychgo
06-27-2007, 03:52 PM
Sounds interesting... I haven't had chance to play with AuctionAds yet, but I'll definitely install this for now. :)


Take a look: AuctionAds (http://www.auctionads.com/)


We have an AuctionAds Forum (http://www.vbulletin-faq.com/forum/forumdisplay.php?f=105) as well ---






:)

-=Sniper=-
06-29-2007, 08:56 PM
New improved version released, check screenshot :)

joeychgo
07-03-2007, 04:28 PM
I just finished an article partly about how to use this hack effectively --

AuctionAds Tips by Joeychgo (http://www.vbulletin-faq.com/forum/showthread.php?t=9227)



:)

tokenyank
07-04-2007, 12:10 AM
couple things....

First of all, I've noticed that AuctionAds website goes down quiet regularly. How does this effect the autolinking/adverts pulling for this hack?

And secondly, the autoparsing of ebay links hack for auctionads does not work if you are using SEO rewrites... Is this mod affected by rewrite?

joeychgo
07-04-2007, 12:33 AM
This shouldnt be affected by mod_rewrite... Nor should the site going down affect this hack. The effect would be the same. Usually just a blank ad or a non targetted ad.

AuctionAds does go down from time to time, but its because they are trying to improve it on the fly. They didnt expect the response they've had so far.

AzzidReign
07-06-2007, 05:09 PM
I get an error:
User Error: No Keywords

I'm not stupid, I've done exactly as the instructions have stated as well as tried many other things. I just manually put the keywords in the code and it works fine.

This is what my code looked like before I put the keywords in myself:

<if condition="$vbulletin->options['auctionads_onoff']">
<script type="text/javascript"><!--
auctionads_ad_client = "REMOVED";
auctionads_ad_campaign = "REMOVED";
auctionads_ad_width = "300";
auctionads_ad_height = "250";
auctionads_ad_kw = "$vbauctionad_keywords";
auctionads_color_border = "2E3234";
auctionads_color_bg = "2E3234";
auctionads_color_heading = "0ABF13";
auctionads_color_text = "A7B6BE";
auctionads_color_link = "A7B6BE";
--></script>
<script type="text/javascript" src="http://ads.auctionads.com/pagead/show_ads.js">
</script>
</if>


I have the mod set to YES and I've had many different default keywords in there to see if that was the problem...my latest keyword was just xbox, others were xbox, xbox accessories, xbox games and xbox;accessories, all of which have given me the same error.

Has anyone else ran into this problem or know of a solution?

BTW, I have the ads being showing in the postbit under <!-- / message -->.

joeychgo
07-06-2007, 05:12 PM
IM not sure I understand your problem -- I see no error - I see ads

AzzidReign
07-06-2007, 05:25 PM
I just manually put the keywords in so the ads would show up.

You can check the site now, I just changed it to use $vbauctionad_keywords as the keyword(s).

joeychgo
07-06-2007, 05:54 PM
Ok - a few possible things -

Next to each keyword (for each forum) is a check box. ONLY have that checked if you have a keyword in there.

Also - you should make sure you have a default keyword.



Like this:

AzzidReign
07-06-2007, 06:02 PM
When I put keywords in for individual forums, I checked the checkbox; those forums didn't load the ads either.

I do have a default keyword: xbox

I've removed all the keywords and checkboxes from the individual forums as well, yet same error.

joeychgo
07-06-2007, 06:30 PM
You have to have a default keyword. (at the top of the page) ---If you have a default keyword, any forum not enabled with a keyword will use that default keyword.

I have this installed on a number of forums and it works just fine. I know its just how you have it set up. What that error means is that a keyword isnt being sent to the page.

AzzidReign
07-06-2007, 07:03 PM
I have the default keyword...I've stated that a few times now. Here's a screen shot to prove it.

https://vborg.vbsupport.ru/

None of the forums are checked and none have keywords in the field so there is no separate keywords for individual forums so all forums should be running off of the default keyword I've specified.

Is there any other information you'd like me to show you to let you know I've done everything in the instructions?

AzzidReign
07-06-2007, 07:13 PM
Ok, I think I know what's going on...the instructions are bad...

There are 2 different instructions about the keywords, and neither work for me.

The one shown here on this page:
Replace that line with: auctionads_ad_kw = "$vbauctionad_keywords";

The one shown in the readme file:
Replace that line with: auctionads_ad_kw = "$auctionads_keywords";

If you look at the red, you'll see that they are both different. Which is right? For me, neither are right b/c the ads still don't load.


EDIT: I have to head out right now so I'll be back in a few hours. Just post to let me know if you need any more information on my end and I'll be sure to post it once I get back. If you need more screenshots, let me know. I think I've posted all the evidence needed to show that I have done as said in the instructions but if there's anything else, please let me know.

joeychgo
07-06-2007, 07:15 PM
I was JUST going to check that. The correct should be $auctionads_keywords

-=Sniper=-
07-06-2007, 08:44 PM
I just manually put the keywords in so the ads would show up.

You can check the site now, I just changed it to use $vbauctionad_keywords as the keyword(s).



please use $auctionads_keywords note no vb

edit: lol to late, just got back from work :)

AzzidReign
07-06-2007, 10:34 PM
Used $auctionads_keywords and still didn't work.

This is what I have:


<if condition="(($post[postcount]==1) and !$GLOBALS['vbulletin']->GPC['ajax'])">
<if condition="$vbulletin->options['auctionads_onoff']">
<script type="text/javascript"><!--
auctionads_ad_client = "removed";
auctionads_ad_campaign = "removed";
auctionads_ad_width = "300";
auctionads_ad_height = "250";
auctionads_ad_kw = "$auctionads_keywords";
auctionads_color_border = "2E3234";
auctionads_color_bg = "2E3234";
auctionads_color_heading = "0ABF13";
auctionads_color_text = "A7B6BE";
auctionads_color_link = "A7B6BE";
--></script>
<script type="text/javascript" src="http://ads.auctionads.com/pagead/show_ads.js">
</script>
</if>
</if>


And here's the vb options page:

http://i15.photobucket.com/albums/a397/AzzidReign/keyword.jpg

-=Sniper=-
07-06-2007, 10:38 PM
send me admin access so I can have a look.

-=Sniper=-
07-06-2007, 11:12 PM
I had to add a extra plugin to make it work in the postbit template, I'll post a update after the weekend allowing you to place it in the postbit etc templates....

nymyth
07-11-2007, 06:45 PM
installed and working great....thanks

AzzidReign
08-12-2007, 07:22 PM
Sorry to bring up my problem from a while ago...but when you installed the postbit plugin to get it to work in the postbit, it now doesn't work with anywhere else. Do you have a fix for this?

EDIT: If you check out my site and see the ads displaying right, it's b/c I put the keywords in manually.

joeychgo
08-12-2007, 07:42 PM
No fix. It it only designed to work in showthread and forumdisplay at this time.

SuperJETT
10-23-2007, 06:18 PM
No fix. It it only designed to work in showthread and forumdisplay at this time.

Ah-ha! I have mine in header and was going crazy trying to figure out why there weren't any keywords.