Welcome, Guest. Please Login or Register.
May 06, 2024, 10:40:02 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Completed mods  |  [Code]ViewProfile + « previous next »
Pages: [1] Reply Ignore Print
Author Topic: [Code]ViewProfile +  (Read 4944 times)
sylvester
YaBB God
*****
Posts: 525


[Code]ViewProfile +
« on: July 15, 2002, 03:36:15 PM »
Reply with quote

<id>
ViewProfile+
</id>

<version>
1
</version>

<mod info>
If you don't enter your msn-address, you won't see MSN: -empty- on the view-profile page
Note: this is not only for msn, but also for aim,yim,website,icq
</mod info>

<author>
sylvester
</author>

<edit file>
Sources/Profile.php
</edit file>

<search for>
$karmastr = '';
   if ($modSettings['karmaMode'] == '1')
      $karmastr = "<td><font size=2><b>$modSettings[karmaLabel] </b></font></td>\n       <td><font size=2>".($memsettings[23]-$memsettings[22])."</font></td>\n</tr><tr>";
   else if ($modSettings['karmaMode'] == '2')
      $karmastr = "<td><font size=2><b>$modSettings[karmaLabel] </b></font></td>\n       <td><font size=2>+$memsettings[23]/-$memsettings[22]</font></td>\n</tr><tr>";
</search for>

<add after>
$memICQ = ($memsettings[8] != "") ? "<tr>
       <td><font size=2><b>$txt[513]:</b></font></td>
       <td><font size=2><a href=\"$cgi;action=icqpager;UIN=$icq\" target=_blank>$memsettings[8]</a></font></td>
     </tr>" : "";
$memMSN = (strlen($msn) > 0) ? "<tr>
     <td><font size=2><b>MSN: </b></font></td>
       <td><font size=2>$msn</font></td>
     </tr>" : "";
$memAIM = ($memsettings[9] != "") ? "<tr>
       <td><font size=2><b>$txt[603]: </b></font></td>
       <td><font size=2><a href=\"aim:goim?screenname=$memsettings[9]&amp;message=Hi.+Are+you+there?\">$memsettings[9]</a></font></td>
     </tr>": "";
$memYIM = ($memsettings[10] != "") ? "<tr>
       <td><font size=2><b>$txt[604]: </b></font></td>
       <td><font size=2><a href=\"http://edit.yahoo.com/config/send_webmesg?.target=$memsettings[10]\">$memsettings[10]</a></font></td>
     </tr>" : "";
$memWWW = ($memsettings[3] != "" && $memsettings[4] != "") ? "<tr>
       <td><font size=2><b>$txt[96]: </b></font></td>
       <td><font size=2><a href=\"$memsettings[4]\" target=_blank>$memsettings[3]</a></font></td>
     </tr>" : "";
</add after>

<search for>
<tr>
       <td><font size=2><b>$txt[513]:</b></font></td>
       <td><font size=2><a href="$cgi;action=icqpager;UIN=$icq" target=_blank>$memsettings[8]</a></font></td>
     </tr><tr>
       <td><font size=2><b>$txt[603]: </b></font></td>
       <td><font size=2><a href="aim:goim?screenname=$memsettings[9]&amp;message=Hi.+Are+you+there?">$memsettings[9]</a></font></td>
     </tr><tr>
     <td><font size=2><b>MSN: </b></font></td>
       <td><font size=2>$msn</font></td>
     </tr><tr>
       <td><font size=2><b>$txt[604]: </b></font></td>
       <td><font size=2><a href="http://edit.yahoo.com/config/send_webmesg?.target=$memsettings[10]">$memsettings[10]</a></font></td>
     </tr>
</search for>

<replace>
$memICQ $memMSN $memAIM $memYIM
</replace>

<search for>
<tr>
       <td><font size=2><b>$txt[96]: </b></font></td>
       <td><font size=2><a href="$memsettings[4]" target=_blank>$memsettings[3]</a></font></td>
     </tr>
</search for>

<replace>
$memWWW
</replace>
« Last Edit: July 19, 2002, 06:28:27 AM by Nemesis » Logged

I'm back
tazthedev
Full Member
***
Posts: 161


I'm a llama!

Re:ViewProfile +
« Reply #1 on: July 15, 2002, 04:51:15 PM »
Reply with quote

would be great if we can see some exemples ..  ;D
Logged
DanX
Noobie
*
Posts: 16


I'm a llama!

Re:ViewProfile +
« Reply #2 on: July 16, 2002, 10:56:39 PM »
Reply with quote

<mod info>
If you don't enter your msn-address, you won't see MSN: -empty- on the view-profile page
Note: this is not only for msn, but also for aim,yim,website,icq
</mod info>
Logged
Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:ViewProfile +
« Reply #3 on: July 19, 2002, 06:28:00 AM »
Reply with quote

Quote from: DanX on July 16, 2002, 10:56:39 PM<mod info>
If you don't enter your msn-address, you won't see MSN: -empty- on the view-profile page
Note: this is not only for msn, but also for aim,yim,website,icq
</mod info>

Whats your point DanX?
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
Nossie
Full Member
***
Posts: 192


If it aint broke, you haven't played with it enuff

ICQ - 18967293IanHarvie@Hotmail.com WWW
Re:[Code]ViewProfile +
« Reply #4 on: July 19, 2002, 05:31:10 PM »
Reply with quote

all that code just so it deletes the empty stuff ???

urm....
Logged

Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:[Code]ViewProfile +
« Reply #5 on: July 20, 2002, 06:40:29 AM »
Reply with quote

It's really not that much codes...
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
sylvester
YaBB God
*****
Posts: 525


Re:[Code]ViewProfile +
« Reply #6 on: July 20, 2002, 10:47:25 AM »
Reply with quote

Quote from: Nemesis on July 20, 2002, 06:40:29 AMIt's really not that much codes...
yeah, it replaces the stuff ;)
Logged

I'm back
Nossie
Full Member
***
Posts: 192


If it aint broke, you haven't played with it enuff

ICQ - 18967293IanHarvie@Hotmail.com WWW
Re:[Code]ViewProfile +
« Reply #7 on: July 20, 2002, 07:25:32 PM »
Reply with quote

sorry putty hehe  :-[

shoulda had a fink before I posted... hehhe
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  [Code]ViewProfile + « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.042 seconds with 19 queries.