MC600
YaBB God
Posts: 968
Jetzt habe ich Zähne!
|
|
Re:Anordnung der Seitenzahlen in der memberlist
« Reply #1 on: January 30, 2004, 12:56:21 PM » |
|
Suche nach diesem Block:
function MLAll () { global $user, $txt, $start, $MembersPerPage, $settings, $allow_hide_email, $color, $TableHeader, $MOST_POSTS; global $imagesdir, $cgi, $TableFooter, $db_prefix; global $NUM_MEMBERS, $yytitle;
if ($user == 'Guest') fatal_error($txt[223]);
# Get the number of members $memcount = $NUM_MEMBERS; if ($start == '') $start = 0;
$numbegin = $start + 1; $numend = ($start + $MembersPerPage); if ($numend > $memcount) $numend = $memcount;
$yytitle = "$txt[308] $numbegin $txt[311] $numend"; template_header();
echo ' <table border="0" cellspacing="0" cellpadding="3" align="center" width="100%"> <tr> <td bgcolor="' . $color['titlebg'] . '" align="center" class="titlebg"> <font size="2" class="text1" color="' . $color['titletext'] . '"><b>' . $txt[308] . ' ' . $numbegin . ' ' . $txt[311] . ' ' . $numend . ' (' . $txt[309] . ' ' . $memcount . ' ' . $txt[310] . ')</b></font> </td> </tr> </table>';
echo $TableHeader;
$query = "SELECT memberName,realName,websiteTitle,websiteUrl,posts,memberGroup,ICQ,AIM,YIM,MSN,emailAddress,hideEmail,ID_MEMBER FROM {$db_prefix}members WHERE 1 LIMIT $start,$MembersPerPage"; printMemberListRows($query);
echo $TableFooter;
echo ' <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td> <font size="2"> <b>' . $txt[139] . ':</b>'; $c = 0; while (($c*$MembersPerPage) < $NUM_MEMBERS) { $viewc = $c + 1; $strt = $c * $MembersPerPage; if ($start == $strt) echo " $viewc"; else echo " <a href=\"$cgi;action=mlall;start=$strt\">$viewc</a>"; $c++; } echo ' </font> </td> </tr> </table>';
footer(); obExit(); }
und ersetze ihn durch:
function MLAll () { global $user, $txt, $start, $MembersPerPage, $settings, $allow_hide_email, $color, $TableHeader, $MOST_POSTS; global $imagesdir, $cgi, $TableFooter, $db_prefix; global $NUM_MEMBERS, $yytitle;
if ($user == 'Guest') fatal_error($txt[223]);
# Get the number of members $memcount = $NUM_MEMBERS; if ($start == '') $start = 0;
$numbegin = $start + 1; $numend = ($start + $MembersPerPage); if ($numend > $memcount) $numend = $memcount;
$yytitle = "$txt[308] $numbegin $txt[311] $numend"; template_header();
echo ' <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td> <font size="2"> <b>' . $txt[139] . ':</b>'; $c = 0; while (($c*$MembersPerPage) < $NUM_MEMBERS) { $viewc = $c + 1; $strt = $c * $MembersPerPage; if ($start == $strt) echo " $viewc"; else echo " <a href=\"$cgi;action=mlall;start=$strt\">$viewc</a>"; $c++; } echo ' </font> </td> </tr> </table>';
echo ' <table border="0" cellspacing="0" cellpadding="3" align="center" width="100%"> <tr> <td bgcolor="' . $color['titlebg'] . '" align="center" class="titlebg"> <font size="2" class="text1" color="' . $color['titletext'] . '"><b>' . $txt[308] . ' ' . $numbegin . ' ' . $txt[311] . ' ' . $numend . ' (' . $txt[309] . ' ' . $memcount . ' ' . $txt[310] . ')</b></font> </td> </tr> </table>';
echo $TableHeader;
$query = "SELECT memberName,realName,websiteTitle,websiteUrl,posts,memberGroup,ICQ,AIM,YIM,MSN,emailAddress,hideEmail,ID_MEMBER FROM {$db_prefix}members WHERE 1 LIMIT $start,$MembersPerPage"; printMemberListRows($query);
echo $TableFooter;
echo ' <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td> <font size="2"> <b>' . $txt[139] . ':</b>'; $c = 0; while (($c*$MembersPerPage) < $NUM_MEMBERS) { $viewc = $c + 1; $strt = $c * $MembersPerPage; if ($start == $strt) echo " $viewc"; else echo " <a href=\"$cgi;action=mlall;start=$strt\">$viewc</a>"; $c++; } echo ' </font> </td> </tr> </table>';
footer(); obExit(); }
im Prinzip habe ich in der Funktion function MLAll () nur unter
template_header();
folgendes ergänzt:
echo ' <table border="0" width="100%" cellpadding="0" cellspacing="0"> <tr> <td> <font size="2"> <b>' . $txt[139] . ':</b>'; $c = 0; while (($c*$MembersPerPage) < $NUM_MEMBERS) { $viewc = $c + 1; $strt = $c * $MembersPerPage; if ($start == $strt) echo " $viewc"; else echo " <a href=\"$cgi;action=mlall;start=$strt\">$viewc</a>"; $c++; } echo ' </font> </td> </tr> </table>';
|