Users changing their own title.. - Posted (1391 Views)
Junior Member
i011877
Posts: 169
169
Hmm this is not actually a MOD, but kindda.. I have seen this topic before, but are not able to find itblackeye
How do I change the code, so that users can change their own title in their profile?
Anyone..<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Junior Member
Davecl
Posts: 105
105
Try these

changes made at line 224 in inc_profile.asp
1204 in pop_profile.asp

www.parrotlinks.com/profile.rar
let me know when you got it then i can take it down<
Dave
Posted
Junior Member
i011877
Posts: 169
169
Nope did not work, ****! Can not even show the profile, when I click a member.
Thanks for giving it a shot anyway bigsmile<
Posted
Junior Member
Davecl
Posts: 105
105
mmm maybe some conflicting mods or something.. sorry i couldn't helpsad<
Dave
Posted
Junior Member
i011877
Posts: 169
169
inc_profile:
Code:
if strMode = "goModify" or (strMode = "goEdit" and (rs("M_POSTS") >= CInt(intRankLevel1) or rs("M_LEVEL") > 1 ))then
Response.Write " <tr>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Titel:</font></b></td>" & vbNewLine & _
" <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><input name=""Title"" size=""25"" maxLength=""50"" value=""" & CleanCode(rs("M_TITLE")) & """></font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if
pop_profile.asp:
Code:
set rs = my_conn.Execute("SELECT M_POSTS FROM " & strMemberTablePrefix & "MEMBERS WHERE M_NAME = '" & ChkString(Request.Form("Name"), "SQLString") & "'")
if rs("M_POSTS") >= CInt(intRankLevel1) then
strSql = strSql & " M_TITLE = '" & ChkString(Request.Form("Title"),"SQLString") & "', "
end if
rs.Close
set rs = nothing
WORKED!
Is there a problem with this solution?<
Posted
Junior Member
Davecl
Posts: 105
105
can't see why this works yet it didn't before when all you've changed is the mlev check in pop_profile.asp which allowed mods & admins to change peoples titles.
can't see any problem with it though. <
Dave
You Must enter a message