Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2010-11-22 16:55:59

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,518
Website

[MOD] Clickable for heading of userlist

1. OPEN FILE userlist.php
2. FIND

$paging_links = '<span class="pages-label">'.$lang_common['Pages'].' </span>'.paginate($num_pages, $p, 'userlist.php?username='.urlencode($username).'&amp;show_group='.$show_group.'&amp;sort_by='.$sort_by.'&amp;sort_dir='.$sort_dir);

AFTER, ADD

$link_for_title = 'userlist.php?username='.urlencode($username).'&amp;show_group='.$show_group.'&amp;'.(($p>1) ? 'p='.$p.'&amp;' : '').'sort_by=';

3. FIND

                    <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>

REPLACE WITH

                    <th class="tcl" scope="col"><?php echo (($sort_by == 'username') ? (($sort_dir == 'DESC') ? '&darr; ' : '&uarr; ') : '').'<a href="'.$link_for_title.'username'.(($sort_by == 'username' && $sort_dir == 'ASC') ? '&amp;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') ? '&darr; ' : '&uarr; ') : '').'<a href="'.$link_for_title.'num_posts'.(($sort_by == 'num_posts' && $sort_dir == 'ASC') ? '&amp;sort_dir=DESC' : '').'">'.$lang_common['Posts'].'</a>' ?></th>
<?php endif; ?>                    <th class="tcr" scope="col"><?php echo (($sort_by == 'registered') ? (($sort_dir == 'DESC') ? '&darr; ' : '&uarr; ') : '').'<a href="'.$link_for_title.'registered'.(($sort_by == 'registered' && $sort_dir == 'ASC') ? '&amp;sort_dir=DESC' : '').'">'.$lang_common['Registered'].'</a>' ?></th>

4. SAVE FILE userlist.php

7777777777.th.gif

Offline

Board footer

Powered by FluxBB