Search Results for '+.+default+.+'
-
AuthorSearch Results
-
March 15, 2020 at 1:10 pm #209394
In reply to: bbPress 2.6.4 Remove Default Search Bar
uksentinel
ParticipantHi Robin, just cleared the cache and found that via GD Power Search for bbPress plugin, the default search works, but when I then select advanced search, the page/script for advance search does not appear. Home › Forums › Search ?
I have left it running an my site incase you get a chance to try for yourself, you do not need to be a forum member for searches etc on my site ?
March 15, 2020 at 12:04 pm #209388Topic: bbPress 2.6.4 Remove Default Search Bar
in forum Troubleshootinguksentinel
ParticipantHi
Currently running bbPress 2.6.4 and would like to understand how to remove / hide the default search bar that appears at the top of the Forums page listings
I have in a side bar widget set-up ‘GD Power Search for bbPress’ – (works very well), just need to remove the Search bar from the top of the Forums page as looks out of character for my forum
Forum is https://uktechhub.com/forums/
Thanks
March 15, 2020 at 9:54 am #209385Topic: Mark all forums as read
in forum PluginsManuel Camargo
ParticipantI’m checking this very old plugin
Isn’t this implemented by default in bbpress nowadays?
March 14, 2020 at 7:03 pm #209376In reply to: Split up my Tags page
webcreations907
ParticipantHey there,
I got that code for you so you can add it to your page and give it a try.
Put the code below in your
style.cssfile of your theme, you can change as needed. It only styles the filter buttons..airport-iata-info{ padding-left:15px; color:rgba(0,0,0,0.6); font-weight:bolder; font-size:14px; margin-top:20px; } .airport-iata-filter-tag-wrap span.active, .airport-iata-filter-tag-wrap span:hover{ background-color:#087cc1; color:#fff; } .airport-iata-filter-tag-wrap{ border:1px solid rgba(0,0,0,0.1);; display:table; padding:0 10px 10px; border-radius:4px; } .airport-iata-filter-tag-wrap span{ background-color:#fff; box-shadow:0 2px 5px rgba(0,0,0,0.2); margin:10px; border-radius:4px; padding:10px 20px !important; display:inline-block; }This code below you’ll need to put in your
functions.phpfile of your theme, best if you put in child theme so that you don’t have to replace when you update your theme in the future. The function below is only set to run on that page you have the listed tags on.if(!function_exists('airport_iata_code_filter_buttons')){ function airport_iata_code_filter_buttons(){ if(!function_exists('is_page')) return; if(is_page(4760)){ ?> <script> (function($){ var buttons= {}; buttons['a-f'] = 'a b c d e f'; buttons['g-l'] = 'g h i j k l'; buttons['m-s'] = 'm n o p q r s'; buttons['t-z'] = 't u v w x y z'; var get_tag_class = function( tag ){ var tag_class = false; $.each(buttons,function(index,el){ if(el.indexOf(tag.toLowerCase()) > -1){ tag_class = index; return false; } }); return tag_class; } $('#bbp-topic-hot-tags .tag-cloud-link').each(function(){ var tag_class = get_tag_class($(this).text().slice(0,1)); if(tag_class !== false){ $(this).addClass('airport-iata-filter-tag-cloud-'+tag_class).attr('data-airport-iata-tag',tag_class); } }); $('#bbp-topic-hot-tags').prepend('<div class="airport-iata-filter-tag-wrap" style="margin-bottom:20px;"><div class="airport-iata-info">Filter IATA Codes</div></div>'); $('.airport-iata-filter-tag-wrap').append('<span style="cursor:pointer;padding:10px;" class="airport-iata-filter-all active">All</span>'); $.each(buttons,function(index,el){ $('.airport-iata-filter-tag-wrap').append('<span data-airport-iata-filter-key="'+index+'" style="cursor:pointer;padding:10px;" class="airport-iata-filter-tag-cloud-'+index+'">'+index.toUpperCase()+'</span>'); }); $(document).on('click', '.airport-iata-filter-tag-wrap span', function(e){ e.preventDefault(); $('.airport-iata-filter-tag-wrap span').removeClass('active'); $(this).addClass('active'); if($(this).hasClass('airport-iata-filter-all')){ $('#bbp-topic-hot-tags a.tag-cloud-link').show(); }else{ $('#bbp-topic-hot-tags a.tag-cloud-link').hide(); $('#bbp-topic-hot-tags a.tag-cloud-link.airport-iata-filter-tag-cloud-'+$(this).attr('data-airport-iata-filter-key')).show(); } }); })(jQuery); </script> <?php } } add_action( 'wp_footer', 'airport_iata_code_filter_buttons', 100); }That’s it, should work. Let me know if you have any issues or questions on any of that.
🙂
March 14, 2020 at 7:17 am #209364Manuel Camargo
ParticipantReally interesting plugin
I did not even modify the Freshness Display and it switched to last reply by default.I’m going to help you out with the translation to Spanish of that plugin.
By the way, for code improvements, how do you track changes? do you have public repo for the plugin or using WP SVN?
March 13, 2020 at 6:04 pm #209347In reply to: Split up my Tags page
webcreations907
ParticipantHello,
How about just adding filter buttons to your current page so that users on your site aren’t directed to another page, instead the tags are displayed based on “Filter” type buttons they click while on that same page. Kinda like a filtered portfolio type set up.
Example
Filter buttons at the top of your tag cloud(i.e A-F, G-L,M-S, etc), when user clicks say “A-F”, then all the tags that are within that range are shown, while the rest are hidden. But you’d still be on the same page. Then have a “All” button so they could get back to the default view of all them being shown.Just a bbpress user here, just had a idea for you on that so thought I’d mention it.
March 11, 2020 at 1:30 pm #209265In reply to: Formatting not Apply
Robin W
Moderatorit could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
March 9, 2020 at 5:07 pm #209213Topic: Divi Builder Header not loading on search pages
in forum Troubleshootingyogaville
ParticipantThe Divi Theme Builder Header is not loading on BBPress search results. Instead, it looks as though it is loading the default WordPress header.
Incorrect header
http://iytawebsite.staging.wpengine.com/forums/search/introductions/Correct Header
I contacted Elegant Themes already and they directed me here.
Thoughts?Wordpress v5.3.2
BBPress v2.6.4March 6, 2020 at 9:27 am #209184In reply to: Moving a reply to a new topic
Robin W
Moderatorok, I can only suggest that you revert to the standard tests
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
February 25, 2020 at 6:29 pm #208953In reply to: Double and triple postings
Robin W
Moderatoryou could exclude forums from caching in sg optimizer
go to
dashboard>sg optimizer>supercacher settings>Excluding URLs
and set up your site’s forums urls
eg (and you will need to change these is you don’t have the default slugs set up)
add these
http://www.site.com/forums/*
http://www.site.com/forum/*
http://www.site.com/topic/*
http://www.site.com/reply/*February 21, 2020 at 2:08 pm #208854In reply to: subscribe to individual topics
Robin W
Moderatorif you have subscriptions set in
dashboard>settings>forums
then this should show.
it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
February 21, 2020 at 2:06 pm #208853Robin W
ModeratorI suspect that another plugin or your theme is causing this.
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
February 17, 2020 at 7:45 pm #208768In reply to: 404 after update
andrew55
ParticipantOddly, the sidebar content for user shows (username, links to topics, etc.) even though there is a 404 error where the main forums should be. I tried running bbPress with almost all plugins disabled and default theme enabled – still get the 404. But when main page is refreshed, forums display correctly.
February 11, 2020 at 6:28 am #208627In reply to: Can’t find settings
Robin W
Moderatorit could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
February 11, 2020 at 6:00 am #208624Topic: Accessibility audit failures
in forum Installationwhonickedmyname
ParticipantHi,
I’m currently testing bbPress (with the default plugin templates/themes) and have noticed that a number of inputs do not have labels associated with them. I run a number of sites that require we meet a standard of WCAG 2.1 AA.
Is this something that is likely to be amended in upcoming versions?
And does anyone have any advice regarding making bbPress compliant?
Thanks
LauraFebruary 9, 2020 at 1:09 pm #208585In reply to: Buttons at the bottom of each forum post don’t work
Robin W
Moderatorit could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
February 8, 2020 at 3:01 pm #208569Robin W
Moderatorit could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
February 6, 2020 at 7:43 am #208529Topic: How to hide the default favourite and susbcribe links?
in forum Themeshydrogriff
ParticipantMy bbPress installation is customized a little and has subscribe and favourite buttons in a different place. Since 2.6 extra favourite and subscribe links are appearing in the lead topic header. Is there a way to remove the default ones and keep the ones generated by
<?php bbp_topic_favorite_link();?>and<?php bbp_topic_subscription_link(); ?>?February 5, 2020 at 5:03 am #208491In reply to: Can anyone help me with this E_ERROR
Robin W
Moderatorno, that probably wasn’t the problem, if you had been on version 5.x then that might be the issue.
If php version doesn’t fix then it could be a theme or plugin issue
Themes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
February 4, 2020 at 5:55 am #208452In reply to: sub topics not showing
Oxibug
ParticipantHey Guyes,
This issue because you are using this function [bbp_list_forums] in [loop-single-forum.php] with old (2.5.0) default args array in your active theme.
You must use [bbp_get_forum_id()] in function’s args, So try to find this function inside the active theme and change the value of the [forum_id] argument.
bbp_list_forums( array( 'before' => '<ul class="bbp-forums-list">', 'after' => '</ul>', 'link_before' => '<li class="bbp-forum">', 'link_after' => '</li>', 'count_before' => ' (', 'count_after' => ')', 'count_sep' => ', ', 'sep' => '', 'forum_id' => bbp_get_forum_id(), /* Fix for bbPv2.6.3 */ 'show_topic_count' => true, 'show_reply_count' => true ) );Hope it helps.
February 3, 2020 at 8:52 am #208435In reply to: sub topics not showing
haddly
ParticipantI have it dequeued in my functions.php file:
wp_dequeue_style( 'bbp-default' );February 3, 2020 at 5:03 am #208427In reply to: sub topics not showing
Robin W
Moderator@hydrogriff – ok, not sure that I ma goung to be able to help much further.
I can only suggest it could be a theme or plugin issueThemes
As a test switch to a default theme such as twentyfifteen, and see if this fixes.
Plugins
If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Then come back
February 1, 2020 at 1:40 pm #208405In reply to: sub topics not showing
Robin W
Moderatorlooked in pastebin.
I’m not sure what this function is there for, except possibly to speed up site display if they have not accessed the forum part ?
function dequeue_bbpress_style() { if ( class_exists('bbPress') ) { if ( ! is_bbpress() ) { wp_dequeue_style('bbp-default'); wp_dequeue_style( 'bbp_private_replies_style'); wp_dequeue_script('bbpress-editor'); } } } add_action( 'wp_enqueue_scripts', 'dequeue_bbpress_style', 99 );it does tend to suggest that you have bbp_private_replies enabled ???
February 1, 2020 at 1:34 pm #208404In reply to: Edit the bbPress login widget
Robin W
ModeratorThe best solution is to clone this widget and then amend.
so put this in your functions.php
It creates a duplicate login widget, but you’ll find it in dashboard>appearance>widgets called
(mat) login Widget. You can then add your code to this versionfunction register_mat_login_widget() { register_widget("MAT_Login_Widget"); } add_action('widgets_init', 'register_mat_login_widget'); class MAT_Login_Widget extends WP_Widget { /** * MAT Login Widget amended * */ public function __construct() { $widget_ops = apply_filters( 'mat_login_widget_options', array( 'classname' => 'mat_widget_login', 'description' => esc_html__( 'A simple login form with optional links to sign-up and lost password pages.', 'bbpress' ), 'customize_selective_refresh' => true ) ); parent::__construct( false, esc_html__( '(mat) Login Widget', 'bbpress' ), $widget_ops ); } /** * Register the widget * * */ public static function register_widget() { register_widget( 'MAT_Login_Widget' ); } /** * Displays the output, the login form * * * @param array $args Arguments * @param array $instance Instance */ public function widget( $args = array(), $instance = array() ) { // Get widget settings $settings = $this->parse_settings( $instance ); // Typical WordPress filter $settings['title'] = apply_filters( 'widget_title', $settings['title'], $instance, $this->id_base ); // mat filters $settings['title'] = apply_filters( 'mat_login_widget_title', $settings['title'], $instance, $this->id_base ); $settings['register'] = apply_filters( 'mat_login_widget_register', $settings['register'], $instance, $this->id_base ); $settings['lostpass'] = apply_filters( 'mat_login_widget_lostpass', $settings['lostpass'], $instance, $this->id_base ); echo $args['before_widget']; if ( ! empty( $settings['title'] ) ) { echo $args['before_title'] . $settings['title'] . $args['after_title']; } if ( ! is_user_logged_in() ) : ?> <form method="post" action="<?php bbp_wp_login_action( array( 'context' => 'login_post' ) ); ?>" class="bbp-login-form"> <fieldset class="bbp-form"> <legend><?php esc_html_e( 'Log In', 'bbpress' ); ?></legend> <div class="bbp-username"> <label for="user_login"><?php esc_html_e( 'Username', 'bbpress' ); ?>: </label> <input type="text" name="log" value="<?php bbp_sanitize_val( 'user_login', 'text' ); ?>" size="20" maxlength="100" id="user_login" autocomplete="off" /> </div> <div class="bbp-password"> <label for="user_pass"><?php esc_html_e( 'Password', 'bbpress' ); ?>: </label> <input type="password" name="pwd" value="<?php bbp_sanitize_val( 'user_pass', 'password' ); ?>" size="20" id="user_pass" autocomplete="off" /> </div> <div class="bbp-remember-me"> <input type="checkbox" name="rememberme" value="forever" <?php checked( bbp_get_sanitize_val( 'rememberme', 'checkbox' ) ); ?> id="rememberme" /> <label for="rememberme"><?php esc_html_e( 'Keep me signed in', 'bbpress' ); ?></label> </div> <?php do_action( 'login_form' ); ?> <div class="bbp-submit-wrapper"> <button type="submit" name="user-submit" id="user-submit" class="button submit user-submit"><?php esc_html_e( 'Log In', 'bbpress' ); ?></button> <?php bbp_user_login_fields(); ?> </div> <?php if ( ! empty( $settings['register'] ) || ! empty( $settings['lostpass'] ) ) : ?> <div class="bbp-login-links"> <?php if ( ! empty( $settings['register'] ) ) : ?> <a href="<?php echo esc_url( $settings['register'] ); ?>" title="<?php esc_attr_e( 'Register', 'bbpress' ); ?>" class="bbp-register-link"><?php esc_html_e( 'Register', 'bbpress' ); ?></a> <?php endif; ?> <?php if ( ! empty( $settings['lostpass'] ) ) : ?> <a href="<?php echo esc_url( $settings['lostpass'] ); ?>" title="<?php esc_attr_e( 'Lost Password', 'bbpress' ); ?>" class="bbp-lostpass-link"><?php esc_html_e( 'Lost Password', 'bbpress' ); ?></a> <?php endif; ?> </div> <?php endif; ?> </fieldset> </form> <?php else : ?> <div class="bbp-logged-in"> <a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>" class="submit user-submit"><?php echo get_avatar( bbp_get_current_user_id(), '40' ); ?></a> <h4><?php bbp_user_profile_link( bbp_get_current_user_id() ); ?></h4> <?php bbp_logout_link(); ?> </div> <?php endif; echo $args['after_widget']; } /** * Update the login widget options * * * @param array $new_instance The new instance options * @param array $old_instance The old instance options */ public function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['title'] = strip_tags( $new_instance['title'] ); $instance['register'] = esc_url_raw( $new_instance['register'] ); $instance['lostpass'] = esc_url_raw( $new_instance['lostpass'] ); return $instance; } /** * Output the login widget options form * * * @param $instance Instance */ public function form( $instance = array() ) { // Get widget settings $settings = $this->parse_settings( $instance ); ?> <p> <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php esc_html_e( 'Title:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $settings['title'] ); ?>" /></label> </p> <p> <label for="<?php echo $this->get_field_id( 'register' ); ?>"><?php esc_html_e( 'Register URI:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'register' ); ?>" name="<?php echo $this->get_field_name( 'register' ); ?>" type="text" value="<?php echo esc_url( $settings['register'] ); ?>" /></label> </p> <p> <label for="<?php echo $this->get_field_id( 'lostpass' ); ?>"><?php esc_html_e( 'Lost Password URI:', 'bbpress' ); ?> <input class="widefat" id="<?php echo $this->get_field_id( 'lostpass' ); ?>" name="<?php echo $this->get_field_name( 'lostpass' ); ?>" type="text" value="<?php echo esc_url( $settings['lostpass'] ); ?>" /></label> </p> <?php } /** * Merge the widget settings into defaults array. * * @since 2.3.0 bbPress (r4802) * * @param $instance Instance */ public function parse_settings( $instance = array() ) { return bbp_parse_args( $instance, array( 'title' => '', 'register' => '', 'lostpass' => '' ), 'login_widget_settings' ); } }January 31, 2020 at 11:51 am #208385In reply to: Theme problem
chetan0412
Participantgetting lots of 404 erros.
plugins/bbpress/templates/default/js/user.js?ver=5.3.2
can i have the solution ?
-
AuthorSearch Results