Author |
Topic |
|
zerakh
Junior Member
120 Posts |
Posted - 16 September 2005 : 20:40:44
|
ok- I found a topic in this forum regarding mlevs and how to create (for example:: the contributor level, normal, mod, and admin) extra levels.
I'm having a slight problem(s): 1st, what exactly is an mlev and how are they classified? I see a bunch of these throughout the files with various numbers. My only guess would be it being a specific level of a user and the code allowing a certain level to have authorization.
If I do understand that correctly, I thought that I would create an extra level somewhere similar to that of the contributor (specified in another topic)
Everything seems to go ok, except for when I get to the editing of profiles, where I assign a level to one of my members. Say that I were to make a user a "contributor" I assign him this level and it goes ok, until I see the members list page. Underneath the title spot it shows that he was assigned an admin title- yet he was listed as a moderator or lower position, or...the name comes in as "Error" and the post shows the same thing.
How do I go about showing his name as "contributor" correctly without changing the personal title in his profile or without the error coming up?
When I do add an extra mlev to the file, what do I do with all of the code that lists mlev = 3 (or 4) from the original code? Do I add 1 for every mlev that I create?
**EDIT:: Sorry- I didnt think this was a mod Implement, I was just asking a few questions on what something was and how I would add a few more** |
Edited by - zerakh on 16 September 2005 21:04:07 |
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
|
zerakh
Junior Member
120 Posts |
Posted - 17 September 2005 : 00:24:39
|
so, if I wanted to create just one level, between the moderator and the admin- then the admin level would switch to 4 while this new "helper" gets a value of 3?
then when that happens, I just need to go in and find every instance of what? what am I supposed to change on these files? would it be the mlev = ? would I increase the mLev = 3 (or 4) by 1 to satisfy the change I made?
I dont mind going through code, Ive just never dealt with databases or asp before. |
|
|
rasure
Junior Member
289 Posts |
Posted - 17 September 2005 : 06:27:07
|
If its another member level you need it might be easier to add the Sponsoring members mod I believe its MarcelG`s and might be available from http://www.oxle.com/ I have the mod installed on my forums for Gold Members but can quite easily be used and customised for admins/mods too. |
Psychic & Spiritual Development Resources |
Edited by - rasure on 17 September 2005 06:28:57 |
|
|
OneWayMule
Dev. Team Member & Support Moderator
Austria
4969 Posts |
Posted - 17 September 2005 : 07:27:41
|
quote: so, if I wanted to create just one level, between the moderator and the admin- then the admin level would switch to 4 while this new "helper" gets a value of 3?
For a new member level between moderator and admin you could change the level structure like this:
mLev 0 - user is not logged in 1 - author (used to check if a certain user can edit a post for example) 2 - normal user 3 - moderator 4 - your new member level 5 - administrator
M_LEVEL in the MEMBERS table: -1 - awaiting approval 1 - normal user 2 - moderator 3 - your new member level 4 - administrator
quote: then when that happens, I just need to go in and find every instance of what? what am I supposed to change on these files? would it be the mlev = ? would I increase the mLev = 3 (or 4) by 1 to satisfy the change I made?
You'll have to modify: - the code in inc_header which sets the mLev variable for later use - the code in the registration and profile code where admins can change a member's level - and you'll need to modify all the member level checks, I'd search all files for mLev. |
My MODs: Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch
Useful stuff: Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
|
Edited by - OneWayMule on 17 September 2005 09:57:36 |
|
|
zerakh
Junior Member
120 Posts |
Posted - 17 September 2005 : 12:14:37
|
that sponsoring mod looks like it might work, thanks. Thank you for the information on the mLev's it'll help me out alot. But in regards to me adding more at this time....I think Im going to have to pass until I get more time to do a proper search and replace for everything. |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 19 September 2005 : 06:40:08
|
There's quite a few files you'll need to edit to assign the correct alue to the mlev variable. You can view a list of some of them here. Note that you will not be able to follow my instructions in that topic to the letter as my changes insert a new M_LEVEL between normal user and moderator and does not grant the new level extra permissions within the forums. As such, you'll need to edit a few more files than the ones I've posted to grant your new M_LEVEL additional permissions.
|
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.” |
|
|
|
Topic |
|