Forum Replies Created
-
In reply to: access control
if you want the forum’s existence to be public – ie showing in the forum list, but not accessible then use my private groups plugin, with forum visibility set.
private groups is a powerful plugin, allowing lots of granularity, but for your initial requirements :
once installed and activated, go to
dashboard>settings>bbp private groups
in group name settings – set up a group 1 to be called anything but say ‘registered’
In forum visibility – activate this, and set up where you want to redirect users to
in assign groups to roles – select ‘Add group on first or no-group login’ and set participants to be assigned group 1
then for each forum that you want users to see exists but not access, go into
dashboard>forums>all forums>edit the forum and
a) set the forum to public – the plugin will stop users seeing content
b) you will see that you can assign it to a group – so set it to group 1If this is all forums, you will set each to this. If you have public forms where you want anyone to be able to see the forums, then don’t set a group
dashboard
can you explain that a bit further?
on my site it shows 3 posts, but if there are no posts, it says ‘no topics’.
In reply to: Design Not aligned Why?picture not showing so can’t help
In reply to: Display Topics name in dropdown in admin sectionThe topic ID is a changeable box, so lets you change the id number. Lots of code would be needed to get it to work for titles, but this code will show the topic name in the box at the bottom
add_action( 'bbp_reply_metabox', 'rew_topic_title' ); function rew_topic_title ($post_id ) { $reply_topic_id = bbp_get_reply_topic_id( $post_id ); ?> <p> <strong class="label"><?php esc_html_e( 'Topic Title:', 'bbpress' ); ?></strong> <label class="screen-reader-text" for="bbp_author_id"><?php esc_html_e( 'Topic Title:', 'bbpress' ); ?></label> <?php bbp_topic_title ($reply_topic_id) ; ?> </p> <?php }
Put this in your child theme function file
In reply to: 404 user profilegreat – glad you are fixed
In reply to: ERROR: Are you sure you want to do this?Log out and log in again
I’d also look strongly at updating your wordpress and bbpress versions to the latest, as they both have security updates
In reply to: Problèmes notifications: mails envoyés aux bloquésto get rid of all forum data
dashboard>tools>forums>reset forums
in place of your code put back the original
<?php bbp_forum_freshness_link(); ?>
and then add this to your functions file
add_filter( 'bbp_get_forum_freshness_link', 'rew_freshness_last_three' , 100, 6) ; function rew_freshness_last_three ($anchor, $forum_id, $time_since, $link_url, $title, $active_id ) { //set up and run a query to get a list of all topics in this forum that this user can see // Setup possible post__not_in array $post_stati[] = bbp_get_public_status_id(); // Super admin get whitelisted post statuses if ( bbp_is_user_keymaster() ) { $post_stati = array( bbp_get_public_status_id(), bbp_get_private_status_id(), bbp_get_hidden_status_id() ); // Not a keymaster, so check caps } else { // Check if user can read private forums if ( current_user_can( 'read_private_forums' ) ) { $post_stati[] = bbp_get_private_status_id(); } // Check if user can read hidden forums if ( current_user_can( 'read_hidden_forums' ) ) { $post_stati[] = bbp_get_hidden_status_id(); } } // Parse arguments against default values $r = array( 'post_parent' => $forum_id, 'post_type' => bbp_get_topic_post_type(), 'post_status' => implode( ',', $post_stati ), 'ignore_sticky_posts' => true, 'posts_per_page' => -1 ); // Create a new query for the topic list $get_posts = new WP_Query(); $topics = $get_posts->query( $r ) ; //var_dump ($topics) ; //now run through this list and get the last active date of each topic foreach ($topics as $topic) { $id = $topic->ID ; $last_active = get_post_meta( $id, '_bbp_last_active_time', true ); $curdate = strtotime($last_active); $show[$curdate] = $id ; } if (!empty ($show)) { //so now we have a list of dates with topic ids, so we need to find the latest 3 arsort($show); $count=0 ; foreach ($show as $topic) { $count++ ; ?> <a href="<?php bbp_topic_permalink($topic); ?>"><?php bbp_topic_title($topic) ?> (<?php bbp_topic_last_active_time($topic); ?>)</a> <?php if ($count == 3) break ; } } else echo 'No topics' ; }
It has to sort through all topics for all forums to work this out, so it may slow your forums index display and get worse as your forum content grows.
In reply to: Forums page: where is it?the page is a virtual page
you can make it an actual wordpress page by following
Item 3 method 2
In reply to: Search isn’t workingForum search not working
ok, if you need help, you’ll need to put a bit more than this.
Suggest you
1. work through this link first
2. if you still have an issue, tell us exactly what is not working ie I type x and y happens
In reply to: Two URLs for same pagenot quite sure what you last sentence means, but in essence if
dashboard>settings>forums>forum root slug>forum root equals ‘forums’, then create a page with the permalink of ‘forums’ and put
[bbp-forum-index]
in it. You can then do your seo on that page
If you are using yoast seo, you may want to add this plugin as well – I haven’t yet looked at it, but seems to do some seo stuff on topics etc.
In reply to: strange 404 issueI wouldn’t worry, this is just part of bots attempts to post stuff to your site. Those SEO emails I expect you keep getting – well those idiots that pay them to raise their sites ranking just create this stuff – bots trying to put references to their site on your site to raise google ranking – ignore it.
They don’t hurt your rankings
In reply to: blog subscription register with all forumsuser will get forum access as per
dashboard>settings>forums>auto role – you can change this to blocked if you don’t want automatic access.
The rest of your request would require some bespoke code, which is well beyond any free help I’m afraid.
In reply to: Problèmes notifications: mails envoyés aux bloquésthey should not receive emails under bbpress.
Are you running another plugin supporting bbpress that is doing this?
eg bbp notify plugin
bbpress just puts the date and author under freshness.
Are you using bbp style pack plugin or last post plugin or another plugin to put the title into the freshness column?
In reply to: Two URLs for same pagehave you got ‘archiv’ set in the slugs in
dashboard>settings>forums
If so change that to ‘forum’
issue is with the plugin Paid Memberships Pro – bbPress Add On v 1.5.4 with Plugin Paid Memberships Pro 1.9.4.2 prevent Plugin Google Photos Version 1.0.1 embed from working.
from @mattdmcleod
I rolled it back to the previous version (1.5.3) on the staging site and it worked. Made that change on the production site and it also seems OK.
The PMPro plugin was the one updated in December, but the current BBPress (v1.5.4) connector hasn’t been updated for 5 months (and last tested with WP 4.8.4). I guess the PMPro update affected the BBPress connector in some way? Or maybe it doesn’t like WP 4.9x? I’ll post in their support forum to let them know.I hadn’t fully understood, yes I see your point now 🙂
I started with something very simple, so know the amount of work to publish a plugin and understand all the processes to that point – congratulations !!
you can fix the broken part by only executing if the user is logged in eg
change
function bbp_profile_link_shortcode() { $link = bbp_get_user_profile_url( bbp_get_current_user_id() ) ; return $link; }
to
function bbp_profile_link_shortcode() { if (!is_user_logged_in()) return ; $link = bbp_get_user_profile_url( bbp_get_current_user_id() ) ; return $link; }
This makes the function not display if the user isn’t logged in
In reply to: issue with Style Packfixed in version 3.7.4
In reply to: Post PreviewIn reply to: issue with Style Packcab you re-log this on the support page for my style pack plugin
https://wordpress.org/support/plugin/bbp-style-pack
and I’ll pick it up there and resolve it
ok, I can’t see the thread suggested – it says ‘Replies viewable by members only’.
If you have the problem on your staging site, then this is clearly the one to work a fix out in.
Can you contact me via my website, so that you can give me access to your staging site and help you work out the issue.
In reply to: Forum registration email from wordpresssorry just re-read your post.
Registration is a wordpress thing.
You just need to change the address is
dashboard>settings>general>email address
In reply to: Forum registration email from wordpressuse this in your functions file and change the address to what you want
add_filter('bbp_get_do_not_reply_address','my_bbp_no_reply_email'); function no_reply_email(){ $email = 'noreply@yourdomain.com'; // any email you want return $email; }
you can change that default to email address as well with :
add_filter('bbp_subscription_to_email','my_bbp_subscription_to_email'); function my_bbp_subscription_to_email(){ $email = 'noreply@yourdomain.com'; // any email you want return $email; }