View sig options for members - نوشته شده در (3053 Views)
Junior Member
Lon2
مطلب: 151
151
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?<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
Never noticed that it didn't let you. What you need is likely in inc_profile.asp<
نوشته شده در
Junior Member
Lon2
مطلب: 151
151
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! bigsmile<
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
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.<
نوشته شده در
Advanced Member
Carefree
مطلب: 4224
4224
In "inc_profile.asp", search for the following line:
Code:

		if strMode <> "goModify" then
Change it to say:
Code:

		if strMode <> "goModify" or intAdminMemberID=MemberID then
<
نوشته شده در
Junior Member
Lon2
مطلب: 151
151
That was easy! Thank you Carefree! [^]
P.S. You can move this topic to your Mod w/Code forum. bigsmile<
نوشته شده در
Junior Member
Lon2
مطلب: 151
151
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?<
نوشته شده در
Forum Moderator
AnonJr
مطلب: 5768
5768
Its been a while since I last looked at the profile code... couldn't say off the top of my head.<
نوشته شده در
Junior Member
Lon2
مطلب: 151
151
Ok strangest thing, after looking at the code in pop_profile.asp I noticed it was already there but commented out. What?
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 if
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:

Code:
if strSignatures = "1" then
strSql = strSql & ", M_SIG = '" & chkString(Request.Form("Sig"),"message") & "'"
end if
And before this:

Code:
strSql = strSql & ", M_LEVEL = " & cLng("0" & Request.Form("Level"))
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.
<
نوشته شده در
Forum Admin
HuwR
مطلب: 20611
20611
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 ?<
نوشته شده در
Junior Member
texanman
مطلب: 410
410
Hmmm mine is commented too. Anyway, what are you trying to do. I don't really get it.<
شما باید یک متن وارد کنید