Should there be a searchbox?


 

Current User: Guest Login Register
Please consider registering

Search 
Search Forums:


 




Should there be a searchbox?

Add a New Topic Reply to Post
UserPost

9:04 pm
November 30, 2007


Lilli

Guest

I uploaded the search_pages.php file to the plugins folder and then "switched it on". Should I add something to my sidebar to make it work / appear there?

 I can´t remember which version I´m using. It´s likea a year old, so I guess it´s an old one :)

Any ideas?

1:42 am
December 1, 2007


Jean-Luc

Admin

posts 220

The search box will appear as defined in your theme.

Check if there is a searchform.php  in your theme. If there is none, copy the searchform.php  from the default theme and "include" it where you need it in the sidebar.php  of your theme with :

<?php
  include (TEMPLATEPATH . '/searchform.php');
?>

Jean-Luc

 

 

3:18 pm
December 4, 2007


Lilli

Guest

Thanks! Now it works like a charm. How weird that that file was missing from my theme.  

Very happy. Laughing

2:00 pm
April 24, 2008


Keith

Guest

Thanks for creating this plugin.


I am having the same problem as noted above. In turn, I am having a difficult time trying to understand your solution. I would greatly appreciate it if you could provide a Dummies Version.


FYI - My theme has a search.php file. I have Search widget option, however, I do not like the way it appears / functions. Hence why I am trying to utilize your plugin / widget.


I have dowloaded your file search_pages.php and uploaded it to my Plugins directory on my server. In turn, I have activated your Plugin… however, it is not appearing on my blog.


I tried adding the code
you suggested above…


<?php
include (TEMPLATEPATH . '/searchform.php');
?>

… to my l_sidebar.php file and uploaded it… however, nothing has changed.


Any suggestions would be greatly appreciated.


3:06 pm
April 24, 2008


Jean-Luc

Admin

posts 220

Hi,


There could be a compatibility issue with your theme. Can you temporarily replace the searchform.php of your theme by the one from the default theme and try again ?


If this does not help, let me know what theme you are using and under what version of WordPress.

6:31 pm
April 24, 2008


Keith

Guest

Thanks for your quick response.


I tried renaming search_pages.php to search.php and replacing the original search.php file. In turn, I uploaded the file to the server and added the widget to my sidebar. However, interestingly the search GUI looks the same as the original. Therefore I will assume I did something wrong.


Any other suggestions? I am using Wordpress 2.5 and the Nightlife theme. http://www.optimizedexecutive.com/


I will leave the current search widget online so you can see how poor it looks.


Thanks again.

12:23 am
April 25, 2008


Jean-Luc

Admin

posts 220

search_pages.php (from the plugin) is not supposed to replace search.php (from the theme):

  • searchform.php (from the theme) adds a searchbox to the page;
  • search.php (from the theme) creates a page with search results;
  • search_pages (from the plugin) changes the way WordPress searches.

In my previous post, I suggested that you replace searchform.php in your /wp-content/themes/nightlife/ directory by the version of searchform.php that you will find in your /wp-content/themes/default/ directory.


Does this work better ?

12:38 pm
April 25, 2008


Keith

Guest

I found the search form code in my Nightlife theme… it is hidden in the Style.css file. See code below.

I realize my question is above an beyond your plugin at this point, however I would greatly appreciate it if you could tell me how to get rid of the “Search” button on my search GUI.. alternatively, I would like to simply have the text “Search” in my input field… and require people to hit enter to process the search. This would make it look a lot cleaner.


In addition, there are two little black dots to the left of my input field and two little black dots below the current “Search” button… any idea how I can rid of these?


Thanks again.


/************************************************
* Search Form *
************************************************/

#searchdiv {
margin: 0px;
padding 0px;
}

#searchform {
margin: 0px;
padding: 0px;
overflow: hidden;
}

#s {
width: 190px;
background: #EFEFEF url(images/search.gif);
color: #333333;
font-size: 11px;
font-family: Verdana, Helvetica, Sans-Serif;
padding: 3px;
margin: 8px 0px 0px 10px;
border: 1px solid #C0C0C0;
}

7:39 am
April 26, 2008


Jean-Luc

Admin

posts 220

Good to see that Search Pages now works in your blog !


In order to make the word “Search” appear within the search bar, you need to add value="Search" within the “input” line of the search form.


The existing “Search” button will disappear if you remove the “input” line containing type="submit" value="Search" .

And I don't know from where the two little black dots are coming.


These new questions are out of the scope of this forum, but I hope that my partial answers will help you anyway.

Add a New Topic Reply to Post


Reply to Topic: Should there be a searchbox?

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 4 + 5        (Required)

Topic Reply:


 

WebStats1


About the InternetOfficer.com forum

Currently Online:

3 Guests

Maximum Online: 20

Forums:

Groups: 2

Forums: 7

Topics: 103

Posts: 492

Members:

There are 25 members

There are 94 guests


Jean-Luc has made 220 posts

Top Posters:

Steve - 14

angelko - 4

cwei - 4

Kinglui - 3

vtroymck - 3

Administrator: Jean-Luc | Moderators: Jean-Luc


© Simple:Press Forum - Version 3.1.2 (Build 340)