ipengu |
08-16-2011 04:37 PM |
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.
|