Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: yynwebhsu on June 30, 2006, 04:09:36 AM

Title: Finding the file to mod the 'search' page
Post by: yynwebhsu on June 30, 2006, 04:09:36 AM
Hey!

New to SMF...

Where can I find the file to mod the 'search' page?

Thanks!
weber
Title: Re: Finding the file to mod the 'search' page
Post by: GTSdll on June 30, 2006, 07:38:00 AM
That would be Themes/default/Search.template.php
Title: Re: Finding the file to mod the 'search' page
Post by: codenaught on June 30, 2006, 02:52:18 PM
Well, that is the right page if you just want to edit the layout of the search section. The core source code behind search can be found in Sources/Search.php
Title: Re: Finding the file to mod the 'search' page
Post by: yynwebhsu on July 06, 2006, 01:15:33 AM
Excellent! Both replies helped.

Thanks!
Title: Re: Finding the file to mod the 'search' page
Post by: qd-race on October 22, 2006, 03:29:14 AM
I want to add Google search. Which page should I mod. The Themes/default/Search.template.php or Sources/Search.php or both?

Thanks.
Title: Re: Finding the file to mod the 'search' page
Post by: qd-race on October 22, 2006, 06:35:28 AM
I can't find the right place to add Google AdSense search code. Could anybody help.
Title: Re: Finding the file to mod the 'search' page
Post by: qd-race on October 22, 2006, 08:40:36 AM
Finally, I found the place to add codes.

Find at line 185-189:

echo '
</td>
</tr>
</table>
</form>';


Add Google AdSense Code:

}

function template_results()
{