Search Results for 'code'
-
AuthorSearch Results
-
May 28, 2011 at 9:23 pm #106202
mhjerde99
MemberGreat stuff!
@kai920 +1 for adding “register” link to the login widget. And I like Register Plus Redux, that plugin works nicely!
@anointed Thanks, good tip! Implemented.
My sidebars disappeared when upgrading to beta 2b. I’m using the Woo Sidebar Manager and I had to move login/registration down in the footer for the time being. I can’t say for sure that there is causation. Esp because Sidebar Manager seems a bit flaky. But it happened at the same time
May 28, 2011 at 8:09 pm #106201Anointed
Participant@mhjerde99 Can I make a suggestion on the template?
Add the following to your woothemes custom.css file in order to get full width forums. I saw your post over there, but didn’t really have time to answer your questions as I am also very busy building a custom woo theme.
#content table.bbp-topics, #content table.bbp-forums, #content table.bbp-replies, #container table.bbp-topics, #container table.bbp-forums, #container table.bbp-replies, #main table.bbp-topics, #main table.bbp-forums, #main table.bbp-replies {
width: 100% !important;
}May 28, 2011 at 6:05 pm #106199kai920
MemberI was just looking into this topic a bit – I wonder if it’s useful to add a “Register” link at the bottom of the login widget inside /bbp-includes/bbp-core-widgets.php? This would bring a user directly to
/wp-login.php?action=registerand would only display if WP’s “Anyone can register” option was turned on.I’ve also just installed the Register Plus Redux plugin (https://wordpress.org/extend/plugins/register-plus-redux/) which allows you to upload your own image for the registration page and gives other nice options.
May 28, 2011 at 1:32 pm #106427In reply to: bbpress plugin beta2 breadcrumbs
kai920
MemberGood to hear – just updated to 3254 and I see Home > Forums > Forum Name breadcrumb
May 28, 2011 at 1:15 pm #106426In reply to: bbpress plugin beta2 breadcrumbs
John James Jacoby
KeymasterI’ve been tweaking the breadcrumbs, trying to find the sweet spot. There’s starting to be a lot of possible ways to display the forum archives now. With page templates, archives, shortcodes, etc… it’s hard to know what is the actual root and where.
I think I’ve got it dialed in for Beta 3. I spent the majority of last night testing all of the above scenarios.
May 28, 2011 at 7:49 am #106393In reply to: bbP 2.0 b1 – Intermittently can't post replies
tooltrainer
MemberDefinitely no chance at all that the content is identical. It’s like a 2 or 3 page post.

I turned on the slug and – IT POSTED!
So you’re right on with that… problem is I really seriously don’t want those slugs being shown. So is this just a bug that can be fixed perhaps?
Thanks!
Jonathan
May 28, 2011 at 7:32 am #106432In reply to: Updating bbP plugin Deleted my theme!!
John James Jacoby
KeymasterI can guarantee you with 100% confidence that a bbPress plugin update alone will *never* nuke any files outside of the
/wp-content/plugins/bbpress/folder.
When you update any WordPress plugin through the auto-updater, it deletes the plugin folder, recreates it, and puts the contents of the new version in there; that’s it.
May 28, 2011 at 5:38 am #106435John James Jacoby
KeymasterWhen are adding your theme compatibility? If you are hooking in on the ‘init’ or ‘wp’ actions, then it is too late for theme compatibility to pick it up.
function anointed_theme_setup() {
add_theme_support( 'bbpress' );
}
add_action( 'after_setup_theme', 'anointed_theme_setup' );Can you confirm the bbpress.css is inside the bbPress plugin directory and bbp-twentyten theme?
If it wasn’t working at all, then your custom theme’s bbPress template files wouldn’t be getting loaded either.
May 28, 2011 at 4:54 am #106390In reply to: bbP 2.0 b1 – Intermittently can't post replies
John James Jacoby
Keymaster@Johnathan – Can you use a tool like Firebug or Inspector, and look at the hidden input fields in your reply form?
Should look like the following
<input type="hidden" name="bbp_reply_title" id="bbp_reply_title" value="Reply To: Updated to bbPress 2.0 pre-beta 2" />
<input type="hidden" name="bbp_forum_id" id="bbp_forum_id" value="138" />
<input type="hidden" name="bbp_topic_id" id="bbp_topic_id" value="439" />
<input type="hidden" name="action" id="bbp_post_action" value="bbp-new-reply" />
<input type="hidden" id="_wpnonce" name="_wpnonce" value="0b78bb87eb" />
<input type="hidden" name="_wp_http_referer" value="/discussion/topic/updated-to-bbpress-2-0-pre-beta-2/" />Also, some details about your configuration would be great. WordPress version, Multisite/single-site, custom theme/theme compatibility, etc…
May 28, 2011 at 4:40 am #106430In reply to: Updating bbP plugin Deleted my theme!!
John James Jacoby
KeymasterThere’s absolutely no way that bbPress is responsible for doing anything inside your wp-content/themes/ directory. If you made changes to files inside the bbPress plugin folder, then you broke the first rule of using a WordPress plugin.
May 28, 2011 at 3:41 am #38630Topic: plugin beta2 Interesting server 403 error:
in forum TroubleshootingAnointed
ParticipantI’m no sysadmin, so understanding what is happening is a bit beyond me right now.
Here’s what I was doing to cause the 403 error:
1. I wanted to test to see what bbpress does with a really long forum post title, so I tried the following:
Let’s create a really crazy long title name to see if the table properly removes any extra text from the title or not
The body of the post says:
Well I hope that title above was long enough, I can’t imagine any forum titles being longer than this one.
When I click submit, I get a 403error below:
[Fri May 27 20:21:10 2011] [error] [client 76.121.8.129] mod_security: Access denied with code 403. Pattern match ":space:+(select|grant|delete|insert|drop|alter|replace|truncate|update|create|rename|describe):space:+[A-Z|a-z|0-9|\\*| |\\,]+:space:+(from|into|table|database|index|view):space:+[A-Z|a-z|0-9|\\*| |\\,]" at POST_PAYLOAD [severity "EMERGENCY"] [hostname "mysite.com"] [uri "/forum/prayer-requests/healing/"] [unique_id "TeA-9kUuJUQAABVAGuk"]I am unsure of how to interpret the error, and what steps I need to take in order to resolve the problem. Hope this error helps identify something.
May 28, 2011 at 2:53 am #106338wsokc
MemberGotcha…
Its because of bb_config integration.
/** WP Theme **/
define(‘WP_BB’, true);
if ( !defined(‘DB_NAME’) ) {
require_once( dirname(__FILE__) . ‘/../wp-config.php’);
}
Hmmm… Last time is not happening, why its happened now ?
Is there any solution to integrate the theme without having to hardcode the theme itself ?
Currently I installed bbpress on separate database.
and I intend to separate the user too.
So I want only to integrate the theme….
Any better solution for this ?
May 28, 2011 at 1:43 am #106424In reply to: bbpress plugin beta2 breadcrumbs
John James Jacoby
KeymasterThe sanity check that I do in the breadcrumb is to check if the root slug is being included in the forums or not. If there’s no root slug, in the URL, then there’s no definitive breadcrumb that bbPress could know about. My logic may still be flawed here though.
May 28, 2011 at 1:39 am #106332wsokc
MemberStill finding out…. no luck yet..
May 28, 2011 at 1:05 am #106422In reply to: bbpress plugin beta2 breadcrumbs
John James Jacoby
KeymasterYou can manipulate the inclusion of the links on customized setups (such as the one I know you have.)
Check out the plugin code and adjust it to suit your needs in your custom theme.
May 27, 2011 at 11:03 pm #106420John James Jacoby
KeymasterWhen 2.0 goes gold, we’re committed to the code and functions that ship with it. So some objects might shift during shipping.
May 27, 2011 at 9:36 pm #100618In reply to: BBPlugin – Can't resize forum listing
John James Jacoby
KeymasterIf you aren’t able follow the instructions provided, these kinds of things will happen. Revisit what you couldn’t do, and that should alleviate your woes. Hint: the functions.php code is also responsible for enqueueing the CSS.
May 27, 2011 at 9:36 pm #105718In reply to: BBPlugin – Can't resize forum listing
John James Jacoby
KeymasterIf you aren’t able follow the instructions provided, these kinds of things will happen. Revisit what you couldn’t do, and that should alleviate your woes. Hint: the functions.php code is also responsible for enqueueing the CSS.
May 27, 2011 at 9:31 pm #106418John James Jacoby
KeymasterThat function was removed and merged with another that did essentially the same check. The standard bbp-twentyten theme files won’t have this problem.
You’ve just experienced first hand why it’s best to use the built in theme compatibility if, particularly if you’re not a developer that keeps up with the code changes.
May 27, 2011 at 6:29 pm #106386In reply to: bbP 2.0 b1 – Intermittently can't post replies
tooltrainer
MemberFYI it appears to be related to the specific content in my post. I typed up a very short reply and posted it without a problem.
Are there words or symbols that bbP is treating as security risks? I’ve seen this before in WP and it’s enough to drive one to drink.
This isn’t even a code-oriented post. I at least understand it blocking posts that contain SQL queries and whatnot, but this doesn’t have any of that…
Jonathan
May 27, 2011 at 4:39 pm #105904In reply to: Where is the importer?
scribu
MemberI managed to get past the fatal error by adding these two lines in my bp-config.php file:
define('BB_DATABASE_CLASS', 'BPDB');
define('BB_DATABASE_CLASS_INCLUDE', false);Now I’m getting more errors:
Warning: Missing argument 2 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29
Warning: Missing argument 3 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29
Warning: Missing argument 4 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29
Fatal error: Cannot redeclare bb_cache_users() (previously declared in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php:103) in .../forum-svn/bb-includes/functions.bb-users.php on line 39This is using bbPress plugin 2.0-beta-2b and bbPress standalone trunk.
May 27, 2011 at 4:39 pm #100804In reply to: Where is the importer?
scribu
MemberI managed to get past the fatal error by adding these two lines in my bp-config.php file:
define('BB_DATABASE_CLASS', 'BPDB');
define('BB_DATABASE_CLASS_INCLUDE', false);Now I’m getting more errors:
Warning: Missing argument 2 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29
Warning: Missing argument 3 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29
Warning: Missing argument 4 for BPDB::__construct(), called in .../forum-svn/bb-settings.php on line 197 and defined in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php on line 29
Fatal error: Cannot redeclare bb_cache_users() (previously declared in .../lomo-content/plugins/bbpress/bbp-admin/importers/bbpress.php:103) in .../forum-svn/bb-includes/functions.bb-users.php on line 39This is using bbPress plugin 2.0-beta-2b and bbPress standalone trunk.
May 27, 2011 at 3:37 pm #95475In reply to: bbPress 2.0 – Updates
Jamie Marsland
ParticipantJust installed beta 2…. lovely so far
May 27, 2011 at 12:56 pm #106198John James Jacoby
KeymasterI haven’t quite figured out the best way to reliably integrate the login/register/lost-password pages into theme compatibility yet. The tentative plan is to finish up their shortcodes so they can be used on any page and ready for 2.0.
May 27, 2011 at 11:57 am #106197mhjerde99
MemberLooks like it is possible to register new users with a link like this:
http://riftlabs.com/wp/wp-login.php?action=register
This displays a page saying “WordPress – Register for this site” which is a bit confusing

Is there a way to register new users in such a way that it looks like users are signing up to the forum and not to WordPress?
Also, the email confirmation roundtrip takes the users back to the homepage. It would be super if it took the user back to the forum.
Cheers,
Morten
-
AuthorSearch Results