Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 1,051 through 1,075 (of 6,780 total)
  • Author
    Search Results
  • #195599
    Robin W
    Moderator

    if you actually posted ‘After clicking on register button wp shows wp-login.php page but without login form. Only -1 in upper left corner.’ on a wordpress forum, why would they even mention bbpress? Youy must have asked a question mentioning bbpress.

    I have looked at the issue and it is a wordpress issue, but general advice

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    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.

    Then come back

    #195585

    In reply to: Integration with WP

    liyacaty
    Participant

    When u load wordpress function inside bbpress. U already integrate both design point and database point. You only need to add WP template tags inside bbpress template.and mostly use wp default functons.

    #195561
    Robin W
    Moderator

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    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.

    Then come back

    #195460
    Robin W
    Moderator

    @clivesmith

    If you fine with code, then this is how I would go about it

    1. create a split in topic & replies, so you have a place to put the ‘featured reply’
    Use this piece of code in your functions file

    bbp_show_lead_topic

    2. then you’ll need a flag for the featured reply.

    This code does an ‘advert’ flag for a topic, but has much of the code you’d need to do a flag for a reply to show it is featured – I’ll leave you to work out which bits you’ll need, but the key is the hook to

    add_action( 'bbp_theme_before_topic_form_submit_wrapper', 'at_checkbox' );

    change this to

    add_action( 'bbp_theme_before_reply_form_submit_wrapper', 'at_checkbox' );

    amend the references from topic to reply

    and add some if(bbp_keymaster() ) to make it only show for you, and you will be most of the way there

    // show the "Mark if it is an advert" checkbox on topic form
    	add_action( 'bbp_theme_before_topic_form_submit_wrapper', 'at_checkbox' );
    		
    function at_checkbox() {
        // Text for the topic form
    	global $topic_advert_text ;
    	?>
    		<p>
    
    			<input name="at_advert" id="at_advert" type="checkbox"<?php checked( '1', at_is_advert( bbp_get_topic_id() ) ); ?> value="1" tabindex="<?php bbp_tab_index(); ?>" />
    
    			<?php if ( bbp_is_topic_edit() && ( get_the_author_meta( 'ID' ) != bbp_get_current_user_id() ) ) : ?>
    
    				<label for="at_advert"><?php echo '<span class="dashicons dashicons-awards"></span>'.$topic_advert_text.'</label>' ;?>
    
    			<?php else : ?>
    
    				<label for="at_advert"><?php echo '<span class="dashicons dashicons-awards"></span>'.$topic_advert_text.'</label>' ;?>
    
    			<?php endif; ?>
    
    		</p>
    <?php
    }
    	
    //check if topic is advert
    function at_is_advert( $topic_id = 0 ) {
    	
    	$retval 	= false;
    
    	if ( ! empty( $topic_id ) ) {
    		$retval = get_post_meta( $topic_id, 'at_topic_is_advert', true );
    	}
    	return (bool) apply_filters( 'at_is_advert', (bool) $retval, $topic_id );
    }
    
    // save the advert state
    		add_action( 'bbp_new_topic',  'at_update_topic' );
    		add_action( 'bbp_edit_topic',  'at_update_topic' );
    
    //update topic 
    function at_update_topic( $topic_id = 0 ) {
    
    		if( isset( $_POST['at_advert'] ) )
    			update_post_meta( $topic_id, 'at_topic_is_advert', '1' );
    		else
    			delete_post_meta( $topic_id, 'at_topic_is_advert' );
    
    	}

    3. amend content-single-topic-lead.php in your child theme’s bbpress directory.

    by

    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/content-single-topic-lead.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/content-single-topic-lead.phpbbPress will now use this template instead of the original and you can amend this

    This then you can use to add some code

    if (at_is_advert( $reply_id )) then….. display this reply

    and you should be there

    so

    the reply form will show a checkbox to make a reply featured available only to say keymaster, and as keymaster you can edit a topic to make it a featured
    the content_single_topic_lead will check if a reply is featured and then show it if it is

    I wish I had the time to code this all for you, but please if you do work oyt some code, post back here for other to benefit

    #195425
    Robin W
    Moderator

    ok, I would strongly suspect you membership wall, presumably a plugin – not a lot we can do if it is.

    This generic help should let you define where the issue is

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    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.

    Then come back

    #195418

    In reply to: Double avatar

    Robin W
    Moderator

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    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.

    Then come back

    #195377
    Robin W
    Moderator

    yes, that is the default position, I’ll try and work out some code in the next few days.

    If I have not come back in 3 days time, post again to remind me !

    #195376

    In reply to: bbpress user roles

    Robin W
    Moderator

    in bbpress plugin in my site the moderator roles the forum is not showing in dashboard,

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    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.

    Then come back

    #195375
    Robin W
    Moderator

    something is putting that code there, you will need to work out what

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    Themes

    As a test switch to a default theme such as twentyfifteen, and see if this fixes.

    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.

    Then come back

    #195310
    Robin W
    Moderator

    ok, so concentrating on a topic and it’s reply list and ignoring forums, you are saying that you would like

    from clicking a topic in the forum list (a list of topics in the forum) you are taken to a page which displays

    • the topic name
    • some content/info but styled and controlled by you
    • the replies as per normal
    • the reply form

    If so I suspect you need to do two things

    1. use this piece of code in your functions file

    bbp_show_lead_topic

    2. amend content-single-topic-lead.php in your child theme’s bbpress directory.

    by

    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/content-single-topic-lead.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/content-single-topic-lead.phpbbPress will now use this template instead of the original and you can amend this

    I have no idea how technical you are and whether that gives you enough to go ahead and fix, or if you need further help – let me know

    #195244
    Robin W
    Moderator

    @ashaani

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    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

    #195240

    In reply to: Messages are stacking

    Robin W
    Moderator

    1. bbpress is free software offered under OSF. There is no guarantee of support. If I gave you a free car, would you also expect me to service it for you for free?

    2. BBpress is supported by volunteers (mainly me) who do so in their free time for no payment, so you expect someone to reply within 7 hours is frankly being a bit hopeful.

    3. If you have followed the troubleshooting information in ‘before posting’ before er.. posting then you would probably have an answer without involving me, but to save you reading it…the most relevant part for you is

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    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

    #195218
    Robin W
    Moderator

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    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

    #195082
    skylabb
    Participant

    I came across this same issue and found this thread.

    “bbpress default role is only allocated on first user login, so users who register but haven’t yet logged in will show as having no role.”

    If this is how it works, how anyone is supposed to know? Naturally you would think you can change user roles by multiple select and assign them a role when they don’t have one yet. Maybe a popup message would help when the admin attempts such action.

    #195014
    Robin W
    Moderator

    As far as I know the two work together

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    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

    #194983
    Robin W
    Moderator

    I’ve just done some testing

    this code :

    function test_set_user () {
    $user_id = 1223 ;
    bbp_set_user_role( $user_id, 'bbp_participant' );
    }
    
    add_action ('init' , 'test_set_user' ) ;

    changes user 1223 on site load, so the code is fine.

    I think it is a timing issue – ie when you are doing this. It may well be that even if this fires, a ‘create user’ firing after will overwrite this – eg this may set for pending, but then be overwritten by the final user creation.

    Of course if it is always going to be participant, then bbpress allocates the user to the default role (as set in settings>forums>default role) if no bbpress role is set on first login, so you could just set up the user, and bbpress will take care of giving them a role when they first log in!

    #194822
    Milan Petrovic
    Participant

    Few days ago I have released new plugin for bbPress to add advanced search form to replace bbPress default search page. More information about the plugin is available here:

    GD Power Search Pro for bbPress

    Advanced Search Form

    Robin W
    Moderator

    ok, so not my plugin, but I cannot replicate the error

    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

    #194700

    In reply to: How add Class on list

    puniler
    Participant

    Thanks for getting back to me.

    Break down the code in question into three.

    (1)
    I found the following code in this directory,
    wp-content/plugins/bbpress/templates/default/bbpress/loop-replies.php

    <ul id="topic-<?php bbp_topic_id(); ?>-replies" class="forums bbp-replies">
    
    	<li class="bbp-header">
    		<!-- various -->
    	</li>
    
    	<li class="bbp-body">
    		<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    	</li>
    		
    	<li class="bbp-footer">
    		<!-- various -->
    	</li>
    
    </ul>

    (2)
    And the template called in the above code is below.
    wp-content/plugins/bbpress/templates/default/bbpress/loop-single-reply.php

    	
    		<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
    			<div class="bbp-meta">
    				<!-- various -->
    			</div>
    		</div>
    		<div <?php bbp_reply_class(); ?>>
    			<!-- various -->
    		</div>
    		
    		<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
    			<div class="bbp-meta">
    				<!-- various -->
    			</div>
    		</div>
    		<div <?php bbp_reply_class(); ?>>
    			<!-- various -->
    		</div>	

    (3)
    But I could not find the code for the part of the list below.

    	<li class="★">
    
    	</li>
    
    	<li class="★">
    
    	</li>

    In the output HTML, this list is included, but the PHP template does not show the part of the list.

    Where is the list, how can I rewrite it?

    Thanks.

    #194696

    Thanks for the reply
    yes i know it’s default
    but I put to all the forums, the topics that I created public.
    and nothing has changed

    #194630
    scmsteve
    Participant

    Noticed when migrating from 2.5.12 to 2.6 beta 2 (and also in RC1 and RC3), that my custom CSS file in mytheme/css/bbpress.css is no longer being detected.

    I am seeing that here as well… Since your post was never commented on, I don’t know if it was ignored or simply thought irrelevant. Or maybe missed. 🙂

    Looking at the HTML between the old site and a test site running the SVN pull of 2.6, it seems that previously as part of the enqueue_styles() call, it generated:

    <link data-asynced="1" as="style" onload="this.rel=&quot;stylesheet&quot;" rel="stylesheet" id="bbp-default-css" href="https://siteurl/wp-content/themes/mythemename/css/bbpress.css" type="text/css" media="screen">

    Now it is generating:

    <link data-asynced="1" as="style" onload="this.rel=&quot;stylesheet&quot;" rel="stylesheet" id="bbp-default-css" href="https://siteurl/wp-content/plugins/bbpress/templates/default/css/bbpress.min.css" type="text/css" media="all">

    So, it is not looking in the site css folder, but instead pulling from the plugin folder.

    Is this intentional? If not, is there a fix/workaround?

    #194586
    bamadale
    Participant

    THANK YOU for this post!

    I cannot remember if this defaults to both being enable at the same time, but if they are, bbPress should consider adding some notes about this in the Settings.

    Thanks again! Dale

    #194569
    bjarvis
    Participant

    Thank you for your reply Robin. The issue turned out to be a conflict with the themes customization area for a “custom 404 page” instead of using the default 404 page. When I turn this off, and use the default 404 page, the issue resolved. The theme developer is working on a fix on their end. :o)

    #194560
    ketanco
    Participant

    Right now by default under a main forum category, the subforums appear together, only separated by comma. This is confusing for me. Is there a way to list each subforum one by one each on a separate line, under their main category forum, instead of them just separating by commas?

    #194538
    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

Viewing 25 results - 1,051 through 1,075 (of 6,780 total)
Skip to toolbar