Forum Replies Created
-
Weird thing is I had “topic-icons” and “bb-topic-icons” plugins. I deactivated bb-topic-icons and activated topic icons but the images won’t show. I checked all the permission and they were as stated above. The only time they showed is after I deleted bb-topic-icons.
In reply to: Hidden Forum function help…zaerl, that will show only on the title correct? I want an addition to that.
I was thinking if forum=hidden then echo…. (I don’t know how to write that)
example: The default label for a hidden forum is “[H]” so I will use that.
[H] Installation — Getting it up and running – This is a Hidden Forum
for the default theme it’s on front-page.php and forum.php
In reply to: Plugin activationIn reply to: Plugin activationI think they didn’t make you the Key Master.
In reply to: Nested topic list code snippetCan someone simplify this code?
1. to show only the parent forums
In reply to: Highlighting the current forum tabBTW the code you have does work in front-page.php but does not in forum.php
In reply to: How to get a total count of forums?Thanks! that works great. To go deeper into that code a code that does “forumS” for more than one and “forum” for just one?
In reply to: How to get a total count of forums?Version 1.0.2
I think it looks good. I don’t like the spaces are all the same for Topics
Posts – Last Poster – Freshness
maybe change td to th for the titles?
In reply to: Highlighting the current forum tabYour code is much cleaner for my use.
I check a WP theme and I’m assuming it’s something like this…
<?php if (is_page()) { $highlight = "forum-link"; } else {$highlight = "current"; } ?>
<?php foreach ( $forums as $forum ) : ?>
<a class="<?php echo $highlight; ?>" href="<?php forum_link( $forum->forum_id ); ?>"><?php forum_name( $forum->forum_id ); ?></a>
<?php endforeach; ?>but it’s not is_page(), it’s something else.
In reply to: Highlighting the current forum tabI’m ahead of you! https://bbpress.org/forums/topic/forum-names-immitate-wp_list_pages
In reply to: Forum Names immitate wp_list_pages()Okay I will have on my header the Forum Names as “Pages”
Installation – Troubleshooting – Themes – Plugins – etc
When I’m on the Troubleshooting page (https://bbpress.org/forums/forum/troubleshooting) the class of trouble shooting will be “selected”.
<li><a href="https://bbpress.org/forums/forum/installation">Installation</a></li>
<li><a href="https://bbpress.org/forums/forum/troubleshooting" class="selected">Trouble Shooting</a></li>make sense?
In reply to: How to get a total count of forums?Call to undefined function get_total_forums()
In reply to: Forum Names immitate wp_list_pages()Yes, thank you! I edited to fit my needs.
with this code
<?php if ( bb_forums() ) : while ( $depth = bb_forum() ) : if( $depth > $last_depth ) : ?>
<?php echo str_repeat(" ",$depth) ?>
<?php else : ?></li>
<?php while( $depth < $last_depth ) : echo str_repeat(" ",$depth+1) ?>
<?php echo str_repeat(" ",$depth) ?></li>
<?php $last_depth--; endwhile; endif; if (bb_get_forum_is_category()) :
echo str_repeat(" ",$depth) ?><li class="forum_cat"><a href="<?php forum_link() ?>" title="<?php forum_description(array('before'=>'','after'=>'')) ?>"><?php forum_name() ?></a>
<?php else :
echo str_repeat(" ",$depth+1) ?><li class="forum_subforum"><a href="<?php forum_link() ?>" title="<?php forum_description(array('before'=>'','after'=>'')) ?>"><?php forum_name() ?></a>
<?php endif; $last_depth = $depth; endwhile ?>
</li>
</ul># 2. how do I make the current forum have a class=”selected”
In reply to: Limiting latest discussionsSearch and you will find: https://bbpress.org/forums/topic/plugin-limit-latest-discussion
In reply to: How to get Forum name from Topic?Works thanks!
In reply to: User Photo avatar displayed on forum home?Okay based on my question, this might work
<?php
if (function_exists('bb_get_photo'))
bb_get_photo($topic->topic_last_poster);
?>try it?
In reply to: How to get the last post's avatar?Okay I added echo and it works
<?php echo bb_get_avatar( $topic->topic_last_poster, '16');?>
16 = is the size (in px) of the avatar you want for people who want to know.
Thank you!
In reply to: How to get the last post's avatar?Thanks but I got nothing, no result. on front-page.php
In reply to: How to have bbpress in a WP page?In reply to: Can't get to admin page in bbpressIn reply to: Can't get to admin page in bbpressYou could answer both, did you just install bbpress or try to integrate it with WP?
In reply to: How to get the last post's avatar?okay it’s something like bb_get_avatar(**topic last poster ID**) but how do you get the last poster’s ID???
To get the name is topic_last_poster() but ID, anyone?
In reply to: Tweaking bbPress – Forum Avatars, Recent Posts, etc.1) https://bbpress.org/plugins/topic/topic-icons/
2) not sure.