Skip to:
Content
Pages
Categories
Search
Top
Bottom

Topic Icons?


  • jerichox
    Participant

    @jerichox

    So I have been searching for a few days now.. I ran across a bunch of dead links for a plug in called bb topic icons and am wondering if anyone else knows of a plug in that will add icons to thinks like sticky and hot posts and stuff like that?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)

  • Robkk
    Moderator

    @robkk


    jerichox
    Participant

    @jerichox

    Well this is an awesome page.. thanks so much!


    Robkk
    Moderator

    @robkk

    @jerichox

    i know right!!


    jerichox
    Participant

    @jerichox

    ok so here is a crazy question.. what Function file do these go in? LOL or am i totally lost.


    jerichox
    Participant

    @jerichox

    so I got it to work.. the only one not working is the NEW post one..

    // New Topic
    function rk_new_topics() {
    $offset = 1800; 
     
       if ( get_post_time() > date('U') - $offset )
          echo '<span class="new"><span class="dashicons dashicons-smiley"></span></span>';
    }
     
    add_action( 'bbp_theme_before_topic_title', 'rk_new_topics' );
    
    

    does that code look right?


    oxymorenous
    Participant

    @oxymorenous

    Wow that is amazing 😀


    Robkk
    Moderator

    @robkk

    @jerichox

    worked fine when i tested it out.

    The icon only should show to posts as new as 30 minutes from creation date the way you have it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar