Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for ' . default . '

Viewing 25 results - 776 through 800 (of 6,789 total)
  • Author
    Search Results
  • #210155

    In reply to: Forum roles issue

    falabart
    Participant

    I have that plugin installed and it is working.

    But what I would like (but I don’t know if it is possible) is that there is only one Keymaster (the administrator of WordPress) and the rest of the users are Participants by default, being able to create and respond to topics.

    #210150

    In reply to: Forum roles issue

    falabart
    Participant

    This intranet was developed by an external agency with whom we no longer have contact.

    I have run into this problem since the project was handed over to us.

    Is there no place in bbpress to determine the actions that each role can take? Do you know if the “Participant” role can by default create topics and reply to messages?

    Thanks for your help.

    #210136
    Robin W
    Moderator

    you’d do better to put that amended template into your child theme – that way bbpress updates won’t overwrite it

    find
    wp-content/plugins/bbpress/templates/default/bbpress/user-details.php

    transfer this to your pc and edit

    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/user-details.php

    bbPress will now use this template instead of the original

    #210134
    ilhat
    Participant

    hello guys,

    i have few sentences what are displayed in french for all my languages i dont know why, my default language is english, and my theme’s developer are saying that the issue is comming from bbpress.

    look pictures this sentence is translated in all language
    but displays french for all languages

    https://paste.pics/e3ffc065ef3ef5c140d05fc85747960d
    https://paste.pics/0ac43ae103b834aca3aaf608f125fa99

    help me pls

    best regards

    #210133
    Robin W
    Moderator

    I did a code search and found this function in includes/common/functions line 1507 which seems a highly likely candidate.

    function bbp_logout_url( $url = '', $redirect_to = '' ) {
    
    	// If there is no redirect in the URL, let's add one...
    	if ( ! strstr( $url, 'redirect_to' ) ) {
    
    		// Get the forum root, to maybe use as a default
    		$forum_root = bbp_get_root_url();
    
    		// No redirect passed, so check referer and fallback to request uri
    		if ( empty( $redirect_to ) ) {
    
    			// Check for a valid referer
    			$redirect_to = wp_get_referer();
    
    			// Fallback to request uri if invalid referer
    			if ( false === $redirect_to ) {
    				$redirect_to = bbp_get_url_scheme() . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    			}
    		}
    
    		// Filter the $redirect_to destination
    		$filtered  = apply_filters( 'bbp_logout_url_redirect_to', $redirect_to );
    
    		// Validate $redirect_to, default to root
    		$validated = wp_validate_redirect( $filtered, $forum_root );
    
    		// Assemble $redirect_to and add it (encoded) to full $url
    		$appended  = add_query_arg( array( 'loggedout'   => 'true'   ), $validated );
    		$encoded   = urlencode( $appended );
    		$url       = add_query_arg( array( 'redirect_to' => $encoded ), $url       );
    	}
    
    	// Filter & return
    	return apply_filters( 'bbp_logout_url', $url, $redirect_to );
    }

    so maybe filtering on ‘bbp_logout_url’ would work.

    Let me know if you need further help

    #209993
    Robin W
    Moderator

    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-topic.php

    FTP transfer this to your pc and edit

    find starting from line 254

    <?php if ( ! is_user_logged_in() ) : ?>
    
    			<?php bbp_get_template_part( 'form', 'user-login' ); ?>
    
    		<?php endif; ?>

    and delete these lines

    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-topic.php

    bbPress will now use this template instead of the original

    #209991
    Robin W
    Moderator

    it come from

    bbpress\templates\default\bbpress\form-topic.php

    are you fine with FTP and changing files – if so I’ll give you intructions

    #209968
    Robin W
    Moderator

    can you try this in your child theme function file or snippets

    function rew_get_topic_split_link( $retval, $r, $args ) {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'id'          => 0,
    			'link_before' => '',
    			'link_after'  => '',
    			'split_text'  => esc_html__( 'Split',                           'bbpress' ),
    			'split_title' => esc_attr__( 'Split the topic from this reply', 'bbpress' )
    		), 'get_topic_split_link' );
    
    		// Get IDs
    		$reply_id = bbp_get_reply_id( $r['id'] );
    		$topic_id = bbp_get_reply_topic_id( $reply_id );
    
    		// Bail if no reply/topic ID, or user cannot moderate
    		if ( empty( $reply_id ) || empty( $topic_id ) || ! current_user_can( 'moderate', $topic_id ) ) {
    			return;
    		}
    
    		$uri = add_query_arg( array(
    			'action'   => 'bbp-split-topic',
    			'reply_id' => $reply_id
    		), bbp_get_topic_edit_url( $topic_id ) );
    
    		$retval = $r['link_before'] . '<a href="' . esc_url( $uri ) . '" title="' . $r['split_title'] . '" class="bbp-topic-split-link">' . $r['split_text'] . '</a>' . $r['link_after'];
    
    		// Filter & return
    		return apply_filters( 'rew_get_topic_split_link', $retval, $r, $args );
    	}
    
    add_filter ('bbp_get_topic_split_link', 'rew_get_topic_split_link' , 10 , 3) ;
    
    function rew_is_topic_split() {
    
    	// Assume false
    	$retval = false;
    
    	// Check topic edit and GET params
    	if ( bbp_is_topic_edit() && ! empty( $_GET['action'] ) && ( 'bbp-split-topic' === $_GET['action'] ) ) {
    		$retval = true;
    	}
    
    	// Filter & return
    	return (bool) apply_filters( 'rew_is_topic_split', $retval );
    }
    
    add_filter ('bbp_is_topic_split' , 'rew_is_topic_split' ) ;
    #209926
    Robin W
    Moderator

    when you last reported it, I said
    ‘ok, 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@

    you did not respond to that, so can’t really help further if you don’t do the tests 🙂

    #209813
    Robin W
    Moderator

    ok, I can only suggest 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

    #209803
    Robin W
    Moderator

    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

    #209794
    danielshalar
    Participant

    So I just Installed bbPress for my first time because I want to create my little forum.

    I’ve been using wordpress for a while and I’m in love with it.

    Now bbpress, for what I see comes default or similar to the Theme from what I read.

    this is currently how it looks The picture of my forum site

    So my questions is there any good plugins out there to really design the buttons like the search button or the log out and the bbPress forum itself?
    Or I mustly need to do this manually by editing code and css?

    I’m really noob, I learend a little bit html,css but no more then that, any help will be very respected <3

    #209764
    John
    Participant

    Is there a way to change the text ‘Viewing X topics…’ that appears under the list of topics? I can’t see any customisation options.

    #209736
    Robin W
    Moderator

    ok, something will be stopping that

    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

    robertstaddon
    Participant

    I have the exact same problem as @artmuns on a brand new WordPress install. I’m running just the latest version of bbPress 2.6.4 with the latest version of WordPress and no other plugins on the default WordPress theme. On the Edit Topic screen, I can go to “Topic Attributes” and change the “Type” to “Sticky” or “Super Sticky”. However, once a topic type has been changed to “Sticky” or “Super Sticky”, if I try changing it back to “Normal” and then click “Update”, it will not change. I have to either go to the frontend or to the listing of All Topics and click “Unstick” to change the Topic type to something besides “Sticky”. This is definitely a bug with bbPress!

    Robin W
    Moderator

    ok, so bbpress does not have the feature of preventing posting until email confirmation, although this might be by default if your site doesn’t add users until you have confirmed.

    In essence if your user is set up with bbpress access, then that is what they get.

    one of the plugins above might add that functionality, although I suspect not.

    wamlibrarian
    Participant

    Since my most recent update of WordPress, I’ve had an issue with new users being able to post replies despite their status being “awaiting email confirmation”. As you can imagine, this had led to an influx of spam messages on the site.

    I’m assuming that as part of the update, some setting was changed to turn this on be default, but i have no idea how to turn it back off. Could anyone advise me?

    Currently using WordPress 5.3.2 running Twenty Seventeen theme using Version 2.6.4 at http://wamlibrary.com/forums/

    #209547
    WorldWideWebb
    Participant

    OK – implemented a fix that seems to be working (time will tell). Hope this helps someone else:

    The issue was indeed the redirect that happens when you click the reply links. The fix was to trap the default behavior of those links (using preventDefault so that the link is not followed), so added that to the link output. In the following file on line 1612:

    bbpress/includes/replies/template.php

    Change the line to this:

    $onclick = ' onclick="event.preventDefault(); return addReply.moveForm(\'' . implode( "','", $move_form ) . '\');"';

    #209401

    In reply to: Split up my Tags page

    webcreations907
    Participant

    No problem, glad that worked out for you.

    I was trying to update the code in the above to remove the inline styles and !important, but guess I can’t edit replies on here.

    Will provide update code below, if you want to update it.

    CSS

    
    .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;
      margin-bottom:10px
    }
    .airport-iata-filter-tag-wrap span{
      cursor:pointer;
      background-color:#fff;
      box-shadow:0 2px 5px rgba(0,0,0,0.2);
      margin:10px;
      border-radius:4px;
      padding:10px 20px;
      display:inline-block;
    }
    
    

    functions.php file

    
    
    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"><div class="airport-iata-info">Filter IATA Codes</div></div>');
    				  $('.airport-iata-filter-tag-wrap').append('<span 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+'" 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);
    }
    
    
    #209395
    Robin W
    Moderator

    hmmm… css won’t do it then.

    you’ll need to amend content-archive-forum.php in your child theme

    find
    wp-content/plugins/bbpress/templates/default/bbpress/content-archive-forum.php

    transfer this to your pc and edit

    delete line 17

    <?php bbp_get_template_part( 'form', 'search' ); ?>

    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/content-archive-forum.php

    bbPress will now use this template instead of the original

    #209394
    uksentinel
    Participant

    Hi 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 ?

    https://uktechhub.com/forums/

    #209388
    uksentinel
    Participant

    Hi

    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

    #209385
    SirLouen
    Participant

    I’m checking this very old plugin

    bbPress Go To First Unread Post

    Isn’t this implemented by default in bbpress nowadays?

    #209376

    In reply to: Split up my Tags page

    webcreations907
    Participant

    Hey 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.css file 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.php file 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.

    🙂

    #209364
    SirLouen
    Participant

    Really 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?

Viewing 25 results - 776 through 800 (of 6,789 total)
Skip to toolbar