Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 1,326 through 1,350 (of 6,788 total)
  • Author
    Search Results
  • locutus1
    Participant

    The site that hosts my wordpress site told me that they don’t allow membership plugins on wordpress sites. So I can’t make login and register pages and put shortcode in them which is what many people do. My host says users can register and login via a different window which they sent me a picture of. I don’t know how to do an attachment so I’ll describe it. There’s 2 text boxes. The first one is “Username or email address” and the second one is Password. Above the small window is a big white capital W in a blue circle. Below the window is “Register” and “Lost Password”. I assume this is a default login window. This is what my host wants me to use. How do I set this up? Thanks.

    #186140
    rajesh896
    Participant

    Make sure you’ve created a custom page titled “new topic” with a friendly url of “new-topic”

    Place the new shortcode we registered into this page:

    [wpmu_bbp_topic]

    This will automatically display contact create form of the selected forum if ID exists in the URL otherwise fall back to default shortcode.

    You can see it in action on my site:
    happy deepavali images 2017

    #186138
    rajesh896
    Participant

    Make sure you’ve created a custom page titled “new topic” with a friendly url of “new-topic”

    Place the new shortcode we registered into this page:

    [wpmu_bbp_topic]

    This will automatically display contact create form of the selected forum if ID exists in the URL otherwise fall back to default shortcode.

    You can see it in action on my site:
    happy deepavali images

    andrewkusuma
    Participant

    How to avoid user/visitor when use register page and login page of bbpress and fill not correct validate at same page with information which one is not correct.

    default bbpress login and register is redirect to wp-login
    is any way to customize wordpress login register page?

    #186056
    michent1
    Participant

    I ended up having to dig this snippet backup for a new project and made some tweaks.


    @struth
    Updated to only output if user is logged in.

    
    	/**
    	 * Generate BBpress Edit Profile Link in a shortcode
    	 *
    	 * @param $atts, text|class
    	 * @example [bbp_edit_profile text="Edit My Profile" class"my-link-style"]
    	 * @return string|void
    	 *
    	 */
    	function bbp_edit_profile_link( $atts ) {
    		
    		//If user isn't logged in, return nothing
    		if(!is_user_logged_in()) {
    			return;
    		} else {
    			
    			extract( shortcode_atts( array(
    				                         'text'  => "",  // default value if none supplied
    				                         'class' => "" //Style class for link
    			                         ), $atts ) );
    			
    			if ( $text ) {
    				$current_user = wp_get_current_user();
    				$user         = $current_user->user_login;
    				
    				return '<a class="' . $class . '" href="/forums/users/' . $user . '/edit">' . $text . '</a>';
    				
    			}
    		}
    	}
    	
    	add_shortcode( 'bbp_edit_profile', 'bbp_edit_profile_link' );
    
    #186049
    scoremedia
    Participant

    Hi!

    Im using buddypress and wordpress in general with bbPress. I want to know if somebody knows a way to give ALL forums a set of default topics. So for every new buddypress group if there is a new forum they already have a basic set of topics. Anyone know how to achieve this without setting it up yourself everytime a new group is added or a new forum is being created.

    #186038
    JC
    Participant

    Hello all, I’m using WordPress 8.0 and bbPress2.5.13.

    I have added this function to add the visual tab to the editor:

    function enable_visual_editor( $args = array() ) {
        $args['tinymce'] = true;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'enable_visual_editor' );

    When I signed in as admin is everything OK, the editor tab is selected by default and I can start to type. However, when I do as a participant no tabs are selected and I have to select one of them in order to start to type. This is not intuitive at all for participants that want to write a post in the forum and eventually they will leave.

    Why is happening that? Can anyone give me support? Thank you in advance 🙂

    #185997
    mrapino
    Participant

    Hey there … I got mine working.

    There is a file in the bbPress plugin folder

    plugins > bbpress > templates > default > js > reply.js

    On line 18, there is a line of code that is throwing a JavaScript error every time the “reply” link is clicked.

    reply.parentNode.insertBefore(respond);

    I basically commented this line of code out, and threaded replies are working again.

    I have no idea if this line is needed, but it got rid of the error, and there are no new errors to speak of.

    I wish a plugin developer would chime in here, but that doesn’t seem likely.

    I hope this helps you.

    If anyone else reading this know what this line does, and why it was causing the error, please let us know.

    #185984
    cobitts15
    Participant

    Okay so I copied the code from my page.php and made a bbpress.php

    <?php get_header(); ?>
    	<div class="content">
    		<!-- Sidebar With Content Section-->
    		<?php 
    			$ultimate_kickoff_wrapper = 'container';
    			$ultimate_kickoff_theme_option = get_option('ultimate_kickoff_admin_option', array());
    			if(isset($ultimate_kickoff_theme_option['enable-boxed-style']) && $ultimate_kickoff_theme_option['enable-boxed-style'] == 'wide-style'){
    				$ultimate_kickoff_wrapper = 'container-fluid';
    			}else{
    				$ultimate_kickoff_wrapper = 'container';
    			}
    			if( !empty($ultimate_kickoff_content_raw) ){ 
    				echo '<div class="vc-wrapper '.esc_attr($ultimate_kickoff_wrapper).'">';
    				while ( have_posts() ){ the_post();
    					if( has_shortcode( get_the_content(), 'vc_row' ) ) {
    						echo ultimate_kickoff_content_filter(get_the_content(), true); 
    					}
    				}
    				echo '</div>';
    				
    				echo '<div class="pagebuilder-wrapper">';
    				ultimate_kickoff_show_page_builder($ultimate_kickoff_content_raw);
    				echo '</div>';
    				
    				
    			}else{
    				echo '<div class="'.esc_attr($ultimate_kickoff_wrapper).'">';
    					$default['show-title'] = 'enable';
    					$default['show-content'] = 'enable'; 
    					echo ultimate_kickoff_get_default_content_item($default);
    				echo '</div>';
    			}
    		
    		?>
    	</div><!-- content -->
    <?php get_footer(); ?>

    My theme options aren’t showing when I try to edit the forum.

    #185970

    In reply to: Avatar freshness

    Robin W
    Moderator

    ok, I can’t see why on a default theme with no other plugins it should not work.

    I am currently suspecting wplms is turning it off.

    In any event, clicking the freshness profile just goes to the home page, so something is affecting your site.

    captainallen
    Participant

    I am now using WordPress 4.8 and a theme called Newspaper X, installed bbpress 2.5.13. As you can see in my website:

    Home


    http://tomorrowlan.gg/forums/

    It displayed some texts and most of them are non-functional. I have tried to disable all plugins and stuff like that, still not working. It kind of worked when I tried some default theme. Is there a way to fix it? Thanks

    #185950
    2sa
    Participant

    I have several bbPress forums in my WordPress site and I want to only show forums wit content on my forum page. By default it shows all forums Any ideas on how to do this?
    Please and Thanks in advance!

    Wordpress version: 4.7.5
    bbPress version: 2.5.13

    #185941
    kriskl
    Participant

    OK. the problem was with this custom code, which stopped working it would seem..

    //* Correct Gravatars 
    function bp_remove_gravatar ($image, $params, $item_id, $avatar_dir, $css_id, $html_width, $html_height, $avatar_folder_url, $avatar_folder_dir) {
    	$default = get_stylesheet_directory_uri() .'/images/mystery-man.jpg';
    	if( $image && strpos( $image, "gravatar.com" ) ){ 
    		return '<img src="' . $default . '" alt="avatar" class="avatar" ' . $html_width . $html_height . ' />';
    	} else {
    		return $image;
    	}
    }
    add_filter('bp_core_fetch_avatar', 'bp_remove_gravatar', 1, 9 );
    
    function remove_gravatar ($avatar, $id_or_email, $size, $default, $alt) {
    	$default = get_stylesheet_directory_uri() .'/images/mystery-man.jpg';
    	return "<img alt='{$alt}' src='{$default}' class='avatar avatar-{$size} photo avatar-default' height='{$size}' width='{$size}' />";
    }
    
    add_filter('get_avatar', 'remove_gravatar', 1, 5);
    
    function bp_remove_signup_gravatar ($image) {
    	$default = get_stylesheet_directory_uri() .'/images/mystery-man.jpg';
    	if( $image && strpos( $image, "gravatar.com" ) ){ 
    		return '<img src="' . $default . '" alt="avatar" class="avatar" width="60" height="60" />';
    	} else {
    		return $image;
    	}
    
    }
    add_filter('bp_get_signup_avatar', 'bp_remove_signup_gravatar', 1, 1 );
    #185929
    kriskl
    Participant

    Hi,
    I am running the latest bbpress 2.5 (not 2.6 yet) and today updated buddypress.

    and after the buddypress update avatars do not show anymore in bbpress forums.
    every user has the default blank avatar.,

    they avatars still show, when exploring buddypress..

    if it is any help. it is WordPress MU version.

    has anyone else got the same problem? or managed to resolve it?
    tnanks

    kris

    #185916

    In reply to: Can not open Forum

    Robin W
    Moderator

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    #185896
    2sa
    Participant

    I have several bbPress forums in my WordPress site and I want to only show forums wit content on my forum page. By default it shows all forums Any ideas on how to do this?
    Please and Thanks in advance!

    Wordpress version: 4.7.5
    bbPress version: 2.5.13

    #185872
    thoughtsociety
    Participant

    Forum index not showing ‘subscribe’ link.
    Option is enabled in admin/backend for BBpress.
    Any ideas how to fix this?
    I have bbp style pack so I can move the subscribe link away from the breadcrumbs.
    Your default position for the subscribe link touches the breadcrumb and Robin Wilson’s plugin supposedly fixes that. (provides the option to force it to the right).
    When I disable his plugin, I can see the subscribe link next to the breadcrumb. But this is unacceptable as I pointed out above.
    Thanks

    #185870
    Robin W
    Moderator

    1.

    I’m wanting to move the Edit/Move/Split/Post bar down

    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

    find
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/loop-single-forum.php
    bbPress will now use this template instead of the original
    and you can amend this

    then around line 29

    <?php do_action( 'bbp_theme_before_reply_admin_links' ); ?>
    
    		<?php bbp_reply_admin_links(); ?>
    
    		<?php do_action( 'bbp_theme_after_reply_admin_links' ); ?>

    this is the bit you are wanting to move.

    2.

    Is there a way to have the join date underneath their photo beside the post?

    yes it can be done, but would need some coding.

    Same template, around line 57 you’ll find

    <?php do_action( 'bbp_theme_after_reply_author_details' ); ?>

    That’s where you want to add the join date, either as a hook to the action above, or as additional code.

    I suspect you’ll want to pick up the date from the wp_posts table user_registered field.

    using bbp_get_reply_author_id() should get you the user, and

    https://codex.wordpress.org/Function_Reference/get_userdata

    should give you how to use it, with say

    <?php $user_info = get_userdata(bbp_get_reply_author_id() );
          $registered = $user_info->user_registered;
          echo $registered?>

    probably being close to what you want, but you’ll probably need to do some date stuff to display how you want

    https://www.w3schools.com/php/php_ref_date.asp but possibly a strtotime() function

    Hopefully that’s enough to get you somewhere !!

    #185807
    Robin W
    Moderator

    the template for forum is

    templates/default/content-archive-forum.php

    make a copy to your child theme directory under a directory called bbpress.

    #185806
    Robin W
    Moderator

    presuming that 367 is your forum number, then that should be ok

    if it is not displaying it could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentyfifteen, and see if this fixes.

    Then come back

    #185797

    Topic: Bug in bbPress

    in forum Installation
    mwheelermindbox
    Participant

    I am using WordPress 4.8 multisite and noticed a bug in bbPress 2.5.12 and 2.5.13 (possibly older versions as well) with PHP 7.1.6.

    Lines 1798-1805 of includes/forum/functions.php is

    
    // Default to public status
    if (empty( $post_stati ) ) {
    	$post_stati[] = bbp_get_public_status_id();
    
    // Split the status string
    } elseif ( is_string( $post_stati ) ) {
    	$post_stati = explode( ',', $post_stati );
    }
    

    For me $post_stati looks to be an empty string so the if is evaluating to true and the next line is failing with this error:

    Fatal error: Uncaught Error: [] operator not supported for strings in /srv/www/tilth.org/current/web/app/plugins/bbpress/includes/forums/functions.php on line 1800

    Changing line 1799 to:

    
    if (is_array( $post_stati) && empty( $post_stati ) ) {
    

    looks to fix the error.

    Perhaps adding a line inside the conditional of

    
    $post_stati = array();
    

    is a better fix.

    #185767
    Rixter
    Participant

    Hi there,

    On my site people have to manually check ‘Notify me of follow up-replies via e-mail’.
    I would like this checkbox to be default checked instead of people having to actively check the box themselves.
    How can this be done?

    (it might be just a setting 🙂 since I read someone asked the exact same thing 8 months ago, but vice versa (how to default UNcheck this)).

    #185762
    locutus1
    Participant

    Hi. I have 2 main forums both with sub-forums. If I go into any forum I see “create new topic” which is the default. That’s fine for the first main forum but I would like to change it for the 2nd main forum. I want all the sub-forums of the 2nd main forum to display something else instead of “Create new topic”. Is that possible? I’m guessing this might be possible with CSS. I’m dealing with many forums so do I have to specify every forum one by one or is there one command that can be applied to the 2nd main forum and it would impact every sub-forum? Thanks.

    #185721
    FionaS
    Participant

    Kia ora from New Zealand 🙂
    Just thought I’d let you know that I am also having problems with this since upgrading to PHP 7.1. To trouble-shoot I have changed my theme to the default 2017, I have deactivated all other plugins and instead of just a blank page I now get the HTTP ERROR 500; I had also changed line 1851 (a couple of weeks ago) but that didn’t work either so I was just hoping that the bbPress upgrade to v 2.5.13 would fix this but unfortunately not. I got my host to roll back the PHP upgrade and everything started to work again.
    I am not a PHP programmer so cannot give you all the details that tweichart has.
    Version of WordPress is 4.8 but also had the same problem with the previous version.

    bobibrown0
    Participant

    I’ve been searching for an answer, that I couldn’t find here. It was actually quite easy to find the solution by myself. But just in case someone need do to this too, this is how you do it:

    -> Create a new folder named “bbpress” at the root of your wordpress theme:
    /wp-content/themes/YOURTHEMENAME/bbpress/

    -> Find the file named “content-single-forum.php” located here:
    /wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php
    and copy into your newly created folder:
    /wp-content/themes/YOURTHEMENAME/bbpress/content-single-forum.php

    Now bbpress will use this file instead, if your “YOURTHEMENAME” is in use.

    -> Open the file under
    /wp-content/themes/YOURTHEMENAME/bbpress/content-single-forum.php
    Go to line 48, and you should find this:
    <?php bbp_get_template_part( 'form', 'topic' ); ?>
    Comment this line this way:
    <?php //bbp_get_template_part( 'form', 'topic' ); ?>

    And you’re done! Easy and clean!

    Of course you might want to add a button to create a new topic.
    You can do it, following these steps:

    https://bbpress.org/forums/topic/how-to-add-new-topic-button/

Viewing 25 results - 1,326 through 1,350 (of 6,788 total)
Skip to toolbar