Быстрый лёгкий надёжный форумный движок
Вы не вошли.
1. Открываете файл userlist.php
2. После строки
$paging_links = '<span class="pages-label">'.$lang_common['Pages'].' </span>'.paginate($num_pages, $p, 'userlist.php?username='.urlencode($username).'&show_group='.$show_group.'&sort_by='.$sort_by.'&sort_dir='.$sort_dir);
добавляете строку
$link_for_title = 'userlist.php?username='.urlencode($username).'&show_group='.$show_group.'&'.(($p>1) ? 'p='.$p.'&' : '').'sort_by=';
3. Строки
<th class="tcl" scope="col"><?php echo $lang_common['Username'] ?></th>
<th class="tc2" scope="col"><?php echo $lang_common['Title'] ?></th>
<?php if ($show_post_count): ?> <th class="tc3" scope="col"><?php echo $lang_common['Posts'] ?></th>
<?php endif; ?> <th class="tcr" scope="col"><?php echo $lang_common['Registered'] ?></th>
заменяете на
<th class="tcl" scope="col"><?php echo (($sort_by == 'username') ? (($sort_dir == 'DESC') ? '↓ ' : '↑ ') : '').'<a href="'.$link_for_title.'username'.(($sort_by == 'username' && $sort_dir == 'ASC') ? '&sort_dir=DESC' : '').'">'.$lang_common['Username'].'</a>' ?></th>
<th class="tc2" scope="col"><?php echo $lang_common['Title'] ?></th>
<?php if ($show_post_count): ?> <th class="tc3" scope="col"><?php echo (($sort_by == 'num_posts') ? (($sort_dir == 'DESC') ? '↓ ' : '↑ ') : '').'<a href="'.$link_for_title.'num_posts'.(($sort_by == 'num_posts' && $sort_dir == 'ASC') ? '&sort_dir=DESC' : '').'">'.$lang_common['Posts'].'</a>' ?></th>
<?php endif; ?> <th class="tcr" scope="col"><?php echo (($sort_by == 'registered') ? (($sort_dir == 'DESC') ? '↓ ' : '↑ ') : '').'<a href="'.$link_for_title.'registered'.(($sort_by == 'registered' && $sort_dir == 'ASC') ? '&sort_dir=DESC' : '').'">'.$lang_common['Registered'].'</a>' ?></th>
4. Сохраняете файл userlist.php
Моя сборка FluxBB 1.5, ForkBB · сообщество
Offline