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_


  1. feliao, can you help me debug this by editing this line

    function forum_icon_automatic($name,$id) {if (forum_icon(true,$id)) {echo " ";} return $name;}

    and making it say this instead

    function forum_icon_automatic($name,$id) {if (forum_icon(true,$id)) {echo " ";} return " <!-- $id --> $name";}

    .
    also, you might want to investigate what happens if you temporarily switch back to the built in kakumei theme - do they suddenly appear? (you can immediately switch back after you test)

    Posted: 4 months ago #
  2. feliao

    Member

    Sure.

    - Changed back to built in kakumei theme => Same problem
    - Changed function code => Same problem

    Posted: 4 months ago #
  3. Ah the diagnostic code I had you add is telling me something as it thinks the forum $id is zero for some reason. I'll investigate. You are using bbPress 0.9.0.2 right?

    Posted: 4 months ago #
  4. feliao

    Member

    Yes and I do have a forum theme that is numbered zero, is that not allowed ?

    Posted: 4 months ago #
  5. feliao

    Member

    Actually, maybe not. here is the list
    Forum List
    2 -> Search1.x Announcement and Feedback

    3 -> New Discovery

    4 -> Search Tips, Tricks and Hacks!

    5 -> Google Search Tips

    6 -> Yahoo Search Tips

    7 -> General Search Discussion

    8 -> Web Search

    9 -> Blog Search

    10 -> Desktop Search

    11 -> Live Search Tips

    12 -> Image Search

    13 -> Off-Topic

    14 -> Enterprise Search

    Posted: 4 months ago #
  6. No, this is not your fault at all. I had some faulty code.
    In fact I am at a loss to explain how it was working at all for anyone. I assumed bbPress was passing the current forum_id # but in fact it was not, sending "0" instead and relying on the filter to figure it out from the current loop.

    Try 0.0.5 when you see it appear here and let me know.
    Or if you don't want to wait, save from here:
    http://plugins-svn.bbpress.org/topic-icons/trunk/topic-icons.php

    don't forget to copy over your forum and topic arrays

    Posted: 4 months ago #
  7. feliao

    Member

    0.05 is GOOD !!!! Nice work CK

    Posted: 4 months ago #
  8. Glad to hear it works, thanks for helping me debug, enjoy!

    Posted: 4 months ago #
  9. csseur3

    Member

    line 130:

    replace: return "<img class='topic_icons' title='$keyword' alt='$keyword' src='".$topic_icons['url'].$topic_icons['graphics'][$keyword]."' >";

    by:
    return "<img class='topic_icons' title='$keyword' alt='$keyword' src='".$topic_icons['url'].$topic_icons['graphics'][$keyword]."' />";

    for the end tag of <img ... /> :p

    bye

    Posted: 4 months ago #
  10. Anonymous

    Unregistered

    I have a problem.
    See for yourself: http://markokaartinen.net/bb/
    Not all of the posts or forums get the icon, how is that possible?
    And yes it's finnish :)

    Posted: 4 months ago #
  11. markok, did you assign an icon for every single forum?
    Show me what your $topic_icons['forums']=array( ) looks like?

    Posted: 4 months ago #
  12. Anonymous

    Unregistered

    Aaa, I see my problem now :)
    I haven't noticed that array, I just thought that it generates automatically those.
    Great work by the way.

    Posted: 4 months ago #
  13. csseur3

    Member

    hey,

    there is a bug for closed topics,
    with that:
    elseif (!$topic->topic_open) {echo topic_icons_graphic("closed");}

    in my closed topics, i don't see the lock.png icon...

    Posted: 3 months ago #
  14. musnake

    Member

    Hello,

    v1.02a and plugin v0.05 works great.

    I added a float:right; to $topic_icons['style'] which looked pretty good IMHO. The float left was good too and didn't interfere with my hidden forum icon.

    Only the first keyword associated icon is displayed if there are multiples in the post's title...nice and simple.

    Thanks.

    Posted: 1 month ago #
  15. Might've missed this but how does one get to choose which icon will be added next to a new topic title? I thought there was a 'manual' feature to this plugin as well?

    Posted: 1 month ago #
  16. There's no manual selection yet.
    I haven't had the time (or donations) yet, sorry.

    Posted: 1 month ago #
  17. Excellent work _ck_! Using it here:

    http://www.cairoshell.com/forum/

    Posted: 6 days ago #
  18. Wow you really made it work well mciarlo.

    If you are on apache, you might want to add/turn on mod_expires and set the icons to have an expire time like 30+ days in the future. They seem to be reloading on every page load.

    You also might want to check out my "Related Topics" plugin which could work well on your kind of forum.

    Posted: 6 days ago #
  19. I'll definitely look into that, but in the meantime is that something that can be fixed in the PHP?

    I ask because we're on a shared server and might not have access to that...

    EDIT: I cannot edit this setting on a shared server.

    Posted: 6 days ago #

RSS feed for this topic

Add a Comment

You must log in to post.

Code is Poetry.