1
Nocturne
Re: xmmemberstats Question
  • 2005/5/10 19:42

  • Nocturne

  • Just popping in

  • Posts: 7

  • Since: 2005/5/2 2


Any thoughts?



2
Nocturne
xmmemberstats Question
  • 2005/5/10 7:31

  • Nocturne

  • Just popping in

  • Posts: 7

  • Since: 2005/5/2 2


Im having some problems trying to add the special ranks to the ranks section of the members. IE: Webmaster, Moderator, and others. Here is the code

include "../../mainfile.php";
include 
"../../header.php";

    
$db =& Database::getInstance();


    echo 
"<br><h4 style='text-align:center;'>Member Rank</h4><br><br>

    <table width='100%' class='head' cellpadding='4' cellspacing='1'>
    <tr align='center'>
    <td><font color=#666666>Rank</font></td>
    <td><font color=#666666>Minimum Post</td>
    <td><font color=#666666>Maximum Post</font></td>
    <td><font color=#666666>Image</font></td></tr>"
;
    
$result $db->query("SELECT * FROM ".$db->prefix("ranks")." where rank_special=0 ORDER BY rank_id");
    
$count 0;
    while ( 
$rank $db->fetchArray($result) ) {
        if (
$count == 0) {
            
$class 'odd';
        } else {
            
$class 'even';
        }
        echo 
"<tr class='$class' align='center'>
        <td>"
.$rank['rank_title']."</td>
        <td>"
.$rank['rank_min']."</td>
        <td>"
.$rank['rank_max']."</td>
        <td>"
;
        if ( 
$rank['rank_image'] ) {
            echo 
'<img src="'.XOOPS_URL.'/uploads/'.$rank['rank_image'].'" alt="" /></td>';
        } else {
            echo 
'&nbsp;';
        }
        echo
"</tr>";
        
$count++;
    }
    echo 
'</table><br /><br />';

include_once 
XOOPS_ROOT_PATH."/footer.php";
?>


Now under
$result $db->query("SELECT * FROM ".$db->prefix("ranks")." where rank_special=0 ORDER BY rank_id");

If the "rank_special=0" is changed to "rank_special=1" then you get the special ranks of webmaster, moderator, and so forth, but you loose the normal ranks, I would like to put both the normal and special ranks on there. Anyhelp will do. Thanx



3
Nocturne
Re: Istats Layout trouble
  • 2005/5/4 2:53

  • Nocturne

  • Just popping in

  • Posts: 7

  • Since: 2005/5/2 2


That I did yes. And Still nothing



4
Nocturne
Re: Istats Layout trouble
  • 2005/5/4 2:46

  • Nocturne

  • Just popping in

  • Posts: 7

  • Since: 2005/5/2 2


Unfortinitly that does not work. Editing anything in there does nothing, I even removed everything in that file and nothing changed. I dont think thats the right file to edit



5
Nocturne
Re: Istats Layout trouble
  • 2005/5/3 16:52

  • Nocturne

  • Just popping in

  • Posts: 7

  • Since: 2005/5/2 2


Anyone?



6
Nocturne
Istats Layout trouble
  • 2005/5/3 6:48

  • Nocturne

  • Just popping in

  • Posts: 7

  • Since: 2005/5/2 2


Hello, I was wondering if anyone knew where the code was to put the "Forcast for today" ontop of "Vists per hour" instead of on the side. thanx




TopTop



Login

Who's Online

250 user(s) are online (136 user(s) are browsing Support Forums)


Members: 0


Guests: 250


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits