Search Results for 'code'
-
AuthorSearch Results
-
May 25, 2011 at 3:33 am #105741
In reply to: bbPress 2.0 – FAQ
John James Jacoby
KeymasterLead post updated.
You need simply to scroll up to see the answer.
May 25, 2011 at 3:33 am #100641In reply to: bbPress 2.0 – FAQ
John James Jacoby
KeymasterLead post updated.
You need simply to scroll up to see the answer.
May 25, 2011 at 3:08 am #106236In reply to: “Breadcrumb” trail Forums link not working
John James Jacoby
Keymaster@zeldain – Are you using a shortcode to output your forum root? If so, there’s no way for bbPress to know where the root of your forums actually are when you’re *not* viewing that specific page.
Check
Admin > Settings > Forumsfor a better understanding on how breadcrumbs work. You are able to make adjustments to bbPress slugs similar to making changes to your WordPress category and tag slugs, to help you configure your forums the way you need them.May 24, 2011 at 10:58 pm #95439In reply to: bbPress 2.0 – Updates
tofugu
Member@JJJ aww, dang. Was hoping it wasn’t that
Any hope for future updates that will include embed code / img tags working in bbpress plugin?
May 24, 2011 at 8:14 pm #38570Topic: Changing Profile Link
in forum Troubleshootingscylderon
ParticipantIn the old version of bbPress, I could redirect to a WordPress user profile (or BuddyPress profile) by editing template files and changing profile links to:
<a href="<?php echo get_user_slug( get_post_author_id() ); ?>"><?php post_author( get_post_id() ); ?></a>Doesn’t seem like this will work with the bbPress plugin. Is there some way I can do this with the new version? Thanks!
May 24, 2011 at 7:30 pm #106225In reply to: Topic Author Avatar on Front Page?
Stunt
MemberNevermind. I figured it out. Here’s the code.
<?php echo bb_get_avatar( $topic->topic_poster, '30' );?>Someone should publicize this — there’s literally barley any information out there on how to do it so simply.
30 is the size of the avatar.
May 24, 2011 at 7:17 pm #38569Topic: Topic Author Avatar on Front Page?
in forum TroubleshootingStunt
MemberI’m trying this:
<?php echo bb_get_avatar( $topic->get_topic_author(), '30');?>But no luck? What am I doing wrong?
May 24, 2011 at 11:46 am #105946In reply to: bbpress plugin 2 beta 1
jarledb
ParticipantHope someone can help me out here
Feeling pretty stuck
May 24, 2011 at 11:46 am #100846In reply to: bbpress plugin 2 beta 1
jarledb
ParticipantHope someone can help me out here
Feeling pretty stuck
May 24, 2011 at 8:56 am #105936In reply to: Multiple forums on one site?
John James Jacoby
Keymaster@jckbco – If you use bbPress 2.0 (the plugin) and then have WordPress in Multisite mode, then yes you can. Each site in the WordPress install would need bbPress active on it. And that’s it.
May 24, 2011 at 8:56 am #100836In reply to: Multiple forums on one site?
John James Jacoby
Keymaster@jckbco – If you use bbPress 2.0 (the plugin) and then have WordPress in Multisite mode, then yes you can. Each site in the WordPress install would need bbPress active on it. And that’s it.
May 24, 2011 at 3:26 am #95432In reply to: bbPress 2.0 – Updates
tofugu
MemberMay 23, 2011 at 8:04 pm #95429In reply to: bbPress 2.0 – Updates
Gautam Gupta
Participanttofugu: You’re not doing anything wrong. Try adding this in yourwp-config.php:define( 'WP_MEMORY_LIMIT', '256M' );May 23, 2011 at 6:39 pm #95428In reply to: bbPress 2.0 – Updates
tofugu
MemberThe importer has been timing out on me, importing maybe around 7 topics before redirecting itself to a wp-admin page and dying

Does anyone know if I’m doing something wrong?
P.S. Damn this plugin is awesome.
May 23, 2011 at 1:53 pm #105890In reply to: New topic page URL in bbPress plugin
John James Jacoby
KeymasterYou’ll want to create a new page, and use the
[bbp-topic-form]
shortcode.
May 23, 2011 at 1:53 pm #100790In reply to: New topic page URL in bbPress plugin
John James Jacoby
KeymasterYou’ll want to create a new page, and use the
[bbp-topic-form]
shortcode.
May 23, 2011 at 1:22 pm #100864In reply to: bbPress 2.0 – Theme Compatibility
John James Jacoby
KeymasterThat would be nice, and I’ll most likely research something similar to this after 2.0. The problem is there is no way to add an additional theme path check on top of the parent theme and the child theme locations. Even then, that doesn’t make the single-, archive-, and page- templates match the HTML structure of your current theme, which means manually editing them anyways.
As annoying as it is to add theme support for bbPress and not have the files there, that’s also the easiest way to communicate ability between theme and plugin. If you add theme support for post thumbnails, and then don’t use post thumbnails in your theme, you just don’t have post thumbnails.
May 23, 2011 at 1:22 pm #105964In reply to: bbPress 2.0 – Theme Compatibility
John James Jacoby
KeymasterThat would be nice, and I’ll most likely research something similar to this after 2.0. The problem is there is no way to add an additional theme path check on top of the parent theme and the child theme locations. Even then, that doesn’t make the single-, archive-, and page- templates match the HTML structure of your current theme, which means manually editing them anyways.
As annoying as it is to add theme support for bbPress and not have the files there, that’s also the easiest way to communicate ability between theme and plugin. If you add theme support for post thumbnails, and then don’t use post thumbnails in your theme, you just don’t have post thumbnails.
May 23, 2011 at 12:20 pm #105963In reply to: bbPress 2.0 – Theme Compatibility
rofflox
MemberThank you John for this thread.
I’m currently working on the bbpress-plugin integration for my own themes. One point which is really annoying:
If I add theme-support for bbpress, the plugin only looks for bbpress-templates inside my theme folder. If i haven’t any template files stored there, no fallback is implemented and therefore nothing is displayed.
Wouldn’t it be nice, if bbpress looks first on the child-theme for its specific template-files, second at the parent-theme and last takes the builtin template-files from bbpress-twentyten theme?
The drawback with the currently implementet solution is, that I have to copy every template-file over in my own theme. Regardless of the fact, that I only want to alter one specific template-file. Same goes for a specific css stylesheet.
I looked at the sourcecode and it seems that i can hook into the filter “bbp_get_theme_compat” and simply de/register a new ‘bbpress-style’ stylesheet. But I think I’m not the only one which is looking for a solution inside bbpress-core.
If I missed something, do not hesitate to correct me.
Thanks
Roman
May 23, 2011 at 12:20 pm #100863In reply to: bbPress 2.0 – Theme Compatibility
rofflox
MemberThank you John for this thread.
I’m currently working on the bbpress-plugin integration for my own themes. One point which is really annoying:
If I add theme-support for bbpress, the plugin only looks for bbpress-templates inside my theme folder. If i haven’t any template files stored there, no fallback is implemented and therefore nothing is displayed.
Wouldn’t it be nice, if bbpress looks first on the child-theme for its specific template-files, second at the parent-theme and last takes the builtin template-files from bbpress-twentyten theme?
The drawback with the currently implementet solution is, that I have to copy every template-file over in my own theme. Regardless of the fact, that I only want to alter one specific template-file. Same goes for a specific css stylesheet.
I looked at the sourcecode and it seems that i can hook into the filter “bbp_get_theme_compat” and simply de/register a new ‘bbpress-style’ stylesheet. But I think I’m not the only one which is looking for a solution inside bbpress-core.
If I missed something, do not hesitate to correct me.
Thanks
Roman
May 23, 2011 at 8:23 am #38558Topic: bbPress 2.0 – Theme Compatibility
in forum ThemesJohn James Jacoby
KeymasterA few questions have cropped up already, so lets funnel the discussion here.
bbPress 2.0 introduces a radical new approach at integrating robust new functionality into existing WordPress themes. If you’re an average user looking for a turn-key forum solution, this works out pretty awesomely – If you’re a talented developer trying to beat your own drum, it’s all probably a little bit confusing.
Theme Compatibility
bbPress comes with a child theme of TwentyTen, titled (you guessed it) bbPress – TwentyTen. This theme includes all of the custom bits that bbPress needs to function, broken up into template parts to allow them to be used in several places, like template files, shortcodes, and widgets.
- MOST COMMON – If you’re using any other conventional WordPress theme (TwentyEleven, BP-Default) and find the default template layout of bbPress acceptable, you don’t need to do anything at all – it should just work.
- DO NOT put any custom themes in “/bbpress/bbp-themes/” as they will get wiped out when you update bbPress.
- CUSTOM – If you want to build your own theme or make changes to the existing template files, you’ll need to do the following:
Copy Files
- If this is not a custom theme under your control (meaning you are not the author) you’ll want to copy the contents of the “/bbpress/bbp-themes/bbp-twentyten” folder into your “wp-content/themes/%YOURTHEMENAME%” folder, where %YOURTHEMENAME% is the name of your custom Child Theme of whatever your current theme is. This is so theme updates don’t wipe out all your hard work later.
- If you are the author of this theme, then you can copy all the files *out of* the “/bbpress/bbp-themes/bbp-twentyten” folder into the folder of your theme, and make your own edits from there. The files to copy include the single-*, archive-*, page-*, and anything in the subfolders.
- In neither case should a new folder with the name “bbp-twentyten” exist. You are not copying the FOLDER, you are copying what’s IN the folder.
Add Theme Support
Now that you’ve got the files copied over, you’ll need to tell bbPress that you are in control of the theme situation. You do this by adding this to your functions.php file:
add_theme_support( 'bbpress' );
By doing this, you’re telling bbPress that your theme has its own template files to handle all of the new functionality that bbPress adds. This method gives you a single on/off switch to either use the standard theme compatibility, or use your own.
In the future, specialized template compatibility themes can be created either as plugins or child-themes to work like “add on packages” to existing themes, without requiring elaborate edits to existing themes, moving files around, etc…
Shortcodes (as of May 23, 2011)
Whether you rely on theme compatibility, or decide to go the custom route, we’ve included a few standard shortcodes to let you output specific forum content on any post or page in your forums. This is accomplished within an output buffer, so they won’t interfere with any of your existing page or post content. Note that if your theme specifically removes the shortcode functionality, these will not work, and will instead the actual text of the shortcode will appear on your site.
- [bbp-forum-index] – Show the root forums
- [bbp-single-forum id="A forum ID"] – Show a specific forum
- [bbp-topic-index] – Show all topics
- [bbp-single-topic id="A topic ID"] – Show a specific topic
- [bbp-topic-tags] – Show all topic tags
- [bbp-topic-tag] – Show topics of a specific tag
- [bbp-topic-form] – Show the new topic form
- [bbp-reply-form] – Show the new reply form (not commonly used)
- [bbp-single-view id="A view slug"] – Show the topics of a registered view
In the future, we’ll be adding more shortcodes as the needs arise.
That’s it for the first round of explanations. I’ll edit this post as more questions and answers come through.
May 23, 2011 at 7:11 am #105922In reply to: bbPress Plugin – Theme Integration
Aron Prins
ParticipantJohn,
Worked! Ill write an explanation when i get back from work on how to integrate for everyone

Also, looks like it shows some stuff double? ( the yellow bars saying no forums found
)http://magic.unique-masters.com/discussions/
cheers,
Aron
May 23, 2011 at 7:11 am #100822In reply to: bbPress Plugin – Theme Integration
Aron Prins
ParticipantJohn,
Worked! Ill write an explanation when i get back from work on how to integrate for everyone

Also, looks like it shows some stuff double? ( the yellow bars saying no forums found
)http://magic.unique-masters.com/discussions/
cheers,
Aron
May 23, 2011 at 7:04 am #105921In reply to: bbPress Plugin – Theme Integration
John James Jacoby
KeymasterSorry; I don’t understand the question. bbPress won’t move any files for you on its own. You mentioned that you’ve physically moved files (hopefully you copied, and did not remove them from the bbPress folder.) By putting
add_theme_support( 'bbpress' );
in your theme, you’re telling bbPress “I don’t need your help anymore and I have everything under control.” If you didn’t copy all of the files correctly, then bbPress won’t know what to do.
May 23, 2011 at 7:04 am #100821In reply to: bbPress Plugin – Theme Integration
John James Jacoby
KeymasterSorry; I don’t understand the question. bbPress won’t move any files for you on its own. You mentioned that you’ve physically moved files (hopefully you copied, and did not remove them from the bbPress folder.) By putting
add_theme_support( 'bbpress' );
in your theme, you’re telling bbPress “I don’t need your help anymore and I have everything under control.” If you didn’t copy all of the files correctly, then bbPress won’t know what to do.
-
AuthorSearch Results