News:

Welcome to SMF Ads Support Forum

Main Menu
Coinbase

Help with implementing adsense for search for Dilber MC

Started by esha, April 18, 2007, 06:31:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

esha

I searched & searched over at the SMF board on how to install the Adsense for search code...


This thread seemed to be the only thing i can find to where it actually shows you how to install the code, In Search.php

http://www.simplemachines.org/community/index.php?topic=96364.0

I put the code in but all it did was cause a error...

I really need some advice on what i need to do to get things working..Thanks


esha

This is the error i get from putting the code in Themes/default/Search.template.php




Template Parse Error!
There was a problem loading the /Themes/default/Search.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected '<' in .../Themes/default/Search.template.php on line 185
176:             </td>
177:          </tr>
178:       </table>
179:    </form>';
180:
181: }
182:
183: function template_results()
184: {
185: <!-- SiteSearch Google -->
186: <form method="get" action="http://www.google.com/custom" target="_top">
187: <table border="0" bgcolor="#ffffff">
188: <tr><td nowrap="nowrap" valign="top" align="left" height="32">
189: <a href="http://www.google.com/">

bigguy

Try changing this:

   </form>';

To this:

   </form>\';

esha

Still didn't work, this is the new error i get



Template Parse Error!
There was a problem loading the /Themes/default/Search.template.php template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

You may want to try to refresh this page or use the default theme.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in .../Themes/default/Search.template.php on line 230
221: <input type="hidden" name="hl" value="en"></input>
222: </td></tr></table>
223: </form>
224: <!-- SiteSearch Google -->
225:
226:
227:
228:    global $context, $settings, $options, $txt, $scripturl;
229:
230:    if (isset($context['did_you_mean']) || empty($context['topics']))
231:    {
232:       echo '
233:    <div class="tborder">
234:       <table width="100%" cellpadding="4" cellspacing="0" border="0" class="bordercolor" style="margin-bottom