Advertisement:

Author Topic: Finding the file to mod the 'search' page  (Read 3648 times)

Offline yynwebhsu

  • Semi-Newbie
  • *
  • Posts: 42
Finding the file to mod the 'search' page
« 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
« Last Edit: July 06, 2006, 01:46:50 AM by Amacythe »

Offline GTSdll

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
    • GTSdll Homepage
Re: Finding the file to mod the 'search' page
« Reply #1 on: June 30, 2006, 07:38:00 AM »
That would be Themes/default/Search.template.php
---> GTSdll Homepage [nofollow] <---

Offline codenaught

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 14,653
  • Gender: Male
  • Formerly Known As akabugeyes
Re: Finding the file to mod the 'search' page
« Reply #2 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
Dev Consultant
Former SMF Doc Coordinator

Offline yynwebhsu

  • Semi-Newbie
  • *
  • Posts: 42
Re: Finding the file to mod the 'search' page
« Reply #3 on: July 06, 2006, 01:15:33 AM »
Excellent! Both replies helped.

Thanks!

Offline qd-race

  • Semi-Newbie
  • *
  • Posts: 70
  • Gender: Male
  • qd-race.com | replica2u.com
Re: Finding the file to mod the 'search' page
« Reply #4 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.

Offline qd-race

  • Semi-Newbie
  • *
  • Posts: 70
  • Gender: Male
  • qd-race.com | replica2u.com
Re: Finding the file to mod the 'search' page
« Reply #5 on: October 22, 2006, 06:35:28 AM »
I can't find the right place to add Google AdSense search code. Could anybody help.

Offline qd-race

  • Semi-Newbie
  • *
  • Posts: 70
  • Gender: Male
  • qd-race.com | replica2u.com
Re: Finding the file to mod the 'search' page
« Reply #6 on: October 22, 2006, 08:40:36 AM »
Finally, I found the place to add codes.

Find at line 185-189:

Code: [Select]
echo '
</td>
</tr>
</table>
</form>';

Add Google AdSense Code:

Code: [Select]
}

function template_results()
{