-
-
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
Forum icons supporting FontAwesome #3733
Comments
It's labelled as an icon, but it is actually an image:
Changing type from 'image' to 'icon' would no doubt make some people unhappy. |
@CaMer0n I've done some testing on it and I think we can add this feature without having to add another field and without needing to modify the update routines.
// Check if it's glyph / icon instead of image
if (strpos($this->var['forum_image'], '.glyph') !== false)
{
return e107::getParser()->toIcon($this->var['forum_image'], $parms);
}
My issue is that I want to use FontAwesome rather than Glyphicons (especially since Bootstrap no longer includes them as of BS4) Ideally, I'd like to have a FontAwesome tab in the media manager modal (admin area) but I realise this may be quite some work. In the What are your thoughts on this? I could try and give creating a new method |
@Moc Great! That's even better. Re: FontAwesome in MediaManager.. |
@CaMer0n I'm going to do a facepalm on the mediamanager FA icons..... I am not sure how I missed that haha, thank you! I'll work on the needed edits as discussed above :) |
- Renamed forum image to "Image" (LAN_IMAGE instead of LAN_ICON) - Added new field forum_icon (LAN_ICON) - Icon can be used / rendered using {FORUMICON} shortcode in template - database update requires - v1 to v2 update needs testing (will do shortly)
After toying around with this and after having discussed this with Cameron, we decided to go for adding a new field, rather than to (ab)use the forum image field for this. It would require many tweaks which in fact is adding a mess and is also a reinvention of the wheel (since the Admin UI already provides for an 'icon' type). See latest changes. Closing the issue, but let me know if there are any issues arising from this change. |
Forum icons currently allow uploading of images but apparently no support yet for fontawesome icons (or glyph).. Could this be added?
The text was updated successfully, but these errors were encountered: