Update of /cvsroot/openfirst/members
In directory sc8-pr-cvs1:/tmp/cvs-serv18695
Modified Files:
auth.php profile.php
Added Files:
aim.png email.png icq.png irc.png msmsgs.png person.png
webpage.png world.png yahoo.png
Log Message:
Fancy up the members profiles, with new graphics, status indicators, and begin keeping track of last seen date.
--- NEW FILE: aim.png ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: email.png ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: icq.png ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: irc.png ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: msmsgs.png ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: person.png ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: webpage.png ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: world.png ---
(This appears to be a binary file; contents omitted.)
--- NEW FILE: yahoo.png ---
(This appears to be a binary file; contents omitted.)
Index: auth.php
===================================================================
RCS file: /cvsroot/openfirst/members/auth.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** auth.php 31 May 2003 01:57:19 -0000 1.5
--- auth.php 31 May 2003 17:00:48 -0000 1.6
***************
*** 141,144 ****
}
}
!
?>
--- 141,148 ----
}
}
! if(isset($user->user)) {
! $query = "UPDATE ofirst_members SET lastseen='" . date("h:m:s M d, Y") . "' WHERE user='$user->user';";
! $q = mysql_query($query);
! unset($q);
! }
?>
Index: profile.php
===================================================================
RCS file: /cvsroot/openfirst/members/profile.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** profile.php 31 May 2003 01:57:19 -0000 1.1
--- profile.php 31 May 2003 17:00:48 -0000 1.2
***************
*** 53,56 ****
--- 53,60 ----
while($q = mysql_fetch_object($query)) {
+ if (function_exists('emoticon_translate')) {
+ $q->description = emoticon_translate($q->description);
+ }
+
echo("<table><tr><td style='vertical-align: top;'>");
if($q->picturelocation == "") {
***************
*** 59,66 ****
echo("<img src='$q->picturelocation' alt='$q->firstname $q->lastname' />");
}
echo("</td><td><h2>$q->user of $q->team</h2>
<sub>Real Name: $q->firstname $q->lastname
<br />Member since: $q->dateregistered
! <br />Last logged in: $q->lastseen</sub>
<p>
Division: $q->division
--- 63,80 ----
echo("<img src='$q->picturelocation' alt='$q->firstname $q->lastname' />");
}
+ if ($q->skills == "") { $q->skills = "No skills entered."; }
+ if ($q->description == "") { $q->description = "No description entered."; }
+ if ($q->division == "") { $q->division = "No division given."; }
+ if ($q->year == "") { $q->year = "Year unavailable."; }
+ if ($q->firstname == "") { $q->firstname = "None"; }
+ if ($q->lastname == "") { $q->lastname = "None"; }
+ if ($q->team == "") { $q->team = "no particular team"; }
+ if ($q->dateregistered == "") { $q->dateregistered = "creation"; }
+ if ($q->lastseen == "") { $q->lastseen = "$q->firstname has never logged in."; }
+
echo("</td><td><h2>$q->user of $q->team</h2>
<sub>Real Name: $q->firstname $q->lastname
<br />Member since: $q->dateregistered
! <br />Last seen logged in: $q->lastseen</sub>
<p>
Division: $q->division
***************
*** 71,79 ****
<p>
E-mail address: <a href='mailto: $q->email'>$q->email</a>
! <br />ICQ: $q->icq
! <br />MSN: $q->msn
! <br />AIM: $q->aim
! <br />YIM: $q->yim
! </p>
<h3>Description</h3>
--- 85,115 ----
<p>
E-mail address: <a href='mailto: $q->email'>$q->email</a>
! <br /><img src='icq.png' alt='I Seek You (ICQ) Number' />: $q->icq
! ");
! if ($q->icq != "") {
! echo("<img src=\"http://wwp.icq.com/scripts/online.dll?icq=$q->icq&img=5\" alt=\"User status\" />");
! } else {
! echo("none");
! }
! echo("
! <br /><img src='msmsgs.png' alt='Microsoft Network: Messenger address' />: $q->msn");
! if($q->msn == "") {
! echo("none");
! }
! echo("<br /><img src='aim.png' alt='AOL Instant Messenger address' />: ");
! if ($q->aim != "") {
! echo("<a href='aim:goim?screenname=$q->aim&message=Hello+$q->firstname+$q->lastname,+I+was+just+browsing+your+profile+when+I+noticed+you+had+AIM.'>$q->aim</a>");
! } else {
! echo("none");
! }
! echo("
! <br /><img src='yahoo.png' alt='Yahoo! Messenger address' />:
! <a href='http://edit.yahoo.com/config/send_webmesg?.target=$q->yim&.src=pg'>$q->yim</a> ");
! if ($q->yim != "") {
! echo("<img src=\"http://opi.yahoo.com/online?u=$q->yim&m=g&t=1\" alt=\"User status\" />");
! } else {
! echo("none");
! }
! echo("</p>
<h3>Description</h3>
|