Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 6,776 through 6,800 (of 64,487 total)
  • Author
    Search Results
  • #195475

    Topic: Struggling with login

    in forum Plugins
    baz13
    Participant

    Hi

    I am struggling with a login button within my page for bbpress. I have tried to use 2 different plugs and I am having 2 different problems. I dont want to use a sidebar option. If anyone can provide a solution to either one I would really appreciate it:

    bbp style pack – When I select add login/logout to menu options it adds “Log In” to the navigation menu higher then the other menu options (ie. it sits vertically higher by about half the text height”. Can anyone help with how to align this with the other text?

    bbpress WP tweaks – This provides an acceptable button to login however the login link takes me to the actual backend wordpress login page. Simply changing the href=” ” to the page on my website does not work either.

    <p>{login_text} / {register_text}</p>

    I would prefer to use the bbp style pack however either will do at this stage. I am very new to buidling websites and I don’t want to play around in the functions.php area at risk of crashing my entire site.

    Thank you for your help.

    #195470

    In reply to: Custom Topic Statuses?

    This will be easier to do in bbPress 2.6. A bunch of hooks were added to the codebase to make status manipulation possible in many ways it was not previously.

    bluevert
    Participant

    Hello
    I used travel log theme to install bbpress.But there is some bug.
    In the lower left corner of each page of the forum, there is an “edit” button for Participant user, how to remove it?

    #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

    #195444
    layan17
    Participant

    Please, I will like to create a button to create a new topic on each forum page. Thanks for your help.

    #195442

    In reply to: Custom Topic Statuses?

    Robin W
    Moderator

    bbpress does not do custom topic statuses, so they are coming from that support plugin, best post there as it is that plugin that needs to work with 2.6, but most plugin authors do not code for pre-release software as it changes.

    #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

    #195420
    christal2018
    Participant

    Hello – I’m unable to edit my forums as an administrator. Specifically I’m trying to add videos. I use bbPress, and my theme is Boss Child. I appreciate any guidance you can provide

    #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

    #195417

    Topic: Double avatar

    in forum Troubleshooting
    sopliar
    Participant

    Good evening guys, i have a problem viewing avatar in my bbpress forum.
    In practice, I visualize the avatar twice but only for visitors/guests. Users logged in correctly view 1 avatar. How can I solve?

    Here screenshots:

    View post on imgur.com

    Thank you very much.

    #195411
    jd-fb
    Participant

    Thanks again, Robin!
    I’ve successfully used the code above to modify the templates. Woo!

    However, one question / comment:
    The code you’ve provided for bbp_show_lead_topic doesn’t seem to do anything for me.
    I’ve tried:

    function custom_bbp_show_lead_topic( $show_lead ) {
      $show_lead[] = 'false'; // The code as shown on https://codex.bbpress.org/bbp_show_lead_topic/
      $show_lead[] = false; // No quotation marks around 'false'
      $show_lead = false;   // no array [] used on $show_lead, no quotation;
      $show_lead = 'false'  // no array, with quotation
      return $show_lead;
    }

    And none of these seemed to change how the lead topic was displayed.
    But, I’ve figured out the templates and I’m getting the results I was hoping for.

    Thanks again.

    Tom
    Participant

    Im not sure when this started, but you get a notification of someone replying to your forum topic the title is blank!
    I checked the database ID to make sure its 100% BBPress, and it is.
    Example notification with no title.
    phpmyadmin

    The notifications page with all the blank titles for replys:
    notificaition page

    #195406
    Robin W
    Moderator

    the function that bbpress uses is in

    includes/common/functions.php

    line 1055 starts the function, and lines 1150 to 1153 are the offending ones which stop it being sent to the author

    I’d suggest you unhook that function and then hook your own

    so in your child theme functions file maybe have

    remove_action( 'bbp_new_reply',    'bbp_notify_topic_subscribers',           11, 5 );
    add_action ( 'bbp_new_reply' , 'rew_notify_topic_subscribers', 11,5 ) ;
    

    and then copy the whole bbp_notify_topic_subscribers function to your functions file, rename it to ‘rew_notify_topic_subscribers’ and edit out the lines which stop it being sent to the author

    do come back if anything isn’t clear, I’m assuming a level of knowledge you may not have, and quite happy to help further

    #195403
    brunobrincat
    Participant

    Greetings.
    For large forums to function efficiently requires a shift in our perspectives perhaps.
    Please consider https://theoneandonlysolutiontoeverything.net/forum/forums-3/forum/first-forum/

    I am discussing BBpress with the World Summit 2019 0n Facebook.
    I am a BBpress fan, but also a newbie and not very competent.
    I feel that the summit would provide a great showcase for great forum software.
    Is BBpress the right software for massive complex group discussions?

    I am seeking someone/people from the BBpress community to join the Summit BBpress discussion on facebook.
    Anyone?

    #195401
    Robin W
    Moderator

    I tried plugins and themes, but i’m sure i can erase it from a file inside the bbpress folder. What file can it be?

    it is not in nay file that I know, it looks like part of an error

    you may be able to hide it with css, I can’t say without a live link

    #195398
    ahoraajedrez
    Participant

    I tried plugins and themes, but i’m sure i can erase it from a file inside the bbpress folder. What file can it be?

    #195392
    TechHaus
    Participant

    Issue!

    I installed rc-5 and woocommerce on two new installs this week and I’m getting this when i go to mysite.com/forum to see the forums list.:

    Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Template_Loader::unsupported_theme_title_filter(), 1 passed in /opt/lampp/htdocs/th-fixed/wp-includes/class-wp-hook.php on line 286 and exactly 2 expected in /opt/lampp/htdocs/th-fixed/wp-content/plugins/woocommerce/includes/class-wc-template-loader.php:399 Stack trace: #0 /opt/lampp/htdocs/th-fixed/wp-includes/class-wp-hook.php(286): WC_Template_Loader::unsupported_theme_title_filter(‘Forums’) #1 /opt/lampp/htdocs/th-fixed/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘Forums’, Array) #2 /opt/lampp/htdocs/th-fixed/wp-content/plugins/bbpress/includes/core/theme-compat.php(561): apply_filters(‘the_title’, ‘Forums’) #3 /opt/lampp/htdocs/th-fixed/wp-includes/class-wp-hook.php(286): bbp_template_include_theme_compat(‘/opt/lampp/htdo…’) #4 /opt/lampp/htdocs/th-fixed/wp-includes/plugin.php(203): WP_Hook->apply_filters(‘/opt/lampp/htdo…’, Array) #5 /opt/lampp/htdocs/th-fixed/wp-content/plugins/bbpress/includes/core/sub-actions.php(434): apply_fi in /opt/lampp/htdocs/th-fixed/wp-content/plugins/woocommerce/includes/class-wc-template-loader.php on line 399)

    Lastest everything both tested on xampp locally.

    #195379
    vincitygialam
    Participant

    Hi ,

    how to determine if its a member or an admin ( by admin , i mean the administrator and keymaster levels ) ?

    if not , where can i find a good documentation about bbpress template tags like wordpress’ one ?

    TFYT .

    #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

    #195374
    Robin W
    Moderator

    ok, sorry but you can only fault find by testing.

    Only having a live site is not a good policy, suggest you invest time in creating a test site

    Creating a Test Site

    #195373
    Robin W
    Moderator

    the function (1) can sit in your plugin

    the template (2) can also be in your plugin, but yes, you’ll need some code to do this

    in my style pack plugin I have a directory and sub directory called

    templates/templates1 and in this I have a bbpress templates I have amended eg

    wp-content/plugins/bbp-style-pack/templates/template1/loop-forums.php

    then in my plugin code I have (you’ll need to amend BSP_PLUGIN_DIR to a suitable name for your plugin

    if(!defined('BSP_PLUGIN_DIR'))
    	define('BSP_PLUGIN_DIR', dirname(__FILE__));
    
    add_action( 'bbp_register_theme_packages', 'bsp_register_plugin_template1' );
    
    function bsp_register_plugin_template1() {
    	bbp_register_template_stack( 'bsp_get_template1_path', 12 );
    }
    
    function bsp_get_template1_path() {
    	return BSP_PLUGIN_DIR . '/templates/templates1';
    }

    This loads all templates in that directory and registers them with bbpress

    come back if that doesn’t work for you with your code

    #195372
    jd-fb
    Participant

    Thanks Robin. I previously played with bbp_show_lead_topic, and I couldn’t get it to work (which is why I posted my question above.) I guess I was missing step 2, which is the template.

    Question: Do the steps you describe change if I’m developing a plugin, instead of a theme? If I’m correct, the following code should help me (correct?)

    correct way to override bbpress templates

    #195354
    ahoraajedrez
    Participant

    Hello, i have a problem, i see a text before the text editor in bbpress.

    The text is: “CONTENT string (0)”

    How can i remove it?

    Wordpress: 4.9.8
    BbPress: 2.5.14
    Website: https://www.ahoraajedrez.com/foros/foro/ajedrez-de-elite/

    Robin W
    Moderator

    ok, try this – I think it works all fine, but let me know

    what it does is check every 5 minutes that any topic posted over 1/2 hour is closed.

    It will close all existing topics that meet this criteria.

    A topic will therefore be closed 30-35 minutes after the original post date

    BbPress close topic automatically 1/2 hour after topic is posted

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