Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for ' . default . '

Viewing 25 results - 1,426 through 1,450 (of 6,789 total)
  • Author
    Search Results
  • #182663

    In reply to: bbp_reply_admin_links

    Robin W
    Moderator

    hmmm … if you want each link to be a button, I can point you to some code, but you’ll need to figure it out.

    so

    so for replies, the function is in

    bbpress/includes/replies/template.php

    which I think you found.

    function bbp_get_reply_admin_links( $args = array() ) {
    
    		// Parse arguments against default values
    		$r = bbp_parse_args( $args, array(
    			'id'     => 0,
    			'before' => '<span class="bbp-admin-links">',
    			'after'  => '</span>',
    			'sep'    => ' | ',
    			'links'  => array()
    		), 'get_reply_admin_links' );
    
    		$r['id'] = bbp_get_reply_id( (int) $r['id'] );
    
    		// If post is a topic, return the topic admin links instead
    		if ( bbp_is_topic( $r['id'] ) ) {
    			return bbp_get_topic_admin_links( $args );
    		}
    
    		// If post is not a reply, return
    		if ( !bbp_is_reply( $r['id'] ) ) {
    			return;
    		}
    
    		// If topic is trashed, do not show admin links
    		if ( bbp_is_topic_trash( bbp_get_reply_topic_id( $r['id'] ) ) ) {
    			return;
    		}
    
    		// If no links were passed, default to the standard
    		if ( empty( $r['links'] ) ) {
    			$r['links'] = apply_filters( 'bbp_reply_admin_links', array(
    				'edit'  => bbp_get_reply_edit_link ( $r ),
    				'move'  => bbp_get_reply_move_link ( $r ),
    				'split' => bbp_get_topic_split_link( $r ),
    				'trash' => bbp_get_reply_trash_link( $r ),
    				'spam'  => bbp_get_reply_spam_link ( $r ),
    				'reply' => bbp_get_reply_to_link   ( $r )
    			), $r['id'] );
    		}
    
    		// See if links need to be unset
    		$reply_status = bbp_get_reply_status( $r['id'] );
    		if ( in_array( $reply_status, array( bbp_get_spam_status_id(), bbp_get_trash_status_id() ) ) ) {
    
    			// Spam link shouldn't be visible on trashed topics
    			if ( bbp_get_trash_status_id() === $reply_status ) {
    				unset( $r['links']['spam'] );
    
    			// Trash link shouldn't be visible on spam topics
    			} elseif ( bbp_get_spam_status_id() === $reply_status ) {
    				unset( $r['links']['trash'] );
    			}
    		}
    
    		// Process the admin links
    		$links  = implode( $r['sep'], array_filter( $r['links'] ) );
    		$retval = $r['before'] . $links . $r['after'];
    
    		return apply_filters( 'bbp_get_reply_admin_links', $retval, $r, $args );
    	}

    which you can filter at the end, but how would depend on your skills.

    the span part can be simply changed by putting a filter into your child theme’s function file

    eg

    add_filter ('bbp_before_get_reply_admin_links_parse_args', 'theredeclipse_change' ) ;
    
    function theredeclipse_change ($args) {
    	$args['before'] = '<span class="bbp-admin-links">' ;
    	$args['after']   = '</span>' ;
    return $args ;
    }

    and just change whatever you want the span part to look like, or just remove it.

    if you want to style each link, then you’ll see that there is a call to each separate function

    'edit'  => bbp_get_reply_edit_link ( $r ),
    				'move'  => bbp_get_reply_move_link ( $r ),
    				'split' => bbp_get_topic_split_link( $r ),
    				'trash' => bbp_get_reply_trash_link( $r ),
    				'spam'  => bbp_get_reply_spam_link ( $r ),
    				'reply' => bbp_get_reply_to_link   ( $r )
    

    so to do it in functions, you’d need to go to each one.

    you’ll find these in the same file above

    since the class is hard coded, you could add a final filter with a preg_replace

    eg

    add_filter( 'bbp_get_reply_move_link' , 'theredeclipse_move', 10 , 2 ) ;
    
    function theredeclipse_move ($retval, $r) {
    $retval =  preg_replace(whatever args you need, with, $retval);
    return $retval ;
    }

    so $retval will hold the line of code including the class.

    so google preg-replace and see if you can get it working !!

    #182655

    In reply to: bbp_reply_admin_links

    theredeclipse
    Participant

    Default output looks like

    <span class="bbp-admin-links">
    // inside different classes of links
    </span>

    I would like change it to
    <a class="button"></a>
    So I want to delete span from output and use one style for each <a> link, if its possible.

    And the thing is – I could do it by modifying forum files, but after update it will be overwritten. So I want to use bbpress functions php file to change output, but I don’t know how. I hope I’ve explained it well 😛

    #182615
    cbeardsley626
    Participant

    Hi

    Bit of a beginner here so forgive me if I’m asking something which should be obvious!

    I have installed BBpress on my wordpress site but when I click on the forums tab on the wordpress dashboard it seems the link is broken. It takes me to a “HTTP 500 error” default screen. I can click on “New forum” but not “All forums”. Similarly when you click on any of the forum links on the homepage, even those links appear broken as you don’t land on that forum. Even then, I get the same HTTP error. Any ideas?

    #182608
    brettdarnesh
    Participant

    Is there a way to add a list of topics users are subscribed to on a page so they can manage it?

    I created a custom profile editor so they don’t go into the wordpress backend when users click on their forum gravatar seemed to be default on my installation. Or is there a front end profile editor I can use like in this forum (I can’t seem to find a plugin or anything for it)

    #182597
    Dan
    Participant

    my permalinks are set to month & name. my .htaccess has only the default WP rewrite rules. I have bbPress 2.5.12, jetpack 4.7, and woocommerce 2.6.14.

    When i visit mysite/forums/topic/* I get my topic.
    When i visit mysite/forums/user/admin I get the admin profile.
    When i visit mysite/forums/user/anyone-else I get the site homepage.

    This works wether I am logged in or out. I have no security plugins or cache plugins.

    Please: Why is this happening and how do I fix it?

    #182563

    In reply to: Topic Info

    Marcos
    Participant

    I think also the “forum info” is a good widget to have in default instalation of bbpress.

    #182562

    In reply to: Topic Info

    Marcos
    Participant

    I want this also. Maybe a lot of people love this.
    Is not possible made a default widget with these information for the next versions of bbpress?

    #182475

    In reply to: Forum topic issue

    Robin W
    Moderator

    it may be a conflict ot 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

    #182242
    Robin W
    Moderator

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

    #182206
    mattdevelop
    Participant

    Same error here, this happens because of this code

    $post_stati = $posts_query->get( 'post_status' );
    
    		// Default to public status
    		if ( empty( $post_stati ) ) {
    			$post_stati[] = bbp_get_public_status_id();
    

    in \includes\forums\functions.php on line 1800

    #181914
    siparker
    Participant

    there isnt an option within bbpress to do it but if you install https://buddydev.com/plugins/bp-default-email-notification-settings-control/ this and modify everyone to ahve no notifications it seems to stop it.

    The notificatiosn are still a bit of a mystery to me tbh. they seem to be queued somewhere but i have not had time to look into it. installign that plugin and deactivating all notifications worked for me.

    #181861
    expat
    Participant

    hi I am still confused, where is my default styling? I have your pack

    http://my-impressionz.cu.cc/forums/

    #181859
    benklocek
    Participant

    Here’s the list of names as set by default: http://hookr.io/functions/bbp_get_dynamic_roles/

    You should be able to use:

    $roles = bbp_get_dynamic_roles();
    $print_r( $roles );

    to see what the names of your roles are.

    #181809
    tpsr51
    Participant

    I am trying to replace all the topics in a specific forum with the new topic form whenever I press on the Create New Topic button.
    Then I tried to ajaxify it using the shortcode [bbp-topic-form], but the form didn’t showed up…

    In the functions.php I have added this:

    
    wp_enqueue_script( 'script', get_stylesheet_directory_uri() . '/js/topicButton.js', array ( 'jquery' ), 1.1, true);
    wp_localize_script( 'script', 'script', array(
    	'ajaxurl' => admin_url( 'admin-ajax.php' )
    ));
    ..
    ..
    add_action('wp_ajax_script', 'scriptfunc');
    add_action('wp_ajax_nopriv_script', 'scriptfunc');
    function scriptfunc() {
    	echo do_shortcode("[bbp-topic-form]");
    	die();
    } 

    The ajax file

    (function($) {
    	
    		function find_forum_id() {
    			var forumidval = document.getElementsByTagName("article")[0].id;
    			forumidval = forumidval.replace(/\D/g,'');
    			return parseInt( forumidval );
    		}
    	
    		$(document).on( 'click', '.bbp-new-topic-button', function( event ) {
    			event.preventDefault();
    			
    			forumid = find_forum_id();
    			
    			$.ajax({
    				url: ajaxurl,
    				type: 'post',
    				data: {
    					action: 'scriptfunc',
    					forumid: forumid
    				},
    				beforeSend: function() {
    					$('.bbp-topics').remove();
    				},
    				success: function( html ) {
    					$('article').append( html );
    				}
    			})
    		
    		});
     })(jQuery);
    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

    #181772
    dropshot
    Participant

    @JohnJamesJacoby

    The problem is if you create a page with the same slug as your forum index and insert the forum index shortcode, this page will just be a page that happens to contain bbpress content. It isn’t a real bbpress page.

    If you would like your index page (mysite.com) as your forum index how can you make that a real forum page? NOT just a page that contains bbpress content.

    You can’t set your forum root index to nothing cause this will make default value (forums) to reappear. Of course you can 301 redirect /forums to index page. But as mentioned, this will display a page with forum content. NOT a real forum page.

    Appreciate any kind of suggestions.

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

    if it looks like a theme issue then try

    bbpress wp4 fix

    or

    bbpress wp4 fix2

    #181744
    Robin W
    Moderator

    yes it will get your admin back.

    Then :

    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

    #181591
    Robin W
    Moderator

    This is in a file called form-anonymous.php :

    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/form-anonymous.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/form-anonymous.php
    bbPress will now use this template instead of the original
    and you can amend this

    you will see that lines 26-29 contain

    <p>
    			<label for="bbp_anonymous_email"><?php _e( 'Mail (will not be published) (required):', 'bbpress' ); ?></label><br />
    			<input type="text" id="bbp_anonymous_email"   value="<?php bbp_author_email(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_anonymous_email" />
    		</p>

    Just delete this and save, and this field will not be shown

    #181536

    In reply to: My Forum page crashes

    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

    #181408
    dropshot
    Participant

    Thanks for your reply.

    This might seem obvious for the creator of bbpress. But it really isn’t. I think you need to drop the word “partner” cause that is really confusing.

    Method 1:
    This doesn’t do anything other than adds a page that you can add to your navigation. You could instead basically add a custom link to your navigation because the page itself isn’t displayed since you have the same slug as you set for forum root index. The default bbpress index will be displayed. Having a wordpress-page is just confusing since nothing added to that page is displayed.

    Method 2:
    This method doesn’t mention the slug at all so I presume the slug here is different then the one set as forum root index. Fine. Name your page anything and add anything along with the shortcode [bbp-forum-index]. There you have it. You think…

    You think you have customized your forum index page. But in fact that page is just a non-bbpress page that happens to have bbpress content in it. How so?

    1) Your breadcrumb forum index link will still display the default index page.

    2) And if you use the bbp style pack to add login-logout-buttons to your navigation it won’t recognize your custom index page as a bbpress-page. (The buttons won’t display when option is set to only display on forum pages)

    Maybe it’s just me, but If I create my own index page, of course I want that page to be the index page linked to in the breadcrumbs as well.

    So. I’m struggling with the word “partner” here. In my mind it says a wordpress page can partner with bbpress and act as the forum index page. As a replacement not as an addition. It can’t be that you should have TWO different index pages, can it?

    So, how do I create a custom forum index page that is recognized as a forum page and acts as the forum index page in the breadcrumbs?

    Cheers!

    #181383
    dropshot
    Participant

    Customize your Forums root. Partner with a WordPress Page and use Shortcodes for more flexibility.

    What does this mean??

    I’ve set the forums root to “forums”. Then I’ve created a WP-page with slug “forums” and included some shortcodes.

    The WP-page is ignored, so content displayed on /forums is the bbpress default index page.

    What does this mean: “Partner with a WordPress Page and use Shortcodes for more flexibility.”??

    How do I replace the default index with a WP-page?

    #181371
    ddevries
    Participant

    I just installed bbPress 2.5.12 on WordPress 4.7.2. I created a test forum with one topic. I haven’t changed any of the default settings. When I load the forum page, I get this:

    Forums
    by (Edit)
    Search for: Home › Forums Forum Topics Posts Freshness Cardstock 1 1 1 hour, 55 minutes ago Cheryl

    It looks just like a bunch of text with no formatting. Here’s the link: http://livelovecards.com/forums/

    I haven’t tried disabling plugins because I have a lot of them and my site is subscription, so I don’t want to disrupt service. I’m hoping this is an obvious problem to someone out there.

    Thanks so much for your help!
    Darlene

    #181366

    In reply to: Sidebar won’t show

    Stanjop
    Participant

    I think it might be due to use of the ‘Full Width’ page template. There is a ‘default page’ template which i can choose while adding pages, but i don’t know the location of the .php file of that one.

    #181300

    In reply to: New Users Can’t Post

    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,426 through 1,450 (of 6,789 total)
Skip to toolbar