 |
 |
 |
 |
 |
| Author |
Message |
Torstein
Joined: 03 Aug 2006 Posts: 119
|
|
Problem with search |
|
My search doesn't function properly while viewing newsposts or categories, it does however function just fine while on the main site.
Check it out:
http://buekorpsene.com/index2.php (main page)
http://buekorpsene.com/index2.php/2007/02/13/informasjon-ang-ende-nygaards-jubileum.html (newspost)
http://buekorpsene.com/index2.php/category/1 (category)
My includes:
I use two includes to display my news, one is for the main news and for the search, while the other is for showing news headlines.
 |  | <?php
if ($do == 'search'){
include ('backend/search.php');
}else{
$number = "5";
$template = "Default";
include('/hsphere/local/home/thuneni3/buekorpsene.com/backend/show_news.php');
}
?> |
 |  | <?php
if ($do == 'search'){
}else{
echo'<h2>Siste Nyhetsoverskrifter</h2>
Du kan finne eldre nyheter med vår <a href="http://buekorpsene.com/backend/search.php">søkemotor</a>.
<table style="width:100%;margin:2px;border:1px solid #cccccc;">';
$static['template'] = 'Headlines';
$static['number'] = '15';
$static['category'] = '1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19';
include $cutepath.'/show_news.php';
echo'</table>';
}
?> |
My search form:
 |  | <form method="post" action="" style="padding-top: .5em;">
<input name="do" type="hidden" value="search" />
<input type="text" id="search" name="search" value="<?=$search; ?>" />
<input type="submit" value="søk" />
</form> |
I have installed the following plugins:
CN functions, Custom Quick Tags, Enable/Disable Comments, Feed Importer, Latest comments in admin, Meta tags, Multiple authors, Preview comments, Private Messaging, Smilie Manager, TrackBack, User.Registration, resizeAvatar (yes I'm a plugin whore )
I'm using FI-DD's boolean search.php. (I had the same problem with the native search.php though).
Any ideas?
|
|
| Fri Mar 23, 2007 4:43 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
In your search form try changing this:
 |  | <form method="post" action="" style="padding-top: .5em;"> |
to this:
 |  | <form method="post" action="index2.php" style="padding-top: .5em;"> |
|
|
| Tue Mar 27, 2007 6:07 pm |
|
 |
Torstein
Joined: 03 Aug 2006 Posts: 119
|
|
|
|
Thanks for trying, but I've still got some problems with it:
While viewing a news post it now only searches in news from the date that news post was posted.
While viewing a category it only redirects to the main page.
Any ideas?
Edit
Changed action="index2.php" to action="/index2.php", and now it seems to be working perfectly.
A big thank you from me, for pointing me in the right direction 
|
|
| Tue Mar 27, 2007 8:46 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|