bbPress

Simple, Fast, Elegant

bbPress plugin browser »

Topic Icons (0.0.5)

Download

Version: 0.0.5

Last Updated: 2008-7-31

Requires bbPress Version: 0.8.3 or higher

Compatible up to: trunk

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(4)

Your Rating

Author: _ck_

Adds icons next to your topic (and forum) titles automatically based on keywords or special topic status such as sticky, support question, has poll, etc.

Demo: http://bbshowcase.org/forums/


  1. Version 0.0.1 is an early release based upon a request to mimic what I have done on http://bbshowcase.org/forums/
    Feel free to submit suggestions for improvements.

    By default it's more geared towards support forums but if you understand what to edit in the settings (until an admin menu can be made) you can make it more robust for other purposes.

    If you use the support-forum plugin, you'll want to turn off it inserting it's own icons to prevent icon repetition.

    Keywords are currently picked up from the title text until I can figure out a way to read topic tags without a huge number of database queries.

    I'll eventually add the (optional) ability for topic posters to also choose their own icon.

    Posted: 6 months ago #
  2. Again, a great plugin!

    Posted: 6 months ago #
  3. "I'll eventually add the (optional) ability for topic posters to also choose their own icon."

    Still waiting for this :)

    Posted: 6 months ago #
  4. SpaceDragon

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    Is there a way to have the icons based solely on forum instead of keywords in the topic title?

    Posted: 6 months ago #
  5. Hmm I guess I could do that (based on forum).

    Wouldn't that get a tad overwhelming (and pointless) when you are in the forum view?

    Posted: 6 months ago #
  6. SpaceDragon

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    The forums are arranged as lists, not tables, so icons will act more like bullets to finesse the design.

    Thanks for your help!

    Posted: 6 months ago #
  7. I've now added the ability to specify specific icons for each forum in 0.0.3

    Put ?forumlist on your url to get an easy list of forums by number (until an admin menu can be made).

    If you delete the regular rules, it will always fallback to the forum icon (unless it's a sticky or support topic).

    For those that leave the regular rules in and also add forum specific icons, they will be used as a fallback when no other trigger matches the topic.

    Next I'll work on (optional) user selected icons but that might take a day (or two).

    Posted: 6 months ago #
  8. SpaceDragon

    5 stars
    4 stars
    3 stars
    2 stars
    1 star

    Member

    Wow, this is exactly what I needed and it works beautifully! Thanks for your quick responses and help!

    Posted: 6 months ago #
  9. This is a great plugin, Thanks for adding!!!

    Posted: 5 months ago #
  10. csseur3

    Member

    hello,

    it is possible to have a version wich add automatically the code in templates? :)

    so, where to put the /icons folder? it is not show.

    bye

    Posted: 4 months ago #
  11. Just keep the /icons folder where it is, under topic-icons

    /my-plugins/topic-icons/icons

    You don't need to edit any templates for the basic functionality.

    Posted: 4 months ago #
  12. feliao

    Member

    I assigned all the forums with keywords and then icon. All the topics showed up with icons but none of the forum theme shows up with icons ? Any Ideas ?

    Posted: 4 months ago #
  13. feliao, so your keywords in $topic_icons['forums'] match one the keywords in $topic_icons['graphics'] ??

    Posted: 4 months ago #
  14. feliao

    Member

    Yes. And it is obviously taking effect as all the topics within the forum theme have the right icons displayed. The problem is the forum theme themselves don't get the icoons. http://www.search1x.com/forum/

    Posted: 4 months ago #
  15. Please post what your $topic_icons['forums'] and $topic_icons['graphics'] looks like here (between backticks) or via www.pastebin.com

    Posted: 4 months ago #
  16. feliao

    Member

    $topic_icons['forums']=array( // keyword group to show based on forum number as fallback if none of the rules above are matched
    "2" => "annouce",
    "3" => "discovery", // to get a list of your forums by number when this plugin is active: add ?forumlist to your url
    "4" => "tips", // if you don't want this feature, just remove these entries or comment them out with /* */
    "5" => "tips",
    "6" => "tips",
    "11" => "tips",
    "7" => "general",
    "8" => "general",
    "9" => "general",
    "10" => "general",
    "12" => "general",
    "13" => "off"

    );

    $topic_icons['graphics']=array( // graphics to assign to keyword groups (now you must specify extension)
    "alert" => "exclamation.png",
    "general" => "flag_green.png",
    "off" => "plugin.png",
    "idea" => "lightbulb.png",
    "discovery" => "lightbulb.png",
    "theme" => "layout_content.png",
    "plugin" => "plugin.png",
    "wordpress" => "wordpress.png",
    "bbpress" => "bbpress.png",
    "sticky" => "star.png",
    "tips" => "star.png",
    "closed" => "lock.png",
    "poll" => "chart_bar.png",
    "resolved" => "flag_green.png",
    "unresolved" => "flag_red.png",
    "annouce" => "flag_blue.png"
    );

    Posted: 4 months ago #
  17. Ah it just occurred to me, since you are using a semi-custom template, are you using forum_name() in your template or perhaps get_forum_name() instead? I don't affect get_forum_name() and I am trying to remember my reason why.

    Oh I know why now - it's because get_forum_name is used by internal functions like dropdown lists which cannot support the images. Show me your template code in front-page.php or forum.php between

    <?php while ( bb_forum() ) : ?>
    (blah blah)
    <?php endif; // bb_forums() ?>

    (I want the blah blah part).

    Posted: 4 months ago #
  18. feliao

    Member

    <?php while ( bb_forum() ) : ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?>"><?php forum_name(); ?><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endwhile; ?>
    </table>
    <?php endif; // bb_forums() ?>

    Posted: 4 months ago #
  19. Oh shoot, it's the default. Argh. Well you've found an interesting bug to be certain. I'll need to investigate some more.

    Posted: 4 months ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.