Forum Replies Created
-
It just means that the BP code was changed since that documentation was written.
Ok, this particular problem really sucks. You use bp_core_load_template() in a plugin to load a theme file, using the filter ‘bp_located_template’.
If you’re modelling your plugin on the default BuddyPress components, or even the skeleton component, you could use the above to load an index page for your directory, and use a “loop” file to display each item within your directory index page.
However, the whole purposes of the ‘bp_located_template’ filter is that it allows theme authors to override your plugin’s theme file by adding it to their WordPress theme directory. The problem is that you cannot use bp_located_template() to include your loop file (henceforth referred to as a “plugin sub-template”).
Why? Because bp_core_load_template() just sets up the data for the template to load; nothing happens until the WordPress ‘template_redirect’ action is called, which only happens once on page load (.e. when it loads your index page).
Quick fix? After calling bp_core_load_template( ‘plugin/sub-template.php’ ), just call bp_core_do_catch_uri().
Proper fix? Working on it.
bp_core_load_template is not working when trying to load plugin’s sub-templates from within that plugin’s template file(s)
In the current versions, the actions are called with the wrong priorities in the BP code resulting in this sort of problem. For now, rather than hooking into bp_setup_globals, hook into ‘wp’ and/or ‘admin_menu’
In reply to: Plugin Devs Please ReadThose aren’t working currently
use:
bp_get_the_topic_poster_name and bp_get_loggedin_user_fullname
In reply to: Bad date/time on messageThat area uses the bp_format_time() function which looks like it calls the appropriate WordPress date handlers. If you have a message that displays the wrong time, if you look at it in the database, does it look any different from a message that works OK?
This is currently done when a user is marked as a spammer; this probably is best to go on https://trac.buddypress.org/ as an enhancement ticket.
In reply to: getting started – i need helpYou need to set permalinks in your WordPress install.
In reply to: Does Buddypress work exactly the same way with wp?Only use MU if you want multiple blogs on the same install (or if you want to let your users create their own blogs on your site). BuddyPress is otherwise identical.
It looks like it should still work OK. Anything in your error logs?
In reply to: Use Forums without Groups?Some people are just refusing to understand the BuddyPress Groups concept. If you want something that acts as a site wide discussion forum, create a Group. As Boone’s suggested, it’s not hard to auto-add new and existing members to it; he’s even listed what a plugin would need to do for it.
In reply to: BP mark as spammers acts wierd in 1.2.2.1When a user is marked as a spammer, all of their Activity data is deleted in the database. There’s no way to retrieve. They essentially start out as new users as far as BuddyPress is concerned; they’ll need to log in or edit their profile, etc, in order to appear throughout the site (on the members directory, for example).
In reply to: BuddyPress i18n Topicshttps://trac.buddypress.org/ticket/1445
If you can comment on that ticket that would be good
In reply to: How does buddypress.org organize forums?This site uses “Deep integration” with a standalone bbPress install. In the near future, this website will change and forums/groups will follow the regular BuddyPress model. The only reason this is like it is currently is because of historical reasons and the fact that the site’s theme hasn’t been updated for a long time.
If you want a site wide forum, just create a group and call it “site wide discussion”. Easy as that.
In reply to: bp 1.2.2.1 new users unable to loginWordPress uses the standard PHP mail() function – http://php.net/mail
In reply to: Very Slow Server Response With BuddyPressYeah, that article will help — I love eAccelerator. I also recommend you install this WordPress plugin: https://wordpress.org/extend/plugins/w3-total-cache/ (read the settings but you at least want “Database Caching” enabled.
In reply to: New WP-BP Install, /Forums Refuses To WorkHow exactly does it “Fail”? There must be an error message on screen or in your web server’s log.
In reply to: BuddyPress Pages Not ViewingDid you configure the pretty permalinks on your WP install?
Again: look in your logsand find out why the add_action is failing. That’s what you need to fix.
In reply to: phpbb3 conversion to buddypress forumsI’ve really got no idea where your <!– m –> is coming from. is this an artifact introduced by the phpBB exporter?
do_action( 'bbpress_init' );This triggers BuddyPress to load the bbPress code. So as you’ve done, you need to call this early on. If it’s giving you the WSOD, you need to find out why and fix that.
In reply to: Trying to do a notification checkI assume you are having issues getting the count of unread notifications a user has. Try this:
if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>
<span><?php echo count($notifications) ?></span>
<?php
}
In reply to: New WP-BP Install, /Forums Refuses To WorkBeat you by about 7 seconds there, r-a-y. Getting slow in your old age
In reply to: New WP-BP Install, /Forums Refuses To WorkHm, this is a fairly obviously question, so just to get it out of the way — have you gone into your /wp-admin/ -> “Forums Setup” under the BuddyPress menu, and selected the “Set up a new bbPress installation” button?