Mysidia Adoptables Support Forum  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-16-2011, 05:37 PM
ipengu's Avatar
ipengu ipengu is offline
Member
 
Join Date: Aug 2011
Location: Central NY
Posts: 50
Gender: Male
Credits: 8,890
ipengu is on a distinguished road
Default Slim down profile

Now works with 1.2.3

The profiles get too cluttered when you have all this stuff (aim, website, msn, yim) taking up space just to say that it has no information in the field. Plus with me adding more fields in the future, I can't have unnecessary clutter.

Open profile.php

Find: (Around line 62)
PHP Code:
if($row['website'] == "")
        {
            
$row['website'] = "No Website Information Given";
        }
        else
        {
            
$row['website'] = "<a href='{$row['website']}' target='_blank'>{$row['website']}</a>";
        }

        if(empty(
$row['msn']))
        {
            
$row['msn'] = "No MSN Information Given";
        }
        
        if(empty(
$row['aim']))
        {
            
$row['aim'] = "No AIM Information Given";
        }

        if(empty(
$row['yahoo']))
        {
            
$row['yahoo'] = "No YIM Information Given";
        } 
Replace:
PHP Code:
        if($row['website'] != "")
        {
            
$row['website'] = "<img src='templates/icons/web.gif' /> <a href='{$row['website']}' target='_blank'>{$row['website']}<br /></a>";
        }
        if(
$row['msn'] != "")
        {
            
$row['msn'] = "<img src='templates/icons/msn.gif' /> {$row['msn']}<br />";
        }
        if(
$row['aim'] != "")
        {
            
$row['aim'] = "<img src='templates/icons/aim.gif' /> {$row['aim']}<br />";
        }
        if(
$row['yahoo'] != "")
        {
            
$row['yahoo'] = "<img src='templates/icons/yahoo.gif' /> {$row['yahoo']}<br />";
        } 
Find: (Around line 103)
PHP Code:
<img src='templates/icons/web.gif' /> {$row['website']}<br />
                            <
img src='templates/icons/aim.gif' /> {$row['aim']}<br />
                            <
img src='templates/icons/msn.gif' /> {$row['msn']}<br />
                            <
img src='templates/icons/yahoo.gif' /> {$row['yahoo']}<br /> 
Replace:
PHP Code:
                            {$row['website']}
                            {
$row['aim']}
                            {
$row['msn']}
                            {
$row['yahoo']} 
And there you have it, a simple but useful mod.

Last edited by ipengu; 08-29-2011 at 07:04 PM.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Profile Bio Box Kyttias Questions and Supports 4 12-22-2014 11:55 PM
Profile Pictures >.< parayna Questions and Supports 2 12-18-2014 10:49 AM
A Little Problem with the Profile Abronsyth Questions and Supports 1 01-29-2013 07:38 PM
Profile Add-Ons :3 PTGigi Mys v1.1.x Mods 9 02-17-2011 03:48 PM
Last 10 visitors to your profile! Hall of Famer Other Chat 8 01-21-2011 06:20 PM


All times are GMT -5. The time now is 12:22 AM.

Currently Active Users: 1177 (0 members and 1177 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