rsleegers
08-04-05, 06:59 AM
I liked the way 1.02 sorted Forums first by Project, then by Forum Name. Version 2.00 (CVS as of yesterday) did not have this option, so I changed a line of code in modules\forums\index.php
<form name="watcher" action="./index.php?m=forums&f=<?php echo $f;?>" method="post">
<tr>
<th nowrap="nowrap"><a href="?m=forums&orderby=forum_project,forum_name" class="hdr"><?php echo $AppUI->_( 'Project' );?></a></th>
<th nowrap="nowrap" width="25"><a href="?m=forums&orderby=watch_user" class="hdr"><?php echo $AppUI->_( 'Watch' );?></a></th>
<th nowrap="nowrap"><a href="?m=forums&orderby=forum_name" class="hdr"><?php echo $AppUI->_( 'Forum Name' );?></a></th>
<th nowrap="nowrap" width="50" align="center"><a href="?m=forums&orderby=forum_topics" class="hdr"><?php echo $AppUI->_( 'Topics' );?></a></th>
<th nowrap="nowrap" width="50" align="center"><a href="?m=forums&orderby=forum_replies" class="hdr"><?php echo $AppUI->_( 'Replies' );?></a></th>
<th nowrap="nowrap" width="200"><a href="?m=forums&orderby=forum_last_date" class="hdr"><?php echo $AppUI->_( 'Last Post Info' );?></a></th>
</tr>
Only the second line was changed, the rest are left for context. The original line was:
<th nowrap="nowrap">&nbsp;</th>
Once changed, you can click on "Project" in the first column. It is only remembered for the current session. I haven't looked at making it a permanent, default change.
<form name="watcher" action="./index.php?m=forums&f=<?php echo $f;?>" method="post">
<tr>
<th nowrap="nowrap"><a href="?m=forums&orderby=forum_project,forum_name" class="hdr"><?php echo $AppUI->_( 'Project' );?></a></th>
<th nowrap="nowrap" width="25"><a href="?m=forums&orderby=watch_user" class="hdr"><?php echo $AppUI->_( 'Watch' );?></a></th>
<th nowrap="nowrap"><a href="?m=forums&orderby=forum_name" class="hdr"><?php echo $AppUI->_( 'Forum Name' );?></a></th>
<th nowrap="nowrap" width="50" align="center"><a href="?m=forums&orderby=forum_topics" class="hdr"><?php echo $AppUI->_( 'Topics' );?></a></th>
<th nowrap="nowrap" width="50" align="center"><a href="?m=forums&orderby=forum_replies" class="hdr"><?php echo $AppUI->_( 'Replies' );?></a></th>
<th nowrap="nowrap" width="200"><a href="?m=forums&orderby=forum_last_date" class="hdr"><?php echo $AppUI->_( 'Last Post Info' );?></a></th>
</tr>
Only the second line was changed, the rest are left for context. The original line was:
<th nowrap="nowrap">&nbsp;</th>
Once changed, you can click on "Project" in the first column. It is only remembered for the current session. I haven't looked at making it a permanent, default change.