1 lexagon Jun 17, 2006 23:52
3 lexagon Jun 20, 2006 21:11
Hello Danny, thanks for the tip! :-)
How would I set the cookie?
And: Is there a way to display the current sort status?
Thx! Best regards,
'lex
4 personman Jun 21, 2006 15:49
Lex,
I've been playing around with this and it's not as easy as I expected. By the time the skin files are executed, the $_POST array seems to have been cleared. So, there's no good way to check for the order parameter in the url and set cookies based on that.
Displaying the current sort order is easy, though:
echo 'Post order: '.$order;
5 edb Jun 21, 2006 23:55
I wonder if you can do a stub file with $order=asc and point to a blog that either has another stub defined or doesn't use stubs?
You could just have a link that goes to your blog, but adds ?order=asc on the end of the url (like [url=http://www.alexandermaiwald.de/pri/index.php/a?order=asc]this[/url]). If you wanted it to persist you could set a cookie to send that every time.