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: MOD Implementation
 Avatar Mod Access Level
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Riley
Starting Member

15 Posts

Posted - 27 May 2003 :  03:57:33  Show Profile  Visit Riley's Homepage  Send Riley an AOL message  Send Riley an ICQ Message  Send Riley a Yahoo! Message
All,

I have searched far and wide for the answer to this question but I can't seem to find it.

I am currently running [Snitz Forums 2000 Version 3.4.02] with the Avatar mod implemented. I would like to restrict avatar setting to the administrators only. I don't want users to select there own, is there a way to do this? I have tried a couple of things but have found that if I remove the "include" for the avatar file it resets the link in the database causing the image to not show up.

Anyone know of a quick and easy way to do this?

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 27 May 2003 :  04:41:27  Show Profile
Have a look at DoraMoon's My Avtar Add-On ove at SnitzBitz; not 100% certain but it may have the feature you require. Otherwise you could do an mlev check before writing the include file in the profile pages and displaying the avatar on topic.asp. Something along the lines of:

if mlev = 4 then
    execute code
end if


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

Riley
Starting Member

15 Posts

Posted - 27 May 2003 :  15:23:02  Show Profile  Visit Riley's Homepage  Send Riley an AOL message  Send Riley an ICQ Message  Send Riley a Yahoo! Message
Something so easy yet so hard to find.

Thank you a million. That was just what I was looking for!
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 27 May 2003 :  16:02:39  Show Profile
hi~ Riley,

the My Avatar addon, just oppositely, it give members the authority to reserve a avatar for his personal only. i think that mod may not what you needed.

and the inc_avatar.asp including file used on many different Profile edit/modify situation. that's why you can't just "hide" it from normal members...

as MeTV mentioned, you can try using the mLev value to set the restrict condition. maybe try this...
in inc_avatar.asp about line.45, add below red color 3 lines..
avMember_ID = 0
end if

if Request.QueryString("mode") = "Register" then
response.write "<input type=""hidden"" name=""Avatar_URL"" value=""noavatar.gif"">" & vbNewLine
elseif mLev = 4 then


%>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin script


and at the bottom about line.155 add "end if"
Response.Write " </td></tr>" & vbNewLine

end if
%>


then i think you'll also need to modify the pop_profile.asp file.
there are a lots case "Edit", case "Modify", case ... different mode, just find this line in case "EditIt" section (about line.1235)
strsql = strsql & ", M_AVATAR_URL = '" & ChkString(regAvatar_Image,"SQLString") & "'"
change to..
if mLev = 4 then
strsql = strsql & ", M_AVATAR_URL = '" & ChkString(regAvatar_Image,"SQLString") & "'"
end if


then i think this way can prevent members from Editing the avatar section in their Profile. and if Admin want to set a avatar for someone member.. just "Modify" member's profile to do it.
(the Reserve avatar feature in Avatar Setup, it did'nt specify the avatar url for member, just "reserve" for him only.. so unless you do some modification to the admin file, or i guess.. Edit members' profile one by one, it's the only way to do this job. )

hope this helpful for you.
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.34 seconds. Powered By: Snitz Forums 2000 Version 3.4.07