Forum Replies Created
-
In reply to: Private Message Button in Member List LoopIn reply to: Private Message Button in Member List Loop
Try this in your functions.php or bp-custom.php file
Courtesy of boone:
Use `var_dump(debug_backtrace());` to see how things were loaded.
Then comb thru the dump to see which plugin is generating the notice.It is confusing.
Something, probably a plugin, is most likely do a $current_user check
for example:is_user_logged_in()
in a file loaded via a loader.php with something like:
add_action( 'bp_loaded', 'some_function_that_loads_a_file' );The codex recommends using bp_loaded, but in 1.7 the notice was added.
I’ve been using this instead:
add_action( 'bp_init', 'some_function_that_loads_a_file', 9 );The notice only appears if you have, in wp-config.php, debug set to true.
define('WP_DEBUG', true);Other than the notice, are you seeing anything that isn’t working probably?
You could ignore it, at your peril, and set debug to false.
Or you could deactivate your plugins one by one to see which one(s) is generating the notice.It would be helpful to get a definitive explanation from one of the core devs.
In reply to: No button for private messagesPlease provide a username and password so we can login without having to create an account.
Do you have Private Messaging selected on the Components page under Settings -> BuddyPress ?
In reply to: Enterprise Nation@rogercoathup
I’m not sure if 1.7 reduces the number of queries fired per page, but it does have a new BP_User_Query class that scales much better – a real ‘boone’ to installs with large memberships.And that class has some very handy action and filter hooks – without which it would be considerably more difficult to write the premium block member plugin that we’re about to release.
Discussion about the need for those changes began back in 1.5 as more large installs were having scaling issues due to slow queries.
I no longer have access to the large install that revealed the issues.
So if you upgrade Enterprise Nation to 1.7, I’d be very interested in any info you care to share about the outcome.In reply to: How to add a rotation button for changing avatarPlease use the job board for this site:
In reply to: Disbable all comments in activity streamWouldn’t it be easier to just remove the comment form from
theme/activity/entry.php ?In reply to: Translation Problem filechouf1 has already explained this to you.
”
Po file is for translating. It’s a working file.Mo file is for translation throught php gettext. Only the mo is mandatory, not the po or the pot
Once you finish the translation of a po file, you need to compile it to mo format with poEdit. (or equivalent tool)
”Editing the po does nothing until you use it to create a mo file.
Do yourself a favor – get poEdit. It’s free and very easy to use.In reply to: Translation Problem fileMay not be pertinent, but what does your wp-config file say re this setting:
`define(‘WPLANG’, ”);`
In reply to: bp_core_new_nav_item in plugin classUpdate:
Using this gets rid of the Warning:
`’screen_function’ => array( $this, ‘mytab_screen’ )`Nothing fancy, just sloppiness.
Please close thread.
In reply to: BP Profile Message UX – pluginNow in the WP repo:
https://wordpress.org/extend/plugins/bp-profile-message-ux/In reply to: Get group by creator_id?In reply to: Get group by creator_id?You can contact me thru the info on my profile here.
In reply to: How to turn off e-mails in 1.7 beta 2Or…
You can write a snippet, and maybe add it to your import script, that turns off notifications for all users.
But you’ll need to store the actual settings so that you can restore them later.Or…
You can filter all emails being generated and swap out the ‘To’ address with one of your own.
This is the quickest and easiest approach.In reply to: How to turn off e-mails in 1.7 beta 2Yup, spamming your own users is not good.
How are you importing to your database ?
It may not be feasible for your situation, but one way to handle this is to import in two passes.
In the first, import everything except email addresses.
Use https://wordpress.org/extend/plugins/allow-multiple-accounts/
and give everyone the same email addy – an email addy that functions and that you control.In the second pass, swap that addy with the members real email address.
This is also useful on dev sites, that use real member data, when testing anything that can generates emails.
In reply to: BP Block Member 0.5I’m almost done.
But not sure if I want to release as a premium plugin.
So removed git repo until I decide.In reply to: Enterprise NationLooks great – and like a lot of work.
What are you using for hosting ?In reply to: Approve user to group hook with wp_email function ?You can contact me thru the info in my profile under profile link.
In reply to: bp_has_members ignores user> just one user, e.g. id 21
It is always id 21 ?
It it always a random id from your include string ?
How do you know it’s ignored ?
etc, etc.Use pastebin or gist and show us the code you use to create the include string and any custom code you may be using in bp_has_members
In reply to: friendship requestThis will put all notifications in your sidebar:
In reply to: bp_core_avatar_save action hook missing?Well, you could over-ride the whole function – yikes.
In reply to: bp_core_avatar_save action hook missing?Take a look at
function bp_core_avatar_handle_upload(…)
in bp-core-avatars.php
and use the apply_filters hook near the top.But that is pre-upload, so may not be useful to you.
Although you could over-ride the whole function – yikes.In reply to: Adding custom article types to activity streamsBy ‘article types’ you mean custom post type ?
Google this: ‘buddypress add custom post type to activity stream’
In reply to: Approve user to group hook with wp_email function ?Create an add_filter on one or both of the apply_filters_ref_array(…) near the bottom of that function.
Put it in your theme/functions.php or your plugin or plugins/bp-custom.php
If you don’t know how to use add_filter, it’s a basic WP call so google it.