 |
 |
 |
 |
 |
| Author |
Message |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
| Fri Nov 10, 2006 1:14 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
Is there no fix? I checked and this happens on all sites of mine that use the search function regardless of txtsql or mysql database. Is it perhaps because it uses the same next, previous, and {pages} links as any other page? It doesn't code in the search parts into the URL? How can I create new tags just for the search area or edit the code and put that in place. I tried tweaking it but I keep messing it up.
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Mon Nov 13, 2006 6:11 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2801 Location: Germany |
|
|
|
Open inc/show.news.php and add this to the link generation codes:
 |  | '.($_GET['search'] ? '&do=search&search='.$_GET['search'] : '').' |
For example, change this:
 |  | $pages .= '<a href="'.$PHP_SELF.'?skip='.$pages_skip.'">'.$j.'</a> '; |
to this:
 |  | $pages .= '<a href="'.$PHP_SELF.'?skip='.$pages_skip.''.($_GET['search'] ? '&do=search&search='.$_GET['search'] : '').'">'.$j.'</a> '; |
|
|
| Mon Nov 13, 2006 11:48 am |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
it seemed to make no difference ;( that doesn't make sense though. i see what you did with the code and it looks like it should work perfect. do you think iframes might break it?
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Mon Nov 13, 2006 8:43 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
|
I was going to write how I couldn't figure it out but I did. I didn't realize I had to change it so many times. So I changed all 4 of the spots you mentioned then I had to change it here too:
 |  | //----------------------------------
// Previous link
//----------------------------------
if ($skip){
$prev_next_msg = preg_replace('/\[prev-link\](.*?)\[\/prev-link\]/si', '<a href="'.$PHP_SELF.'?skip='.($skip - $number).''.($_GET['search'] ? '&do=search&search='.$_GET['search'] : '').'">\\1</a>', $prev_next_msg);
} else {
$prev_next_msg = preg_replace('/\[prev-link\](.*?)\[\/prev-link\]/si', '', $prev_next_msg);
$no_prev = true;
} |
 |  | //----------------------------------
// Next link
//----------------------------------
if ($skip + $number < $count){
$prev_next_msg = preg_replace('/\[next-link\](.*?)\[\/next-link\]/si', '<a href="'.$PHP_SELF.'?skip='.($skip + $number).''.($_GET['search'] ? '&do=search&search='.$_GET['search'] : '').'">\\1</a>', $prev_next_msg);
} else {
$prev_next_msg = preg_replace('/\[next-link\](.*?)\[\/next-link\]/si', '', $prev_next_msg);
$no_next = true;
}
$prev_next_msg = run_filters('prev-next-msg', $prev_next_msg);
if (!$no_prev or !$no_next){
echo $prev_next_msg;
} |
It works perfect everywhere. You are awesome. 
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Thu Nov 16, 2006 10:55 am |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1943 Location: US |
|
|
| Sat Dec 16, 2006 9:05 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
|
|
 |
 |
 |
|