Welcome, Guest. Please Login or Register.
May 08, 2025, 05:30:40 AM
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  |  Mod Ideas and Creation  |  Hide non-used profile info. « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Hide non-used profile info.  (Read 348 times)
Silver Dragon
Full Member
***
Posts: 157


Uh, Dragons are cool.

ICQ - 1972247webmaster@alphavideo.com WWW
Hide non-used profile info.
« on: July 15, 2002, 01:42:22 PM »
Reply with quote

Got to thinking... I use the YabbSE profile section to create employee bios (via the BIO mod).  I link to these areas throughout my site.

Problem is that all the data that a user does not enter, such as ICQ#, AIM name, gender, birthdate, etc...  They all show up.  So instead of having a nice clean screen, I have a bunch of hooha with no data next to it.  

Would someone be willing to write a mod that simply looks to see if there is any data available for a field in the profile section?  If your data is null, it would not display anything (the entire line would be taken out, so I would never even see ICQ on the profile screen).

Is this easy?  It *seems* simple enough, but I know that nothing is ever as simple as it seems!

Oh to add to it, a YaBB Pak would be great :)  I'm running OS X, so BoardMod is out (unless someone knows of another way to apply boardmod stuff, other than with a Windows box (ewwww, Windows ;))

Thanks all,

-SD
Logged

sylvester
YaBB God
*****
Posts: 525


Re:Hide non-used profile info.
« Reply #1 on: July 15, 2002, 01:59:57 PM »
Reply with quote

I make this mod. Wait a few minutes (or hours ;))
Logged

I'm back
Silver Dragon
Full Member
***
Posts: 157


Uh, Dragons are cool.

ICQ - 1972247webmaster@alphavideo.com WWW
Re:Hide non-used profile info.
« Reply #2 on: July 15, 2002, 02:01:03 PM »
Reply with quote

WOO HOO  ;D

Now that was a fast response! ^-^

-SD
Logged

sylvester
YaBB God
*****
Posts: 525


Re:Hide non-used profile info.
« Reply #3 on: July 15, 2002, 02:22:24 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>
Logged

I'm back
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:Hide non-used profile info.
« Reply #4 on: July 15, 2002, 09:54:28 PM »
Reply with quote

Uhmm dude, I already made this mod a while ago.
Logged
Silver Dragon
Full Member
***
Posts: 157


Uh, Dragons are cool.

ICQ - 1972247webmaster@alphavideo.com WWW
Re:Hide non-used profile info.
« Reply #5 on: July 15, 2002, 10:06:47 PM »
Reply with quote

Right.  I was never able to get it to work... then it was abondened (I think).

Maybe I'm not remembering correctly though.

-SD
Logged

sylvester
YaBB God
*****
Posts: 525


Re:Hide non-used profile info.
« Reply #6 on: July 16, 2002, 03:13:17 AM »
Reply with quote

Quote from: Jedi~ on July 15, 2002, 09:54:28 PMUhmm dude, I already made this mod a while ago.
Uhmm....I couldn't find anything like this in Completed Mods. :-\
I'm sorry :-X :-X
Logged

I'm back
Jedi~
Eric
Beta Tester
YaBB God
*****
Posts: 1284


WWW
Re:Hide non-used profile info.
« Reply #7 on: July 16, 2002, 12:35:29 PM »
Reply with quote

D'oh, I forgot, Silver is right, I had forgot this is the one that for some reason I could never figure out it wouldn't work/install, yet it did for me :-\ Go ahead and go forth with posting this in the completed mods board if you wish, don't worry about it :)
Logged
Silver Dragon
Full Member
***
Posts: 157


Uh, Dragons are cool.

ICQ - 1972247webmaster@alphavideo.com WWW
Re:Hide non-used profile info.
« Reply #8 on: July 18, 2002, 01:54:25 PM »
Reply with quote

While we are at it, is it possible to do the same thing to the gender, age, location and language?

Thanks even more!

-SD
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Hide non-used profile info. « 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.043 seconds with 21 queries.