Results 1 to 3 of 3
  1. #1
    Senior Member peppolone's Avatar
    Joined
    Dec 2006
    Posts
    194
    Thanks
    Received:1
    Given: 0

    Search pagination with urlmethod 2 (HOWTO) and tag pagination problem!

    That's how I modified to use urlmethod 2 in search pagination
    u can see in the bottom of
    Upnews / Risultati ricerca per videogiochi
    Sorry for my english!

    First in .htacces replace
    Code:
    RewriteRule ^search/(.+)/?$ search.php?search=$1
    RewriteRule ^searchurl/(.+)/?$ search.php?url=$1
    with
    Code:
    RewriteRule ^search/([^/]+)/?$ search.php?search=$1
    RewriteRule ^searchurl/([^/]+)/?$ search.php?url=$1
    because if u use the first type
    Code:
    RewriteRule ^search/any character after like page...
    is useless

    Now replace
    Code:
    RewriteRule ^search/page/([^/]+)/search/([^/]+)/?$ search.php?page=$1&search=$2 [QSA,NC,L]
    with
    Code:
    RewriteRule ^search/page/([^/]+)/([^/]+)/?$ search.php?page=$1&search=$2 [QSA,NC,L]
    ok go to /libs/html1 and replace all
    Code:
    <a href="'.my_pligg_base.'/'.pagename.'.php?page='.$i.'&'.$query.'">
    I think line 293,306,321,336,349
    with
    <a href="'.my_pligg_base.'/'.pagename.'/page/'.$i.'/'.$query.'">

    Add in line 278
    Code:
    $query=preg_replace('(search=)', '', $query);					//remove by giuseppe argento
    Because i use an image in input type of the search, when i do a search is returned &x=0&y=0
    ex. if i search blog return Upnews / Risultati ricerca per blog
    so i added these lines, i think however good for all (line 278)
    Code:
    		$query=preg_replace('/x=[0-9]+/', '', $query);					//remove by giuseppe argento
    		$query=preg_replace('/y=[0-9]+/', '', $query);					//remove by giuseppe argento
    Plz say me if work for you.
    Now i'll try the search in urlmethod2!

  2. #2
    Senior Member peppolone's Avatar
    Joined
    Dec 2006
    Posts
    194
    Thanks
    Received:1
    Given: 0
    There isn't the pagination in the tag page.

  3. #3
    Senior Member peppolone's Avatar
    Joined
    Dec 2006
    Posts
    194
    Thanks
    Received:1
    Given: 0
    I fixed the problem for the pagination in the tag page, see here

Similar Threads

  1. Search pagination no working URL Method 2
    By moma in forum Questions & Comments
    Replies: 1
    Last Post: 01-05-2012, 09:14 PM
  2. Howto replace internal search engine with google adsense one
    By GuaranteeSuccess in forum Questions & Comments
    Replies: 3
    Last Post: 12-16-2010, 09:22 PM
  3. Search pagination not working
    By swissbob2 in forum Questions & Comments
    Replies: 7
    Last Post: 01-09-2008, 12:29 PM
  4. Search and pagination bug!
    By dollars5 in forum Questions & Comments
    Replies: 1
    Last Post: 04-28-2007, 09:26 AM
  5. URLMethod = 2 pagination bug
    By fwebz in forum Questions & Comments
    Replies: 4
    Last Post: 02-08-2006, 07:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Web Hosting Services by Midphase Dreamhost Web Hosting Donate to Pligg