Skip to content
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

Closed
ghost opened this issue Dec 30, 2016 · 5 comments
Closed

Userclass Images feature #2225

ghost opened this issue Dec 30, 2016 · 5 comments
Assignees
Labels
Help Wanted type: enhancement An improvement or new feature request
Milestone

Comments

@ghost
Copy link

ghost commented Dec 30, 2016

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.
screenshot_2

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.

@Moc
Copy link
Member

Moc commented Jan 1, 2017

I think there should be a shortcode which allows you to display the userclass icon? I'll look into this asap.

@Moc Moc added the type: question An ask about behavior that is not found documented anywhere label Jan 1, 2017
@rica-carv
Copy link
Contributor

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?

@Moc Moc added type: enhancement An improvement or new feature request Help Wanted and removed type: question An ask about behavior that is not found documented anywhere labels Feb 28, 2018
@Moc Moc added this to the Future milestone Feb 28, 2018
@Moc Moc self-assigned this Dec 3, 2019
Moc added a commit that referenced this issue Dec 3, 2019
	/**
	 * @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
	*/
@Moc
Copy link
Member

Moc commented Dec 3, 2019

I've added a shortcode for this which can be used in the User Profile (user_template.php).

	/**
	 * @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
	*/

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?

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?

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 Moc modified the milestones: Future, e107 2.3.0 Dec 3, 2019
@Jimmi08
Copy link
Contributor

Jimmi08 commented Dec 3, 2019

@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)
Classmembership plugin is able to add badges (in meaning to get background color, not text color) to classes (I use it with user list and profile)

@Moc
Copy link
Member

Moc commented Dec 3, 2019

@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.

@CaMer0n CaMer0n modified the milestones: e107 2.3.0, Future May 14, 2020
@Moc Moc closed this as completed Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted type: enhancement An improvement or new feature request
Projects
None yet
Development

No branches or pull requests

4 participants