Forum Replies Created
-
In reply to: memberpress integration with bbpress
you first questions are I think members press related, so need to be referred to them.
bbpress works on topics and replies – it’s logic is that you can’t reply to nothing, so yes you need a topic 🙂
ok, I spent a while looking at this, but with no luck -I’d can 0nly suggest you raise this with your theme author
In reply to: Update 2.6.9. TinyEditor is gone. Simple cure?have you tried this
add_action( 'wp_footer', 'rew_supports_js' ); function rew_supports_js() { echo '<script>document.body.classList.remove("no-js");</script>'; }
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
In reply to: Topic Text doesn’t appear above textareaok, I’m not sure what you mean – can you post a picture of the area
In reply to: member only 404The easiest way would be to use
once activated go to
dashboard>settings>bbp style pack>Subscription Emails
and tick item 2 and look at the choice of loginThis will then detect if a user is trying to access a private forum and redirect them to a login and then to the topic/reply as appropriate
In reply to: member only 404how is the user getting to a 404 page?
eg are they entering a url, from email, from a page?
the forum is for members only, but it looks exactly like this, it basically goes all the way up to the top of the page, and writes over my page menu/header: https://gyazo.com/ac8e4ee8ca7d772124fac635e9342ea4
Your photo is appreciated, but it is the equivalent of sending me a photo of your car engine and asking me to tell you what’s wrong. It is probably some css that needs changing, but without being able to see what is being downloaded to a web browser I can’t help further – sorry.
I have bb style pack, but can it do something like this? Like for example, to customize search button appearance like here? https://gyazo.com/1a26b445dd8db18ac64b0ad793602b4b
go to dashboard>settings>bbp style pack>search styling
on the search, I would need a link to a live example to see what is happening
on styling – this plugin should help
great – glad you are fixed
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.