Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 13,701 through 13,725 (of 14,275 total)
  • In reply to: Creating a new forum

    @robin-w

    Moderator

    I don’t directly have any experience of maintenance plugins.

    However creating a test/backup site, whilst requiring some further learning, is of great benefit, and discussed in the documentation here

    https://codex.bbpress.org/creating-a-test-site/

    @robin-w

    Moderator

    Sorry, I failed to add the other bit of code you need !!

    The last paragraph should have read :

    …and then on your page template add this function where you want it.

    <?php if(is_front_page() ) { display_latest_topic () ; } ?>
    

    I’ve wrapped it in an if is_front_page statement so it only shows on the frontpage. You night need to use is_home instead depending on how your blog is set up.

    If you want it in the body, you should put it within the content div, either before or after the loop depending if you want it at the of or bottom of the page. You may need to play a bit !

    If any of that isn’t clear, do come back, but let me know what theme you’re using as well

    @robin-w

    Moderator

    ok, so drop the following into your functions file

    //  Display just latest topic
    function display_latest_topic() {  
    
    	$topics_query = array(
    					'post_type'           => bbp_get_topic_post_type(),
    					'post_parent'         => $settings['parent_forum'],
    					'posts_per_page'      => '1',
    					'post_status'         => array( bbp_get_public_status_id(), bbp_get_closed_status_id() ),
    					'ignore_sticky_posts' => true,
    					'no_found_rows'       => true,
    					'order'               => 'DESC'
    				);
    				
    	$lt_query = new WP_Query( $topics_query );
    		
    	while ( $lt_query->have_posts() ) {
    			
    		$lt_query->the_post();
    			$topic_id    = bbp_get_topic_id( $lt_query->post->ID );
    ?>
    <h2> Latest topic </h2>
    <h3> <a href="<?php bbp_reply_url(); ?>" class="bbp-reply-permalink"><?php bbp_topic_title($topic_id); ?></a></h3>
    		
    <div id="bbpress-forums">
    		
    		<div id="post-<?php bbp_reply_id(); ?>" class="bbp-reply-header">
    
    	<div class="bbp-meta">
    
    		<span class="bbp-reply-post-date"><?php bbp_reply_post_date(); ?></span>
    
    		<a href="<?php bbp_reply_url(); ?>" class="bbp-reply-permalink">#<?php bbp_reply_id($topic_id); ?></a>
    		
    	</div><!-- .bbp-meta -->
    
    </div><!-- #post-<?php bbp_reply_id(); ?> -->
    
    <div <?php bbp_reply_class(); ?>>
    
    	<div class="bbp-reply-author">
    
    		<?php bbp_reply_author_link( array( 'post_id' => $topic_id, 'sep' => '<br />', 'show_role' => true ) ); ?>
    
    		</div><!-- .bbp-reply-author -->
    
    	<div class="bbp-reply-content">
    
    		<?php bbp_reply_content(); ?>
    
    	</div><!-- .bbp-reply-content -->
    
    </div><!-- .reply -->
    </div><!--div bbpress-forums--->
    
    	<?php
    		
    	} }

    and then on your page template add this function where you want it. I’ve wrapped it in an if is_front_page statement so it only shows on the frontpage. You night need to use is_home instead depending on how your blog is set up.

    If you want it in the body, you should put it within the content div, either before or after the loop depending if you want it at the of or bottom of the page. You may need to play a bit !

    In reply to: Forum Issue

    @robin-w

    Moderator

    Great, glad you’re fixed !

    In reply to: Freshness Date Format

    @robin-w

    Moderator

    Now available as a plugin on

    https://wordpress.org/plugins/bbp-last-post/

    @robin-w

    Moderator

    quickest way would be for you to check out the code in the plugin bbp-user-information on my website.

    bbp Profile Information plugin

    This adds 4 fields to the display under the forum role in topics/replies and in the profile (and make those field editable for later on), and you can see how these are set up and used.

    In particular under the /includes folder you’ll find the display.php shows how to create function to add this to the correct area via a filter.

    add_action ('bbp_theme_after_reply_author_details', 'bbp_user_information') ;
    

    and

    add_action ('bbp_template_after_user_profile', 'user_profile_bbp_user_information') ;
    

    and within this you’ll see the code

    $usermeta = get_userdata( $user_id, 'ui_label1' );
    			echo $usermeta->ui_label1;
    

    where ‘ui_label1’ is the metadata field and takes the data from the usermeta table and displays it.

    In reply to: No toolbar available

    @robin-w

    Moderator

    ‘I have probably checked 100 times if this is ticked’

    Thanks, but always worth asking.

    ‘This is the default bbPress theme. ‘

    No I meant the wordpress theme you are using. switch to one such as twenty eleven to see if that makes a difference

    In reply to: No toolbar available

    @robin-w

    Moderator

    oh, and in
    Dashboard>settings>forums> forum features have you ticked “Post formatting” to enable this toolbar?

    In reply to: No toolbar available

    @robin-w

    Moderator

    Thanks for the extra info, that was the part that my brain had not seen !

    Sorry to suggest this (given that this is a theme site), but have you switched to a default theme such as twentytwelve to eliminate a theme issue?

    @robin-w

    Moderator

    I can’t say that it has ever occurred to me that people might want to print whole threads !

    Normally they (or at least I do) just copy/paste bits they need

    I just tried a couple including print friendly, and neither worked !

    Don’t se any quick or easy way to do this.

    In reply to: Forum Issue

    @robin-w

    Moderator

    Ok, I can see both the forums and topics.

    So is the issue now resolved, or does it apply to logged in subscrtibers (apart from admins)?

    @robin-w

    Moderator

    Ok I have worked a way to do it.

    But you will need to

    a) add some code to your child theme’s function file and
    b) add a line of code into the page template your home page is using

    How much capability do you have to do that?

    In reply to: No toolbar available

    @robin-w

    Moderator

    Apart from just posting a picture, please explain what your problem is.

    I do not know if you are still talking about a toolbar or something else.

    Please explain in detail what you issue is.

    We are here to try to help you, but need proper requests please.

    In reply to: Fatal error

    @robin-w

    Moderator

    Turn off all other plugins, and see if that fixes the problem. If the problem is resolved, add back one at a time to see which is causing the conflict.

    @robin-w

    Moderator

    Ok, so this theme has an upmarket homepage.

    Since this is a paid theme, with paid support, I’d suggest you go to their website for help, they should be familiar with bbPress and know how to get it to work with your theme.

    http://themeforest.net/item/sahifa-responsive-wordpress-newsmagazineblog/2819356/support

    @robin-w

    Moderator

    If you are talking about the ip address underneath the avatar on topics and replies, this only displays for users with the keymaster role – so give your forum users the participant role and they’ll not see that bit.

    @robin-w

    Moderator

    Do you want :

    just the latest reply (or topic is no replies)
    The title or all the content?

    @robin-w

    Moderator

    Ok, I think you’ve done everything right, so suspect it is the theme and bbpress not working together correctly. The solution will probably be very easy, but as I don’t have access to that theme I cannot really help further.

    Given that you have a paid theme and are on wp-engine I’d use both these routes to get detailed support.

    Firstly I’d go to the theme support site

    http://themeforest.net/item/brooklyn-creative-one-page-multipurpose-theme/6221179/support

    and if that fails then if needed to wp-engine, who have both experts and access to your site

    In reply to: Creating a new forum

    @robin-w

    Moderator

    then check for a plugin or theme conflict

    Check other plugins

    Check that no other plugins are affecting this.

    Turn off all other plugins, and see if that fixes the problem. If the problem is resolved, add back one at a time to see which is causing the conflict.

    Check themes

    If plugins are not the cause, the it may be a theme issue. Switch to a default theme, such as twentytwelve, and test.

    In reply to: bbPress 2.5.3

    @robin-w

    Moderator

    @azoka9 Implement what, a forum, the upgrade, the plugin?

    @robin-w

    Moderator

    do you have an actual forum page

    viz

    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/ section 3, and which way is I set up?

    In reply to: Creating a new forum

    @robin-w

    Moderator

    so are you doing this through

    Are you doing this through

    Dashboard>forums>new forum?

    @robin-w

    Moderator

    Is this not still the same issue as

    bbp-topic-index pagination URL fail if used on homepage

    In which case come back with the answers to my Q’s and I’ll try and help further

    Your theme is possibly key to this.

    In reply to: Creating a new forum

    @robin-w

    Moderator

    Are you doing this through

    Dashboard>forums>new forum?

    and what role have you given yourself

    Dashboard>Users> edit user and select your username

    You’ll see at the bottom of the edit screen your bbpress role

    come back if I can help further

    @robin-w

    Moderator

    You may well be right, and posting in both is a good policy – as long as you copy any good answers across so that people know a) that it’s been sorted and b) what the answer is !

Viewing 25 replies - 13,701 through 13,725 (of 14,275 total)