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

Reply
 
Thread Tools
Put Adsense Banners in Your Archive Details »»
Put Adsense Banners in Your Archive
Version: 1.00, by amykhar amykhar is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 11-06-2005 Last Update: 09-04-2006 Installs: 517
Uses Plugins
 
No support by the author.

UPDATE: THIS PRODUCT NOW ONLY WORKS WITH VERSIONS 3.5.4 AND 3.6 AND UP. I WILL NOT RE-RELEASE THE OLDER VERSION.


This product is a simple one that will get you started in adding Google adsense banners to the top and bottom of your archive pages:

Demo here: http://www.eaforums.com/forums/archive/index.php/

To install: Import the product. Change the two plugins to use the adsense code for your site (instead of mine - unless you are feeling generous) and to arrange its positioning as desired.

To upgrade: Uninstall the old product. Install the new one.

Amy

Show Your Support

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

Comments
  #212  
Old 09-20-2006, 08:10 AM
kenji4861's Avatar
kenji4861 kenji4861 is offline
 
Join Date: Jun 2003
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just wanted to say I'm getting the same error. I'm running 3.5.4

Quote:
Originally Posted by puregraf
hi i went to import product and i got this error can you help?



### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Archive Bottom', 'archive_complete', '$output.=\'\r\n<div align=\"center\" style=\"padding:4px; overflow: hidden;\\\">\r\n<script type=\"text/javascript\"><!--\r\ngoogle_ad_client = \"pub-7556473518368210\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\ngoogle_ad_format = \"728x90_as\";\r\ngoogle_ad_type = \"text_image\";\r\ngoogle_ad_channel =\"\";\r\n//--></script>\r\n<script type=\"text/javascript\"\r\n src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\r\n</script>\r\n</div>\r\n</td><td width=\"15%\" valign=\"top\">\r\n<script type=\"text/javascript\"><!--\r\ngoogle_ad_client = \"pub-7556473518368210\";\r\ngoogle_ad_width = 120;\r\ngoogle_ad_height = 600;\r\ngoogle_ad_format = \"120x600_as\";\r\ngoogle_ad_type = \"text_image\";\r\ngoogle_ad_channel =\"\";\r\n//--></script>\r\n<script type=\"text/javascript\"\r\n src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\r\n</script>\r\n</td>\r\n</tr>\r\n</table>\r\n\r\n\';', 'amykhar_11072005');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Monday, September 18th 2006 @ 06:30:35 PM
Script : http://www.puregraffiti.com/graffiti...ncp/plugin.php
Referrer : http://www.puregraffiti.com/graffiti...?do=productadd
IP Address : *****
Username : puregraffiti
Classname : vb_database
Reply With Quote
  #213  
Old 09-20-2006, 08:15 AM
kenji4861's Avatar
kenji4861 kenji4861 is offline
 
Join Date: Jun 2003
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I got it fixed. At least for Version 3.5.4, use the file I attached.

http://www.spoofee.com/forums/archive

Thanks Amy!

Quote:
Originally Posted by puregraf
hi i went to import product and i got this error can you help?



### INSERT QUERY GENERATED BY fetch_query_sql() ###
INSERT INTO plugin
(`active`, `executionorder`, `title`, `hookname`, `phpcode`, `product`)
VALUES
('1', '5', 'Archive Bottom', 'archive_complete', '$output.=\'\r\n<div align=\"center\" style=\"padding:4px; overflow: hidden;\\\">\r\n<script type=\"text/javascript\"><!--\r\ngoogle_ad_client = \"pub-7556473518368210\";\r\ngoogle_ad_width = 728;\r\ngoogle_ad_height = 90;\r\ngoogle_ad_format = \"728x90_as\";\r\ngoogle_ad_type = \"text_image\";\r\ngoogle_ad_channel =\"\";\r\n//--></script>\r\n<script type=\"text/javascript\"\r\n src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\r\n</script>\r\n</div>\r\n</td><td width=\"15%\" valign=\"top\">\r\n<script type=\"text/javascript\"><!--\r\ngoogle_ad_client = \"pub-7556473518368210\";\r\ngoogle_ad_width = 120;\r\ngoogle_ad_height = 600;\r\ngoogle_ad_format = \"120x600_as\";\r\ngoogle_ad_type = \"text_image\";\r\ngoogle_ad_channel =\"\";\r\n//--></script>\r\n<script type=\"text/javascript\"\r\n src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">\r\n</script>\r\n</td>\r\n</tr>\r\n</table>\r\n\r\n\';', 'amykhar_11072005');

MySQL Error : Unknown column 'executionorder' in 'field list'
Error Number : 1054
Date : Monday, September 18th 2006 @ 06:30:35 PM
Script : http://www.puregraffiti.com/graffiti...ncp/plugin.php
Referrer : http://www.puregraffiti.com/graffiti...?do=productadd
IP Address : *****
Username : puregraffiti
Classname : vb_database
Reply With Quote
  #214  
Old 09-27-2006, 09:25 PM
puregraf's Avatar
puregraf puregraf is offline
 
Join Date: May 2006
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you!!!!
Reply With Quote
  #215  
Old 01-16-2007, 08:42 PM
MRGTB MRGTB is offline
 
Join Date: Dec 2004
Posts: 548
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can you add a conditional to this hack so the adsence banners will only be shown to certain usergroups you choose:

IE: Usergroups 1,3,4

Can this be done, or does it not recognize conditionals because it's in the archive pages.
Reply With Quote
  #216  
Old 01-16-2007, 08:49 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can check for usergroup memberships, but not with template conditional syntax.
Reply With Quote
  #217  
Old 01-16-2007, 08:53 PM
MRGTB MRGTB is offline
 
Join Date: Dec 2004
Posts: 548
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So does that mean you could not use this for example to show the banners to just 3 usergroups then.

Code:
<if condition="is_member_of($bbuserinfo, 1, 3, 4)">
As I'm not sure what you meant in your last post. If that would work, I'm not sure were I would add the code though exactly in the XML file.
Reply With Quote
  #218  
Old 01-16-2007, 09:01 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the plugin, you could use
Code:
 if(is_member_of($vbulletin->userinfo,1,3,4)){
}
around any instance of the ad banners. I don't bother with it because my members don't use the archives.
Reply With Quote
  #219  
Old 01-16-2007, 09:15 PM
MRGTB MRGTB is offline
 
Join Date: Dec 2004
Posts: 548
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yea I know what you mean about members not using the archives, I thoguht about that also. But I think I would still rather exclude the banners from them anyway just in-case. As you never know.

So that code you posted above, would I just wrap that around the adsence code only.

Would it then look like this:

Code:
if(is_member_of($vbulletin->userinfo,1,3,4)){
}
Adsence code
</if>
Reply With Quote
  #220  
Old 03-21-2007, 08:43 AM
Greek76's Avatar
Greek76 Greek76 is offline
 
Join Date: Aug 2006
Location: Planet Earth
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Mine only shows in the footer it wont show anywhere else. Any ideas? thanks
Reply With Quote
  #221  
Old 03-26-2007, 03:15 AM
BigJimTheLug BigJimTheLug is offline
 
Join Date: Nov 2006
Posts: 354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a great modification. Thanks.

Please be sure to remove the author's Google Adsense code and place your Google Adsense code on this modification.

If you are unsure how to do this, download this modification and open it with notepad.

Then look for her codes and replace them with yours.

Thank you.
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 06:11 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.11240 seconds
  • Memory Usage 2,312KB
  • 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
  • (3)bbcode_code
  • (2)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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