Forum Replies Created
-
is an add-on to bbpress and will let you split your forums into as many groups as you like.
membership plugins tend to assign roles to members if you want different membership types, and then private groups plugin can then assign these to the forum groups
great – have a good 2022 !!
and do post back the solution when you get there
In reply to: How to make anonymous posts pendingπ
π
In reply to: How to add new replies from admin area!?when you go to
dashboard>replies>add new you should see a box on the top right that says ‘reply attributes’ and in there you put the topic number.
ok, lets try agian and see if we can get there.
Your site has
https://imhodom.ru/forums/users/ox/replies/
so we need to check for ‘/users/’ and ‘/replies/’
and we’ll try and up the priority so that other code does not overwrite
add_action( 'bbp_template_redirect', 'neon_check_replies', 100); function neon_check_replies(){ //only execute if the url contains both /user/ and /replies/, so test for this first if (strpos($_SERVER['REQUEST_URI'], '/users/') !== FALSE && strpos($_SERVER['REQUEST_URI'], '/replies/') !== FALSE) wp_redirect( 'https://imhodom.ru/forums' ); }
and is your site in english ?
ok, so if the replies link goes to
https://mysite.com/forums/user/admin/replies/
then this
add_action( 'bbp_template_redirect', 'neon_check_replies'); function neon_check_replies(){ //only execute if the url contains both /user/ and /replies/, so test for this first if (strpos($_SERVER['REQUEST_URI'], '/user/') !== FALSE && strpos($_SERVER['REQUEST_URI'], '/replies/') !== FALSE) wp_redirect( 'https://mysite/home' ); }
will send anyone clicking the link to the site home page
what does it do for you?
can you just define wat exactly you mean by ‘doesn’t work’ – ie I put this in here click that and this happens
ok try this
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) wp_redirect( 'https://example.com/some/page' ); }
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.