We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Body suggestion; Primarily for coders
Topic Started: May 6 2011, 02:28 PM (542 Views)
Xero-ZNS
Weilder of Light and Darkness
[ * ]
Okay, here is my suggestion. Create a custom class for the body of each page. The class will be different for each usergroup. For example: If the current user browsing a ZB forum is a guest, the body will gain a class named "body_guest" or something. This will make it infinitely easier for coders of Javascript OR CSS to create codes based on usergroups. Like if a certain box isn't supposed to be shown if a guest is on, the code would look like:
Code:
 
<style type="text/css">
body.body_guest div#switch_box {
display:none;
}
</style>

I'm sure many coders would thank you for this. But it wouldn't just be for members and guests. It would be for Admins, Moderators, Members, Guests, Special Members, Derpy Member, etc. What do you think? I know I would be very happy with a change like this and I'm sure it would be easy to implement.

And if you can't base it off of the user's usergroup, then base the custom class off of how much access they have, whether they can access Admin CP, Mod CP, or not at all.



Edit: On second thought, I think it would be better to make a custom class based off of forum access rather than member group. Easier for cross-forum coding.
Edited by Xero-ZNS, May 6 2011, 03:37 PM.
Offline Profile Quote Post Goto Top
 
Geoffrey-ZNS
Member Avatar
I want you for worse or for better
[ *  *  *  * ]
Yeah, I think it'd be easier to base it off of ACP, RCP, Member or Guest access. And I would definitely love this.
Offline Profile Quote Post Goto Top
 
Xero-ZNS
Weilder of Light and Darkness
[ * ]
So, uh, is this a viable suggestion? I think it would help alot and shouldn't take much to code.
Offline Profile Quote Post Goto Top
 
JJEmpire
Member Avatar
Do I desire to learn the motive behind this insanity?
[ *  *  *  * ]
While I don't know how to code, I can see how this'd be useful for coders, so I'll like to see this, too.
Offline Profile Quote Post Goto Top
 
Nemomon
Member Avatar
My dad's a soldier blue I'll be a soldier too
[ *  *  *  *  *  *  * ]
Personally I have never used any Ad removal but I think this would be easily coded based on it. From what I have heard, Ad removal are usergroup controlled.

I also would like to see this feature added. Maybe even some kind of feature, where Admin would be able to set certain divs that would be visible to certain groups.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Service Discussion and Feedback · Next Topic »
Add Reply