Hi,

For all the topic list columns (replies, created, last reply) I think the more common way people wil want them sorted is descending not ascending(showing the most replies first, showing most recent created or reply first etc). I can't figure out where this is happening though I gather it's buried in theming?

Anyway I just wanted to suggest the default be changed and ask if you can point me in the correct direction, where i can affect this myself.

thanks again for this forum it just keeps getting better and better.

Comments

stamd’s picture

I should probably clarify, I'm talking about when you click on any of the columns mentioned to resort, the default should be descending IMHO not ascending, and that's what i'm trying to change.

thanks

michelle’s picture

Status: Active » Fixed

This is core forum functionality. See ?q=admin/content/forum/settings .

Michelle

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

ball.in.th’s picture

Component: Theming » User interface

Hi,

Not sure about Drupal 5 but for Drupal 6, you can add something like this to your theme's template.php :

function changeme_preprocess_forum_topic_list(&$variables) {
  //change first click to desc except the active one (<th class="active">)
  $pattern = '/(<th>.+?)sort=asc(.+?<\/th>)/';
  $replacement = '$1sort=desc$2';
  $variables['header'] = preg_replace($pattern, $replacement, $variables['header']);
}