Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 7,201 through 7,225 (of 8,346 total)

  • Robin W
    Moderator

    @robin-w

    Sorry, yes I do understand your English, but I don not understand what you are trying to do.

    Can you give an example of what you wish to change?


    Robin W
    Moderator

    @robin-w

    ‘I have the theme setup running on two domains, the one i use for testing, the funny thing is when posting on that site, the first post of the thread is shown.’

    This would tend to suggest that something is different or not set the same. Are both on remote servers, or is one on a local PC running wamp or mamp?

    Not showing a topic is a common symptom, but with many different causes, so there is no one solution.

    There are a number of things you can try.

    Resetting permalinks – sometimes fixes – in your WordPress Administration Screens navigate to Settings > Permalinks, select a different permalink structure and save. Then select your preferred permalink structure and save again.

    Repair Forums – Dashboard>tools>forums>repair forum and run one at a time.

    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, switch to a default theme such as twentytwelve, and see if this fixes.


    Robin W
    Moderator

    @robin-w

    I can if you give me a bit more detail 🙂

    What are you trying to do?

    In reply to: bbp-forum-info

    Robin W
    Moderator

    @robin-w

    put the following in your functions file

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'Forum' ) {
    	$translated_text = 'Tournaments' ;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    

    Robin W
    Moderator

    @robin-w

    You would need to cut some code, but basically you would be looking at

    using some code from the widget to find the latest topic

    then maybe using the shotcodes

    [bbp-single-topic id=$topic_id] – Display a single topic. eg. [bbp-single-topic id=4096]

    and if it has a reply

    [bbp-single-reply id=$reply_id] – Display a single reply eg. [bbp-single-reply id=32768]

    using the do-shortcode function https://codex.wordpress.org/Function_Reference/do_shortcode

    If you do this, please post the result here for the benefit of others !


    Robin W
    Moderator

    @robin-w

    Your arcade-basic theme claims to be compatible with bbpress, so I’d also look at plugins

    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.


    Robin W
    Moderator

    @robin-w

    ok, can you look at

    Codex

    getting started part 1, and see if anything in there helps

    Come back

    In reply to: CSS Plugin

    Robin W
    Moderator

    @robin-w

    @blankstage – great – I only started with wrodpress and bbpress 13 months ago, and have learnt a fantastic amount since then !

    In reply to: Freshness Date Format

    Robin W
    Moderator

    @robin-w

    or it may be the php version you are using – can you let me know what this is if you know?

    In reply to: Freshness Date Format

    Robin W
    Moderator

    @robin-w

    @morgensonne

    Interesting – I’ve just deleted and re-downloaded the plugin from wordpress and it activated with no problems.

    However I would be interested if your test server is a ‘local’ one using wamp or mamp? that might be the issue.

    Please come back either way, and I’ll try and resolve for you.


    Robin W
    Moderator

    @robin-w

    no plugin, but this page shows how to add them using code

    (I haven’t quite finished it, but it should work!)

    Custom Capabilities


    Robin W
    Moderator

    @robin-w

    ok, the answer is somewhere in this function

    function bbp_title( $title = '', $sep = '»', $seplocation = '' ) {
    
    	// Title array
    	$new_title = array();
    
    	/** Archives **************************************************************/
    
    	// Forum Archive
    	if ( bbp_is_forum_archive() ) {
    		$new_title['text'] = bbp_get_forum_archive_title();
    
    	// Topic Archive
    	} elseif ( bbp_is_topic_archive() ) {
    		$new_title['text'] = bbp_get_topic_archive_title();
    
    	/** Edit ******************************************************************/
    
    	// Forum edit page
    	} elseif ( bbp_is_forum_edit() ) {
    		$new_title['text']   = bbp_get_forum_title();
    		$new_title['format'] = esc_attr__( 'Forum Edit: %s', 'bbpress' );
    
    	// Topic edit page
    	} elseif ( bbp_is_topic_edit() ) {
    		$new_title['text']   = bbp_get_topic_title();
    		$new_title['format'] = esc_attr__( 'Topic Edit: %s', 'bbpress' );
    
    	// Reply edit page
    	} elseif ( bbp_is_reply_edit() ) {
    		$new_title['text']   = bbp_get_reply_title();
    		$new_title['format'] = esc_attr__( 'Reply Edit: %s', 'bbpress' );
    
    	// Topic tag edit page
    	} elseif ( bbp_is_topic_tag_edit() ) {
    		$new_title['text']   = bbp_get_topic_tag_name();
    		$new_title['format'] = esc_attr__( 'Topic Tag Edit: %s', 'bbpress' );
    
    	/** Singles ***************************************************************/
    
    	// Forum page
    	} elseif ( bbp_is_single_forum() ) {
    		$new_title['text']   = bbp_get_forum_title();
    		$new_title['format'] = esc_attr__( 'Forum: %s', 'bbpress' );
    
    	// Topic page
    	} elseif ( bbp_is_single_topic() ) {
    		$new_title['text']   = bbp_get_topic_title();
    		$new_title['format'] = esc_attr__( 'Topic: %s', 'bbpress' );
    
    	// Replies
    	} elseif ( bbp_is_single_reply() ) {
    		$new_title['text']   = bbp_get_reply_title();
    
    	// Topic tag page
    	} elseif ( bbp_is_topic_tag() || get_query_var( 'bbp_topic_tag' ) ) {
    		$new_title['text']   = bbp_get_topic_tag_name();
    		$new_title['format'] = esc_attr__( 'Topic Tag: %s', 'bbpress' );
    
    	/** Users *****************************************************************/
    
    	// Profile page
    	} elseif ( bbp_is_single_user() ) {
    
    		// User is viewing their own profile
    		if ( bbp_is_user_home() ) {
    			$new_title['text'] = esc_attr_x( 'Your', 'User viewing his/her own profile', 'bbpress' );
    
    		// User is viewing someone else's profile (so use their display name)
    		} else {
    			$new_title['text'] = sprintf( esc_attr_x( "%s's", 'User viewing another users profile', 'bbpress' ), get_userdata( bbp_get_user_id() )->display_name );
    		}
    
    		// User topics created
    		if ( bbp_is_single_user_topics() ) {
    			$new_title['format'] = esc_attr__( "%s Topics",        'bbpress' );
    
    		// User rueplies created
    		} elseif ( bbp_is_single_user_replies() ) {
    			$new_title['format'] = esc_attr__( "%s Replies",       'bbpress' );
    
    		// User favorites
    		} elseif ( bbp_is_favorites() ) {
    			$new_title['format'] = esc_attr__( "%s Favorites",     'bbpress' );
    
    		// User subscriptions
    		} elseif ( bbp_is_subscriptions() ) {
    			$new_title['format'] = esc_attr__( "%s Subscriptions", 'bbpress' );
    
    		// User "home"
    		} else {
    			$new_title['format'] = esc_attr__( "%s Profile",       'bbpress' );
    		}
    
    	// Profile edit page
    	} elseif ( bbp_is_single_user_edit() ) {
    
    		// Current user
    		if ( bbp_is_user_home_edit() ) {
    			$new_title['text']   = esc_attr__( 'Edit Your Profile', 'bbpress' );
    
    		// Other user
    		} else {
    			$new_title['text']   = get_userdata( bbp_get_user_id() )->display_name;
    			$new_title['format'] = esc_attr__( "Edit %s's Profile", 'bbpress' );
    		}
    
    	/** Views *****************************************************************/
    
    	// Views
    	} elseif ( bbp_is_single_view() ) {
    		$new_title['text']   = bbp_get_view_title();
    		$new_title['format'] = esc_attr__( 'View: %s', 'bbpress' );
    
    	/** Search ****************************************************************/
    
    	// Search
    	} elseif ( bbp_is_search() ) {
    		$new_title['text'] = bbp_get_search_title();
    	}
    
    	// This filter is deprecated. Use 'bbp_before_title_parse_args' instead.
    	$new_title = apply_filters( 'bbp_raw_title_array', $new_title );
    
    	// Set title array defaults
    	$new_title = bbp_parse_args( $new_title, array(
    		'text'   => $title,
    		'format' => '%s'
    	), 'title' );
    
    	// Get the formatted raw title
    	$new_title = sprintf( $new_title['format'], $new_title['text'] );
    
    	// Filter the raw title
    	$new_title = apply_filters( 'bbp_raw_title', $new_title, $sep, $seplocation );
    
    	// Compare new title with original title
    	if ( $new_title === $title )
    		return $title;
    
    	// Temporary separator, for accurate flipping, if necessary
    	$t_sep  = '%WP_TITILE_SEP%';
    	$prefix = '';
    
    	if ( !empty( $new_title ) )
    		$prefix = " $sep ";
    
    	// sep on right, so reverse the order
    	if ( 'right' === $seplocation ) {
    		$new_title_array = array_reverse( explode( $t_sep, $new_title ) );
    		$new_title       = implode( " $sep ", $new_title_array ) . $prefix;
    
    	// sep on left, do not reverse
    	} else {
    		$new_title_array = explode( $t_sep, $new_title );
    		$new_title       = $prefix . implode( " $sep ", $new_title_array );
    	}
    
    	// Filter and return
    	return apply_filters( 'bbp_title', $new_title, $sep, $seplocation );
    }
    

    a filter such as

    function amend_title () {
    	if ( bbp_is_single_forum() ) {
    		$new_title['text']   = 'YA book forum' ;
    		$new_title['format'] = esc_attr__( 'YA book Forum', 'bbpress' );
    		}
     return $new_title;
    }
    add_filter('bbp_before_title_parse_args', 'amend_title' );
    

    should sort it but doesn’t, and I’m too tired to work out why 🙂

    Over to you !


    Robin W
    Moderator

    @robin-w

    ok, I can see that – don’t know how you would fix – sorry ! Hopefully someone who can will be along


    Robin W
    Moderator

    @robin-w

    hmm, I’d check for a conflict first

    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, switch to a default theme such as twentytwelve, and see if this fixes.

    Then I’d re-download the software in case this was an issue

    come back if that doesn’t work


    Robin W
    Moderator

    @robin-w

    I think I understand

    go into dashboard>settings>forums and change the slugs for forum root and single forum root. that will change the url

    If you want to change the breadcrumb, then see

    Layout and functionality – Examples you can use

    you can also set

    ‘home_text’ , ‘root_text’ and ‘current_text’

    using this code

    If that’s not what you are after – come back !


    Robin W
    Moderator

    @robin-w

    @gianjj – thanks for adding this – very helpful, and please continue to update us !

    I forget that it was only 13 months ago that I started using bbPress – seems like years now !

    In reply to: CSS Plugin

    Robin W
    Moderator

    @robin-w

    @blankstage – not a bad description of what css does. css (cascade style sheets) changes the way the information is displayed – for instance font sizes, colours, where stuff appears, backgrounds. So the core code decides what is displayed, and css how !

    some themes allow you to alter css, some don’t, but you can use a plugin such as ‘simple css’ to add css code without needing to access the backend.


    Robin W
    Moderator

    @robin-w

    The image in the set by step guide is of several forums categories, with sub forums under them.

    If you just want say the last 4 topics, I have a think, maybe easy, maybe not !


    Robin W
    Moderator

    @robin-w

    great – glad you’re fixed !


    Robin W
    Moderator

    @robin-w

    @nirgalo

    Thanks for your comments, I have not been ignoring you, I have been running a training course all today.

    It’s great that you plan to improve an existing plugin, this is exactly what community software is all about, and I really hope that you will share it when done to help others :-).

    I would hasten to add I have nothing to do with bbPress, I just help out on the forum, and have written a few bbPress plugins, so views are my own!

    There’s lots I’d like to see in a core bbPress or as well maintained plugins, but someone has to write the stuff, and as it’s free no-one gets paid to do so. Where there is perceived demand, then hopefully the core guys will add it.

    Read/unread is a popular feature on many forums, I don’t use it on my own as it’s not relevant, but I do take advantage of other forum sites that do, and you could easily argue that it should be core, but then of course it would only be the way that the bbPress guys want it to work, which could be either of the plugins that you don’t like !

    Of course ones person’s standard is another’s stifling of innovation, and that community software can grow organically is both an argument for it, and an annoyance with it 🙂

    Anyway, I would love to see a read/unread plugin along the lines you propose, so if you’re the man to code it, and then share with us, you’ll be very welcome here ! necessity is the mother of invention.

    @blankstage – hey thanks for your comments- they cheered me up after a long day !


    Robin W
    Moderator

    @robin-w

    The bbPress philosophy is :

    ‘We’re keeping things as small and light as possible while still allowing for great add-on features through WordPress’s extensive plugin system. What does all that mean? bbPress is lean, mean, and ready to take on any job you throw at it.’

    see

    About

    There are literally hundreds of bits that could be added, which some/many/all forums either need or don’t need !

    Plugins are written by the community to add features to bbPress, and maintained where the author is both able and willing.

    Remember all this software is free, and relies on volunteers to make it all work – it takes many hours to write and as long to maintain a good plugin.

    You could try ‘mark as read’ as a possible solution.

    https://wordpress.org/plugins/bbpress-mark-as-read/


    Robin W
    Moderator

    @robin-w

    great – glad you’re fixed !


    Robin W
    Moderator

    @robin-w

    ‘I have some forums that only serves as main forum for sub-forums’

    Try setting them as categories rather than forums – on the edit forum page you will see the option on the right hand side

    ‘It would also be nice if members could comment on a post, but not create new topics.’

    You can create a custom role to do this – see

    Layout and functionality – Examples you can use

    Layout and functionality – Examples you can use

    If you are not very good at code, come back and I will try to help further


    Robin W
    Moderator

    @robin-w

    ok, on your breadcrumb issue see

    Layout and functionality – Examples you can use

    On your weird forums page, given that it says “continue reading” I suspect that your theme is treating this as a post, and just giving what it thinks is an ‘excerpt’.

    I’d suggest you next try setting up a page called ‘forums’ and using [bbp-forum-index] to get it to render. ie

    Step by step guide to setting up a bbPress forum – Part 1

    method 2

    If this doesn’t work, then come back


    Robin W
    Moderator

    @robin-w

    The only one I can see out of position is

    Speediefy speedie

    Is that what you mean?

Viewing 25 replies - 7,201 through 7,225 (of 8,346 total)