Forum Replies Created
-
In reply to: 404 user profile
great – 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; }
In reply to: separate registration for different forumshttps://wordpress.org/plugins/bbp-private-groups/ will let you set up different groups and have users with different access.
In reply to: Button to add attachments missingthanks for posting your solution – so many don’t !
This will help anyone else googling the issue later 🙂
just loaded that plugin to my test site, and with auto-embed on it works fine.
This
<p>https://photos.app.goo.gl/pOeSirvJb5oC7kFC2</p>
displays the embed just fine.
So all we now need to do is work out the difference between my test site and your staging site !!
When you’ve come back on the Q’s above, I’ll do some more digging.
Matt,
Great to have a detailed problem definition and steps so far – really useful.
Couple op quick questions
1. Is this happening to just new posts or have old posts stopped showing links?
2. if just new posts, can you try with both front end (user view) and back end (dashboard>topics>create new topic)
3. Can you just confirm that it is both topics and replies.
4. If old posts are still working, can you just try going into one (edit front end) and just click save – I want to see if this is something being added on save.Then we’ll see where to go from there