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
  #142  
Old 04-22-2006, 01:39 AM
Luxury Luxury is offline
 
Join Date: Apr 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why do I get this error? >
Code:
Parse error: parse error, unexpected T_STRING in /home/xxxxx/public_html/forums/archive/index.php(254) : eval()'d code on line 3
All I did was replace your adsense code with mine.
Reply With Quote
  #143  
Old 04-22-2006, 06:12 PM
Dermo-MIO Dermo-MIO is offline
 
Join Date: Jan 2006
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this just for archive, how i do i have the adsense show on the normal forum view do i need this ?
Reply With Quote
  #144  
Old 04-22-2006, 06:44 PM
irishblacknight irishblacknight is offline
 
Join Date: Apr 2003
Location: Europe
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dermo-MIO
is this just for archive, how i do i have the adsense show on the normal forum view do i need this ?
There are other plugins / mods for the forum.
Reply With Quote
  #145  
Old 04-25-2006, 01:01 AM
Luxury Luxury is offline
 
Join Date: Apr 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Luxury
Why do I get this error? >
Code:
Parse error: parse error, unexpected T_STRING in /home/xxxxx/public_html/forums/archive/index.php(254) : eval()'d code on line 3
All I did was replace your adsense code with mine.
Anyone can help me?
Reply With Quote
  #146  
Old 04-25-2006, 09:38 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

your question has already been answered in the thread. You were helped even before you posted How's that for timely assistance?
Reply With Quote
  #147  
Old 04-26-2006, 10:09 AM
machelp machelp is offline
 
Join Date: Apr 2005
Location: UK
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Amykhar,

My archive now has Adsense !

regards

Ric
Reply With Quote
  #148  
Old 04-27-2006, 02:02 AM
Suiko Jin's Avatar
Suiko Jin Suiko Jin is offline
 
Join Date: Jul 2005
Location: Las Vegas
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great idea! Thanks.

*Installs*
Reply With Quote
  #149  
Old 04-28-2006, 11:21 AM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great i never even thought about putting them in the archive.
Super simple to change and install!!
Thanks a million!!
Reply With Quote
  #150  
Old 04-28-2006, 11:30 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My pleasure.
Reply With Quote
  #151  
Old 04-28-2006, 03:56 PM
UK Jimbo's Avatar
UK Jimbo UK Jimbo is offline
 
Join Date: Sep 2002
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack Amy. <plug>I think it compliments my postbit mod quite really well</plug>

One suggestion I have is that you could use PHP's "heredoc" syntax to avoid having to quote any of the ad calls.

If you used:

PHP Code:
$output .= <<<EOBANNER
Google adsense code goes here
...
...
...
end adsense code
EOBANNER; 
Then no escaping is required, the code can just be pasted in from Google's adsense interface without having to check for/escape single or double quotes.
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 03:29 AM.


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.05279 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
  • (2)bbcode_code
  • (1)bbcode_php
  • (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