View Full Version : Search Box??
January 6th, 2013, 04:56 PM
Is the Search box movable? On my new install of 5.23 search moved from the menu bar to the top of my right column sidebar.
Can I configure that feature elsewhere? I looked in the Admin CP but couldn't find any option to move it.
January 6th, 2013, 05:00 PM
The search box is on the sidebar only. If you turn off the sidebar then a link will appear on the menubar like it use to.
If your trying to move the search box to somewhere else on the sidebar you can change the order in the actual sidebar templates themselves. Actually I beleive the first box is categories if your showing categories on the sidebar then search and so on.
January 6th, 2013, 05:23 PM
Is there anyway to have the sidebar, but tell the search to go into the menubar like it used to?
That top spot on the right sidebar is the number one earning spot on the whole page. I hate to waste it with "search"
January 6th, 2013, 05:28 PM
Not without you modifying the code to do that. The topmenu function is where the search link is in pp-inc.php and the sidebar_rightclose template I beleive is the one you also want to edit.
January 7th, 2013, 02:10 PM
Ok, I commented out the following:
if ( $Globals['sidebar'] == "off" )
And, in the sidebar_rightclose.tmpl
include( "$Globals[tmpldir]/searchbox.tmpl" );
And Search is no longer at the top of the right hand column and is a link on the Menubar like it used to be.
I'd like to suggest that on future versions you make the search box location an admin item. So, that users can choose where they want search to be located.
January 7th, 2013, 02:15 PM
Acutally, I just went back in and added the include for the searchbox after Custom Pal #1 to put it back in the sidebar. Nothing wrong with have search on the menubar and in the sidebar too. Just not in the number one income earning spot.
January 7th, 2013, 04:09 PM
You can post any code mods you want in the mod forums if that is what you desire but make sure you post full instructions for other users as your post above you only say you comment out the if clause but you forget to make note that you also have to comment out the brackets. ;)
January 7th, 2013, 04:21 PM
Not to discuss a mod here -- but I didn't comment out any brackets. I'm probably wrong but I could not see any that applied to these two lines of code.
It appeared to me that the brackets before these lines of code were closed, and the brackets after the lines of code were opened for the next IF statement. As I said, I'm probably wrong about this. All I know is it worked for me -- dumb luck, as it were.
And, I only posted what I did here, so that any other user following would see a workaround that might interest them. Just trying to help.
As everyone can tell, I'm fair from confident enough in my modification to post an official mod in the mod section.
January 7th, 2013, 04:33 PM
The search link was contained within an if clause so you would also comment out any brackets. That is why I posted in the first place above.
I am pointing out that you can post mods in the mod forums because there is no need to post your mods here in a support thread.
January 7th, 2013, 04:34 PM
Gotcha. I know this isn't a mods forum.
January 7th, 2013, 05:22 PM
No problem I just do not want people coming here for mods help here in support if they see this ;)
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.