Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Changing Default Search Options
Avatar
Jenn Walker
Member
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 12:42 pm

I used your reboot-child theme and followed these instructions: 

https://simple-press.com/docum.....ild-theme/

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 12:47 pm

so you created a child right?  did you select that child as the theme you want to use?

in your theme, the templates directory, can you post the contents of spHead.php?

and then in your theme, the templates/desktop you copied over the spHeadDesktop.php file from the base reboot theme and edited that file to set up the arguments the way you want?

Avatar
Jenn Walker
Member
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 4:36 pm

so you created a child right?  did you select that child as the theme you want to use?

Yes, I followed the instructions that are in the codex to create a child by downloading the reboot-child theme. I also followed the instructions in changing the name of the theme and it is selected. 

in your theme, the templates directory, can you post the contents of spHead.php?

I don't understand your question.  The reboot-child that I added to my themes had a spHead.php file in it already.  I am not sure what content I would post in the spHead.php file when it states that I should use the spHeadDesktop.php file.

and then in your theme, the templates/desktop you copied over the spHeadDesktop.php file from the base reboot theme and edited that file to set up the arguments the way you want?

I have copied over this file, however I can't see it in the Theme Editor under Template Files.  Do I have to edit it in my hosts File Manager.  Why can't I see this file under the Theme Editor in the Forum options on the backend of my WP site?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 5:00 pm

because unfortunately, its standard wp theme editor which does not go many levels down...

so yes, edit via ftp or via control panel file manager...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 5:04 pm

but I will open a ticket to see if we can force it to go more levels deep... but sorry, wont help you right now...

Avatar
Jenn Walker
Member
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 5:41 pm

That is ok, thank you.  

Ok, so now that I have a child theme, I can go into the spHeadDesktop.php file in my c-panel file manager and edit it.  

PHP is like latin to me so I am not sure what I need to change to adjust my search options.  What I would like is to have the default set to search posts and topic titles.  I am unsure what to change in this file for that to happen. 

Can you direct me?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 5:46 pm

know the feeling since having to look at perl and ruby today... 😉

I gave it to you back in post 5... lol, seems like long ago doesn't it?  change

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

to

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

its just one character change...  1 to 3...

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 5:48 pm

You'd need to do exactly as Steve described in post #5

At the top of spHeadDesktop.php, you should have a long list of items under

# == Search FORM - OBJECT DEFINITION ========

At the very bottom of the list, you should see

'searchIncludeDef'        => 1,

1 defaults to 'Posts only', 2 defaults to 'Topic titles only', and 3 defaults to 'Posts and topic titles'. So change it to:

'searchIncludeDef'        => 3,

Should do the job!

Avatar
Jenn Walker
Member
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 5:58 pm

Great. Thank you. 

I would also like to remove the New/Updated Topics & Select Forum dropdowns.  I assume I do this in the same file.  Can you guide me to where those are at and how to remove them?

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Apr 26, 2015 - 6:04 pm

Sure, just find:

sp_QuickLinksForum('tagClass=spControl spRight', __sp('Select Forum'));
sp_QuickLinksTopic('tagClass=spControl spRight', __sp('New / Updated Topics'));

And comment them out with a hash at the start, i.e:

#sp_QuickLinksForum('tagClass=spControl spRight', __sp('Select Forum'));
#sp_QuickLinksTopic('tagClass=spControl spRight', __sp('New / Updated Topics'));

Commenting out is recommended over removing completely, as it's a lot easier to put them back in if you need to.

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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626