-
Henry Wright replied to the topic Sorting by last name goes wrong when having multiple words as last name in the forum How-to & Troubleshooting 10 years ago
@shanebp the only problem with
substring_index( substring_index( 'Robin van Persie', ' ', 2), ' ', -1 )
is you lose anything after the 2nd delimiter. For example:substring_index( 'Robin van Persie', ' ', 2)
would return
Robin van
and then
substring_index( 'Robin van', ' ', -1)
would return
van
So in theory, the order returned could…[Read more]
-
Hugo Ashmore replied to the topic [INFO] Useful s2member/buddypress knowledge in the forum Creating & Extending 10 years ago
@shanebp thanks for clarifying the changes.
@myg0t Big thanks for adding this to the codex, please don’t be put off by us pestering on the changes π bp_parse_args greatly simplifies things in terms of not having to have people locate, overload, possibly set up a child theme etc. wp_login is important to ensure you only run your function…[Read more]
-
Asynaptic replied to the topic in the forum shanebp 10 years ago
“I feel that the βrebootβ question is THE question.”
completely agree @shanebp
it will take courage and leadership to make it reality, I hope the BP team can find both because we need to set our sights on the future
-
Skyrie replied to the topic Unban from Group? in the forum How-to & Troubleshooting 10 years ago
@shanebp Thanks, but that’s for an admin and I’m talking about regular members. If a member creates a group and then bans someone, they can’t unban them since that member is kicked and thus removed from the members loop. I think this might be a bug.
-
Henry Wright replied to the topic display member updated date? in the forum How-to & Troubleshooting 10 years ago
last_profile_update( $_GET['user_id'] )
is only a bad thing if you don’t escape$user_id
in the SQL statement provided by @shanebp. That’s because$_GET['user_id']
could be tainted as it is received from the browser. In your case, you won’t be doing that. You’ll be providing the user ID yourself so using @shanebp‘s SQL should be absolutely fine.…[Read more] -
Henry Wright replied to the topic display member updated date? in the forum How-to & Troubleshooting 10 years ago
last_profile_update( $_GET['user_id'] )
is only a bad thing if you don’t escape $user_id in the SQL statement provided by @shanebp. That’s only because$_GET['user_id']
could be tainted as it is received from the browser. In your case, you won’t be doing that. You’ll be providing the user ID yourself so using @shanebp‘s SQL should be absolutely…[Read more] -
Henry Wright replied to the topic display member updated date? in the forum How-to & Troubleshooting 10 years ago
@shanebp is it worth escaping
$user_id
in the SQL statement? think you can use the prepare() method for that? -
Henry Wright replied to the topic Help: User limit in the forum Creating & Extending 10 years ago
Hi @aakashs
Further to @shanebp‘s post, and your question about 3m users, a lot comes down to what those 3m users are doing. If 3,000,000 users register, then logout, and only return once every 6 months then maintaining the site going forward will be quite easy. However, if each of the 3,000,000 return every day, upload some media, comment often…[Read more]
-
Henry Wright replied to the topic Hide profile page of admin from other users in the forum How-to & Troubleshooting 10 years, 1 month ago
Nice @shanebp π
-
bp-help replied to the topic E-Mails Not Formatted With Buddypress & Paid Membership Pro? in the forum How-to & Troubleshooting 10 years, 1 month ago
@gio91 @shanebp
The name of the plugin would lead one to believe this is a premium plugin but from what I can gather it is free on the WP plugin repo here:
https://wordpress.org/plugins/paid-memberships-pro/.
@gio91
You may want to contact the plugin author on their support forum here and follow shane’s advice about…[Read more] -
Paul Wong-Gibbs replied to the topic Marked as spammer, but why? in the forum How-to & Troubleshooting 10 years, 1 month ago
Hmmmm. BuddyPress does not ever automatically mark a user as a spammer (or not a spammer), so I’m not immediately sure what might be going on. What other plugins do you have on the site, and what theme are you using?
Please also tell us the versions of WordPress and BuddyPress that you are using, like @shanebp asked.
Last question: are you using…[Read more]
-
Henry Wright replied to the topic Create Competitions using BuddyPress in the forum How-to & Troubleshooting 10 years, 2 months ago
@shanebp just like He-Man? π
-
bp-help replied to the topic Showing just yourself and friends in an activity feed. in the forum How-to & Troubleshooting 10 years, 2 months ago
-
Henry Wright replied to the topic wp_enqueue_script issue on activity page in the forum How-to & Troubleshooting 10 years, 2 months ago
@shanebp even if I provided some explanation of the priority requirement, I think my edit to change the hook to
wp_enqueue_scripts
may have introduced confusion to some people not as familiar with the priority param. I think it’s safer all round just to usewp_print_scripts
, especially as the hook isn’t being deprecated as first thought. -
Henry Wright replied to the topic wp_enqueue_script issue on activity page in the forum How-to & Troubleshooting 10 years, 2 months ago
-
Hugo Ashmore replied to the topic wp_enqueue_script issue on activity page in the forum How-to & Troubleshooting 10 years, 2 months ago
@@shanebp @henrywright ah ok if that is the case then it perhaps ought to be mentioned, did wonder about the hook priority but seen other examples of ? de-registering in that manner but perhaps that would run on that hook – Sorry Henry might have got that wrong then.
-
Henry Wright replied to the topic [Resolved] Nobody visibility in the forum How-to & Troubleshooting 10 years, 3 months ago
Very nice plugin @shanebp!
-
Hardeep Asrani replied to the topic [Resolved] xProfile field being created with every reload in the forum Creating & Extending 10 years, 3 months ago
Okay, it worked!!! That’s a lot!!
One more thing – can you please tell me what if it’s in the functions.php file, do I need to use the bp_init then or something else?
-
Henry Wright replied to the topic PHP Notice: bp_setup_current_user was called incorrectly in the forum How-to & Troubleshooting 10 years, 3 months ago
@shanebp
debug_backtrace()
looks interesting, I’ll find that one useful! -
Henry Wright replied to the topic User avatar redirects to random page, not profile in the forum How-to & Troubleshooting 10 years, 3 months ago
Agree with @shanebp!
Iβm trying to isolate an apparent quirk in BuddyPress having to do with an embedded user avatar image (via shortcode) not linking properly to the user profile…
To my knowledge, BP doesn’t supply shortcodes? I suspect if you search your theme for something like
add_shortcode( 'shortcode-name-here'
and look in the hook’s c…[Read more] - Load More
@shanebp
Active 59 minutes ago