vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Put Adsense Banners in Your Archive (https://vborg.vbsupport.ru/showthread.php?t=100299)

UK Jimbo 07-12-2006 09:39 PM

Quote:

Originally Posted by GrendelKhan{TSU
...can you explain that again? I don't understand what you mean. :(

Give the attached a try...

induslady 07-18-2006 12:18 AM

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

ConqSoft 07-18-2006 05:33 PM

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)

induslady 07-20-2006 10:09 PM

Hello ConqSoft,

Thank you for your reply message.

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

Regards,
Induslady

GrendelKhan{TSU 07-24-2006 05:04 PM

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? :confused:

amykhar 07-24-2006 05:26 PM

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.

Kihon Kata 07-24-2006 11:51 PM

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

GrendelKhan{TSU 07-25-2006 04:57 AM

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!! :D :D *boy do I wish that was in the readme. (would saved a looot of time ;) hint hint nudge nudge. :p)

only issue now is the site search isn't crawling the site AT ALL. (0 results :eek: ). anyone happen to know why? :/

Aunt Clara 07-25-2006 09:49 PM

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.

Aneurysm 07-30-2006 08:54 AM

Thanks, Rock-on.


All times are GMT. The time now is 05:05 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01271 seconds
  • Memory Usage 1,756KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete