Author |
Topic  |
|
Riley
Starting Member
15 Posts |
Posted - 27 May 2003 : 03:57:33
|
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
|
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.” |
 |
|
Riley
Starting Member
15 Posts |
Posted - 27 May 2003 : 15:23:02
|
Something so easy yet so hard to find.
Thank you a million. That was just what I was looking for! |
 |
|
DoraMoon
Average Member
  
Taiwan
661 Posts |
Posted - 27 May 2003 : 16:02:39
|
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.  |
 |
|
|
Topic  |
|
|
|