I was just about to post for a problem where some shortcodes were not working, when I actually READ THE POSTING INSTRUCTIONS! (Who would think?)
My problem was that the [bbp-register], [bbp-lost-pass], and [bbp-login] shortcodes weren’t working. The page / block with the shortcode was simply blank.
Per the ‘Before Posting’ topic, I switched my theme to Twenty Twelve. Poof! It all worked. So try that before digging deeper.
https://SolarGeoEngineeringNow.org
If the extension works on backend, it is is useless for me. I would need extensions only frontend. I have site for solving crosswords. Honoring other peoples all hints should give as default hided.
I tried to find the button definitions for text editor. My idea is just replace
DEL or CODE with SPOILER. If I would find the source code, maybe I could add some codes. That apparently needs alo finding filter code, which defines, which codes are allowed.
I though also that I could replace some code and related texts and icons of TinyMCE with another code, texts an icons.
So I would not need to add anything. But I didn’t find, where buttons have been defined for the text editor s d TinyMCE.
BTW. I didn’t get frontend texts translated in your GD bbPress Tools. I deleted entire translation, which I made for it because filtering worked better, but filtering works only for texts, which don’t have dynamic texts (%s etc). I get with “My WP Translate” translated “WP Sitemap Page”, so the translation tool works. I have another issue here https://wordpress.org/support/topic/translating-into-finnish/. So could you answer there.
Yeah, TinyMCE editor is very problematic when it comes to expanding it, it is way to complicated and easily broken.
With by GD bbPress Toolbox Pro plugin, I have two additions for editing: BBCode Toolbar (simple extension of the basic editor with all BBCodes in the toolbar, and click on the button brings it into editor, or it can wrap selected text), and support for the Markdown. And, every BBCode can be disabled, or controlled for the Toolbar inclusion.
Milan
I have used your free version of GD bbPress Tools. I added SPOILER and few other tags with BBCode Deluxe. I edited the pugin. I commented all BBCode tags, which belongs to your plugin or which I don’t need.
I have list fir extra code. I tryed to use JQuery to drag codes to the textare. Dragging cause that code disappears, but it just caused that the ekement disappeared from my list but but not went to the textarea.
[CODE]$(“document”).ready(function() {
$(“.tags”).draggable({
revert: true
});
$(“.bbp-the-content”).droppable({
accept: \’.tags\’,
drop: function(event, ui) {
$(this).append($(ui.draggable));
}
});
});
[/CODE]
Hey,
My GD bbPress Toolbox Pro plugin has 50 major new features, including BBCodes implementation that has 40+ shortcodes/BBCodes for bbPress forums, including SPOILER and HIDE, as well as full syntax highlighting SCODE shortcode.
As for changing the main text editor buttons on the front end, I don’t know of any plugin that does it, and even the plugins that do it on the backend, don’t work on the frontend for some reason.
Milan
Hi,
How to create a user menu:
login, register, profile link?
Is it with shortcodes?
I would also like to know how to have the same thing as on this forum:
Questions about customization. I am using a translation tool, so my English may be unnatural.
In [bbp-single-view id='no-replies'], closed topics are also displayed, so I would like to limit it to open topics, does the following code seem ok? Please advise.
add_action( 'bbp_register_views', 'custom_bbp_no_replies' );
function custom_bbp_no_replies() {
bbp_register_view(
'no-replies',
__( 'Topics with no replies', 'bbpress' ),
apply_filters(
'bbp_topic_no_replies_query',
array(
'post_parent' => 'any',
'post_status' => bbp_get_public_status_id(), // Changed to show only open topics
'meta_key' => '_bbp_reply_count',
'meta_value' => 1,
'meta_compare' => '<',
'meta_type' => 'NUMERIC'
)
),
false
);
}
Excuse me for asking a question about customization.
I am using a translation tool, so my English may be unnatural.
I would like to limit the posts displayed in [bbp-single-view id='popular'] to 7 days.
function filter_bbp_get_view_query_args( $args, $view ) {
// Check if the view exists
if ( ! bbp_get_view( $view ) ) {
return new WP_Error( 'invalid_view', __( 'Invalid view specified.', 'bbpress' ), $view );
}
if ( 'popular' === $view ) {
$args['date_query'] = array(
array(
'after' => '1 week ago',
),
);
}
return $args;
}
add_filter( 'bbp_get_view_query_args', 'filter_bbp_get_view_query_args', 10, 2 );
Yes, Robin. The codes run without any error. Appreciated your effort in helping me to solve the issue.
Yes. It works beautifully! 🙂
I just found out something when I thought the issue is solved. The code works well with native bbpress role, but not work with new role created. I have a new role “prime_moderator” created using your plugin, but the code return error when I apply this new role to the codes. Any suggestions?
Regards.
Hi, I’m using the codes below to remove “Edit” link in reply header without any issue:
add_filter ('bbp_reply_admin_links', 'rew_remove_edit') ;
add_filter ('bbp_topic_admin_links', 'rew_remove_edit') ;
function rew_remove_edit ($links) {
unset ($links['edit']) ;
return $links ;
}
My question: If I want the codes to work only for Role A & Role B, but NOT for other roles, how would I amend the code above?
Regards.
Hi, I recently saw this topic and it helps me solve one problem.
I can finally use this CSS to disable the grey-out effect when the topic is closed:
#bbpress-forums .status-closed,
#bbpress-forums .status-closed a {
color: #000 !important;
}
From this previous topic also, CSS can do equally well to add [Closed] label beside the closed topic title in topic list page:
#bbpress-forums .status-closed > li.bbp-topic-title > a.bbp-topic-permalink:after {
content: "[Closed]";
text-shadow: 1px 1px 0 #ffffff;
color: #ff0000;
margin-right: 5px;
}
I wonder if we can use CSS (instead of PHP codes) to add another [Closed] label beside the topic title in single topic page. Any solution?
See https://paste.pics/N5WS0
Also, I’m still searching for ways to disable the defaulted pink font highlight when the topic is closed. Hope somebody can help.
See https://paste.pics/N8U5T
Regards.
Brilliant! Thanks for the codes. Just tested and it works like a charm! 😀
In Oct/2022 I found http://www.buddydev.com/restrict-user-from-creating-topic-on-certain-bbpress-forums. I printed out some code to look at it and some comments about it. I put the info in the learn how to use short-code in my notebook to study when I had time. It seemed complicated and only for advanced developers and I haven’t used short-codes as yet. But most of the developer reviews in that place seemed positive. The few negatives had to do with the code being beyond their expertise. I checked the reference in your reply and it seemed to fall into the category of an advanced approach. But I was just wondering if someone by now had figured out an easier way to solve my question because it seems to be a logical requirement to have a solution for. However, in my searching one person said “who would want to do something like that when that’s not what it’s meant for” I’ll have to study it all so I can be more comfortable trying it.
Hi, I’m using the codes below to show lead topic:
function custom_bbp_show_lead_topic( $show_lead ) {
$show_lead[] = 'true';
return $show_lead;
}
add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
As shown in the screenshot below,
https://paste.pics/MQEKW
My questions are:
a. Can I hide the header & footer (item 1) right above and below the lead topic?
b. Can I change the date display (item 2) to freshness display (e.g., 2 weeks, 5 days ago) for all topics/replies?
Regards.
Unfortunately I don’t think any of them is close or can just be cloned.
[bbp-forum-index] – This one works well and can add the forum root anywhere.
But then there’s Forums or Categories, Sub forums and topics/replies themselves. These pages seem to all be seen as ‘posts’ by WordPress, why making a posts template worked in Elementor for all of them. FSE templates seem to ignore bbPress entirely though.
[bbp-single-forum id=$forum_id] – This one do make it possible to add single forums anywhere, but not if they’re inside a forum Category. Would also need one page for each forum which would get a little crazy. I don’t know if this one could be tweaked into something more advanced.
What would be needed is shortcodes for displaying forum Category pages in general, as well as their sub forum pages where the topics are listed. And then all the topic/replies pages too.
All that sound too difficult to be honest.
presume you are familiar with all these
Shortcodes
Oh yes, I use the plugin to be able to display the forum in block themes. Thank you for the plugin by the way and all the work you do on them and this forum 🙂
This is more about I’d like to put the forum in templates to be able to put additional content, for example I put a welcome message/info as well as a custom made sidebar in the Elementor template.
I suppose there’s no shortcodes for displaying forums (other than root) as well as one for all topics? 😛
I can totally understand avoiding getting too deep into FSE. I really appreciate it too, it’s like a mini theme builder. The learning curve do feels steep though.
I tested your codes working without problem. By the way I didn’t use header color. Just footer enough because inside “forum index styling” changing already.
Sincerely thanks Robin, have a good day.
I think you are right. It is showing as a default wp template.
I wish BBpress had a shortcode to add to a page for the search results. Seems logical since they have other shortcodes that it would be a no brainer for them to create one.
Or even function code to put in my child theme functions file. I am not a developer so nothing I can do.
Seen other people commenting about the search results page. Don’t think BBpress cares though!
Appreciate your looking at this for me wpturk.
You are a super hero!
Diana
Hi, after struggling some time trying to make profile page full width, I give up.
The theme I’m using is Magbook. I found that there is only one theme template page that has no sidebar, ie, magbook-template.php. I copied this file to my child theme root directory, and rename it as bbpress.php. However it doesn’t make any changes to the profile page.
I have read some other similar topics, I guess we need to “inject” custom php codes into the bbpress.php. If this is correct, can you provide me the relevant php codes for bbpress.php that make it works?
One more thing I have doubt is that, let say bbpress finally adopted bbpress.php as default template, all other forum & topic pages will turn out no sidebar altogether, I presumed, which is against my wish. What I want is profile page FULL WIDTH, forum/topic page WITH SIDEBAR.
Pls guide me.
Regards
Hi Robin, after spent some time trying to understand the codes, I tried and finally got the results that I wanted.
For loop-topics.php,
I change:
<li class="bbp-topic-reply-count"><?php bbp_show_lead_topic()
? esc_html_e( 'Replies', 'bbpress' )
: esc_html_e( 'Posts', 'bbpress' );
?></li>
to:
<li class="bbp-topic-reply-count"><?php esc_html_e( 'Replies', 'bbpress' ); ?></li>
and for loop-single-topic.php,
I change:
<li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?></li>
to:
<li class="bbp-topic-reply-count"><?php bbp_topic_reply_count(); ?></li>
Since I don’t have any knowledge about PHP codes, I’m not sure what I did is correct or not, anyway at least work on my browser.
Regards
ok, based on that I have no idea what you mean by embedding.
bbpress does not have a ‘login page’ it has shortcodes and widgets.
the template used by bbpress for login is
bbpress\templates\default\bbpress\form-user-login.php
to customise :
find
wp-content/plugins/bbpress/templates/default/bbpress/form-user-login.php
transfer this to your pc and edit as desired
and save
create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress
where %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/form-user-login.php
bbPress will now use this template instead of the original
Hi, I’m thinking of hiding some items in forum & topic page as follows:
Forum page:
1) to hide forum information
2) to hide topic viewing information
see screenshot: https://paste.pics/KS7KD
Topic page:
1) to hide topic information
2) to hide post viewing information
3) to hide topic header (author & posts)
see screenshot: https://paste.pics/KS7MF
Are there any CSS codes that can achieve that?