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
  #182  
Old 07-12-2006, 09:39 PM
UK Jimbo's Avatar
UK Jimbo UK Jimbo is offline
 
Join Date: Sep 2002
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GrendelKhan{TSU
...can you explain that again? I don't understand what you mean.
Give the attached a try...
Reply With Quote
  #183  
Old 07-18-2006, 12:18 AM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi UK Jimbo,

I tried the attached version. But I receive the below error...

Parse error: parse error, unexpected $ in /home/induslad/public_html/forums/archive/index.php(254) : eval()'d code on line 18

Please could you help.

Thanks,

Induslady
Reply With Quote
  #184  
Old 07-18-2006, 05:33 PM
ConqSoft's Avatar
ConqSoft ConqSoft is offline
 
Join Date: Jul 2003
Location: Raleigh, NC
Posts: 686
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds like you made a mistake when modifying the adsense code to add your publisher id, colors, etc. Uninstall, re-install, and look carefully at how the code is arranaged. (Using \ to escape ", etc)
Reply With Quote
  #185  
Old 07-20-2006, 10:09 PM
induslady induslady is offline
 
Join Date: Jul 2006
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello ConqSoft,

Thank you for your reply message.

I unistalled, modified the xml product carefully and re-uploaded. It works fine now.

Regards,
Induslady
Reply With Quote
  #186  
Old 07-24-2006, 05:04 PM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what does "(Using \ to escape ", etc)" mean??

grrr. .. can someone just post an full example of the edited plugins?


amy always has great hacks, but the WORST readmes. heh (no offense amy, but you are always skippy on your readmes for us stoooopid n00bs. )

anyway her's what I was trying EXACTLY:

archive header
Code:
$output.="
<div align=\"center\" style=\"padding:4px;overflow:hidden;\">
<script type="text/javascript"><!--
google_ad_client = "pub-2448266096720402";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="0786918499";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

<!-- SiteSearch Google -->
<form method="get" action="http://www.google.com/custom" target="_top">
<table border="0" bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">

</td>
<td nowrap="nowrap">
<input type="hidden" name="domains" value="www.clantsu.org"></input>
<input type="text" name="q" size="35" maxlength="255" value=""></input>
<input type="submit" name="sa" value="Google Search"></input>
</td></tr>
<tr>
<td>&nbsp;</td>
<td nowrap="nowrap">
<table>
<tr>
<td>
<input type="radio" name="sitesearch" value="" checked="checked"></input>
<font size="-1" color="#000000">Web</font>
</td>
<td>
<input type="radio" name="sitesearch" value="www.clantsu.org"></input>
<font size="-1" color="#000000">www.clantsu.org</font>
</td>
</tr>
</table>
<input type="hidden" name="client" value="pub-2448266096720402"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="4507399014"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="flav" value="0000"></input>
<input type="hidden" name="sig" value="OFvSZsc0F28XTqlc"></input>
<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:000000;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:169;L:http://clantsu.org/forums/images/misc/vbulletin3_logo_white.gif;S:http://;FORID:1;"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
<!-- SiteSearch Google -->
</div>
<table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">
<tr><td width=\"85%\" valign=\"top\">
";
Archive Footer:
Code:
$output.="
<div align=\"center\" style=\"padding:4px; overflow: hidden;\">
<script type="text/javascript"><!--
google_ad_client = "pub-2448266096720402";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="1878637765";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
</td><td width=\"15%\" valign=\"top\">
<script type="text/javascript"><!--
google_ad_client = "pub-2448266096720402";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_type = "text_image";
google_ad_channel ="4640775997";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td>
</tr>
</table>
";
which gives me the errors as seen here: http://www.clantsu.org/forums/archive/index.php

what'd I do wrong?
Reply With Quote
  #187  
Old 07-24-2006, 05:26 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You missed a bunch of quotes. EVERY internal quote must have a \ in front of it.

OR change the external quotes to single quotes.

The internal ones are the ones that are in the google code itself. The external ones are the ones in the first and last lines of the plugin code.

I am leaving the mod with the escaped quotes version because many of us use alternative ads in addition too google and the other ad code uses single quotes.
Reply With Quote
  #188  
Old 07-24-2006, 11:51 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GrendelKhan{TSU
amy always has great hacks, but the WORST readmes. heh (no offense amy, but you are always skippy on your readmes for us stoooopid n00bs. )
Ditto
Reply With Quote
  #189  
Old 07-25-2006, 04:57 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amykhar
You missed a bunch of quotes. EVERY internal quote must have a \ in front of it.

OR change the external quotes to single quotes.

The internal ones are the ones that are in the google code itself. The external ones are the ones in the first and last lines of the plugin code.

I am leaving the mod with the escaped quotes version because many of us use alternative ads in addition too google and the other ad code uses single quotes.
woot! that did it. Thanks!!

for reference:
I just change first and last lines of code in each plugin from:


$output.="

(to)

$output.='


(and)

";

(to)

';


......that's it!! *boy do I wish that was in the readme. (would saved a looot of time hint hint nudge nudge. )

only issue now is the site search isn't crawling the site AT ALL. (0 results ). anyone happen to know why? :/
Reply With Quote
  #190  
Old 07-25-2006, 09:49 PM
Aunt Clara Aunt Clara is offline
 
Join Date: Jun 2006
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I followed the instructions, read the whole thread, am using version 3.5.4, and only changed the URLs and AdSense customer code and I am still getting an error message

Quote:
Parse error: syntax error, unexpected '<' in /home/domicook/public_html/forums/archive/index.php(255) : eval()'d code on line 1
Please somebody help me.
Reply With Quote
  #191  
Old 07-30-2006, 08:54 AM
Aneurysm's Avatar
Aneurysm Aneurysm is offline
 
Join Date: Jul 2006
Location: West Coast, USA
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Rock-on.
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 11:25 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.05280 seconds
  • Memory Usage 2,320KB
  • 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
  • (4)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