Search Results for '+.+default+.+'
-
Search Results
-
I have set up a new WordPress blogging website with a BuddyPress members only community back end consisting of 10 groups.
Each group has it own separate bbPress forum. This all works OK except BuddyPress has its own forum which is bland and limited and bbPress is the “nice” functional forum which I want to use. Both these forums appear to be linked i.e a post to the bpPress forum also appears in the BuddyPress forum space although it seems that either can be independently deleted.
As it stands I find having the the two forums confusing and messy from a user perspective.
What I want to do is replace the BuddyPress forum with the bpPress forum so that you only see the bpPress forum on the home page of each group and do away with the group Forum tab which currently links to the bbPress forum. I don’t really need each group to do anything else rather than host the bpPress forum. Perhaps a single message on the group home page that a group moderator could change/edit would be a nice addition but it is not essential.
I have done a lot of Googling and while this problem has been mentioned a few times the solutions suggested seem very old and/or irrelevant.
I am comfortable with PHP etc but have very limited experience with BuddyPress and bpPress. Of course there may be a plugin which will do all this but I haven’t found one yet.
I am using WordPress 6.1.1. Buddy Press 11.1.0 bb_press 2.6.9, Theme Blocksy. The url of the website is https://PinkPantherActivists.au
If anyone can point me in the right direction it would be appreciated.
Thank you.
I successfully have all new users added as Participants when they create a profile. However I have 17,000 previous users who all have the default ‘No Role for these Forums’. When I try to bulk update them under Tools/Forums ‘Remap all users to default forum roles’ I receive an error of ‘This page isnât working’. Perhaps it is too big of a request for so many users? How else can I update all my users to Participant so that they can post topics and replies.
Thank youHi – I’m using Astra theme with a 3-col grid layout for blog archives, see:
https://greensmoothie.com/category/blendBut for the forum archives I need full-width, see:
https://greensmoothie.com/membersRight now I’ve fixed it by targeting the post and each forum in the css, like this:
#post-9486,#bbp-forum-9475{width:100%;}I’ve intentionally left the second forum (Newcomers – #bbp-forum-9473) out of the css — so you can see how it displays only in the first column – same as /category/blend above.
Moderators need to set up forums that will display by default as full-width. They don’t have access to the css.
Is there a higher-level I can target in the css that will automatically force ALL forums to display full-width?
thanks for your help!
Hi – the quicktags toolbar is not displaying above the edit box for a topic so a person can’t link any text (or bold, or italic etc). âAdd toolbar & buttons to textareas to help with HTML formattingâ was switched to On by default, I tried switching it to off / save / then back to on again / save — but that did not work.
See https://greensmoothie.com/members/forum/plantstrong
Be grateful for help – thanks!
Re-posting this. For some reason my original post got marked as spam. So, this time I took out the screenshot link.
I wanted to share some code I cooked up for one of my sites. I want to disclaimer that Iâm not a professional coder but through lots of trail, error, and zero hair left Iâve found this code works very well for my website.
There are two functions. The first one creates a âNew Topicâ button and uses a template hook to display it above the forum list. The second function does the same thing, but just uses a hook to display the button over the single topic display to create a âNew Replyâ button. The second function is basically the first function but renamed and uses a different template hook.
These buttons, when clicked, open a modal that has the shortcode for a new topic/new reply. The code also passes the current forum id into the shortcode, so there is no need for the user to select a forum from the drop down menu. In my screenshot, Iâve enabled the WYSWYG TinyMCE editor and all buttons on it work properly. In addition, Iâve fixed it so that the user canât accidentally close the modal. They have to physically click on the âCloseâ button in order to close it. I decided to do this for simplicity sake and so my users wonât accidentally click off the screen and close the modal.
I made it because I was tired of users getting confused about the new topic/new reply topic area of bbpress. So, in order to bring it more in line with other forum software I made this code (through many trial and errors). I hope that it can help anyone in the community whoâs using bbpress for their forums. Oh, I also made sure it displays nicely in mobile size screens. I added a screenshot to show people what it looks like.
/* This function adds the New Topic button to bbpress above the forum list template */ function add_new_topic_button() { $forum_id = bbp_get_forum_id(); ?> <button id="new-topic-button">New Topic</button> <div id="new-topic-modal"> <button id="close-modal-button">Close</button> <div class="modal-content"> <?php echo do_shortcode('[bbp-topic-form forum_id=' . $forum_id . ']'); ?> </div> </div> <script> jQuery(document).ready(function($) { var newTopicButton = $('#new-topic-button'); var modal = $('#new-topic-modal'); var close = $('#close-modal-button'); newTopicButton.click(function() { modal.show(); setTimeout(function() { if (typeof bp !== 'undefined' && typeof bp.mentions !== 'undefined') { bp.mentions.tinyMCEinit(); } }, 1000); }); close.click(function() { modal.hide(); }); $('textarea#bbp_topic_content').addClass('bbp_topic_content'); }); </script> <style> #new-topic-modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); } .modal-content { background-color: #fefefe; margin: auto; padding: 20px; border: 1px solid #888; width: 50%; max-width: 600px; border-radius: 5px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } #close-modal-button { color: #aaaaaa; float: right; font-size: 28px; font-weight: bold; margin-right: 10px; margin-top: 40px; } #close-modal-button:hover, #close-modal-button:focus { color: #000; text-decoration: none; cursor: pointer; } @media only screen and (max-width: 600px) { .modal-content { width: 90%; max-width: 90%; } } </style> <?php } add_action('bbp_template_before_single_forum', 'add_new_topic_button');
/* This function adds the New Reply button to bbpress above the single topic template */ function add_new_reply_button() { $forum_id = bbp_get_forum_id(); ?> <button id="new-topic-button">New Topic</button> <div id="new-topic-modal"> <button id="close-modal-button">Close</button> <div class="modal-content"> <?php echo do_shortcode('[bbp-reply-form forum_id=' . $forum_id . ']'); ?> </div> </div> <script> jQuery(document).ready(function($) { var newTopicButton = $('#new-topic-button'); var modal = $('#new-topic-modal'); var close = $('#close-modal-button'); newTopicButton.click(function() { modal.show(); setTimeout(function() { if (typeof bp !== 'undefined' && typeof bp.mentions !== 'undefined') { bp.mentions.tinyMCEinit(); } }, 1000); }); close.click(function() { modal.hide(); }); $('textarea#bbp_topic_content').addClass('bbp_topic_content'); }); </script> <style> #new-topic-modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); } .modal-content { background-color: #fefefe; margin: auto; padding: 20px; border: 1px solid #888; width: 50%; max-width: 600px; border-radius: 5px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } #close-modal-button { color: #aaaaaa; float: right; font-size: 28px; font-weight: bold; margin-right: 10px; margin-top: 40px; } #close-modal-button:hover, #close-modal-button:focus { color: #000; text-decoration: none; cursor: pointer; } @media only screen and (max-width: 600px) { .modal-content { width: 90%; max-width: 90%; } } </style> <?php } add_action('bbp_template_before_single_topic', 'add_new_reply_button');
/* This function calls the Buddypress js file to bbpress pages only so that @mentions can work in the modal */ function enqueue_buddypress_js() { if ( function_exists( 'bp_is_active' ) && bp_is_active( 'mentions' ) ) { wp_enqueue_script( 'bp-mentions-js' ); } } add_action( 'wp_enqueue_scripts', 'enqueue_buddypress_js' );
/* Additional Custom Forum Modal CSS This will hide the default new topic/reply form boxes but shouldn't hide the ones inside of the modal */ .modal-content .bbp-topic-form, .modal-content .bbp-reply-form { padding-top: 5px; padding-bottom: 5px; margin-top: 5px; margin-bottom: 5px; } .bbpress-wrapper > .bbp-topic-form { display: none; } .modal-content .bbp-topic-form legend { display: none; } #new-topic-button { float: right; margin-right: 10px; } #bbpress-forums > .bbp-reply-form { display: none; }
Topic: New Topic/Reply Modal
I wanted to share some code I cooked up for one of my sites. I want to disclaimer that I’m not a professional coder but through lots of trail, error, and zero hair left Iâve found this code works very well for my website.
There are two functions. The first one creates a âNew Topicâ button and uses a template hook to display it above the forum list. The second function does the same thing, but just uses a hook to display the button over the single topic display to create a âNew Replyâ button. The second function is basically the first function but renamed and uses a different template hook.
These buttons, when clicked, open a modal that has the shortcode for a new topic/new reply. The code also passes the current forum id into the shortcode, so there is no need for the user to select a forum from the drop down menu. In my screenshot, Iâve enabled the WYSWYG TinyMCE editor and all buttons on it work properly. In addition, Iâve fixed it so that the user canât accidentally close the modal. They have to physically click on the âCloseâ button in order to close it. I decided to do this for simplicity sake and so my users won’t accidentally click off the screen and close the modal.
I made it because I was tired of users getting confused about the new topic/new reply topic area of bbpress. So, in order to bring it more in line with other forum software I made this code (through many trial and errors). I hope that it can help anyone in the community whoâs using bbpress for their forums. Oh, I also made sure it displays nicely in mobile size screens. I added a screenshot to show people what it looks like.
https://img.iwebnow.net/screenshots/popup.jpg
/* This function adds the New Topic button to bbpress above the forum list template */ function add_new_topic_button() { $forum_id = bbp_get_forum_id(); ?> <button id="new-topic-button">New Topic</button> <div id="new-topic-modal"> <button id="close-modal-button">Close</button> <div class="modal-content"> <?php echo do_shortcode('[bbp-topic-form forum_id=' . $forum_id . ']'); ?> </div> </div> <script> jQuery(document).ready(function($) { var newTopicButton = $('#new-topic-button'); var modal = $('#new-topic-modal'); var close = $('#close-modal-button'); newTopicButton.click(function() { modal.show(); setTimeout(function() { if (typeof bp !== 'undefined' && typeof bp.mentions !== 'undefined') { bp.mentions.tinyMCEinit(); } }, 1000); }); close.click(function() { modal.hide(); }); $('textarea#bbp_topic_content').addClass('bbp_topic_content'); }); </script> <style> #new-topic-modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); } .modal-content { background-color: #fefefe; margin: auto; padding: 20px; border: 1px solid #888; width: 50%; max-width: 600px; border-radius: 5px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } #close-modal-button { color: #aaaaaa; float: right; font-size: 28px; font-weight: bold; margin-right: 10px; margin-top: 40px; } #close-modal-button:hover, #close-modal-button:focus { color: #000; text-decoration: none; cursor: pointer; } @media only screen and (max-width: 600px) { .modal-content { width: 90%; max-width: 90%; } } </style> <?php } add_action('bbp_template_before_single_forum', 'add_new_topic_button');
/* This function adds the New Reply button to bbpress above the single topic template */ function add_new_reply_button() { $forum_id = bbp_get_forum_id(); ?> <button id="new-topic-button">New Topic</button> <div id="new-topic-modal"> <button id="close-modal-button">Close</button> <div class="modal-content"> <?php echo do_shortcode('[bbp-reply-form forum_id=' . $forum_id . ']'); ?> </div> </div> <script> jQuery(document).ready(function($) { var newTopicButton = $('#new-topic-button'); var modal = $('#new-topic-modal'); var close = $('#close-modal-button'); newTopicButton.click(function() { modal.show(); setTimeout(function() { if (typeof bp !== 'undefined' && typeof bp.mentions !== 'undefined') { bp.mentions.tinyMCEinit(); } }, 1000); }); close.click(function() { modal.hide(); }); $('textarea#bbp_topic_content').addClass('bbp_topic_content'); }); </script> <style> #new-topic-modal { display: none; position: fixed; z-index: 999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); } .modal-content { background-color: #fefefe; margin: auto; padding: 20px; border: 1px solid #888; width: 50%; max-width: 600px; border-radius: 5px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } #close-modal-button { color: #aaaaaa; float: right; font-size: 28px; font-weight: bold; margin-right: 10px; margin-top: 40px; } #close-modal-button:hover, #close-modal-button:focus { color: #000; text-decoration: none; cursor: pointer; } @media only screen and (max-width: 600px) { .modal-content { width: 90%; max-width: 90%; } } </style> <?php } add_action('bbp_template_before_single_topic', 'add_new_reply_button');
/* This function calls the Buddypress js file to bbpress pages only so that @mentions can work in the modal */ function enqueue_buddypress_js() { if ( function_exists( 'bp_is_active' ) && bp_is_active( 'mentions' ) ) { wp_enqueue_script( 'bp-mentions-js' ); } } add_action( 'wp_enqueue_scripts', 'enqueue_buddypress_js' );
/* Additional Custom Forum Modal CSS This will hide the default new topic/reply form boxes but shouldn't hide the ones inside of the modal */ .modal-content .bbp-topic-form, .modal-content .bbp-reply-form { padding-top: 5px; padding-bottom: 5px; margin-top: 5px; margin-bottom: 5px; } .bbpress-wrapper > .bbp-topic-form { display: none; } .modal-content .bbp-topic-form legend { display: none; } #new-topic-button { float: right; margin-right: 10px; } #bbpress-forums > .bbp-reply-form { display: none; }
Hi there.
I’m trying to install bbPress in a WP new enviroment.
Plugin is activated as usual, but when I create a new forum, topic or debate, all front-end pages associated are blank.
I have tried to replicate the problem in two different servers and it persists.### wp-core ### version: 6.1.1 site_language: es_ES user_language: es_ES timezone: +00:00 permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 1 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /usr/home/almazendesign.com/web/testing wordpress_size: 849,97 MB (891255109 bytes) uploads_path: /usr/home/almazendesign.com/web/testing/wp-content/uploads uploads_size: 110,55 MB (115924400 bytes) themes_path: /usr/home/almazendesign.com/web/testing/wp-content/themes themes_size: 2,51 MB (2629926 bytes) plugins_path: /usr/home/almazendesign.com/web/testing/wp-content/plugins plugins_size: 4,73 MB (4962753 bytes) database_size: 2,13 MB (2228224 bytes) total_size: 969,89 MB (1017000412 bytes) ### wp-active-theme ### name: Twenty Twenty-Three (twentytwentythree) version: 1.0 author: el equipo de WordPress author_website: https://es.wordpress.org parent_theme: none theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, block-templates, widgets-block-editor theme_path: /usr/home/almazendesign.com/web/testing/wp-content/themes/twentytwentythree auto_update: Desactivado ### wp-plugins-active (2) ### bbPress: version: 2.6.9, author: The bbPress Contributors, Actualizaciones automĂĄticas desactivadas WP Reset: version: 1.97, author: WebFactory Ltd, Actualizaciones automĂĄticas desactivadas ### wp-plugins-inactive (4) ### BJA VLE Virtual Learning Enviroment - BjĂ€land: version: 1.0.0, author: BjĂ€land, Actualizaciones automĂĄticas desactivadas My trades - WordPress Heroes: version: 1.0.0, author: WordPress Heroes - FĂ©lix MartĂnez, Actualizaciones automĂĄticas desactivadas WPH Base Plugin - BjĂ€land: version: 1.0.0, author: BjĂ€land - FĂ©lix MartĂnez, Actualizaciones automĂĄticas desactivadas WPH Chat: version: 1.0.0, author: WordPress Heroes - FĂ©lix MartĂnez, Actualizaciones automĂĄticas desactivadas ### wp-media ### image_editor: WP_Image_Editor_GD imagick_module_version: 1691 imagemagick_version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org imagick_version: @PACKAGE_VERSION@ file_uploads: File uploads is turned off post_max_size: 35M upload_max_filesize: 35M max_effective_size: 35 MB max_file_uploads: 20 gd_version: bundled (2.1.0 compatible) gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM ghostscript_version: unknown ### wp-server ### server_architecture: Linux 5.10.0-19-amd64 x86_64 httpd_software: Apache php_version: 8.2.1 64bit php_sapi: fpm-fcgi max_input_variables: 10000 time_limit: 30 memory_limit: 192M max_input_time: 60 upload_max_filesize: 35M php_post_max_size: 35M curl_version: 7.74.0 OpenSSL/1.1.1n suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: false ### wp-database ### extension: mysqli server_version: 10.5.17-MariaDB-1:10.5.17+maria~deb11-log client_version: mysqlnd 8.2.1 max_allowed_packet: 134217728 max_connections: 500 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /usr/home/almazendesign.com/web/testing/wp-content WP_PLUGIN_DIR: /usr/home/almazendesign.com/web/testing/wp-content/plugins WP_MEMORY_LIMIT: 192M WP_MAX_MEMORY_LIMIT: 192M WP_DEBUG: true WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: Sin definir DB_CHARSET: utf8mb4 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable
Thanks in advance.