Search Results for 'code'
-
AuthorSearch Results
-
May 24, 2011 at 11:46 am #100846
In 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.
May 23, 2011 at 6:23 am #105560In reply to: v2: Simple Press importer, and first thoughts
John James Jacoby
KeymasterNeat. I definitely like the bbPress forums better.
May 23, 2011 at 6:23 am #100460In reply to: v2: Simple Press importer, and first thoughts
John James Jacoby
KeymasterNeat. I definitely like the bbPress forums better.
May 23, 2011 at 2:59 am #105869In reply to: Bbpress plugin on single page
John James Jacoby
KeymasterYou could just as easily put some code in the sidebar.php of your theme to show/hide whenever you want it to. Contextual sidebars are an oft requested WordPress core feature too.
May 23, 2011 at 2:59 am #100769In reply to: Bbpress plugin on single page
John James Jacoby
KeymasterYou could just as easily put some code in the sidebar.php of your theme to show/hide whenever you want it to. Contextual sidebars are an oft requested WordPress core feature too.
May 23, 2011 at 2:07 am #105731In reply to: bbPress 2.0 – FAQ
John James Jacoby
KeymasterI don’t think it’s too long. There are numerous long term infrastructure decisions to be made before creating an entirely new missing section of a live site. I understand your sense of urgency, but I need you to trust that it will happen when it can happen.

Developers should have plenty of documentation within the bbPress code itself; it’s all properly phpDoc’ed with great examples on what the functions do and how to use them. If you’re curious how to do something, take a walk down
May 23, 2011 at 2:07 am #100631In reply to: bbPress 2.0 – FAQ
John James Jacoby
KeymasterI don’t think it’s too long. There are numerous long term infrastructure decisions to be made before creating an entirely new missing section of a live site. I understand your sense of urgency, but I need you to trust that it will happen when it can happen.

Developers should have plenty of documentation within the bbPress code itself; it’s all properly phpDoc’ed with great examples on what the functions do and how to use them. If you’re curious how to do something, take a walk down
May 22, 2011 at 7:48 pm #95418In reply to: bbPress 2.0 – Updates
Gautam Gupta
Participantarpowers: You mean forums including forums, topics, replies, user profiles etc. or just forums? For the latter, you can usebbp_is_forum().bbPress 2.0 plugins can be found here.
May 22, 2011 at 4:29 pm #38544Topic: Removing a boatload of spam posts and tags
in forum Troubleshootingkai920
MemberI’ve just found an old 1.03 bbpress install with a ton of spam posts and spam tags. I don’t want to start over completely. I suppose going thru phpMyAdmin directly would be fastest, unless the 2.0 beta has new admin options in the backend.
To remove unwanted posts, I can just run a query for all posts created after a certain date in the bb_posts table.
How do I remove tags? I’m not sure what the relationship between bb_terms, bb_term_relationships, and bb_term_taxonomy are.
Are there other tables I need to look at where SPAM might have gotten in?
After I get rid of all the SPAM I’ll be looking to move to 2.0 asap
-
AuthorSearch Results