Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 06-16-2009, 09:19 AM
trollis76 trollis76 is offline
Member
 
Join Date: Feb 2009
Posts: 160
Credits: 18,951
trollis76
Default RE: question again

First, you have replaced this:
PHP Code:
$ccstat cancp($usersgroup);
    if(
$ccstat == "yes"){
    
$userdisp "<img src='templates/icons/star.gif'> ".$usersname."";
    }
    else{
    
$userdisp $usersname;
    } 
With this:

PHP Code:
if($usersgroup == 1){

// Group 1, Root Admins

$userdisp "<img src='templates/icons/star.gif'> ".$usersname."";
}
else if(
$usersgroup == 2){

// Group 2, Admins

$userdisp "<img src='templates/icons/icon.gif'> ".$usersname."";
}
else if(
$usersgroup == 3){

// Registered Members, no icon
$userdisp $usersname;

}
else if(
$usersgroup == 4){

// Another user group, and so on...

}
else{

// Usergroup is something else, show default style
$userdisp $usersname;


Am I right?

Now you find the last line inside this code:
(This is from the profile.php, and not from the thing that you have already edited. Just search for this part inside YOUR profile.php)

PHP Code:
// We did not specify a user, so show the memberlist

$article_title "Memberlist";
$article_content "Here are all of the members of this site, sorted by registration date.<br><br>";

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC";
$result mysql_query($query);
$num mysql_numrows($result);

$rowsperpage 15;
$totalpages ceil($num $rowsperpage);

if(
is_numeric($page) and $page != ""){
$currentpage $page;
}
else{
$currentpage 1;
}

if (
$currentpage $totalpages) {  
$currentpage $totalpages;  
}
if (
$currentpage 1) {   
$currentpage 1;  

$offset = ($currentpage 1) * $rowsperpage;  

$query "SELECT * FROM ".$prefix."users ORDER BY uid ASC LIMIT $offset$rowsperpage";
$result mysql_query($query);
$num2 mysql_numrows($result);

//Loop out code
$i=0;
while (
$i $num2) {

$id=@mysql_result($result,$i,"uid");
$username=@mysql_result($result,$i,"username");
$email=@mysql_result($result,$i,"email");
$level=@mysql_result($result,$i,"usergroup");

$star "";
$status cancp($level); 
And you delete that part, and if you already have made the first steps, you don't need to do something else. (I think) :)

Sorry that I messed it up in my first post. :)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:02 AM.

Currently Active Users: 7197 (0 members and 7197 guests)
Threads: 4,081, Posts: 32,043, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636