Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-03-23 05:37:22

mikkeX
Archived Plugin Author
Registered: 2004-02-26
Posts: 74

Re: Paging and search results

Where should I edit?

Offline

#14 2006-03-23 07:51:39

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Paging and search results

Try opening up /textpattern/publish/search.php, and right after:
$url = $prefs['siteurl'];

insert:
$q = urldecode($q);

If that works, let me know and I’ll send a patch in.

Offline

#15 2006-03-23 08:08:56

mikkeX
Archived Plugin Author
Registered: 2004-02-26
Posts: 74

Re: Paging and search results

Mary, thanks for the help, but that did not work. Result is the same.

Offline

#16 2006-03-24 02:40:51

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Paging and search results

Oh wait, they moved the search stuff, I keep forgetting that. Sorry.

publish.php, line 479: global $pretext, $prefs, $txpcfg;. Right after that add $q = urldecode($q);

Offline

#17 2006-03-24 05:25:39

mikkeX
Archived Plugin Author
Registered: 2004-02-26
Posts: 74

Re: Paging and search results

Almost – now I get page two of the reults. But page three does not work the url becomes:
http://etc.se/?pg=3&q=johan%252Behrenberg

Offline

#18 2006-03-25 06:59:55

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Paging and search results

It looks like the paging tags themselves also have problems. Now open up /publish/taghandlers.php, and find the “older” function, starting on line 648.

Find the line that starts: $url = pagelinkurl(ar… (667)

and after it insert: $url = urldecode($url);

Offline

#19 2006-03-25 07:06:26

mikkeX
Archived Plugin Author
Registered: 2004-02-26
Posts: 74

Re: Paging and search results

Yes! Thank you Mary, that did it.

Offline

#20 2006-03-25 07:36:57

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Paging and search results

Okay great, off to make a patch. :)

(Edit: you’ll likely need to do the same for the “newer” tag too.)

Last edited by Mary (2006-03-25 07:41:13)

Offline

Board footer

Powered by FluxBB