Forum Replies Created
-
This function will take all attempts to go to the replies page to whatever url you want
add_action( 'bbp_template_redirect', 'neon_check_replies'); function neon_check_replies(){ //only execute if the url contains both /users/ and /replies/, so test for this first if (strpos($_SERVER['REQUEST_URI'], '/users/') == FALSE && strpos($_SERVER['REQUEST_URI'], '/replies/') == FALSE) return ; else wp_redirect( 'https://example.com/some/page' ); }
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
ok, so using this process for each of the following files in place of xxfilexx.php below
find
wp-content/plugins/bbpress/templates/default/bbpress/xxfilexx.phptransfer this to your pc and edit
and save
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your theme
Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/xxfilexx.phpbbPress will now use this template instead of the original
so template 1.
\templates\default\bbpress\user-profile.php
to remove lines 42 & 43 to tale out the counts if you wish.
then template 2
templates\default\bbpress\user-details.php
take out lines 34-60
then templates
\templates\default\bbpress\user-topics-created.php
\templates\default\bbpress\user-replies-created.phptake out all the code between the 2 ‘do_action’ lines
That should get you there
ok, so you want no-one to see anything in profiles – yes?
ok,
on first one
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Form item 10
installing this plugin should also fix the second item – this is a bug in 2.6.7 onwards that has yet to be fixed.
The submit issue may be because of server response times – in essence if the first post has written to the database before the second tries to, it gets recognised as a duplicate.
so you want anyone to be able to see the users profile and topics created, but not replies created – yes ?
and who can see this – eg no-one, logged in users, the users themselves etc.
In reply to: Just playing around to see what it can and can’t doenjoy !
In reply to: Make Author section wider🙂 great glad you are fixed – and thanks for the donation !!
In reply to: Cannot access any topic or forumok, so you say you get an error
Error thrown Call to a member function get_users_for_object() on null
is this the entire error, or is there more?
when does this occur eg on every website page, on bbpress pages, on particular pages ?just as a test, can you add
which has a fix for an issue in 2.6.7 which may or may not relate to this
If you install and activate the style pack plugin, does the problem stay or go away?
In reply to: 2 questionsIn reply to: Cannot access any topic or forumI’ve not read this is detail, but is it related ?
https://wordpress.org/support/topic/redux-and-bbpress-glitchy-forum-parents/
In reply to: 2 questionsok, you’ve lost me there.
so in the ‘create topic’ form, you want an extra field – yes? no ?
and then where do you want this field to display?
In reply to: 2 questionsThere are lots of hooks and filters you can use to display output – depends on what you want displayed where 🙂
In reply to: How to make anonymous posts pendingIn reply to: Cannot link new LearnPress course to existing forumI’d suggest you start with Learnpress support, as that seems to be where the problem lies.
In reply to: Need help with slow MYSQL query & high CPU usagehmmm…agree it is very hard from this snippet to know where it is coming from.
Presuming you can repeat this timing, I’d suggest that you do the standard fault finding ie swicth to a default theme and just have bbpress as the only plugin. If the query still shows, then it is a bboress one, and you can work through individual bbpress displays to see if you can work out where it is called.
If it doesn’t show, then I’d suspect a bbpress add-n and you can add back plugins to try and find the culprit
In reply to: WebP imageswordpress does
so if you have image plugins adding to bbpress, it would depend on whether they do
that looks like buddypress not bbpress – have you also posted in their support forum?
I am not quite sure what a ‘profile notifucation’ is – is this bbpress or buddypress?
In either case, I would try
dashboard>tools>forums>repair and run ‘recalculate engagements’
ok, best advice I can give is the standard fault finding :
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentytwenty, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users
Then come back
ok, kinda hard to answer this one, as I can see forums and sub forums – but have no idea what is not showing 🙂
In reply to: New posts and commentsThis might be close to what you ae looking for
once activated go to
dashboard>settings>bbp style pack>Unread posts
In reply to: Moving a Topic to a different Forumthanks – you too
In reply to: Moving a Topic to a different Forumthat sounds like a good plan – do come back and report success or failure – if it doens;t work, I’ll try and find some time to look at the plugin.
In reply to: Moving a Topic to a different Forumthis looks like it might do it
whilst it is an old plugin, it is written by Pascal who is a good plugin author, and there have been no major changes other than subscribe since written, and I suspect it does not touch that part.