Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 13,601 through 13,625 (of 14,195 total)
  • @robin-w

    Moderator

    Spam, or is there a real question here?

    If so, can you explain what exactly what help you need related to bbPress.

    @robin-w

    Moderator

    “I needed to add the form, topic and forum manually [bbp-topic-index] [bbp-topic-form][bbp-forum-index] and have not found a manual solution for the login ([bbp-topic-login] didn’t work..))”

    See the documentation for set up details including login in sidebar

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


    and

    Layout and functionality – Examples you can use


    for setting up menu and modal logins

    As for your 404 error, I presume that the urls are correct, for instance

    http://www.hightearecepten.nl/recipe/vijgencompote/

    works with bbpress deactivated, but not when it is activated?

    I’d check first whether there is a plugin conflict, and then a theme conflict viz ;

    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, then it may be a theme issue. Switch to a default theme, such as twentytwelve, and test.

    If it is Themeforest, I’d raise it with them, as it is a paid theme, and with over 1 million bbpress downloads they should have seen it, or know what to do. I have seen some comments that some themeforest themes do not support bbPress, but don’t know about this one.

    @robin-w

    Moderator

    Ok, so

    1. Can you tell me what wordpress theme you’re using or post the url.
    2. If I said “copy, rename and edit this xx.php file” would you be terrified ?

    In reply to: Creating a new forum

    @robin-w

    Moderator

    “It is working now, though I don’t know why.”

    It’s a computer – if we understood them we’d need brains the size of planets !

    Glad you’re fixed !

    In reply to: Forum Question

    @robin-w

    Moderator

    ok, so create the forum as ‘private’ – you see a visibility setting on the forum page when you create it.

    Then drop this code into your (child)themes functions file.

    //code to add tutor role 
    
    function add_tutor_role( $bbp_roles )
    {
    	/* Add a role called Tutor */
    	$bbp_roles['bbp_tutor'] = array(
    		'name' => 'Tutor',
    		'capabilities' => custom_capabilities( 'bbp_tutor' )
    		);
    	return $bbp_roles;
    }
     
    add_filter( 'bbp_get_dynamic_roles', 'add_tutor_role', 1 );
    
    function tutor_role_caps_filter( $caps, $role )
    {
    	/* Only filter for roles we are interested in! */
    	if( $role == 'bbp_tutor' )
    		$caps = custom_capabilities( $role );
     
    	return $caps;
    }
     
    add_filter( 'bbp_get_caps_for_role', 'tutor_role_caps_filter', 10, 2 );
    
    function custom_capabilities( $role )
    {
    	switch ( $role )
    	{
    		 
    		/* Capabilities for 'tutor' role */
    		case 'bbp_tutor':
    			return array(
    				// Primary caps
    				'spectate'              => true,
    				'participate'           => false,
    				'moderate'              => false,
    				'throttle'              => false,
    				'view_trash'            => false,
     
    				// Forum caps
    				'publish_forums'        => false,
    				'edit_forums'           => false,
    				'edit_others_forums'    => false,
    				'delete_forums'         => false,
    				'delete_others_forums'  => false,
    				'read_private_forums'   => true,
    				'read_hidden_forums'    => false,
     
    				// Topic caps
    				'publish_topics'        => false,
    				'edit_topics'           => false,
    				'edit_others_topics'    => false,
    				'delete_topics'         => false,
    				'delete_others_topics'  => false,
    				'read_private_topics'   => true,
     
    				// Reply caps
    				'publish_replies'       => false,
    				'edit_replies'          => false,
    				'edit_others_replies'   => false,
    				'delete_replies'        => false,
    				'delete_others_replies' => false,
    				'read_private_replies'  => true,
     
    				// Topic tag caps
    				'manage_topic_tags'     => false,
    				'edit_topic_tags'       => false,
    				'delete_topic_tags'     => false,
    				'assign_topic_tags'     => false,
    			);
    			break;
     
    		default :
    			return $role;
    	}
    }
    

    The set any tutors up with the tutor role in dashboard>users> user and at the bottom of the set up you’ll see forum role.

    If any of that’s not clear or beyond your knowledge, do come back, and I’ll help further

    @robin-w

    Moderator

    If some are getting and one is not, I’d strongly suspect that it is going into the junk mail of the recipient.

    They should be able to add your sites email address to their safe email addresses and the try again !

    @robin-w

    Moderator

    try a forum repair

    Dashboard>tools>forums>repair forums and run one at a time

    All the entries are in the posts table, they are custom posts, so you can’t break then out individually.

    @robin-w

    Moderator

    Great, glad you’re fixed, and I learnt some more about how bbpress works along the way, so was a good challenge !

    In reply to: TwitchTV Integration

    @robin-w

    Moderator

    hmmm… not sure you’re going to achieve this without some major coding and probably wordpress rather than bbpress related for sign in part.

    maybe try

    http://jobs.wordpress.net/

    You can post a ‘project’ on there and someone will offer to do it for you

    @robin-w

    Moderator

    Just one user, or all?

    I’d check the email address in users is absolutely correct.

    @robin-w

    Moderator

    suggest you start with the usual…

    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, then it may be a theme issue. Switch to a default theme, such as twentytwelve, and test.

    In reply to: Buddypress child theme

    @robin-w

    Moderator

    So you’re fixed, yes ?

    In reply to: Forum Question

    @robin-w

    Moderator

    ok, I’ll do some code tomorrow and come back !

    In reply to: No toolbar available

    @robin-w

    Moderator

    can you open up your site again, and I’ll have a look with firebug to see if I can spot an issue

    @robin-w

    Moderator

    Great glad you’re fixed !

    @robin-w

    Moderator

    “When you send out a link to a topic on the forum, you get “No Results Found” ” – sorry I’m being thick – how are you sending out a link – is this in a newsletter or otherwise?

    @robin-w

    Moderator

    ‘is there a simple way…’

    to do what? do you want the new url to look like the old one?

    In reply to: Forum Question

    @robin-w

    Moderator

    You could do this.

    Presuming you only want tutors to see the forum (not the general public), basically you would set the forum as private, this restricts visibility to logged on users with higher than spectator privaledge to see them.

    You would then create a new bbpress role, which has visibility but no access. I think that would be fairly easy – I know how to go about it but have never tested

    If you want to go down this route and test, come back and I’ll make a quick function to set this up for you.

    You would have full rights – keymaster
    Then your clients would have keymaster or moderator role – lets them create forums and new topics (and indeed replies for supplementaries to topics)
    You clients’ tutors would have say “tutor” role, which is the spectator role with visibility to private forums added in.
    Public would see no forums, topics or replies

    In reply to: Creating a new forum

    @robin-w

    Moderator

    are you still in maintenance mode? The toolbar might come back in live?

    @robin-w

    Moderator

    Sort of think that’s how it is designed to work, the idea being that you eye is drawn to the latest unstuck post, and then immediately above it is the latest stuck post, so it works
    sticky – early to late.
    unsticky – late to early.

    Suspect there’s a bit of code you can do to change the order.
    The function bbp_get_stickies

    sits in

    \bbpress\includes\topics\functions.php

    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/

Viewing 25 replies - 13,601 through 13,625 (of 14,195 total)