Search Results for 'bbpress'
-
AuthorSearch Results
-
March 14, 2023 at 5:30 pm #234852
cclemens
ParticipantI’m using bbPress on a site with multiple forums. Normally I have no reason whatsoever to be in the forums or aware of what’s happening in them. EXCEPT if someone has posted and it goes a few days without a response then I’m supposed to be aware of it.
Is there any creative means to get a notification of a post that has been made say three days ago and hasn’t yet received a response?
March 14, 2023 at 3:08 pm #234847In reply to: FSE templates and bbPress
rinh
ParticipantThat’s an interesting plugin. But agree gutenberg gets a little convoluted when only used as a text editor.
What I had in mind was being able to add some of the bbPress widgets to the page having the forum root shortcode. These widgets doesn’t seem to appear in gutenberg.
March 14, 2023 at 11:31 am #234845In reply to: FSE templates and bbPress
rinh
ParticipantIt would be good indeed, FSE looks like the future of WordPress.
I just started so I don’t know much, and I think I’ll be in forever learning đ I think a template part that is the forum would work best though, but I could be completely wrong on that. I can type down what I’ve got so far though.
From what I’ve gathered so far (I could be wrong on some things here). There are several kinds of templates, for example Archive and Single. Single displays the layout for single posts and that seem to be what all pages except forum root are.
Simply put the templates work in that way you build a layout using the block editor where you can put in single post parts like post title, post content and so on. In Elementor I made a Single with just post content and magically the post content would display the forum on the front-end.
bbPress forum root appear to be an archive, but since it has a shortcode forum root wouldn’t need anything more I think.
The FSE recognise custom post types and you can make Single templates for those. I’m not sure if bbPress is a custom post type, but if it is and FSE would recognise it that would’ve solved it all.
Hope that makes any sense.
March 14, 2023 at 11:07 am #234842In reply to: FSE templates and bbPress
Robin W
Moderatorit would be good to get bbpress working with FSE.
I am guessing that we would need either a template part that is the forums, or a forum ‘block’ .
If you are deep enough into FSE to articulate how it might work, I could do some digging.
But yes, I have probably had to grapple with a dozen ‘editors’ that various clients have been using, most of which are far superior to FSE, so whilst I do use it on some simple non bbpress sites, I haven;t really tried to get it to do anything clever, or used an FSE theme.
March 14, 2023 at 10:47 am #234841In reply to: FSE templates and bbPress
rinh
ParticipantUnfortunately 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.
March 14, 2023 at 10:08 am #234840wpturk
ParticipantHi Robin, Thx for the info. Done.
March 14, 2023 at 9:41 am #234837In reply to: FSE templates and bbPress
Robin W
Moderatorpresume you are familiar with all these
March 14, 2023 at 8:53 am #234834Topic: FSE templates and bbPress
in forum Themesrinh
ParticipantHi
I’m looking into the possibility to move a community site from using Elementor Pro to WordPress own Full Site Editing and block theme.I’m curious if anyone has figured out how to apply templates to the forums and topics themselves. The forum root works fine though because it has a shortcode.
In Elementor I worked it out by making a single post template and then exclude posts and custom post types from it, but in FSE it doesn’t seem possible to apply any templates to bbPress at all.
Thank you in advance
March 14, 2023 at 4:38 am #234817Robin W
ModeratorCan you add a ticket to the trac system
March 14, 2023 at 4:20 am #234816In reply to: bbpress showing blank pages and duplicated fields
Robin W
ModeratorI spent a couple of hours yesterday hunting down the issue.
This code fixes it :
add_filter ('astra_single_layout_one_banner_visibility', 'astra_bbpress_fix', 50) ; function astra_bbpress_fix ($value) { if( class_exists( 'bbpress' ) ) { if (bbp_is_single_user()) return false ; if (bbp_is_search()) return false ; } return $value ; }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
March 14, 2023 at 4:19 am #234815In reply to: “User” Page seems to be stuck in a loop
Robin W
ModeratorI spent a couple of hours yesterday hunting down the issue.
This code fixes it :
add_filter ('astra_single_layout_one_banner_visibility', 'astra_bbpress_fix', 50) ; function astra_bbpress_fix ($value) { if( class_exists( 'bbpress' ) ) { if (bbp_is_single_user()) return false ; if (bbp_is_search()) return false ; } return $value ; }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
March 14, 2023 at 4:18 am #234814In reply to: Search goes to infinite loop with Astra theme.
Robin W
ModeratorI spent a couple of hours yesterday hunting down the issue.
This code fixes it :
add_filter ('astra_single_layout_one_banner_visibility', 'astra_bbpress_fix', 50) ; function astra_bbpress_fix ($value) { if( class_exists( 'bbpress' ) ) { if (bbp_is_single_user()) return false ; if (bbp_is_search()) return false ; } return $value ; }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
March 13, 2023 at 2:28 pm #234811In reply to: remove email + website field
Robin W
ModeratorApologies for the delay is responding to this.
Assuming you are ok with FTP, then
find
wp-content/plugins/bbpress/templates/default/bbpress/form-anonymous.phptransfer this to your pc and edit to remove
<p> <label for="bbp_anonymous_email"><?php esc_html_e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br /> <input type="text" id="bbp_anonymous_email" value="<?php bbp_author_email(); ?>" size="40" maxlength="100" name="bbp_anonymous_email" /> </p> <p> <label for="bbp_anonymous_website"><?php esc_html_e( 'Website:', 'bbpress' ); ?></label><br /> <input type="text" id="bbp_anonymous_website" value="<?php bbp_author_url(); ?>" size="40" maxlength="200" name="bbp_anonymous_website" /> </p>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/form-anonymous.phpbbPress will now use this template instead of the original
Alternately if this all confuses you, I can do this as a plugin, but it would be a paid bit of work (but not expensive) – contact me via http://www.rewweb.co.uk/contact-me/
March 13, 2023 at 11:50 am #234809wpturk
ParticipantIt’s tedious to change alert styles in bbpress because there is no filter (apply_filter) for âbbp-template-noticeâ class. In function: bbp_template_notices()
Many of us are using css frameworks (like bootstrap etc…) and would be great to use the framework css classes instead.
Any chances to get this in 2.7?
March 13, 2023 at 10:39 am #234806In reply to: Junk html under forum titles in wp
valarcher
ParticipantHi Robin – yes, if I do a ctrl-U on the forum page in bbpress, I see it. Oh I just clicked edit on each forum in wordpress and found it there and deleted it, so now they display correctly. I have *no* idea why astra adds all that junk html after title & descr, another bug!
March 13, 2023 at 9:20 am #234799In reply to: Change Title of Forum Index page?
Robin W
Moderatorthat is the wordpress profile.
so you will fix that part by
There is also a bbpress profile, but you are using the astra theme, and there is a bug which astra know about which stops it working – it just goes to a page with a permanent loop
https://wordpress.org/support/topic/bbpress-user-profile-broken-on-latest-update/
you get to a bbpress profile by clicking the username in the forums.
You can turn this off using
once activated go to
dashboard>settings>bbp style pack>Profile
March 13, 2023 at 9:00 am #234797In reply to: Change Title of Forum Index page?
valarcher
Participant>wordpress profile or bbpress profile ?? There’s a bbpress profile? When I installed bbpress into astra wordpress theme, it displays the normal wordpress profile page when a person clicks on their name in the upper right, e.g. I added you as a forum participant:
login at: https://greensmoothie.com/forums
It’s that email I’d like to prevent users from changing.
Where’s the bbpress profile?
March 13, 2023 at 8:34 am #234796In reply to: Change Title of Forum Index page?
Robin W
ModeratorMarch 13, 2023 at 8:32 am #234795In reply to: Change Title of Forum Index page?
Robin W
Moderatorso is this wordpress profile or bbpress profile- in essence give me the url of your profile page
March 13, 2023 at 8:09 am #234792In reply to: Junk html under forum titles in wp
valarcher
ParticipantProblem is I need it to display like this:
Challenge Question â Private
Whatâs your number one challenge related to eating high-raw plant-strong?
Edit | Close | Trash | ViewHigh-Raw Plant-Strong Life â Private
Ask questions, share your knowledge of the high-raw plant-strong lifestyle
Edit | Close | Trash | ViewAnd instead its displaying like this:
Challenge Question â Private
Whatâs your number one challenge related to eating high-raw plant-strong? <div id=”highlighter–hover-tools” style=”display: none;”> <div id=”highlighter–hover-tools–container”> <div class=”highlighter–icon highlighter–icon-copy” title=”Copy”></div> <div class=”highlighter–icon highlighter–icon-change-color” title=”Change Color”></div> <div class=”highlighter–icon highlighter–icon-delete” title=”Delete”></div> </div> </div> <div id=”highlighter–hover-tools” style=”display: none;”> <div id=”highlighter–hover-tools–container”> <div class=”highlighter–icon highlighter–icon-copy” title=”Copy”></div> <div class=”highlighter–icon highlighter–icon-change-color” title=”Change Color”></div> <div class=”highlighter–icon highlighter–icon-delete” title=”Delete”></div> </div> </div> <div id=”highlighter–hover-tools” style=”display: none;”> <div id=”highlighter–hover-tools–container”> <div class=”highlighter–icon highlighter–icon-copy” title=”Copy”></div> <div class=”highlighter–icon highlighter–icon-change-color” title=”Change Color”></div> <div class=”highlighter–icon highlighter–icon-delete” title=”Delete”></div> </div> </div>
Edit | Close | Trash | ViewHow do I tell bbpress to NOT display all that html?
March 13, 2023 at 6:24 am #234790In reply to: bbpress showing blank pages and duplicated fields
Robin W
Moderatorthis appears to be the problem reported to Astra
https://wordpress.org/support/topic/bbpress-user-profile-broken-on-latest-update/
March 13, 2023 at 6:02 am #234787Topic: Junk html under forum titles in wp
in forum Installationvalarcher
ParticipantHi – I’m getting a ton of unwanted html on the Forums page between each forum title. I need it to display *only* the title and description — same way only title is displayed on Posts and Pages — not all that junk html. Astra says it’s not coming from their theme.
Does anyone know why bbpress does this, and how to solve it? Thanks!
Here’s the image: https://imgbox.com/WYiTWGnW
March 13, 2023 at 5:13 am #234784In reply to: Change Title of Forum Index page?
valarcher
ParticipantHi Robin – thanks million for renaming title. That php works perfectly. Sadly the other problem of 1/3-col doesn’t work addressing #bbpress-forums. It works if I target the entire page, then every forum title like this:
#post-9486,#bbp-forum-9475,#bbp-forum-9473,etc {width:100%;}
but the moderator doesn’t have access to css so won’t be able to add every forum to css when she creates it.I’ll carry on hounding astra for solution. Otherwise worst case scenario I just set blog archives to 1 column.
While I have you… your code here:
/** bbPress: add description under forum titles
https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/ */function rw_singleforum_description() { echo '<div class="bbp-forumpage-content">'; echo bbp_forum_content(); echo '</div>'; } add_action( 'bbp_template_before_single_forum' , 'rw_singleforum_description');You have the first echo as “bbp-forum-content” but by changing it to “forumpage-content”, we’re able to target the description on index page and description on forum page separately in css, eg. on forum pages I have it red bold and centered, whereas on index page I have it in regular left-aligned text.
Thanks million for all the work you put into the codex! I’m not keen on installing plugins such as your style pack, so codex is really helpful finding just the php I need.
Do you perhaps have any solution to this code? I’m trying to grey out the user’s email on their profile page so they can’t update it. But I need users to update other info like website and bio. However with code below, if I test writing words in bio (as a logged in participator, not as keymaster) and try saving it, I get “Error: Please enter an email address.” I can see the email greyed out there.
Do you know a way to fix it so ONLY the email and role can NOT be changed (although role does not even display on a participant user’s page) and everything else can be edited? (except for username of course)
/** bbPress/WP: prevents subscriber from changing email (greyed out)
https://www.role-editor.com/hide-disable-wordpress-user-profile-fields/ */add_action('admin_init', 'user_profile_fields_disable'); function user_profile_fields_disable() { global $pagenow; // apply only to user profile or user edit pages if ($pagenow!=='profile.php' && $pagenow!=='user-edit.php') { return; } // do not change anything for the administrator if (current_user_can('administrator')) { return; } add_action( 'admin_footer', 'user_profile_fields_disable_js' ); } /** * Disables selected fields in WP Admin user profile (profile.php, user-edit.php) */ function user_profile_fields_disable_js() { ?> <script> jQuery(document).ready( function($) { var fields_to_disable = ['email', 'role']; for(i=0; i<fields_to_disable.length; i++) { if ( $('#'+ fields_to_disable[i]).length ) { $('#'+ fields_to_disable[i]).attr("disabled", "disabled"); } } }); </script> <?php }I know nothing about php – other than simple stuff like seeing I can change forum-content to forumpage-content!
March 12, 2023 at 2:59 pm #234761In reply to: bbpress showing blank pages and duplicated fields
Robin W
ModeratorThis is one of the new FSE themes, so you need a fix to work with bbpress.
installonce activated, navigate to
dashboard>settings>bbp style pack, and you should see the first tab called âTheme Supportâ â if you donât see this, come back.
In that tab, select
Enable Theme Support
and save
The forums should then display
March 12, 2023 at 2:34 pm #234760Topic: bbpress showing blank pages and duplicated fields
in forum Troubleshootingbeabudai
ParticipantHi,
bbpress showing blank pages and multiplying fields on our websites when we are using de themes Astra, the WordPress themes Twenty Twenty-Two and Twenty Twenty-three. It works only with Twenty Twenty-one.
I made a staging website to be able to test it: https://staging.armanl.eu/test/
The bbpress pages with has a fields multiplying problems with Asstra theme are : https://staging.armanl.eu/test/forums/users/beabudai/
With the other themes they show a blank page except with Twenty Twenty-one.
I am using the latest version of WordPress and bbpress version Version 2.6.9
All the other plugin are deactivated for testing purposes.
Please can someone help with this problem?
Thank you, Bea
-
AuthorSearch Results