The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
As admin (ID=1), I would like to be able to see, and perhaps change, the "View Signatures in Posts?" and "Signature checkbox checked by default?" drop-down menus in member's profile. Has this mod been done before?<
Posted
Never noticed that it didn't let you. What you need is likely in inc_profile.asp<
Posted
Thanks Anon. I guess it would be nice to be available to members as well, in case they change their mind about the options after registration. I guess I'll see what I can do on my own. Hopefully I don't corrupt everything!
<
Posted
Members should be able to change it on their own, its just the Admins that don't seem to be able to change that on someone else's profile.<
Posted
In "inc_profile.asp", search for the following line:
Change it to say:<
Code:
if strMode <> "goModify" then
Code:
if strMode <> "goModify" or intAdminMemberID=MemberID then
Posted
That was easy! Thank you Carefree! [^]
P.S. You can move this topic to your Mod w/Code forum.
<
P.S. You can move this topic to your Mod w/Code forum.
Last edited by Lon2 on 17 February 2009, 10:43
Posted
You are correct, AnonJr. As admin, when I change the options and submit, they don't stay changed. How involved would it be to change the code to allow this?<
Posted
Its been a while since I last looked at the profile code... couldn't say off the top of my head.<
Posted
Ok strangest thing, after looking at the code in pop_profile.asp I noticed it was already there but commented out. What?
I uncommented the 6 lines and it works perfectly. Weird!
If anyone wants to add the code and don't already have it, insert the above 6 lines after this:
And before this:
Toward the end of case "ModifyIt" around line 1480 of an unmodified pop_profile.asp.
P.S. If anyone knows why it would have been commented out of the original, I would appreciate knowing why.
<
Code:
if strSignatures = "1" and strDSignatures = "1" then
strSql = strSql & ", M_VIEW_SIG = " & cLng("0" & Request.Form("ViewSig"))
end if
if strSignatures = "1" then
strSql = strSql & ", M_SIG_DEFAULT = " & cLng("0" & Request.Form("fSigDefault"))
end ifIf anyone wants to add the code and don't already have it, insert the above 6 lines after this:
Code:
if strSignatures = "1" then
strSql = strSql & ", M_SIG = '" & chkString(Request.Form("Sig"),"message") & "'"
end ifCode:
strSql = strSql & ", M_LEVEL = " & cLng("0" & Request.Form("Level"))P.S. If anyone knows why it would have been commented out of the original, I would appreciate knowing why.
<
Last edited by Lon2 on 25 February 2009, 12:40
Posted
it was probably commented out because the code was simply copied from the previous section, and it was deemed inappropriate for an admin to be able to set these values so they were commented out.
Why should it be the admins choice as to whether or not I can view signatures ?<
Why should it be the admins choice as to whether or not I can view signatures ?<
Posted
Hmmm mine is commented too.
Anyway, what are you trying to do. I don't really get it.<
Email Member
Message Member
Post Moderation
FileUpload
If you're having problems uploading, try choosing a smaller image.
Preview post
Send Topic
Loading...