-
-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Userclass Images feature #2225
Comments
I think there should be a shortcode which allows you to display the userclass icon? I'll look into this asap. |
And why not have a Class color too, in adittion to the icon, so the user name could also be colored sitewide according to it's class? |
/** * @example: {USER_USERCLASS_ICON} returns the icons of all userclasses the user belongs to, seperated by a whitespace * @example: {USER_USERCLASS_ICON: amount=1} // returns only one icon * @example: {USER_USERCLASS_ICON: seperator=|} // returns the icons seperated by | * @param array $parm * @return string */
I've added a shortcode for this which can be used in the User Profile (user_template.php).
We could add something similar for the forum plugin. Perhaps we should make this a global shortcodes ('user' plugin folder?). What do you think @CaMer0n?
I consider this plugin territory. The userclass icon was already part of core. Adding colors is not something that is currently integrated. If there is sufficient demand, we could add it. |
@Moc your solution is a real improvement. Thanks. Maybe excluding parm would be handy, but now I can't see where to use it. Online info plugin is able to color user classes and user names (see in action on wrxxy site) |
@Jimmi08 Great! I am not sure what you mean with "excluding parm", can you clarify? I am tempted to create a plugin for this (showing both userclass icons and colors) using a global shortcode so it can be used site wide. I still feel that this functionality is not for core, but I don't mind doing some work on it. |
Cameron said this should already be a part of the core of e107 but I dont think its the same thing. There is an option under User class management to assign a Class Icon, but I dont see where that actually shows up.
This old plugin here http://e107.org/plugins/?id=771 actually lets you add a image under the user's avatar based on what userclass they are apart of. It would be cool if you could too if a user is part of more than one class that they would get both pictures. Example if they are a Member and a donator. They would have 2 images. I think at one point I saw some shortcode that you could put in the forum topic view that would allow you to give a user a image.
The text was updated successfully, but these errors were encountered: