Hello everyone,
I have this loop in my custom theme that lists the forums a user is subscribed to
<?php global $current_user; get_currentuserinfo(); $uid = bbp_get_current_user_id(); ?>
<?php if ( bbp_get_user_forum_subscriptions( $uid ) ) : ?>
<?php while ( bbp_forums() ) : bbp_the_forum(); ?>
<p><?php bbp_forum_title(); ?></p>
<?php endwhile; ?>
<?php endif; ?>
I’m not sure if it is the most efficient technique but it is working fine.
Now I’m trying to retrieve the topics under those forums, if I’m subscribed to forum a and not b, how can I retrieve all the topics of only forum a?
Hi is there is any way to show success message like. “New topic submission succesfully”, once topic is submited. I am using ‘[bbp-topic-form]‘ shortcode to display topic form. But i want to display message once topic is submitted suceesfully.
Is there is any way to acheive this
Hi
I have a lot of plugins installed on my site.
Let me know if you have anything to check more
Best Regards,
Hyunho
================
301 Redirects
Activity Log
Advanced Access Manager
Advanced Editor Tools (previously TinyMCE Advanced)
Advanced TinyMCE Configuration
All In One SEO Pack
Automatic Copyright Year
Awesome Weather Widget
bbp style pack
bbp User Ranking
bbPress
bbPress – Private Replies
bbPress forum utility pack
bbPress Permalinks with ID
bbPress Profile Link Shortcode
bbpress Simple View Counts
bbPress Toolkit
Classic Editor
Favicon by RealFaviconGenerator
GD bbPress Attachments
GD bbPress Tools
Hide Admin Bar From Front End
Hide My WP Ghost Lite
Image Upload for BBPress
Link Widget Title
Log Out Shortcode
MangBoard WP
Members
Nav Menu Roles
Pages In Widgets
Post/Page specific custom CSS
Search & Replace
Shortcode in Menus
Shortcode Widget
SiteOrigin CSS
Smush
Stylist
Timeline Express
User Registration
Wordfence Security
WP 2FA – Two-factor authentication for WordPress
WP OPcache
WP RSS Aggregator
WP Statistics
WP-Optimize – Clean, Compress, Cache
WPForce Logout
broken link check
buddyPress
================
and then same shortcode on every topic page, and above or below the reply form ?
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