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.
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?
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?
<?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.
<?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.
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).
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).
Oh – fault. thx for correction
Oh – fault. thx for correction
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.
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.