Skip to:
Content
Pages
Categories
Search
Top
Bottom

Highlight specific forum in the flow of other forums…

  • @softinfo

    Participant

    I want to highlight background and font properties for a specific forum in front page, with the flow of other forums by css control.

    If you are user of freelacer site. you can easily understand this question.

    See the example – Screenshot

    It would be also great if possible to highlight specific post or topic.

    in my case what I need – See the other Screenshot

    Thanks

Viewing 11 replies - 26 through 36 (of 36 total)
  • @markus-pezold

    Participant

    For individual classes for author post you can use

    class="highlight_<?php post_author_id();?>"

    Anonther good starting point to search:

    http://phpxref.ftwr.co.uk/bbpress/nav.html?_functions/index.html

    There are always different ways to achieve an objective. It is only a question of whether the target should be achieved easily, quickly or safely.

    :)

    @softinfo

    Participant

    Markus, thanks again and sorry that I didn’t find this solution over bbpress forum before my last post.

    But I think it would be great and easy if it can be achieved with Zaerl’s code??

    I mean we can get this solution without touching front-page.php, topic.php, post.php or other files.

    And it would be also great to highlight multiple authors by their ids which zearl did for topics/forums.

    want something like – $za_highlight_auhors = array(1,8,55,89); ??

    Possible?

    @softinfo

    Participant

    Markus, thanks again and sorry that I didn’t find this solution over bbpress forum before my last post.

    But I think it would be great and easy if it can be achieved with Zaerl’s code??

    I mean we can get this solution without touching front-page.php, topic.php, post.php or other files.

    And it would be also great to highlight multiple authors by their ids which zearl did for topics/forums.

    want something like – $za_highlight_auhors = array(1,8,55,89); ??

    Possible?

    @zaerl

    Participant

    <?php if( is_bb_admin() ) { ?> class="highlight"<?php } ?>

    This is wrong Markus. is_bb_admin (which is deprecated, use bb_is_admin) returns true if the page is an administrative page. It’s just a wrapper that returns the value of the BB_IS_ADMIN constant.

    @zaerl

    Participant

    <?php if( is_bb_admin() ) { ?> class="highlight"<?php } ?>

    This is wrong Markus. is_bb_admin (which is deprecated, use bb_is_admin) returns true if the page is an administrative page. It’s just a wrapper that returns the value of the BB_IS_ADMIN constant.

    @zaerl

    Participant

    Possible?

    Yes. But I am pretty busy right now and I can’t update my work. You can do it, the file has no license (it’s public domain).

    @zaerl

    Participant

    Possible?

    Yes. But I am pretty busy right now and I can’t update my work. You can do it, the file has no license (it’s public domain).

    @markus-pezold

    Participant

    Oh – fault. :/ thx for correction

    @markus-pezold

    Participant

    Oh – fault. :/ thx for correction

    @softinfo

    Participant

    Yes. But I am pretty busy right now and I can’t update my work

    Zaerl I respect your time and work. Its ok.. It will try myself.

    Thanks you both guys.

    @softinfo

    Participant

    Yes. But I am pretty busy right now and I can’t update my work

    Zaerl I respect your time and work. Its ok.. It will try myself.

    Thanks you both guys.

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