Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 modifying members.asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

tcadieux
Junior Member

153 Posts

Posted - 22 March 2005 :  15:42:56  Show Profile
I tried editing the code clightly to show me the client's name and nick...this line works

' Response.Write ChkString(Members_MemberFIRSTName & " " & Members_MemberLASTName & " " & "(" & Members_MemberName ,"display") & ")</a></span></font></td>" & vbNewLine & _

but if i try to to do this i get a Syntax error?

if mlev <3 then
' Response.Write ChkString(Members_MemberFIRSTName & " " & Members_MemberLASTName & " " & "(" & Members_MemberName ,"display") & ")</a></span></font></td>" & vbNewLine & _

else
Response.Write ChkString(Members_MemberName ,"display") & "</a></span></font></td>" & vbNewLine & _
end if

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 22 March 2005 :  15:49:30  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
Remove the & _ from the end of the lines in the If block:

if mlev < 3 then
   ' Response.Write ChkString(Members_MemberFIRSTName & " " & Members_MemberLASTName & " " & "(" & Members_MemberName ,"display") & ")</a></span></font></td>" & vbNewLine
else
   Response.Write ChkString(Members_MemberName ,"display") & "</a></span></font></td>" & vbNewLine 
end if

eXtremeGossip
Go to Top of Page

tcadieux
Junior Member

153 Posts

Posted - 22 March 2005 :  17:04:04  Show Profile
that's it, thx
Go to Top of Page

Jorrit787
Average Member

Netherlands
681 Posts

Posted - 22 March 2005 :  18:45:48  Show Profile  Visit Jorrit787's Homepage  Send Jorrit787 an AOL message  Send Jorrit787 a Yahoo! Message
You're welcome

eXtremeGossip
Go to Top of Page

tcadieux
Junior Member

153 Posts

Posted - 23 March 2005 :  09:19:44  Show Profile
additionally, the if m_lev < 3 doesn't appear to do anything...

is mLev the correct var to be looking for to see of the person currently viewing is a Moderator or higher?

Also,. as you can see, i'm modifying the Member field to include the nick AND FullName....is there a central place (include file) that i need to look into changing so that this is changed everywhere, or will i have to do a global Serach & Replace?
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 23 March 2005 :  09:22:23  Show Profile
If you only want it to show up for moderators and admins, you'll need to use if mlev>2


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

tcadieux
Junior Member

153 Posts

Posted - 23 March 2005 :  13:25:16  Show Profile
Thanx, i got that part working...now, i'm wondering about the second part of my question...I have this part working...
if mlev >2 then
Response.Write ChkString(Members_MemberFIRSTName & " " & Members_MemberLASTName & " " & "(" & Members_MemberName ,"display") & ")</a></span></font></td>" & vbNewLine
else
Response.Write ChkString(Members_MemberName ,"display") & "</a></span></font></td>" & vbNewLine
end if

for the Members page...however,t his must be an easir way to ensure eveytime a name shows up, either in the AUTHOR or LASTPOST, etc fields that i can change it to look the same...ie

Tim Cadieux (TCADIEUX)
Bob Smith (ROBOTMAN)

Thanx!
Go to Top of Page

tcadieux
Junior Member

153 Posts

Posted - 23 March 2005 :  16:18:41  Show Profile
Last question, i added this to Register.asp tomake these fields mandatory, but it doesn't make them mandatory if you go to your current profile and EDIT without filling in these fields.

if Request.Form("city") = "" then
Err_Msg = Err_Msg & "<li>CITY MANDATORY</li>"
end if

if Request.Form("state") = "" then
Err_Msg = Err_Msg & "<li>PROVINCE MANDATORY</li>"
end if
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07