MyForumIcons - Custom Forum Icons

by EthanD 20 Stars 7,262 Downloads

Set custom icons for your forums!

Project Details

This will allow you to create custom icons for your forums.


You can specify a path to your forum's custom icon by going to the ACP => Forum Management => Edit Forum.

When installed, it will alter the forums table to add a column called myforumicon, which will be used for the custom icon of your forum.

When activated, modifications to your forumbit_depth2_forum template will be made. It uses the following code to replace templates:

function myforumicons_activate()
 {
 require_once MYBB_ROOT."inc/adminfunctions_templates.php";
 find_replace_templatesets("forumbit_depth2_forum", "#".preg_quote("id=\"mark_read_{\$forum['fid']}\"></span>")."#i", "id=\"mark_read_{\$forum['fid']}\" {\$forum['myforumicon_override']}></span>{\$forum['myforumicon']}");
 }

This allows the plugin to generate an icon for the forum and hide the default icon. When an icon is not set, the default will be used.

If you have any questions/concerns, please let me know.

Enjoy!
Author
EthanD
Collaborators
None
Version
1.00
Submitted
2015-03-30, 07:03 AM
Last Updated
2018-12-06, 11:01 AM
Bug Tracking
Disabled
MyBB Versions
1.8.x