Forum Replies Created
-
In reply to: Change loop-forums
Ok I find a way but I am not happy about that but it works….
You can see live here : http://sakifo.gamers.re/forums/If someone have a better solution, I put that there :
<?php /** * Forums Loop * * @package bbPress * @subpackage Theme */ ?> <?php do_action('bbp_template_before_forums_loop'); ?> <?php if(bbp_get_forum_id()){ ?> <ul id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums"> <li class="bbp-header"> <ul class="forum-titles"> <li class="bbp-forum-info"><?php echo bbp_forum_title(); ?></li> <li class="bbp-forum-topic-count"><?php _e( 'Topics', 'bbpress' ); ?></li> <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? _e( 'Replies', 'bbpress' ) : _e( 'Posts', 'bbpress' ); ?></li> <li class="bbp-forum-freshness"><?php _e( 'Freshness', 'bbpress' ); ?></li> </ul> </li><!-- .bbp-header --> <li class="bbp-body"> <?php while ( bbp_forums() ) : bbp_the_forum(); ?> <?php bbp_get_template_part( 'loop', 'single-forum' ); ?> <?php endwhile; ?> </li><!-- .bbp-body --> <li class="bbp-footer"> <div class="tr"> <p class="td colspan4"> </p> </div><!-- .tr --> </li><!-- .bbp-footer --> </ul><!-- .forums-directory --> <?php } else { ?> <?php while ( bbp_forums() ) : bbp_the_forum();?> <?php /* We print the header only if we want to show a category or if it's the first item of a no-parent forum list */ if (bbp_is_forum_category() OR ! $bbp_forums_noheader) { ?> <ul id="forums-list-<?php bbp_forum_id(); ?>" class="bbp-forums"> <li class="bbp-header"> <ul class="forum-titles"> <li class="bbp-forum-info"> <?php if (bbp_is_forum_category()) { ?> <a class="bbp-forum-title" href="<?php bbp_forum_permalink(bbp_get_forum_parent_id()); ?>"> <?php bbp_forum_title(bbp_get_forum_parent_id()); ?> </a> <?php } else { _e('Forum', 'bbpress'); } ?> </li> <li class="bbp-forum-topic-count"><?php _e('Topics', 'bbpress'); ?></li> <li class="bbp-forum-reply-count"><?php bbp_show_lead_topic() ? _e('Replies', 'bbpress') : _e('Posts', 'bbpress'); ?></li> <li class="bbp-forum-freshness"><?php _e('Freshness', 'bbpress'); ?></li> <li class="bbp-forum-freshness-avatar"></li> </ul> </li><!-- .bbp-header --> <?php } ?> <li class="bbp-body"> <?php /* If the forum is a category, we're gonna make another loop to show its subforums and sub-subforums as if those were forums */ if (bbp_is_forum_category()) { $temp_query = clone bbpress()->forum_query; bbp_has_forums('post_parent=' . bbp_get_forum_id()); while (bbp_forums()) : bbp_the_forum(); bbp_get_template_part('loop', 'single-forum'); endwhile; bbpress()->forum_query = clone $temp_query; } else /* Otherwise, we print the forums the normal way */ { bbp_get_template_part('loop', 'single-forum'); $bbp_forums_noheader = 1; /* This prevents the header part to be printed again on next post in the loop */ } ?> </li><!-- .bbp-body --> <?php /* Prints the footer only if : - it's a category - or if it's the last forum of a no-parent forum list - or if the next forum in the loop is a category */ if (bbp_is_forum_category() OR ( bbpress()->forum_query->current_post + 1) == bbpress()->forum_query->post_count OR bbp_is_forum_category(bbpress()->forum_query->posts[bbpress()->forum_query->current_post + 1]->ID)) { ?> <li class="bbp-footer"> <div class="tr"> <p class="td colspan4"> </p> </div><!-- .tr --> </li><!-- .bbp-footer --> </ul><!-- .forums-directory --> <?php unset($bbp_forums_noheader); /* Needed if we have 2+ no-parent forums with at least 1 category between them */ } ?> <?php endwhile; }?> <?php do_action('bbp_template_after_forums_loop'); ?>
?
In reply to: Change Breadcrumb url linkThx Garindan 😀 ! I do it like that for the moment. But is not good to modify core :/
Hope a nice solution will be find to that….
or a solution for shortcode work with the default page forums ?
thx
In reply to: Change Breadcrumb url linkI have the same problem. I have buddypress.
This file doesn’t exist anymore … :/An other solution ?
I re up this topic because the problem still here.
If someone get a solution without modify the core ?Thx a lot
In reply to: Forum Root Page IssuesSo have you find a solution ?
In reply to: Problem with shortcodeI don’t understand.
I used the buddypress default theme –> shortcode not work
change the slug –> not work
Try this solution : http://mysitemyway.com/support/topic/infocus-bbpress-20-root-slug –> not work
change to twety theme forum theme –> not work
desactive plugins…[bbp-single-forum id=44] doesn’t work on forum page…. 🙁
But [bbp-topic-index] this shortcode work.
what can I do more ?
In reply to: Problem with shortcodeup. someone can help plz ?
ThxIn reply to: Problem with shortcodeI try with the default buddypress theme and the same.
shortcode don’t work -> [bbp-single-forum id=44] http://rplayers.com/forums/
but this shortcode works : [bbp-topic-index]if I make an other page http://rplayers.com/forums2/ all shortcode works
So I go to settings > forums > Archives slug > forums base :: change forums by forums2
but http://rplayers.com/forums2/ shortcode don’t workNeed help … :-/
In reply to: Forum Root Page IssuesI have the same problems I think…
on http://rplayers.com/forums/ –> [bbp-single-forum id=44] don’t work
but [bbp-topic-index] this shortcode worksAnd when I do the same things there http://rplayers.com/forums2/ all shortcode works
I posted a message there but no reply https://bbpress.org/forums/topic/problem-with-shortcode/
In reply to: Problem with shortcodeSorry, someone have a solution plz ? thx