The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Put Adsense Banners in Your Archive Details »» | |||||||||||||||||||||||||
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
|
Comments |
#182
|
||||
|
||||
Quote:
|
#183
|
|||
|
|||
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 |
#184
|
||||
|
||||
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)
|
#185
|
|||
|
|||
Hello ConqSoft,
Thank you for your reply message. I unistalled, modified the xml product carefully and re-uploaded. It works fine now. Regards, Induslady |
#186
|
||||
|
||||
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> </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\"> "; 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> "; what'd I do wrong? |
#187
|
||||
|
||||
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. |
#188
|
|||
|
|||
Quote:
|
#189
|
||||
|
||||
Quote:
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? :/ |
#190
|
|||
|
|||
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:
|
#191
|
||||
|
||||
Thanks, Rock-on.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|