PDA

View Full Version : Adopted by certain user levels...


densaugeo
04-18-2009, 11:15 PM
So, I made an adoptable that can only be adopted by a certain user level. But as an admin, I can't adopt it as well :P Which sucks, cuz I made it XD I want to be able to adopt it too. Is there any way to make it available to more than 1 user level, without making it available to everyone?

SJC
04-18-2009, 11:22 PM
What group did you set it for?

densaugeo
04-19-2009, 12:07 AM
I made a new user group. a test group, to see how the 'only adopted by (insert user group here)' worked. XD

mugwumpr
04-19-2009, 12:38 AM
Can you make a second account for yourself as a member of the specific user group? Doesn't help with adopting to your main account, but you'd have one....

Ashje
04-19-2009, 01:50 AM
Make yourself an admin and then make another exception, as the admin group.

BMR777
04-19-2009, 04:36 PM
Easy way would be make a second account, make it admin. Then make your first admin account a member of the other usergroup, adopt the pets, then use your other admin account to change your first account back to admin. :)

I'll probably expand the usergroup flexibility for future releases.

Ashje
04-19-2009, 05:02 PM
^
Lol, that's like a riddle XD

densaugeo
04-19-2009, 05:10 PM
LOL I just figured out an easier way..I just adopted another normal one, then went into my database to owned adoptables, and changed the type to the one i wanted

Seapyramid
04-19-2009, 05:27 PM
None of these solutions is doable with what I have planned. It is not admin adoptables I am concerned with but some other layering of groups with members. is there a way say to give access to say group 5... but also add to the coding that group 6 has access as well?

The way I currently have it laid out.. (I can change the rank numbers ) Is that group 3 is Resistered.. they are lowest.. then Artists.. then Donators.. then Merlin.. then Admin.. if Donators group has access to an adoptable then Merlin also should have access since they have access to everything in the groups below them + a little bit more.

Sea

BMR777
04-19-2009, 05:30 PM
I suppose you could make some modifications to the canadopt function in functions.php. You could also make a new database table and insert into it the adoptable type and an allowed group, so then it would check all of the allowed groups rather than just one.

That would be a way to do it, but would require you to mod the script.

Seapyramid
04-19-2009, 05:34 PM
Can do.. might be asking for some help on the mod.. Let me work on it some first. That's what I figured would need to be done.

Sea

Seapyramid
04-21-2009, 03:33 PM
WOOT! Actually I now have it working & all it took was changing a ! to a < and then changing the number of the admins group from 1 to 10 :D The trick is you must have your groups set up in correct order for it to work :)

Sea