Skip to:
Content
Pages
Categories
Search
Top
Bottom

Replacing Thread Title with Images


  • ITGeist
    Participant

    @itgeist

    Hello everybody,

    I would like to know if it is possible to put images in the thread title. Here an example:
    Normal Thread Title: Na’Vi vs. Team 2
    What I need: <img_navi_logo> <img_vs> <img_team2_logo>

    Is that somehow possible?

    Greetz,
    ITGeist.

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

  • Robkk
    Moderator

    @robkk

    this seems like some custom development to achieve this.

    highlight and search this link in google.

    jobs.wordpress.net/


    ITGeist
    Participant

    @itgeist

    I came up with writing my own solution.
    I’ve put that right after <?php do_action( ‘bbp_theme_before_topic_title’ ); ?>.
    It checks if I wrote @pd@ in the thread title and adds based on other keywords images to the title and replaces it.

    $sTitle = bbp_get_topic_title();
    $bIsPred = strpos($sTitle, "@pd@");
    
    if($bIsPred === false) 
    {
       <a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>" title="<?php bbp_topic_title(); ?>"><?php bbp_topic_title(); ?></a>
    }
    else
    {
       // check for other keywords in sTitle
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar