Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forum Keywords For AuctionAds Details »»
Forum Keywords For AuctionAds
Version: 1.1, by -=Sniper=- -=Sniper=- is offline
Developer Last Online: Dec 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.7 Rating:
Released: 06-26-2007 Last Update: 06-28-2007 Installs: 16
DB Changes Uses Plugins Template Edits
Is in Beta Stage  
No support by the author.

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

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:
Quote:
<if condition="$vbulletin->options['auctionads_onoff']">
  • And at the end of the code add this:
Quote:
</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.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-06-2007, 05:12 PM
joeychgo's Avatar
joeychgo joeychgo is offline
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 933
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

IM not sure I understand your problem -- I see no error - I see ads
Reply With Quote
  #13  
Old 07-06-2007, 05:25 PM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #14  
Old 07-06-2007, 05:54 PM
joeychgo's Avatar
joeychgo joeychgo is offline
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 933
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
  #15  
Old 07-06-2007, 06:02 PM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #16  
Old 07-06-2007, 06:30 PM
joeychgo's Avatar
joeychgo joeychgo is offline
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 933
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 07-06-2007, 07:03 PM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the default keyword...I've stated that a few times now. Here's a screen shot to prove it.



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?
Reply With Quote
  #18  
Old 07-06-2007, 07:13 PM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Quote:
Replace that line with: auctionads_ad_kw = "$vbauctionad_keywords";
The one shown in the readme file:
Quote:
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.
Reply With Quote
  #19  
Old 07-06-2007, 07:15 PM
joeychgo's Avatar
joeychgo joeychgo is offline
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 933
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was JUST going to check that. The correct should be $auctionads_keywords
Reply With Quote
  #20  
Old 07-06-2007, 08:44 PM
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AzzidReign View Post
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
Reply With Quote
  #21  
Old 07-06-2007, 10:34 PM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Used $auctionads_keywords and still didn't work.

This is what I have:

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

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:04 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05878 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete