Author |
Topic  |
|
tcadieux
Junior Member
 
153 Posts |
Posted - 22 March 2005 : 15:42:56
|
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
|
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  |
 |
|
tcadieux
Junior Member
 
153 Posts |
Posted - 22 March 2005 : 17:04:04
|
that's it, thx |
 |
|
Jorrit787
Average Member
  
Netherlands
681 Posts |
|
tcadieux
Junior Member
 
153 Posts |
Posted - 23 March 2005 : 09:19:44
|
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? |
 |
|
Shaggy
Support Moderator
    
Ireland
6780 Posts |
Posted - 23 March 2005 : 09:22:23
|
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.” |
 |
|
tcadieux
Junior Member
 
153 Posts |
Posted - 23 March 2005 : 13:25:16
|
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!
|
 |
|
tcadieux
Junior Member
 
153 Posts |
Posted - 23 March 2005 : 16:18:41
|
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 |
 |
|
|
Topic  |
|