Coinbase

Author Topic: Help with implementing adsense for search for Dilber MC  (Read 2838 times)

0 Members and 1 Guest are viewing this topic.

Offline esha

  • Newbie
  • *
  • Posts: 3
Help with implementing adsense for search for Dilber MC
« on: April 18, 2007, 05:31:23 pm »
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

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Help with implementing adsense for search for Dilber MC
« Reply #1 on: April 26, 2007, 09:45:34 am »
What error did you recieve. ???

Offline esha

  • Newbie
  • *
  • Posts: 3
Re: Help with implementing adsense for search for Dilber MC
« Reply #2 on: April 29, 2007, 03:07:41 pm »
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/">

Offline bigguy

  • Support
  • Elite Member
  • *
  • Posts: 1518
    • SMF Helper
Re: Help with implementing adsense for search for Dilber MC
« Reply #3 on: April 29, 2007, 09:55:58 pm »
Try changing this:

   </form>';

To this:

   </form>\';

Offline esha

  • Newbie
  • *
  • Posts: 3
Re: Help with implementing adsense for search for Dilber MC
« Reply #4 on: May 01, 2007, 09:03:24 pm »
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

SMF Ads Support Forum

Re: Help with implementing adsense for search for Dilber MC
« Reply #4 on: May 01, 2007, 09:03:24 pm »
.