Forum Replies Created
-
In reply to: Pending topics
no idea 🙂
In reply to: Fetch different avatargreat – thanks for adding
In reply to: Creating a topicvery doubtful that bbpress would add this – you’d need to register a trac ticket
In reply to: ID for Register Buttonit has a class of ‘bbp-register-link’ – is there an issue with using this ?
In reply to: Whose online / forum statsok
In reply to: Posts with 3 or more linksI dug into this a bit further
The moderation in bbpress is looking for ‘<href…’ so if you just post links ie
you post this
https://bbpress.org/forums/topic/posts-with-3-or-more-links/
not this
<a href="https://bbpress.org/forums/topic/posts-with-3-or-more-links/">some link</a>
then no check is done – it is looking for links not urls
There is some capability in the code via
$reply_content = apply_filters( 'bbp_new_reply_pre_content', $reply_content );
to take out more than 2 links, but there is not an easy way to put 3 urls into moderation
In reply to: Opening Subscriber’s profile editor from toolbargreat – glad to have helped.
In reply to: Opening Subscriber’s profile editor from toolbaruntested but try
if ( current_user_can( 'subscriber' ) ) { add_action('wp_before_admin_bar_render', 'rew_admin_bar_remove_wp_profile', 0); add_action('admin_bar_menu', 'rew_add_bbp_profile', 999); } function rew_admin_bar_remove_wp_profile() { global $wp_admin_bar; /* **edit-profile is the ID** */ $wp_admin_bar->remove_menu('edit-profile'); } function rew_add_bbp_profile($wp_admin_bar) { $current_user = wp_get_current_user(); $user=$current_user->user_nicename ; $user_slug = get_option( '_bbp_user_slug' ) ; if (get_option( '_bbp_include_root' ) == true ) { $forum_slug = get_option( '_bbp_root_slug' ) ; $slug = $forum_slug.'/'.$user_slug.'/' ; } else { $slug=$user_slug . '/' ; } $profilelink = '/' .$slug. $user . '/edit' ; $wp_admin_bar->add_node( array( 'parent' => 'user-actions', 'id' => 'bbp-edit-profile', 'title' => 'Edit Profile', 'href' => $profilelink, ) ); }
In reply to: Opening Subscriber’s profile editor from toolbardo you really mean WordPress role subscriber or bbpress role participant ?
In reply to: Redirection after registrationgreat
In reply to: Replace bbP Manage Subscriptionscould be done, but beyond free help – sorry
In reply to: Posts with 3 or more linksno idea 🙂
In reply to: Posts with 3 or more linksjust set yourself up a test account
so create a user called say ‘myusertest’ and give it a fictitious email account – it has to be in the correct format so say ‘abc@def.com’ and set a password
you can then log on as that user and you’ll get participant access to see.
In reply to: Opening Subscriber’s profile editor from toolbarThis code will change the WordPress profile to bbpress profile
add_action('wp_before_admin_bar_render', 'rew_admin_bar_remove_wp_profile', 0); function rew_admin_bar_remove_wp_profile() { global $wp_admin_bar; /* **edit-profile is the ID** */ $wp_admin_bar->remove_menu('edit-profile'); } add_action('admin_bar_menu', 'rew_add_bbp_profile', 999); function rew_add_bbp_profile($wp_admin_bar) { $current_user = wp_get_current_user(); $user=$current_user->user_nicename ; $user_slug = get_option( '_bbp_user_slug' ) ; if (get_option( '_bbp_include_root' ) == true ) { $forum_slug = get_option( '_bbp_root_slug' ) ; $slug = $forum_slug.'/'.$user_slug.'/' ; } else { $slug=$user_slug . '/' ; } $profilelink = '/' .$slug. $user . '/edit' ; $wp_admin_bar->add_node( array( 'parent' => 'user-actions', 'id' => 'bbp-edit-profile', 'title' => 'Edit Profile', 'href' => $profilelink, ) ); }
Put this in your child theme’s function file – or use
In reply to: Posts with 3 or more linksprobably – suggest you test with users of different capability if you want to be sure
In reply to: Remove in first forum onlygreat – lots of ways to do it 🙂
In reply to: Can you make a role to subscribe a forum?great
In reply to: User role for forum users onlyyes – that’s all correct. default bbpress role assigned on first login
In reply to: Can you make a role to subscribe a forum?agree line 2, and line 4 should be
$user_id = $user->ID ;
In reply to: Opening Subscriber’s profile editor from toolbarno, I recommend that generally you should disable toolbar for all but admins, plenty of plugins do that.
In reply to: Can you make a role to subscribe a forum?This code (untested) should subscribe all current users to forum ID 3
$list = get_users(); if (empty (get_option ('rew_done')) { foreach ($list as $user) { $user_id = $user=>ID ; $forum_id = 3 ; bbp_add_user_forum_subscription( $user_id, $forum_id ) ; } update_option ('rew_done' , 'done' ) ; }
Put this in your child theme’s function file – or use
https://en-gb.wordpress.org/plugins/code-snippets/ and load a page, then remove itIn reply to: Opening Subscriber’s profile editor from toolbarhmmm, that function only fires when all plugins are loaded, suggest you try activating it again
In reply to: Opening Subscriber’s profile editor from toolbardo you have bbpress activated ?
In reply to: Whose online / forum statsin style pack, I just list plugins I have found and used on client sites, and were working at the Time of testing. I can’t say if they still work, and sorry don’t have time to test regularly 🙂
In reply to: Can you make a role to subscribe a forum?just looked, yes that seems to only apply to new users