-
Henry replied to the topic javascript precedence in the forum Ideas 11 years, 1 month ago
@bassjobsen how many plugins do you plan to write? hehe. The core team are great, if there is a bug they tend to jump on them straight away – hopefully you won’t have to wait too long for the fix. 🙂
-
Henry replied to the topic I can see users' private messages in the forum How-to & Troubleshooting 11 years, 1 month ago
-
Henry replied to the topic javascript precedence in the forum Ideas 11 years, 1 month ago
@bassjobsen if you’re writing a plugin then you could introduce a {plugin-name}-functions.php file which could be home for your custom helper functions. Just a thought.
-
Henry started the topic Front page for logged in users in the forum How-to & Troubleshooting 11 years, 1 month ago
What is the default front page for logged in users? i.e which page do users land on by default straight after logging in?
My aim is to have them land at the site root – example.com/ – but a redirect seems to be in place which takes them elsewhere. I have my front page set to Register.
-
Henry replied to the topic javascript precedence in the forum Ideas 11 years, 1 month ago
You can use Trac if you need to report a bug in BP core:
https://buddypress.trac.wordpress.org/With reference to (2), you could always remove the action then enqueue the script you want.
remove_action( 'wp_head', bp_core_confirmation_js', 100 );
-
Henry replied to the topic I can see users' private messages in the forum How-to & Troubleshooting 11 years, 1 month ago
@jetlej are you logged in as ‘admin’? That would explain it as admin has access rights to member’s private messages. Try setting up a dummy user with subscriber access rights. You’ll most probably not be able to read the messages.
-
Henry replied to the topic Display first 2-3 lines of 'About Me' xprofile field in Member's Directory in the forum Creating & Extending 11 years, 1 month ago
Actually apologies – not convinced this will achieve what you want it to
$value = wordwrap( $value, 16 );
$value = explode( "n", $value );
$value = $value[0] . '...'; -
Henry replied to the topic Display first 2-3 lines of 'About Me' xprofile field in Member's Directory in the forum Creating & Extending 11 years, 1 month ago
The best approach would be to filter the data before you display it to screen. The general idea would be something like this
[Read more]
function filter_about_me_info( $value, $field_id, $user_id ) {
if ( bp_is_directory() ) {
$value = wordwrap( $value, 16 );
$value = explode( "n", $value );
$value = $value[0] . '...';
}… -
Henry replied to the topic Creating 'New Group' changes 'http://' to 'HTTPS:// ' in the forum How-to & Troubleshooting 11 years, 1 month ago
@mikealan can you list all of the plugins you have installed?
-
Henry replied to the topic I can see users' private messages in the forum How-to & Troubleshooting 11 years, 1 month ago
@jetlej which theme are you using?
-
Henry replied to the topic I can see users' private messages in the forum How-to & Troubleshooting 11 years, 1 month ago
@jetlej does it happen with the user role editor plugin deactivated?
-
Henry replied to the topic Display Private Message Time rather than Time Since Sent in the forum How-to & Troubleshooting 11 years, 1 month ago
I think you might be able to do something like this in functions.php
function absolute_message_sent_date() {
global $thread_template;
return $thread_template->message->date_sent
}
Then this will go straight into your single.php template
echo absolute_message_sent_date();
-
Henry replied to the topic Can BuddyPress be used as a business directory service? in the forum Miscellaneous 11 years, 1 month ago
@ugcheleuce WordPress and BuddyPress could handle this no problem. Depending on what features you’d need, you may need to write some custom code or add some plugins.
-
Henry replied to the topic Members directory dropdown sort issue (possible bug) in the forum Installing BuddyPress 11 years, 1 month ago
@bphelp I’ve seen websites that grant login access even before the account has been activated. Twitter is an example.
Thinking about the profile URL being created – Although BP doesn’t give login access, the fact that a profile URL is created opens up opportunities. For example, on registration submit you could add an action that redirects the…[Read more]
-
Henry replied to the topic Displaying logged in user profile field value outside the loop in the forum Creating & Extending 11 years, 1 month ago
Ah yes of course.
Replace:
bp_get_profile_field_data( 'field=VALUE' )
With
xprofile_get_field_data( 'field=VALUE', bp_loggedin_user_id() )
-
Henry replied to the topic Displaying logged in user profile field value outside the loop in the forum Creating & Extending 11 years, 1 month ago
<?php
echo 'Hi ' . bp_core_get_username( bp_loggedin_user_id() ) . ' – Account Type: ' . bp_get_profile_field_data( 'field=VALUE' );
?>Note: VALUE should be the exact name of the field you want to use.
-
Henry replied to the topic Displaying the search term or phrase on member search in the forum How-to & Troubleshooting 11 years, 1 month ago
echo $_REQUEST['s'];
in members-loop.php worked! The global was the bit I didn’t like. For some reason I completely overlooked the obvious. Thanks @shanebp for the solution. -
Henry replied to the topic Members directory dropdown sort issue (possible bug) in the forum Installing BuddyPress 11 years, 1 month ago
@bphelp I haven’t been able to test this for you yet but I did notice yesterday that non-activated users get given a URL which is visible to anyone. For example, if you completed the registration form on my site and chose username ‘bphelp’ – even before you click on the link in the activation email you will be able to go…[Read more]
-
Henry replied to the topic Displaying the search term or phrase on member search in the forum How-to & Troubleshooting 11 years, 1 month ago
@shanebp I thought that too but it seems to be. Check out how BP remembers the search term after clicking. See
bp_directory_members_search_form()
in bp-members-template.php -
Henry replied to the topic Convert WP users to BuddyPress members? in the forum Installing BuddyPress 11 years, 1 month ago
@robg48 – this could well be half of the solution you’re looking for when importing stuff from WP to BP. Although there’s no mention of a user import (just blog posts).
https://wordpress.org/plugins/bp-import-blog-activity/
Edit: Just came across the following – please note i’ve not tested it.
- Load More
@henrywright-1
Active 9 years, 10 months ago