MyBB Community Forums
Forum Icons - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Releases (https://community.mybb.com/forum-102.html)
+---- Thread: Forum Icons (/thread-53421.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12


Forum Icons - Steve Moore - 2009-07-22

As promised, I have now released my first mod for MyBB.

PL9 Forum Icons is just that, a means to add custom forum icons for your forums while still holding the main forum icons in place if you did not input a custom icon.

This thread I intend to use for suggestions and feedback. You will find that I have given the link to download and a couple of the screenshots.

Features:
- Enable/Disable Setting
- Extra forum option to add location of your custom icon
- If no icon was designated, default forum icon is used

More details and download can be found here: http://mods.mybboard.net/view/pl9-forum-icons

Template Troubles:
Open forumbit_depth2_forum template

Find:
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />

Replace with:
<if $mybb->settings['enable_pl9ForumIcons'] then>
<if $forum['forum_icon'] then>
<img src="{$forum['forum_icon']}" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
<else />
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
</if>
<else />
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
</if>

Parse Error:
Replace the above code with:
<if $mybb->settings[enable_pl9ForumIcons] then>
<if $forum[forum_icon] then>
<img src="{$forum['forum_icon']}" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
<else />
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
</if>
<else />
<img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" />
</if>



RE: Forum Icons - HarryWx - 2009-07-22

Good work Steve. Thanks. Smile

It has given me a idea which i'll try out later with this.


RE: Forum Icons - Steve Moore - 2009-07-23

Your welcome.

What idea you got running in your head?


RE: Forum Icons - Lo. - 2009-07-23

Can we have a screeny? (Is this basicly Ficons?)


RE: Forum Icons - Hyde - 2009-07-23

Dude , if this works I'll <3 you !


RE: Forum Icons - Steve Moore - 2009-07-23

Check my original post for screenshots or the download link in my original post.

Hyde: It works, trust me.


RE: Forum Icons - Hyde - 2009-07-23

Can you explain this better please .

1. Upload all folders/files in the /Upload/ directory to your forum root.
2. Open /admin/modules/forum/management.php
3. COMPLETE THE FOLLOWING FIND & REPLACEMENT STEPS

3a. FIND (2 INSTANCES EXIST):
$form_container->output_row($lang->forum_link, $lang->forum_link_desc, $form->generate_text_box('linkto', $forum_data['linkto'], array('id' => 'linkto')), 'linkto');

3a. ADD BELOW (BELOW BOTH INSTANCES):
$form_container->output_row("Forum Icon", "Add a custom forum icon to appear in place of the default forum icons.", $form->generate_text_box('forum_icon', $forum_data['forum_icon'], array('id' => 'forum_icon')), 'forum_icon');

3b. FIND (2 INSTANCES EXIST):
"defaultsortorder" => $db->escape_string($mybb->input['defaultsortorder']),

3b. ADD BELOW (BELOW BOTH INSTANCES):
"forum_icon" => $db->escape_string($mybb->input['forum_icon']),
+_+ , Are you still there?


RE: Forum Icons - VAPOR - 2009-07-23

I think he wanted a live ss from a forum, not the settings part.

Find live ss here: http://mods.mybboard.net/view/pl9-forum-icons


RE: Forum Icons - Hyde - 2009-07-23

Alright , I already did all this .. and i even see the icon option i set the icon directory path then i click save it says sucessfully safed and then it resets its self back to default .. I know im doing something wrong in the management.php
Could anyone make the Management.php for me? Im going crazy this doesnt work..


RE: Forum Icons - ghazal - 2009-07-23

wow...! Great plugin

Thanks Steve