MyBB Community Forums

Full Version: Forum Icons
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12
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>
Good work Steve. Thanks. Smile

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

What idea you got running in your head?
Can we have a screeny? (Is this basicly Ficons?)
Dude , if this works I'll <3 you !
Check my original post for screenshots or the download link in my original post.

Hyde: It works, trust me.
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?
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
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..
wow...! Great plugin

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