Author Topic: Search results pagination does not work. Help me pls!  (Read 2587 times)

0 Members and 1 Guest are viewing this topic.

Offline Zealotry

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Search results pagination does not work. Help me pls!
« on: November 13, 2013, 06:18:34 AM »
Shared / VPS / Dedicated server:  Dedicated server

Script Version:  1.1.0-SS
PHP Version: 5.3.3
MySQL Version: 5.1.69

Have you tried the server test script:
If yes, results (all passed, some issues (if so what?)): all passed

Have you modified any code yourself:
If yes, briefly describe changes:  Yes. I have added ads and changed the design, also changed per_page variable from 20 to 3 in the search.php to fit my design

Link to site: http://allsexlinks.info

Description of issue: When I search in the search bar I get results but pagination of these results does not work.
Example:
I search for brunette in the search bar and this page appears http://allsexlinks.info/search.php?s=brunette&p=&pp=
but when I click next, it does not show 2nd page, ie.e http://allsexlinks.info/search.php?s=brunette&p=2&pp=

My search code looks like this:
Code: [Select]
<form method="get" action="search.php"> 
<input type="text" name="s" size="30" value="">
<input type="hidden" name="p" id="p" value="{$page|htmlspecialchars}">
<input type="hidden" name="pp" value="{$per_page|htmlspecialchars}">
<input type="submit" value="Search">
</form>

How do I fix search pagination? Any ideas?

Offline Chad

  • Administrator
  • Full Member
  • ***
  • Posts: 215
  • Karma: +27/-0
    • View Profile
Re: Search results pagination does not work. Help me pls!
« Reply #1 on: November 17, 2013, 07:50:59 PM »
I believe you need your code on your page templates to look like this:

Code: [Select]
<form method="get" action="search.php"> 
<input type="text" name="s" size="30" value="">
<input type="hidden" name="p" id="p" value="">
<input type="hidden" name="pp" value="3">
<input type="submit" value="Search">
</form>

If you have made changes to search.php you may need to revert them back.

Offline Zealotry

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Search results pagination does not work. Help me pls!
« Reply #2 on: November 17, 2013, 11:35:05 PM »
That did not really work. I replaced search.php with it's original and added the code you posted. No effect.

Unofficial JMB Support Forums

Re: Search results pagination does not work. Help me pls!
« Reply #2 on: November 17, 2013, 11:35:05 PM »


 

Related Topics

  Subject / Started by Replies Last post
1 Replies
829 Views
Last post January 05, 2013, 08:22:10 AM
by Rockhound
0 Replies
937 Views
Last post July 18, 2013, 11:03:07 AM
by mrsshow
0 Replies
761 Views
Last post July 26, 2013, 10:36:56 PM
by MRB
0 Replies
852 Views
Last post March 05, 2014, 11:40:25 AM
by greg
0 Replies
1429 Views
Last post March 11, 2015, 02:23:42 PM
by scsi

anything