Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.1.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-06-2011, 01:03 PM
Tony's Avatar
Tony Tony is offline
I program.
 
Join Date: Jan 2011
Posts: 75
Gender: Male
Credits: 9,334
Tony is on a distinguished road
Default Adding users rank to their profiles. (EASY)

Hey guys, sorry I haven't been on in a day or two, been taking a break from programming, here's a very simple mod. Also, I'm working on a banking system, i'm about 1/3 done. wish me luck!

Profile.php

find:
PHP Code:
$avatar=@mysql_result($result,$i,"imagelocation");
    
$usersname=@mysql_result($result,$i,"username");
    
$usersgroup=@mysql_result($result,$i,"usergroup");
    
$website=@mysql_result($result,$i,"website");
    
$aim=@mysql_result($result,$i,"aim");
    
$yahoo=@mysql_result($result,$i,"yahoo");
    
$msn=@mysql_result($result,$i,"msn");
    
$membersince=@mysql_result($result,$i,"membersince"); 
add:
PHP Code:
    $avatar=@mysql_result($result,$i,"imagelocation");
    
$usersname=@mysql_result($result,$i,"username");
    
$usersgroup=@mysql_result($result,$i,"usergroup");
    
$website=@mysql_result($result,$i,"website");
    
$aim=@mysql_result($result,$i,"aim");
    
$yahoo=@mysql_result($result,$i,"yahoo");
    
$msn=@mysql_result($result,$i,"msn");
    
$membersince=@mysql_result($result,$i,"membersince");
    
$rank=@mysql_result($result,$i,"usergroup"); 
find:
PHP Code:
if($avatar == ""){
    
$avatar "This user doesn't have an avatar uploaded.";
    }
    
    if(
$website == ""){
    
$website "No Website Information Given";
    }
    else{
    
$website "<a href='".$website."' target='_blank'>".$website."</a>";
    }

    if(
$msn == ""){
    
$msn "No MSN Information Given";
    }
    
    if(
$aim == ""){
    
$aim "No AIM Information Given";
    }

    if(
$yahoo == ""){
    
$yahoo "No YIM Information Given";
    } 
add:
*note Use a switch statement if you'd prefer it.
PHP Code:
if($rank == 1){ 
    
$rank "Owner";
    }
    
    if(
$rank == 2){ 
    
$rank "Administrator";
    }
    
    if(
$rank == 3){ 
    
$rank "Registered users";
    }
    
    if(
$rank == 4){ 
    
$rank "Artist";
    } 
find:
PHP Code:
$article_title $userdisp."'s Profile:";
    
$article_content "<b><u>".$lang_basic_info."".$usersname.":</u></b><br><br>
    <img src='templates/icons/web.gif'> "
.$website."<br>
    <img src='templates/icons/aim.gif'> "
.$aim."<br>
    <img src='templates/icons/msn.gif'> "
.$msn."<br>
    <img src='templates/icons/yahoo.gif'> "
.$yahoo."<br> 
change to:
PHP Code:
    $article_title $userdisp."'s Profile:";
    
$article_content "<b><u>".$lang_basic_info."".$usersname.":</u></b><br><br><img src='templates/icons/star.gif'> ".$rank."<br />
    <img src='templates/icons/web.gif'> "
.$website."<br>
    <img src='templates/icons/aim.gif'> "
.$aim."<br>
    <img src='templates/icons/msn.gif'> "
.$msn."<br>
    <img src='templates/icons/yahoo.gif'> "
.$yahoo."<br> 
If there's an extra line break or two in there, feel free to remove it. I have more than a few mods added to the profile page, so there may be some spaces I left out by accident. (:
Reply With Quote
Reply


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
How easy would it be to incorporate phpbb with mysida? LucasA33 Questions and Supports 7 04-03-2014 06:04 PM
Problem with Online page and Admin Profiles? parayna Questions and Supports 5 11-03-2013 08:47 PM
Easy way to put user's avatar on any page Derpstra Tutorials and Tips 0 08-20-2012 05:05 PM
Adopts on profiles suddenly..... SilverDragonTears Questions and Supports 2 10-19-2011 05:55 PM
Can you put a flash template with a easy adoptable script? Tezna Questions and Supports 2 05-26-2009 08:28 PM


All times are GMT -5. The time now is 12:27 PM.

Currently Active Users: 668 (0 members and 668 guests)
Threads: 4,081, Posts: 32,032, 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