_________________ Famous people never give their signature http://www.cpgnuke.com <- back online thanks to dedicatednow.com
Don't ask me to be admin on your site please
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Mon Mar 01, 2004 7:31 am
I would guess valid sort orders would be ascending and descending, if that is the case then the following would do:
In viewtopic.php find:
Code:
//
// Decide how to order the post display
//
if ( !empty($HTTP_POST_VARS['postorder']) || !empty($HTTP_GET_VARS['postorder']) )
{
$post_order = (!empty($HTTP_POST_VARS['postorder'])) ? $HTTP_POST_VARS['postorder'] : $HTTP_GET_VARS['postorder'];
After add:
Code:
if (!eregi("^((asc)|(desc))$",$post_order) )
{
message_die(GENERAL_ERROR, 'Selected post order is not valid');
}
To test it view any topic and at the end of the url add:
Code:
&postorder=chatserv
Not the result kiddies would expect.
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
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