-
Henry started the topic BP template hierarchy Codex article in the forum How-to & Troubleshooting 11 years, 1 month ago
https://codex.buddypress.org/theme-development/theme-compatibility-1-7/template-hierarchy/
Under “Single Group Pages” in the article above, should the paths be
/buddypress/groups/single...
Some seem to read
/buddypress/members/single...
-
Henry started the topic Enable BuddyPress to WordPress profile syncing in the forum How-to & Troubleshooting 11 years, 1 month ago
What does this option actually do? I’d like to know a little more about it if anyone has some info…
It is found under Settings > BuddyPress > Profile Settings
-
Henry replied to the topic Is there anyway to create an ID after someone registers in the forum How-to & Troubleshooting 11 years, 2 months ago
@shanebp lol. There must be a plugin out there somewhere 🙂
-
Henry replied to the topic Is there anyway to create an ID after someone registers in the forum How-to & Troubleshooting 11 years, 2 months ago
Uh?
So after they register the page would say something like ‘welcome, here is your challenge ID’
-
Henry replied to the topic Is there anyway to create an ID after someone registers in the forum How-to & Troubleshooting 11 years, 2 months ago
@aducale OK. In that case
<?php echo bp_loggedin_user_id(); ?>
would work so long as the user is logged in when viewing the page. -
Henry replied to the topic Is there anyway to create an ID after someone registers in the forum How-to & Troubleshooting 11 years, 2 months ago
@shanebp I think the OP just needs a unique numerical?
-
Henry replied to the topic Is there anyway to create an ID after someone registers in the forum How-to & Troubleshooting 11 years, 2 months ago
Each new member automatically gets assigned a numerical ID which you can use for this purpose.
<?php echo bp_loggedin_user_id(); ?>
will display it on screen for the user if they are logged in. -
Henry replied to the topic Disallow HTML tags in profile fields in the forum How-to & Troubleshooting 11 years, 2 months ago
found it
bp_get_profile_field_data
-
Henry replied to the topic Delete post comments via front end in the forum How-to & Troubleshooting 11 years, 2 months ago
Thanks @mercime – wish you told me about that plugin yesterday. Spent about 5 hours getting my code to work – the problem was all down to the “headers already sent”. You have to redirect early on (around the wp_loaded action) – before the headers are sent or you’ll hit problems like I did.
-
Henry started the topic Disallow HTML tags in profile fields in the forum How-to & Troubleshooting 11 years, 2 months ago
Anyone know how to disallow HTML tags in profile fields?
Take blog comments – I can disable HTML tags like this:
add_filter('comment_text', 'wp_filter_nohtml_kses');
I just need to know how to disable HTML tags for BP profile fields.
-
Henry replied to the topic Tumblr, instagram type public gallery. Allow users to post images & tag them. in the forum How-to & Troubleshooting 11 years, 2 months ago
I’ve been using the rtMedia plugin by rtCamp. You’d be able to do everything you mentioned using that.
-
Henry replied to the topic Delete post comments via front end in the forum How-to & Troubleshooting 11 years, 2 months ago
Just to add (if anyone is interested), to have the page reload i’m using this as the last line in my function
wp_safe_redirect( wp_get_referer() ); exit;
-
Henry replied to the topic Delete post comments via front end in the forum How-to & Troubleshooting 11 years, 2 months ago
Got it! I had to turn my form processing code into a function and hook it to the wp_loaded action. This avoided getting the dreaded “headers already sent” error.
-
Henry replied to the topic Delete post comments via front end in the forum How-to & Troubleshooting 11 years, 2 months ago
OK my code so far which partially works. I just need the page to reload or refresh to reflect that the comment has been deleted from the database. Any ideas?
if ( isset( $_POST['comment_delete_nonce'] ) ) {
[Read more]
if( wp_verify_nonce( $_POST['comment_remove_nonce'], 'comment-remove-nonce' ) ) {
set_query_var( 'commentid1', $_POST['commentid'] );… -
Henry started the topic Delete post comments via front end in the forum How-to & Troubleshooting 11 years, 2 months ago
function custom_delete_post_comment() {
$comment_id = comment_ID();
wp_delete_comment( $comment_id, true )
}I have been able to write this function which will delete a comment with a given ID.
Now, I’d like blog authors to be able to delete post comments via the front end. (this will avoid them having to go into WP dashboard and delete…[Read more]
-
Henry replied to the topic [Resolved] Settings > Capabilities – What is this page used for? in the forum How-to & Troubleshooting 11 years, 2 months ago
Thanks!
-
Henry replied to the topic [Resolved] Settings > Capabilities – What is this page used for? in the forum How-to & Troubleshooting 11 years, 2 months ago
Just out of interest, if I use the capabilities page to mark a user as a spammer, what does that actually do? Delete the user from the site? Banish them into a black hole? etc
-
Henry replied to the topic [Resolved] Settings > Capabilities – What is this page used for? in the forum How-to & Troubleshooting 11 years, 2 months ago
That’s what I thought it was for. Thanks for verifying @mercime – I was half thinking such capability settings would be performed via the backend dashboard – but of course this is BuddyPress – for front end stuff! 🙂
-
Henry started the topic [Resolved] Settings > Capabilities – What is this page used for? in the forum How-to & Troubleshooting 11 years, 2 months ago
example.com/members/settings/capabilities/
Does anyone know what this page is used for?
Thanks in advance
-
Henry replied to the topic Blog URLs – multisite in the forum How-to & Troubleshooting 11 years, 2 months ago
bump
- Load More
@henrywright-1
Active 9 years, 10 months ago