Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
1e98ab67
Commit
1e98ab67
authored
19 years ago
by
runemaster
Browse files
Options
Downloads
Patches
Plain Diff
Bug fixes ...
parent
8adb1220
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
web/root/members/editprofile.ssjs
+40
-21
40 additions, 21 deletions
web/root/members/editprofile.ssjs
web/root/members/updateprofile.ssjs
+1
-1
1 addition, 1 deletion
web/root/members/updateprofile.ssjs
web/root/members/viewprofile.ssjs
+58
-40
58 additions, 40 deletions
web/root/members/viewprofile.ssjs
with
99 additions
and
62 deletions
web/root/members/editprofile.ssjs
+
40
−
21
View file @
1e98ab67
...
...
@@ -16,12 +16,29 @@ template.title=system.name +" - Edit Your Profile";
usr
=
new
Object
;
usr
.
name
=
user
.
name
;
if
(
usr
.
name
==
undefined
)
usr
.
name
=
''
;
usr
.
alias
=
user
.
alias
;
if
(
usr
.
alias
==
undefined
)
usr
.
alias
=
''
;
usr
.
handle
=
user
.
handle
;
if
(
usr
.
handle
==
undefined
)
usr
.
handle
=
''
;
usr
.
netmail
=
user
.
netmail
;
if
(
usr
.
netmail
==
undefined
)
usr
.
netmail
=
''
;
usr
.
location
=
user
.
location
;
usr
.
address
=
usr
.
address
;
if
(
usr
.
location
==
undefined
)
usr
.
location
=
''
;
usr
.
address
=
user
.
address
;
if
(
usr
.
address
==
undefined
)
usr
.
address
=
''
;
usr
.
zipcode
=
user
.
zipcode
;
if
(
usr
.
zipcode
==
undefined
)
usr
.
zipcode
=
''
;
usr
.
phone
=
user
.
phone
;
if
(
usr
.
phone
==
undefined
)
usr
.
phone
=
''
;
if
(
file_exists
(
prefs_dir
+
format
(
"
%04d.html_prefs
"
,
user
.
number
)))
{
prefsfile
=
new
File
(
prefs_dir
+
format
(
"
%04d.html_prefs
"
,
user
.
number
));
...
...
@@ -57,35 +74,37 @@ if(file_exists(prefs_dir +format("%04d.html_prefs",user.number))) {
template
.
profile
=
new
Array
;
template
.
profile
.
push
({
html
:
'
<h1>Edit Profile</h1>
'
});
template
.
profile
.
push
({
html
:
'
<p>
Changes here mainly affect the Telnet side of the BBS
</p>
'
});
template
.
profile
.
push
({
html
:
'
<form action="/members/updateprofile.ssjs" method="post">
'
});
template
.
profile
.
push
({
html
:
'
<table class="
new
user" cellpadding="0" cellspacing="2">
'
});
template
.
profile
.
push
({
html
:
'
<p>
Personal Information
</p>
'
});
template
.
profile
.
push
({
html
:
'
<form action="/members/updateprofile.ssjs
?edituser=
'
+
user
.
number
+
'
" method="post">
'
});
template
.
profile
.
push
({
html
:
'
<table class="user
stats
" cellpadding="0" cellspacing="2">
'
});
if
(
system
.
newuser_questions
&
UQ_REALNAME
)
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Real Name:</td><td class="
new
user" align="left"><input type="text" name="name" size="25" maxlength="25" value="
'
+
usr
.
name
+
'
"
'
+
disabled
+
'
/></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Real Name:
</td><td class="user
stats
" align="left"><input type="text" name="name" size="25" maxlength="25" value="
'
+
usr
.
name
+
'
"
'
+
disabled
+
'
/></td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_ALIASES
)
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Alias:</td><td class="
new
user" align="left"><input type="text" name="alias" size="25" maxlength="25" value="
'
+
usr
.
alias
+
'
"
'
+
disabled
+
'
/></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Alias:
</td><td class="user
stats
" align="left"><input type="text" name="alias" size="25" maxlength="25" value="
'
+
usr
.
alias
+
'
"
'
+
disabled
+
'
/></td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_HANDLE
)
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Chat Handle:</td><td class="
new
user" align="left"><input type="text" name="handle" size="8" maxlength="8" value="
'
+
usr
.
handle
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">E-Mail Address:</td><td class="
new
user" align="left"><input type="text" name="email" size="50" maxlength="60" value="
'
+
usr
.
netmail
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Chat Handle:
</td><td class="user
stats
" align="left"><input type="text" name="handle" size="8" maxlength="8" value="
'
+
usr
.
handle
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">E-Mail Address:
</td><td class="user
stats
" align="left"><input type="text" name="email" size="50" maxlength="60" value="
'
+
usr
.
netmail
+
'
" /></td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_ADDRESS
)
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Address:</td><td class="
new
user" align="left"><input type="text" name="address" size="50" maxlength="50" value="
'
+
usr
.
address
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Address:
</td><td class="user
stats
" align="left"><input type="text" name="address" size="50" maxlength="50" value="
'
+
usr
.
address
+
'
" /></td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_LOCATION
)
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">City, State/Prov:</td><td class="
new
user" align="left"><input type="text" name="location" size="50" maxlength="50" value="
'
+
usr
.
location
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">City, State/Prov:
</td><td class="user
stats
" align="left"><input type="text" name="location" size="50" maxlength="50" value="
'
+
usr
.
location
+
'
" /></td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_ADDRESS
)
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">Zip/Postal Code:</td><td class="newuser" align="left"><input type="text" name="zipcode" size="50" maxlength="50" value="
'
+
usr
.
zipcode
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Zip/Postal Code: </td><td class="userstats" align="left"><input type="text" name="zipcode" size="50" maxlength="50" value="
'
+
usr
.
zipcode
+
'
" /></td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_PHONE
)
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Phone: </td><td class="userstats" align="left"><input type="text" name="phone" size="50" maxlength="50" value="
'
+
usr
.
phone
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
</table>
'
});
template
.
profile
.
push
({
html
:
'
<h3>Web Profile</h3>
'
});
template
.
profile
.
push
({
html
:
'
<p>Changes here are only visible in the Web Interface.</p>
'
});
template
.
profile
.
push
({
html
:
'
<table class="
new
user" cellpadding="0" cellspacing="2">
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">ICQ:</td><td class="
new
user" align="left"><input type="text" name="icq" size="10" maxlength="10" value="
'
+
usr
.
icq
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">MSN:</td><td class="
new
user" align="left"><input type="text" name="msn" size="50" maxlength="50" value="
'
+
usr
.
msn
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Yahoo:</td><td class="
new
user" align="left"><input type="text" name="yahoo" size="50" maxlength="50" value="
'
+
usr
.
yahoo
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">AIM:</td><td class="
new
user" align="left"><input type="text" name="aim" size="50" maxlength="50" value="
'
+
usr
.
aim
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Homepage:</td><td class="
new
user" align="left"><input type="text" name="homepage" size="50" maxlength="50" value="
'
+
usr
.
homepage
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Hobbies:</td><td class="
new
user" align="left"><input type="textarea" size="50" name="hobbies" value="
'
+
usr
.
hobbies
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Picture (Link):</td><td class="
new
user" align="left"><input type="textarea" size="50" name="picture" value="
'
+
usr
.
picture
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Avatar (Link):</td><td class="
new
user" align="left"><input type="textarea" size="50" name="avatar" value="
'
+
usr
.
avatar
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user"> </td><td class="
new
user"><br /><input type="submit" value="Update Profile" /></td></tr></table></form><br />
'
});
template
.
profile
.
push
({
html
:
'
<table class="user
stats
" cellpadding="0" cellspacing="2">
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">ICQ:
</td><td class="user
stats
" align="left"><input type="text" name="icq" size="10" maxlength="10" value="
'
+
usr
.
icq
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">MSN:
</td><td class="user
stats
" align="left"><input type="text" name="msn" size="50" maxlength="50" value="
'
+
usr
.
msn
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Yahoo:
</td><td class="user
stats
" align="left"><input type="text" name="yahoo" size="50" maxlength="50" value="
'
+
usr
.
yahoo
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">AIM:
</td><td class="user
stats
" align="left"><input type="text" name="aim" size="50" maxlength="50" value="
'
+
usr
.
aim
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Homepage:
</td><td class="user
stats
" align="left"><input type="text" name="homepage" size="50" maxlength="50" value="
'
+
usr
.
homepage
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Hobbies:
</td><td class="user
stats
" align="left"><input type="textarea" size="50" name="hobbies" value="
'
+
usr
.
hobbies
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Picture (Link):
</td><td class="user
stats
" align="left"><input type="textarea" size="50" name="picture" value="
'
+
usr
.
picture
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Avatar (Link):
</td><td class="user
stats
" align="left"><input type="textarea" size="50" name="avatar" value="
'
+
usr
.
avatar
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
"> </td><td class="user
stats
"><br /><input type="submit" value="Update Profile" /></td></tr></table></form><br />
'
});
write_template
(
"
header.inc
"
);
load
(
"
../web/lib/topnav_html.ssjs
"
);
...
...
This diff is collapsed.
Click to expand it.
web/root/members/updateprofile.ssjs
+
1
−
1
View file @
1e98ab67
...
...
@@ -13,7 +13,7 @@ template.title=system.name + " - Profile Updated";
if
(
is_sysop
)
{
var
usr
=
new
User
(
http_request
.
query
.
edituser
[
0
]);
var
usr
=
new
User
(
http_request
.
query
.
edituser
[
0
]);
if
(
http_request
.
query
[
"
name
"
]
!=
usr
.
name
)
usr
.
name
=
http_request
.
query
[
"
name
"
];
...
...
This diff is collapsed.
Click to expand it.
web/root/members/viewprofile.ssjs
+
58
−
40
View file @
1e98ab67
...
...
@@ -22,7 +22,9 @@ if(system.newuser_questions & UQ_HANDLE)
if
(
system
.
newuser_questions
&
UQ_LOCATION
)
usr
.
location
=
u
.
location
.
toString
();
usr
.
netmail
=
u
.
netmail
.
toString
();
// usr.connection=u.connection.toString();
if
(
system
.
newuser_questions
&
UQ_PHONE
)
usr
.
phone
=
u
.
phone
.
toString
();
usr
.
connection
=
u
.
connection
.
toString
();
usr
.
logon
=
strftime
(
"
%b-%d-%y
"
,
u
.
stats
.
laston_date
);
usr
.
laston
=
0
-
u
.
stats
.
laston_date
;
...
...
@@ -66,62 +68,78 @@ if(file_exists(prefs_dir +format("%04d.html_prefs",u.number))) {
if
(
is_sysop
)
{
template
.
profile
.
push
({
html
:
'
<h1>Edit/View Profile</h1>
'
});
template
.
profile
.
push
({
html
:
'
<p>
Changes here mainly affect the Telnet side of the BBS
</p>
'
});
template
.
profile
.
push
({
html
:
'
<p>
Personal Information
</p>
'
});
template
.
profile
.
push
({
html
:
'
<form action="/members/updateprofile.ssjs?edituser=
'
+
u
.
number
+
'
" method="post">
'
});
template
.
profile
.
push
({
html
:
'
<table class="
new
user" cellpadding="0" cellspacing="2">
'
});
template
.
profile
.
push
({
html
:
'
<table class="user
stats
" cellpadding="0" cellspacing="2">
'
});
if
(
system
.
newuser_questions
&
UQ_REALNAME
)
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Real Name:</td><td class="
new
user" align="left"><input type="text" name="name" size="25" maxlength="25" value="
'
+
usr
.
name
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Real Name:
</td><td class="user
stats
" align="left"><input type="text" name="name" size="25" maxlength="25" value="
'
+
usr
.
name
+
'
" /></td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_ALIASES
)
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Alias:</td><td class="
new
user" align="left"><input type="text" name="alias" size="25" maxlength="25" value="
'
+
usr
.
alias
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Alias:
</td><td class="user
stats
" align="left"><input type="text" name="alias" size="25" maxlength="25" value="
'
+
usr
.
alias
+
'
" /></td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_HANDLE
)
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Chat Handle:</td><td class="
new
user" align="left"><input type="text" name="handle" size="8" maxlength="8" value="
'
+
usr
.
handle
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">E-Mail Address:</td><td class="
new
user" align="left"><input type="text" name="email" size="50" maxlength="60" value="
'
+
usr
.
netmail
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Chat Handle:
</td><td class="user
stats
" align="left"><input type="text" name="handle" size="8" maxlength="8" value="
'
+
usr
.
handle
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">E-Mail Address:
</td><td class="user
stats
" align="left"><input type="text" name="email" size="50" maxlength="60" value="
'
+
usr
.
netmail
+
'
" /></td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_ADDRESS
)
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Address:</td><td class="
new
user" align="left"><input type="text" name="address" size="50" maxlength="50" value="
'
+
usr
.
address
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Address:
</td><td class="user
stats
" align="left"><input type="text" name="address" size="50" maxlength="50" value="
'
+
usr
.
address
+
'
" /></td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_LOCATION
)
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">City, State/Prov:</td><td class="
new
user" align="left"><input type="text" name="location" size="50" maxlength="50" value="
'
+
usr
.
location
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">City, State/Prov:
</td><td class="user
stats
" align="left"><input type="text" name="location" size="50" maxlength="50" value="
'
+
usr
.
location
+
'
" /></td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_ADDRESS
)
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">Zip/Postal Code:</td><td class="newuser" align="left"><input type="text" name="zipcode" size="50" maxlength="50" value="
'
+
usr
.
zipcode
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Zip/Postal Code: </td><td class="userstats" align="left"><input type="text" name="zipcode" size="50" maxlength="50" value="
'
+
usr
.
zipcode
+
'
" /></td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_PHONE
)
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Phone: </td><td class="userstats" align="left"><input type="text" name="phone" size="50" maxlength="50" value="
'
+
usr
.
phonee
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Last Connected Via: </td><td class="userstats" align="left"><input type="text" name="phone" size="50" maxlength="50" value="
'
+
usr
.
connection
+
'
" disabled="disabled" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Last Logon Date: </td><td class="userstats" align="left"><input type="text" name="phone" size="50" maxlength="50" value="
'
+
usr
.
logon
+
'
" disabled="disabled" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
</table>
'
});
template
.
profile
.
push
({
html
:
'
<h3>Web Profile</h3>
'
});
template
.
profile
.
push
({
html
:
'
<p>Changes here are only visible in the Web Interface.</p>
'
});
template
.
profile
.
push
({
html
:
'
<table class="newuser" cellpadding="0" cellspacing="2">
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">ICQ:</td><td class="newuser" align="left"><input type="text" name="icq" size="10" maxlength="10" value="
'
+
usr
.
icq
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">MSN:</td><td class="newuser" align="left"><input type="text" name="msn" size="50" maxlength="50" value="
'
+
usr
.
msn
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">Yahoo:</td><td class="newuser" align="left"><input type="text" name="yahoo" size="50" maxlength="50" value="
'
+
usr
.
yahoo
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">AIM:</td><td class="newuser" align="left"><input type="text" name="aim" size="50" maxlength="50" value="
'
+
usr
.
aim
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">Homepage:</td><td class="newuser" align="left"><input type="text" name="homepage" size="50" maxlength="50" value="
'
+
usr
.
homepage
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">Hobbies:</td><td class="newuser" align="left"><input type="textarea" size="50" name="hobbies" value="
'
+
usr
.
hobbies
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">Picture (Link):</td><td class="newuser" align="left"><input type="textarea" size="50" name="picture" value="
'
+
usr
.
picture
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">Avatar (Link):</td><td class="newuser" align="left"><input type="textarea" size="50" name="avatar" value="
'
+
usr
.
avatar
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser"> </td><td class="newuser"><br /><input type="submit" value="Update Profile" /></td></tr></table></form><br />
'
});
template
.
profile
.
push
({
html
:
'
<table class="userstats" cellpadding="0" cellspacing="2">
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">ICQ :</td><td class="userstats" align="left"><input type="text" name="icq" size="10" maxlength="10" value="
'
+
usr
.
icq
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">MSN :</td><td class="userstats" align="left"><input type="text" name="msn" size="50" maxlength="50" value="
'
+
usr
.
msn
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Yahoo :</td><td class="userstats" align="left"><input type="text" name="yahoo" size="50" maxlength="50" value="
'
+
usr
.
yahoo
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">AIM :</td><td class="userstats" align="left"><input type="text" name="aim" size="50" maxlength="50" value="
'
+
usr
.
aim
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Homepage :</td><td class="userstats" align="left"><input type="text" name="homepage" size="50" maxlength="50" value="
'
+
usr
.
homepage
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Hobbies :</td><td class="userstats" align="left"><input type="textarea" size="50" name="hobbies" value="
'
+
usr
.
hobbies
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Picture (Link): </td><td class="userstats" align="left"><input type="textarea" size="50" name="picture" value="
'
+
usr
.
picture
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Avatar (Link): </td><td class="userstats" align="left"><input type="textarea" size="50" name="avatar" value="
'
+
usr
.
avatar
+
'
" /></td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats"> </td><td class="userstats"><br /><input type="submit" value="Update Profile" /></td></tr></table></form><br />
'
});
}
else
{
template
.
profile
.
push
({
html
:
'
<h1>View Profile</h1>
'
});
template
.
profile
.
push
({
html
:
'
<table class="
new
user" cellpadding="0" cellspacing="2">
'
});
template
.
profile
.
push
({
html
:
'
<table class="user
stats
" cellpadding="0" cellspacing="2">
'
});
if
(
system
.
newuser_questions
&
UQ_REALNAME
)
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Real Name:</td><td class="
new
user" align="left">
'
+
usr
.
name
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Real Name:
</td><td class="user
stats
" align="left">
'
+
usr
.
name
+
'
</td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_ALIASES
)
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Alias:</td><td class="
new
user" align="left">
'
+
usr
.
alias
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Alias:
</td><td class="user
stats
" align="left">
'
+
usr
.
alias
+
'
</td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_HANDLE
)
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">Chat Handle:</td><td class="newuser" align="left">
'
+
usr
.
handle
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">E-Mail Address:</td><td class="newuser" align="left">
'
+
usr
.
netmail
+
'
</td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_ADDRESS
)
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">Address:</td><td class="newuser" align="left">
'
+
usr
.
address
+
'
</td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_LOCATION
)
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">City, State/Prov:</td><td class="newuser" align="left">
'
+
usr
.
location
+
'
</td></tr>
'
});
if
(
system
.
newuser_questions
&
UQ_ADDRESS
)
template
.
profile
.
push
({
html
:
'
<tr><td class="newuser" align="right">Zip/Postal Code:</td><td class="newuser" align="left">
'
+
usr
.
zipcode
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Chat Handle: </td><td class="userstats" align="left">
'
+
usr
.
handle
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">E-Mail Address: </td><td class="userstats" align="left">
'
+
usr
.
netmail
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Last Connected Via: </td><td class="userstats" align="left">
'
+
usr
.
connection
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="userstats" align="right">Last Logon Date: </td><td class="userstats" align="left">
'
+
usr
.
logon
+
'
</td></tr>
'
});
/* Removed for Privacy Reasons
* Insert into your site at your own risk of liability!
*
* if(system.newuser_questions & UQ_ADDRESS)
* template.profile.push({html: '<tr><td class="userstats" align="right">Address: </td><td class="userstats" align="left">' + usr.address + '</td></tr>' });
* if(system.newuser_questions & UQ_LOCATION)
* template.profile.push({html: '<tr><td class="userstats" align="right">City, State/Prov: </td><td class="userstats" align="left">' + usr.location + '</td></tr>' });
* if(system.newuser_questions & UQ_ADDRESS)
* template.profile.push({html: '<tr><td class="userstats" align="right">Zip/Postal Code: </td><td class="userstats" align="left">' + usr.zipcode + '</td></tr>' });
*
*/
template
.
profile
.
push
({
html
:
'
</table>
'
});
template
.
profile
.
push
({
html
:
'
<h3>Web Profile</h3>
'
});
template
.
profile
.
push
({
html
:
'
<table class="
new
user" cellpadding="0" cellspacing="2">
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">ICQ:</td><td class="
new
user" align="left">
'
+
usr
.
icq
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">MSN:</td><td class="
new
user" align="left">
'
+
usr
.
msn
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Yahoo:</td><td class="
new
user" align="left">
'
+
usr
.
yahoo
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">AIM:</td><td class="
new
user" align="left">
'
+
usr
.
aim
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Homepage:</td><td class="
new
user" align="left">
'
+
usr
.
homepage
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Hobbies:</td><td class="
new
user" align="left">
'
+
usr
.
hobbies
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Picture (Link):</td><td class="
new
user" align="left">
'
+
usr
.
picture
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="
new
user" align="right">Avatar (Link):</td><td class="
new
user" align="left">
'
+
usr
.
avatar
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<table class="user
stats
" cellpadding="0" cellspacing="2">
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">ICQ:
</td><td class="user
stats
" align="left">
'
+
usr
.
icq
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">MSN:
</td><td class="user
stats
" align="left">
'
+
usr
.
msn
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Yahoo:
</td><td class="user
stats
" align="left">
'
+
usr
.
yahoo
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">AIM:
</td><td class="user
stats
" align="left">
'
+
usr
.
aim
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Homepage:
</td><td class="user
stats
" align="left">
'
+
usr
.
homepage
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Hobbies:
</td><td class="user
stats
" align="left">
'
+
usr
.
hobbies
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Picture (Link):
</td><td class="user
stats
" align="left">
'
+
usr
.
picture
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
<tr><td class="user
stats
" align="right">Avatar (Link):
</td><td class="user
stats
" align="left">
'
+
usr
.
avatar
+
'
</td></tr>
'
});
template
.
profile
.
push
({
html
:
'
</table><br />
'
});
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment