I’m referring to what is referenced this – https://codex.bbpress.org/getting-started/forum-moderation/common-tasks/
In the frontend
Log into your site and go to your forums on your site
If you need to delete a topic, go into the topic and hit the Trash Admin Link to put the topic into the trash.
Now you will see that the trash link has turned to the Delete Admin Link , and from there you can click Delete to delete the topic permanently.
So once you click trash it turns red and then the link changes to delete which is “empty trash” for that one item
I use “bbPress Do Short Codes” plugin
maybe it will help
I’ve taken a look, and yes lots of code changes to get replies in reverse order, and currently too much of a challenge to try and do !
Sorry !
Don’t you hate it when people post questions and forget to share the answers they found?
It’s been a few years now, but I think I remember what I did. I copied the template into my theme so I could override it. There, I modified it so it would add the post tags (like spoilers
as CSS classes to those posts. Then, I modified my CSS and JS to black-out the title until clicked.
I’m sorry I can’t provide the exact code, but maybe that helps point you in the right direction.
ok, so I’ve created a shortcode that should do this
I’ve added this to my bbp-style-pack plugin
bbp style pack
once activated go to
dashboard>settings>bbp style pack>shortcodes
and you’ll see how to add the shortcode there
@robin-w I just installed and activated and it works. Thanks for your help.
I also didn’t realize you were the author of the style pack plugin, which I also have activated. This is the first real fix that has actually worked for me, so adding it to the trac ticket and your styling plugin would be most helpful to others, I would imagine.
Thanks again for your help on a rainy day.
Side note, how would I go about keeping this updated if for some reason you can’t? I’m guessing it has something to do with keeping the code updated, yes?
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
Code Snippets
How can I insert short codes under topic pages?
englishteam.ir
so rainy afternoon, so I have wrapped wpup’s code into a plugin, and fixed a couple of things that were different.
This plugin technically works, but without creating multiple threads I can’t really test !
so if anyone fancies trying it out, feel free and let me know if it does what it is supposed to.
and sorry @xprojectsx – I am just putting it out there, I don’t promise to fix it if it doesn’t work, but am happy to take a look, and I don’t promise to maintain it – you download and use on this basis !
If it does work, I’ll add it to the trac ticket for this thread, and maybe add it to my style pack plugin bug fix page.
bbp threaded replies
For other for future reference, it turned out to be a CSS issue, but could be overridden with this small fix:
.bbp-admin-links {
Bottom : 0px !important ;
}
If you put something out there as free, you should still manage its viability otherwise the end result will be wasting people’s time.
agree – the issue is with time – ie for how long? No-one can do forever, and no-one can do everything for free. So do I never release code as I am not immortal? I have no-one to take over the code. I have limited time to offer to support. I reckon in 3-5 years time I’ll not want to do the stuff I do now. I s’pose my point is that the user community needs to judge ‘free’ as not meaning ‘free for life with a right to free support for every issue’ I suspect that a lot of this comes from FB, youtube, instagram being seen as ‘free’, and the ability to share files, songs, books, images without paying the source. But maybe that’s just because I’m a grumpy old man 🙂
@xprojectsx good contribution – and I don’t think there is a perfect solution. I am Never quite sure what people expect from ‘community’ software. As an author of 6 plugins, the thought that when releasing these as free code for others to use and adapt, I am expected to respond to every query on the code for evermore, would make me never do it. I enjoy the challenge of support, but there will come a time when I tire of doing this for no money, and expectation that I fix issues I had not considered and that I had never planned only strengthens this. Bbpress was written as lite forum software, allowing others to extend it. It started over 15 years ago as a geek who like writing code (as I do). Then is response to requests it was added as a plugin to WordPress. The authors have I suspect many other priorities now in their lives, they are 15 years older. Their choices are 1. To close the plugin, and make many forums redundant. 2. To devote vast chunks of their free time to continue supporting 3. To do key code as their time permits 4. Just to hope that other people do this for free.
Against this there are paid products, but yes they cost or are used (I think quite justifiably) as a sales tool to produce income to pay the developers. Someone has to pay the bills.
just to try and help the codex seems to suggest a ? is needed
paginate_links()
and drop down to user contributed notes
'format' => '?paged=%#%',
Hello Robin,
Thank you for the help you offer.
I tried the code in the child theme’s function file and it works fine to re-order the replies… BUT I have 3 issues :
– The link given in the recent activity widget leads to the last page of the topic… now being the beginning, so not the last reply
– Same problem for the link in the email notification
– and when we post a reply, the page refresh leads to the beginning of the topic too so you don’t see you answer published unless you click on the right page number or scroll back to the top.
These 3 situations imply too much confusion for the users so I choose to not use the code but don’t find another solution.
I’m surprised no plugin exists for this ( part from “bbPress – Sort topic replies ” which is not maintained so I didn’t try it worried to get security problems).
Do you think of a way to fit the issues generated with the descending order or do you consider it is too much of “torsion” of the system ?
Thanks again.
Sophie
Thanks!
I implemented this in my code.
add_filter( 'bbp_bypass_check_for_moderation', '__return_true' );
Comments are without moderation.
The problem is happening intermittently, a user sends a topic or reply and this action may or may not wait for moderation, is there anything in the code that I can adjust?
ok, without site access all I can suggest is
.bbp-forum-freshness {
display : none !important ;
width : 0px !important;
}
li.bbp-forum-reply-count, li.bbp-forum-topic-count, li.bbp-topic-reply-count, li.bbp-topic-voice-count {
width: 20% !important;
}
li.bbp-forum-info, li.bbp-topic-title {
float: left;
text-align: left;
width: 55% !important;
}
I’m having trouble getting shortcodes for a picture gallery to work in topics. Did some looking around here and it seems I may need a shortcode plug in and also possibly a shortcode whitelist plugin to go with it. I looked at this one bbPress2 shortcode whitelist, but it is a bit old and hasn’t been tested with 5.5.1. I’m running 7.4.10 PHP, LiteSpeed webserver, 2.6.5 bbpress.
The shortcode for a photo gallery shows up in the post as text but that is all. https://transmissiontuner.com/blog/forums/topic/allison-bellhousing-types/
I asked for support on this from the photogallery plugin and they said it was a bbpress problem.
thanks!
Hi There,
I have created a template for the forum and add the shortcode for the forum into it which works. However when you click on the topics within that forum, it takes you to a separate page where it is displayed. How do I put the topics onto a template and redirect it to that template when a user clicks on the topic.
Thank you
Hello,
I’m having a problem when I try to edit a post the textarea called by
bbp_the_content( array( 'context' => 'topic' ) );
The textarea is not respecting the line breaks.
On my DB the content looks like:
text text text text
text text text
text text text
text text text
But on the textarea it looks like:
text text text
text text text
text text text
text text text
Somebody have a clue of how to solve this? 🤔
Thanks for any help : )
Hi, I solved this problem by adding this to my bbpress-functions.php
add_filter( 'bbp_bypass_check_for_moderation', '__return_true' );
The problem is that bbpress is sending the posts to moderation but it doesn’t show any advice to the user or admins. I don’t know why 🤷♂️
Hope it helps
ok, thanks I now understand.
Sorry, that’s the way WordPress works – not a loot I can do to help.
The shortcode is rendered when you publish, and when you edit I think it does not like that you ared using html – maybe a permission issue.
I cannot really help further
ok, thanks I now understand.
Sorry, that’s the way WordPress works – not a loot I can do to help.
The shortcode is rendered when you publish, and when you edit I think it does not like that you ared using html – maybe a permission issue.
I cannot really help further