Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2009, 06:44 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,390
Seapyramid
Default Stars by names on Members list

On the listing of all members there are stars by the names of those who have access to the CP... Is there a way of changing that from CP to group number & then assigning different icons to select special groups based on their group number?

Sea
Reply With Quote
  #2  
Old 04-18-2009, 06:50 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,558
BMR777 is on a distinguished road
Default RE: Stars by names on Members list

Yeah, but you'll have to do a little code editing.

In profile.php find:

PHP Code:
$ccstat cancp($usersgroup);
    if(
$ccstat == "yes"){
    
$userdisp "<img src='templates/icons/star.gif'> ".$usersname."";
    }
    else{
    
$userdisp $usersname;
    } 
Replace with:

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;


Hopefully you get the idea from that. :)

Brandon
Reply With Quote
  #3  
Old 04-18-2009, 08:08 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,390
Seapyramid
Default RE: Stars by names on Members list

Understood & have that coded :) However it's not showing the icons.. I beleive the reason is with this section

Code:
$star = "";
$status = cancp($level);

if($status == "yes"){
$star = "<img src='templates/icons/star.gif' border=0'> ";
Sea
Reply With Quote
  #4  
Old 04-18-2009, 08:25 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,558
BMR777 is on a distinguished road
Default RE: Stars by names on Members list

You're right. The code I posted changes it for the actual profile, not for the member list. :)

Anyway, remove the $status = cancp($level); line. Then add this:

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

// Show a star for the admin

$star "<img src='templates/icons/star.gif' border=0'> ";
}
else if(
$level == 2){

// Show something else for usergroup 2

$star "<img src='templates/icons/icon.gif' border=0'> ";

And so on. :)
Reply With Quote
  #5  
Old 04-18-2009, 11:11 PM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,390
Seapyramid
Default RE: Stars by names on Members list

Worked like a charm!! Thanks,

Sea
Reply With Quote
  #6  
Old 06-16-2009, 01:26 AM
zhiichiro zhiichiro is offline
Member
 
Join Date: Mar 2009
Posts: 106
Credits: 11,627
zhiichiro
Default RE: Stars by names on Members list

can you post the exact code to be removed or replaced, and the exact code to put?


because i'm confused.. on brandon's second post
Reply With Quote
  #7  
Old 06-16-2009, 09:19 AM
Seapyramid Seapyramid is offline
Premium Member
 
Join Date: Feb 2009
Posts: 373
Gender: Female
Credits: 15,390
Seapyramid
Default RE: Stars by names on Members list

Quote:
Originally Posted by zhiichiro
can you post the exact code to be removed or replaced, and the exact code to put?


because i'm confused.. on brandon's second post
Do a bit of research. Actually look into the code & this post a precise question with any errors showing and post what you have done. Then maybe we can help.
Reply With Quote
Reply

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Domain Names Abronsyth Webmasters Area 4 11-28-2015 04:55 PM
Names for adoptables? tahbikat Adoptables Buzz 1 06-22-2014 12:26 PM
Allow different spelling of names SilverDragonTears Questions and Supports 10 12-31-2012 09:03 PM
Species Names Beaux Questions and Supports 5 05-09-2011 04:07 PM
So old premium members aren't premium members anymore? wilfred888 Feedback and Suggestions 3 02-19-2011 08:44 PM


All times are GMT -5. The time now is 09:41 AM.

Currently Active Users: 674 (0 members and 674 guests)
Threads: 4,080, Posts: 32,024, 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 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636