-
shanebp posted on the forum topic links in activity content in the group How-To and Troubleshooting: 13 years, 6 months ago
I think this is the right approach, but it’s not working… In bp-custom – ` function add_target_func_callback($matches){ if ( (parse_url($matches, PHP_URL_HOST) != ‘my.com’) && (parse_url($matches, PHP_URL_HOST) != ‘www.my.com’) ){ $matches = ‘target=”_blank” ‘ . $matches; } return $matches; } function add_target_blank($content) { $content =…[Read more]
-
shanebp posted on the forum topic Get Logged In Username in the group How-To and Troubleshooting: 13 years, 6 months ago
Simple typo ? Should be:
$username = $bp->loggedin_user->id;
-
shanebp started the forum topic links in activity content in the group How-To and Troubleshooting: 13 years, 6 months ago
For updates, when a member inserts an url, I need to check whether that url takes them off-site and if so add target _blank to the href.
Where are hrefs added to urls in activity posts?
So far I’ve looked at:
-bp_get_activity_content_body
-bp_insert_activity_metaAnyone have a hint?
-
shanebp posted on the forum topic how can I send custom notices? in the group Creating & Extending: 13 years, 6 months ago
Glad you got it working.
I’d love to see an example of this using an ajax call, about which I know little.
Please post your working example when you get there, thanks. -
shanebp posted on the forum topic how can I send custom notices? in the group Creating & Extending: 13 years, 6 months ago
The link just goes to the page that it is on.
That’s what this does: bp_core_redirect( wp_get_referer() ) in bp_send_private_bzzt()So a 404 indicates some other problem that I can’t diagnose, unless…
Did you try putting the code in bp-custom.php, per the instructions, instead of functions.php ?
-
shanebp posted on the forum topic how can I send custom notices? in the group Creating & Extending: 13 years, 6 months ago
You have to roll your own.
I got thru it awhile back with help from @r-a-y -
shanebp posted on the forum topic How to display if the User is Online or Not in the Forum Topic and Profile in the group How-To and Troubleshooting: 13 years, 6 months ago
You’d have to use action or filter hooks if you put it in bp-custom
Try putting it in a template file, like member-header
-
shanebp posted on the forum topic profile edit error for multicheckbox – more error details ? in the group How-To and Troubleshooting: 13 years, 6 months ago
My fix – In bp-xprofile.php In function xprofile_set_field_data I changed this line
if ( $is_required && ( empty( $value ) || !strlen( trim( $value ) ) ) ) {
toif ( $is_required && ( empty( $value ) ) ) {
And changes are now saved. I do not know why the strlen […] -
shanebp started the forum topic profile form field values in the group Requests & Feedback: 13 years, 6 months ago
Probably too late for 1.3, which I eagerly await, but here’s something I’d love to see… The ability to create profile fields that do not use the same value for both the option and the displayed text. For example, a select box could have: option value=100> Grey option Instead of option value=Grey > Grey option […]
-
shanebp joined the group Requests & Feedback 13 years, 6 months ago
-
shanebp posted on the forum topic How to display if the User is Online or Not in the Forum Topic and Profile in the group How-To and Troubleshooting: 13 years, 6 months ago
I use a version of this on profile pages (member-header.php) – it’s faster than the code in the url above because it only checks one user. ` function check_is_user_online($user_id){ if ( bp_has_members( ‘type=online&include=’.$user_id) ) return true; else return false; } $this_id = $bp->displayed_user->id; $is_online =…[Read more]
-
shanebp posted on the forum topic How to display if the User is Online or Not in the Forum Topic and Profile in the group How-To and Troubleshooting: 13 years, 6 months ago
Bit of a drag that we have to loop thru all members, but this works and I couldn’t figure out a better way
http://code.hyperspatial.com/all-code/buddypress-code/is-user-online/
-
shanebp started the forum topic profile edit error for multicheckbox – more error details ? in the group How-To and Troubleshooting: 13 years, 6 months ago
A required profile field, a multicheckbox, just started throwing an error when edited by users: “There was a problem updating some of your profile information, please try again.” Any changes to any fields on the first page of ‘edit profile’ will throw that error when saved. However, any field other than one specific field will […]
-
shanebp posted on the forum topic flip slideshow order in the group BuddyPress Media: 13 years, 6 months ago
> reverse the “ASC” and “DESC” Yes, in original post I mentioned trying swapping the Order By, iow reversing the “ASC” and “DESC”, and that it didn’t work. (I could have made that clearer) Solution !! In bp-album-classes.php – In function bp_album_default_query_args(){ change $args=’ASC”; to DESC In function public static function query_pictures…[Read more]
-
shanebp started the forum topic flip slideshow order in the group BuddyPress Media: 13 years, 6 months ago
Version: 0.1.8.7 We need to show pics in order from newest to oldest. Easy to do by switching ordersort to DESC in bp-album-classes, function bp_albumx_default_query_args $args=’DESC’; But how do I get the slideshow to also flip its order? I tried swapping the Order By in if($adjacent == ‘next’){ in public static function query_pictures without…[Read more]
-
shanebp posted on the forum topic password reset works but goes to error page in the group How-To and Troubleshooting: 13 years, 6 months ago
The problem lay somewhere in memcache or varnish conditionals
The fix was to comment out this line in wp_includes/registration, function wp_update_user
wp_clear_auth_cookie(); -
shanebp started the forum topic password reset works but goes to error page in the group How-To and Troubleshooting: 13 years, 6 months ago
Members reset their password and get a Error 503. The password is reset, but the error confuses them (and me). If they go to any other page, they can log in with the new pw. What occurs in a normal state is a POST to /members/asdfshane/settings/general, followed by two GET requests: “GET /members/asdfshane/settings/general HTTP/1.1” “GET […]
-
shanebp posted on the forum topic bp_get_profile_field_data to filter custom members-loop in the group Creating & Extending: 13 years, 6 months ago
I’d use xprofile_get_field_data
Like so:
xprofile_get_field_data(‘your field name’, member_id); -
shanebp joined the group Creating & Extending 13 years, 6 months ago
-
shanebp posted on the forum topic Going To Try A Caching Plugin. WP Super Cache or W3 Total cache? in the group How-To and Troubleshooting: 13 years, 7 months ago
I tried Bowe’s method using W3 Total cache and Rackspace CDN (CloudFiles) for a 3 dedicated servers setup – 1 db, 2 frontend. It failed at the crop avatar step. Everything else was fine. We had to use NFS instead to sync avatars across the frontend servers – ugh. Still using W3 Total cache for […]
- Load More
@shanebp
Active 20 hours, 6 minutes ago