Because the skeleton plugin adds the capability of adding theme templates which do not require added markup such as the header/footer/etc.
The way it is now, bbPress has a bunch of twentyten specific templates which handle all the output for bbPress. Each of these templates carries the overall ‘layout’ for twentyten instead of just what is output by bbPress.
If my understanding is correct, I would create a single bbpress.php file that holds just the twentyten layout. ‘The_content’ would then be auto replaced according to what page you are on.
This would mean that in order to get a custom setup in any theme, I would only have to modify one template file, ‘the twentyten base layout’ instead of modifying every file.
Basically I am trying to find a way of making it easier for me to build and market bbPress templates that work in any theme.
An example would be people that don’t want a sidebar. You would simple change the bbpress.php file to remove the sidebar, change the css attribute for the content area to be fullwidth and your done. You don’t have to modify the other bbPress templates.
*Yeah, I know, there are shortcodes, custom page templates etc already avail, but trying to find an even better approach.
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.
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.
What did the theme author have to say?
To have something like this happen in a single browser means he obviously coded something specific to Safari that isn’t working right.
Suggestion:
Please consider adding the topic status to the topic_class()
This will make it very easy for me to style resolved/not-resolved differently to give it a little flair.
It would also be nice to not have the ‘urgent/resolved/etc’ placed before the topic title. Provide an off switch and a function where I can simply place the code where I want it to show up.
*I can do that myself, but it would make upgrades difficult
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
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/topics and reply/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.
@Gautam Fair point.
@anointed I hope so, perhaps the new version might have better out of the box support
@letheos I think I will have another go with bbcodes, this does now seem like the best option. I’ll post back if I have any luck.
Thanks for the replies.
i would love to get answer to that too.
really love the new version by the way…
cheers !!
sharon
superenalotto
You can use shortcodes and just add some custom css styling.
Dario,
1. Create a page.
2. Make it a homepage.
3. Add the right shortcodes.
4. Add proper styling.
Hmm so there’s no way to code this in until it’s released? I would LOVE to be able to have favorites/subscriptions in the BP profile. I need the functionality of both!
Additionally, it would be great to also have a list of ‘Mine’ discussions on the profile too.
I found a solution somewhere to disable functions when you are calling post-form to septate files: LIKE
<?php post_form( array( 'last_page_only' => false ) ); ?>
I hope, with that kind of code we can disable attachments on replies.
— Anyone?
Bump! Bump!
Hello, Zaerl, Ben L.
Are you listening to me?
I think _ck_ has gone again
Odds are pretty good that it has something to do with the css files. I’d ask the theme author what he is doing to cause this issue.
I read through the code that I can see but have no idea what is wrong. I do see the style.css being called twice in your header, but that would not cause this problem.
Honestly, this one is so weird, that I’d love to hear what the fix ends up being so if you do find out, please do share….
Yep, but something else you can use if you want that play like Twitter to reply game (Got my mean? Like @OAEErra) on topics you can use this: Easy Mentions
Note: The code I gave you is for StandAlone vr. not the bbPlugin
That’s perfect 7i7GRiFFiN i’ll play with this later, thanks!
I assume that takes them to the post form area on the forum page itself?
I could do that with a ‘Reply’ button on each post too.
Much thanks
As bbPress follows all WordPress code standards, I am going to assume it is something to do with thesis.
Chris is a great coder so I am certain that he would have no problem coming up with a fix for thesis.
Actually it was quite easy to do:
Modify archive forum:
<div id="forum-front" class="bbp-forum-front">
<div class="entry-content">
<?php bbp_get_template_part( 'bbpress/content', 'archive-forum' ); ?>
<br><br>
<h3>Recent Topics:</h3>
<?php bbp_get_template_part( 'bbpress/content', 'archive-topic' ); ?>
</div>
</div><!-- #forum-front -->
Notice I am simply calling the content-archive-topic template.
**Obviously there is more to it than simply modding a core file which is not good. I am going to assume that you are using a custom theme/child-theme and modifying the templates from there.
@Gautam
Yes I read through your code prior to posting this and used it as an example of how to add options to the page.
It was because of reading your code that I was asking about using tabs. My reason for this is that it would give the users a clear distinction between ‘core’ and ‘custom’ options while still maintaining all options in the same page.
Just thought it would be unique, cool, and provide yet another level of organization to bbPress.
The latest versions now have admin settings in the dashboard that allow the admin to create additional whitelists of supported tags. It also detects Viper’s Video Quicktags and allows all those tags to be added to the whitelist via a single checkbox.
I’ve implemented a means by which other shortcode plugin developers can make their plugins get automatically detected by the whitelist, declaring which safe shortcodes they support, and giving them the same single checkbox ‘add to whitelist’ functionality that I’ve currently done with my bbPress BBCode plugin and Viper’s Video Quicktags.
You would actually need to modify theme files, particularly the forum loop and CSS files to do that. It involves a bit of time and no one has tried to do it yet. I’ll see to it when I get time.