Search Results for 'code'
-
Search Results
-
Hi
I have 6 forums. I’d like to display 3 of them on one page and the other 3 on anoter page in WordPress. I thought that I could use the shortcode [bbp-single-forum id=32] but when using this, the single forum is added to the page but it’s already expanded showing all the topics within that forum. Is there a way to show single forums but in a collapsed format?Thanks for any help that you can offer (I’m not a programmer, so please keep replies easy for a non techie 😀)
Thanks – David
I don’t get this.
Look here:
I am getting a message under the TinyMCE toolbar. My two icons are now showing either.
My code is very basic:
<?php /** * Plugin Name: Add AutoSave | Fullscreen to TinyMCE * Description: This will install the TinyMCE AutoSave | Fullscreen Plugins (version 4.9.11) and register them with TinyMCE. * Version: 2.1 * Author: Andrew Truckle * Author URI: https://www.trucklesoft.co.uk/ **/ /** * Add the TinyMCE AutoSave and Fullscreen Plugins. * * @param array $plugins An array of all plugins. * @return array */ function aaft_custom_plugins( $plugins ) { $plugins['autosave'] = plugins_url( 'mce/', __FILE__ ) . 'autosave/plugin.min.js'; $plugins['fullscreen'] = plugins_url( 'mce/', __FILE__ ) . 'fullscreen/plugin.min.js'; return $plugins; } add_filter( 'mce_external_plugins', 'aaft_custom_plugins' );Recently upgraded to WP 6.1 and this plugin bbPress Advanced Statistics gives deprecation warnings when I have debug mode enabled:
The official website for the plugin seems dead now.
The warnings:
Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/core/class.utils.php on line 25 Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/core/class.utils.php on line 64 Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/core/class.statistics.php on line 153 Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/core/class.statistics.php on line 332 Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/core/class.activity.php on line 98 Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/public/class.online.php on line 86 Deprecated: Required parameter $version follows optional parameter $file in /customers/e/9/c/publictalksoftware.co.uk/httpd.www/wp-content/plugins/bbpress-improved-statistics-users-online/includes/public/class.extras.php on line 47One example:
public function __construct ( $file = '', $version ) { $this->init(); } // End __construct ()I understand what it means, and I see that the parameter is ot used in the function. Dos that mean we just delete the parameter?
Another example:
public static function instance ( $file = '', $version ) { if ( is_null( self::$_instance ) ) { self::$_instance = new self( $file, $version ); } return self::$_instance; } // End instance ()Problem here is that the version value is being used.
Advice appreciated.
Hi!
When our users copy emails into the forum all the HTML table code shows up in the published post (it’s fine in the editor itself though). I found this filter which I suppose cleans out all HTML when copying//clean html when copy and paste into forum function bbp_tinymce_paste_plain_text( $plugins = array() ) { $plugins[] = 'paste'; return $plugins; } add_filter( ‘bbp_get_tiny_mce_plugins’, ‘bbp_tinymce_paste_plain_text’ );I’m wondering if there’s a filter that would still allow bold to remain, but remove everything else?
Thank you in advance!Topic: Multiple Views
I’m been exploring different view shortcodes but I can’t make it seems to work.
I wanted to display both latest topics and most popular topics at the same time in the home page.
I use [bbp-display-topic-index show=’5′ forum =’10,11,12′] or [bbp-single-view id=’popular’] and [bbp-single-view] but only one view is showing up.
Good day to all the wonderful devs,
Site: https://h99.cd7.myftpupload.com/
I am Running Current:
Wordpress 6.0.3
PHP 8.0Plugins:
MemberPress Members 3.2.1
BBPress 2.6.9My questions:
#1 I am working on a travel agent site for my wife which will include the forums. I will be the main site admin and primary Keymaster, however i want to add a secondary keymaster for her. However i want to make it so she has access to use certain admin tools on the wp-admin dashboard which i have done using Memberpress Members Roles. However i dont want her to have full keymaster in BBPress.
So, the idea in thought is Primary Keymaster has obvious full permissions, secondary Keymaster has full rights as well but not the ability to modify the primary keymaster.
Currently I have Primary Keymaster which is also Site Full Admin, Secondary Keymaster, named Board Admin.
I still want the Board Admin to have Admin rights to Dashboard Menus but not the ability to edit the Keymaster like it shows for the current BBPress Roles with only view ability. I think I wrote that right.
#2 BBPress Forum page login for general users. Currently BBPress sends registration and login to the wp-admin page to login. Is there a way to edit the forum link to use another page by having the login shortcode embedded into a page of choice, same question for Profile. Currently the edit profile link on the forum takes users directly to the wordpress profile rather than their forum profile, what am i missing for the redirect?
Thank you in advance for the patience and assistance.
I have created a few websites for myself, but learning the plugin dev stuff and theme editing, still infantile.. lolI already broke her site once and had to delete everything and start over.
Topic: Ajax load more
Hello. I want to add a special feature to my site using the ajax load more plugin. I want to load topic replies with ajax by scrolling. I don’t want the visitor to have to go to pages 2, 3 and… to see all the replies. This plugin gives me a shortcode like this:
[ajax_load_more loading_style="infinite fading-blocks" container_type="ul" post_type="reply"]And I have to embed this short code in the function file of the template.
<?php echo do_shortcode('[ajax_load_more loading_style="infinite fading-blocks" container_type="ul" post_type="reply"]'); ?>But this code does not work properly anywhere. Can you guide me? By the way, I am an amateur.
Hello, I use bbpress login form shortcode and when I press the login button without filing any data, it keeps redirect me to the normal wp form with errors msgs, is there a way to keep the errors msg in the same form without redirect?
hello, I need to change the css class”bbp-template-notice” of the returned html in the function bbp_template_notices() exist in includes/common/template.php but i dont see any filter in it , how this can be done?
the function:
function bbp_template_notices() { // Bail if no notices or errors if ( ! bbp_has_errors() ) { return; } // Define local variable(s) $errors = $messages = array(); // Get bbPress $bbp = bbpress(); // Loop through notices foreach ( $bbp->errors->get_error_codes() as $code ) { // Get notice severity $severity = $bbp->errors->get_error_data( $code ); // Loop through notices and separate errors from messages foreach ( $bbp->errors->get_error_messages( $code ) as $error ) { if ( 'message' === $severity ) { $messages[] = $error; } else { $errors[] = $error; } } } // Display errors first... if ( ! empty( $errors ) ) : ?> <div class="bbp-template-notice error" role="alert" tabindex="-1"> <ul> <li><?php echo implode( "</li>\n<li>", $errors ); ?></li> </ul> </div> <?php endif; // ...and messages last if ( ! empty( $messages ) ) : ?> <div class="bbp-template-notice"> <ul> <li><?php echo implode( "</li>\n<li>", $messages ); ?></li> </ul> </div> <?php endif; }I need to add a class to the dropdown topic select_class.
the original function is:function bbp_get_form_topic_status_dropdown( $args = array() ) { // Parse arguments against default values $r = bbp_parse_args( $args, array( 'select_id' => 'bbp_topic_status', 'select_class' => 'bbp_dropdown', 'tab' => false, 'topic_id' => 0, 'selected' => false ), 'topic_open_close_select' ); // Filter & return return apply_filters( 'bbp_get_form_topic_status_dropdown', ob_get_clean(), $r, $args ); }I tired to use this but didnt work
function custom_callback($args = array() ) { $r = bbp_parse_args( $args, array( 'select_class' => 'my-class', ) ); return $r; } add_filter( 'bbp_get_form_topic_status_dropdown', 'custom_callback', 12, 2);