Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
themes-topic
forum search
Avatar
mary white
Rookie
Free Members
sp_UserOfflineSmall Offline
Feb 26, 2013 - 6:49 pm

The forum search seems to find information in the post part but not the topic? found that the advance search allows for a search on the post and topic.

Is there a way to set the default search to uses the post and topic?

 

Avatar
Brandon
U.S.
SP Wrangler
Free Members
sp_UserOfflineSmall Offline
Feb 26, 2013 - 9:22 pm

You bet.

It is done by changing the default setting in the theme's template's file. There are a set list or parameters in the spHead.php file in the theme's /templates folder.

You would change this line to a 3

 searchIncludeDef'=> 1,  # 1 = content, 2 = titles, 3 = content and title (warning #3 is a resource hog)

As you can see #3 demands more resources. The codex article http://codex.simple-press.com/.....earchform/ goes through this in more detail and shows all the lines that can be changed.

If you get into changing your SP theme you should create a custom one if you haven't already. Details on that. http://codex.simple-press.com/.....g-a-theme/

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625