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

Reply
 
Thread Tools Display Modes
  #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,881
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
  #2  
Old 08-16-2011, 05:42 PM
SilverDragonTears's Avatar
SilverDragonTears SilverDragonTears is offline
I am your Nemesis.
 
Join Date: Jun 2011
Posts: 1,113
Gender: Female
Credits: 97,410
SilverDragonTears is on a distinguished road
Default

Very nice =) Thanks!
__________________

Check out SilvaTales
Reply With Quote
  #3  
Old 08-17-2011, 02:01 AM
Teshia's Avatar
Teshia Teshia is offline
Art Director &amp; Developer
 
Join Date: Sep 2010
Location: On the Road
Posts: 99
Gender: Female
Credits: 6,448
Teshia
Default

<3 This is much better thank you.
Reply With Quote
  #4  
Old 08-17-2011, 07:35 AM
ipengu's Avatar
ipengu ipengu is offline
Member
 
Join Date: Aug 2011
Location: Central NY
Posts: 50
Gender: Male
Credits: 8,881
ipengu is on a distinguished road
Default

No problem, honestly this script comes pretty well packaged besides the little things that really matter. I plan on releasing future mods depending on own work I have going on.
Reply With Quote
  #5  
Old 08-18-2011, 03:32 AM
Teshia's Avatar
Teshia Teshia is offline
Art Director &amp; Developer
 
Join Date: Sep 2010
Location: On the Road
Posts: 99
Gender: Female
Credits: 6,448
Teshia
Default

Cool! More mods = love
Reply With Quote
  #6  
Old 08-18-2011, 10:23 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 492,150
Hall of Famer is on a distinguished road
Default

It does look quite impressive, thanks for posting this.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #7  
Old 08-25-2011, 08:56 AM
Linkin-Dreamer's Avatar
Linkin-Dreamer Linkin-Dreamer is offline
The Chamomile Tea Drinker
 
Join Date: Aug 2011
Posts: 43
Gender: Female
Credits: 5,151
Linkin-Dreamer is on a distinguished road
Default

So what will this do? Does is make the fields invisible if there's no information in them?
Reply With Quote
  #8  
Old 08-25-2011, 09:06 AM
ipengu's Avatar
ipengu ipengu is offline
Member
 
Join Date: Aug 2011
Location: Central NY
Posts: 50
Gender: Male
Credits: 8,881
ipengu is on a distinguished road
Default

Exactly. It'll only list the field if they put something in the field. It will also make yahoo and aim usernames into links to message them just by clicking the link
__________________
Coder/Marketer/Etc
Super busy, lack of time for computer related things for awhile.

Current Mods:
Slim Profile | Disallow unfreezing adoptable
Longer Shoutbox | IP Tracking/Account Limiter
Colorblast | Flux Series

In the works:
Integrated Forum (Very unlikely to be a free public mod, at first anyways)15%
Better admin control panel (current one is terrible)
Couple Themes
Few other things.

Last edited by ipengu; 08-25-2011 at 02:16 PM. Reason: ugh typo's
Reply With Quote
  #9  
Old 08-25-2011, 02:01 PM
Linkin-Dreamer's Avatar
Linkin-Dreamer Linkin-Dreamer is offline
The Chamomile Tea Drinker
 
Join Date: Aug 2011
Posts: 43
Gender: Female
Credits: 5,151
Linkin-Dreamer is on a distinguished road
Default

Ah, awesome! I'll have to use this mod :3 Thanks!
Reply With Quote
  #10  
Old 08-25-2011, 02:15 PM
ipengu's Avatar
ipengu ipengu is offline
Member
 
Join Date: Aug 2011
Location: Central NY
Posts: 50
Gender: Male
Credits: 8,881
ipengu is on a distinguished road
Default

No problem.
__________________
Coder/Marketer/Etc
Super busy, lack of time for computer related things for awhile.

Current Mods:
Slim Profile | Disallow unfreezing adoptable
Longer Shoutbox | IP Tracking/Account Limiter
Colorblast | Flux Series

In the works:
Integrated Forum (Very unlikely to be a free public mod, at first anyways)15%
Better admin control panel (current one is terrible)
Couple Themes
Few other things.
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
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 06:53 PM.

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