Search Results for 'code'
-
Search Results
-
Topic: User Profile Bug?
There’s just an extra quotation mark on line 103 of bbp-core-widgets.php. It appears in the login widget’s login button.
I am using custom theme templates from bbPress within my own theme. So no shortcodes or creating pages etc.
What I am trying to do is to show the list of most recent topics below the forum list on the forum homepage.
I am using the following code:
<div id="forum-front" class="bbp-forum-front">
<div class="entry-content">
<?php bbp_get_template_part( 'bbpress/content', 'archive-forum' ); ?>
<br><br>
<h3><?php _e( 'Recent Topics: ', 'bbpress' ); ?></h3><br />
<?php bbp_get_template_part( 'bbpress/content', 'archive-topic' ); ?>
</div>
</div><!-- #forum-front -->This seems to work, however, the pagination for the topics is wrong. Currently it tries to go to /forums/forum/last-forum-title/page/2/
It should go /topics/page/2/
Using the default bbPress templates within my own theme, what would I add to the archive-forum.php file in order to show recent topics with pagination that works right?
*I saw that devpress managed to pull it off, so asked over there as well.
Topic: Remove or hide RSS-Feeds
Is there a way to protect, hide or remove the RSS-Feeds of topics and replies?
I’m using bbpress 2.0 and Buddypress for a protected community. Thanks to “private buddypress” everything is protected, even the feeds require a login. Only the BBPress 2.0 Feeds aren’t protected.
I’m using the solution in this thread:
http://bbpress.org/forums/topic/combining-bbpress-rss-feed-with-wordpress-rss-feed-possible
to combine the feeds into one, which is successfully protectet by the private-buddypress-plugin.
Using this code
remove_filter( 'request', 'bbp_request_feed_trap' );I can force the forumfeeds to be protected but if I enter username and password I get a weird feed.
Is there a more “elegant” solution to this problem? It would be great if I can protect the original forum-feeds but removing them completly would do the trick too.
Hi
I’ve recently installed bbPress plugin to my WordPress blog and am having a few problems. Wondered if somebody could help me please.
The forum index is fine – added using shortcode to a page on the website:
http://bristolornithologicalclub.co.uk/?page_id=926
But viewing the forum and it seems to use a page template with a sidebar. I would like it full width.
http://bristolornithologicalclub.co.uk/?forum=2011-sightings
As my php skills are non existent I asked the theme developer for help and he came back with the following:
“Yesterday I installed the plugin and checked things. The plugin has many template files and it is difficult to figure out which template is ‘exactly’ used for the forum page. May be they are custom post types/taxonomies.
Further, we will need to implement the full width for topics, forum, author and other such pages. If you could ask the plugin authors about any specific hook, I can help you out further. You just need to ask them how to detect whether the current page is from bbPress plugin. (Any post type or page type hook).”
Any help gratefully appreciated.
Best wishes
Paul
Topic: forum homepage conditional?
I’m looking for something like is_bbpress(), but one that only fires if on the forum homepage. Is there such a conditional?
i.e.
if is_bbpress_forum_home() …. will allow me to add/subtract functionality from the forum homepage no matter where it is located.
Trying to do something like:
<?php if ( $page = bbp_get_page_by_path( $bbp->root_slug ) ) : ?>
<?php _e( 'Forums', 'bbpress' ); ?>
<?php else : ?>
<?php bbp_forum_title(); ?>
<?php endif; ?>I’m trying to show a logged-in user’s favorite topics on a single page like the page-front-topics.php template that’s included in the bbpress default theme. I used the exact same syntax as in that file but instead called in another template I created, content-archive-favorites.php, which contains the exact code (minus the containing div) from the user-favorites.php file.
It just shows that the user has no favorites.
Any help would be greatly appreciated!
In bbpress.pot, the original strings are:
This forum contains %1$s and %2$s.This category contains %1$s and %2$s.With bbPress 2.0-rc-2 fully translated, these phrases seem to use hard-coded English for the words
topic/topicsandreply/replies.Translated to Norwegian, the finished phrases will thus be:
Dette forumet inneholder 0 topics og 0 replies.Denne kategorien inneholder 0 topics og 0 replies.When they should be:
Dette forumet inneholder 0 tråder og 0 svar.Denne kategorien inneholder 0 tråder og 0 svar.
//yourdomain.com/folder/$1″ [R=301,L]