Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 12,851 through 12,875 (of 14,028 total)
  • @robin-w

    Moderator

    great – if you fix it, please post the solution here to help others !

    @robin-w

    Moderator

    probably a conflict

    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

    ok, so put this in your functions file

    //This function adds the author to the reply
    function bbp_author_display () {
    	if (bbp_get_reply_author_id() == bbp_get_topic_author_id() ) {
    	echo '<span class="topic-author">' ;
    	echo '<ul><li>' ;
    	echo 'Topic Author' ; 
    	echo '</li></ul></span>' ;
    	}
    	else return ;
    	}
    	
    	add_action ('bbp_theme_after_reply_author_details', 'bbp_author_display') ;

    and this in your style.css

    #bbpress-forums .topic-author{
      background: none repeat scroll 0 0 #5BB75B;
      color: #FFFFFF;
      display: block;
      padding: 5px;
    }
    

    Job done !

    @robin-w

    Moderator

    Interesting, this doesn’t happen on my site, but then all sites are different !

    When you say that the ‘dropdown’ is missing do you mean the list that is shown beside ‘use an existing topic in this forum’

    and what happens – is it missing, or has blank entries or what?

    Come back and I’ll try to help further

    @robin-w

    Moderator

    ‘if topic author is the same as reply author display label above reply author avatar, or below forum role. IF not the same dont display anything. ‘

    Is this now the function you want or is this additional to other stuff – sorry I’m a bit confused !

    In reply to: Requirement Questions

    @robin-w

    Moderator

    Multiple user levels https://wordpress.org/support/plugin/bbp-private-groups plugin should do this
    Capacity to see at a glance live updated list of who has commented – could be coded but is not in the current version.
    Is there a way to integrate Dropbox – not that I know
    He would like a tag cloud also. – yes that’s there

    @robin-w

    Moderator

    lots care, but just coming on here and spouting abuse is hardly likely to create a discussion !

    @robin-w

    Moderator

    ‘Small world….you don’t cycle do you ?? ‘

    No, strictly powered transport !

    Has the profile ever worked, or is this a new isuue- and how old is the forum ?

    @robin-w

    Moderator

    you’re just down the road from me, I’m in Rotherfield!

    I’ll take a look this evening or tomorrow and come back !

    In reply to: Help with forum layout

    @robin-w

    Moderator

    bbpress will use your standard page template.

    see

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

    for the order and which one to look for.

    But it is styling that will determine the width.

    look in your theme’s style.css for code something like

    #sidebar
    {
    padding: 20px 0 10px 0;
    margin-left: 545px;
    width: 190px;
    }

    and you may need to play with the content

    #content {
    float: left;
    width:500px;
    }

    If you just want it changed for bbpress pages, then try

    #bbpress-forums.sidebar
    {
    padding: 20px 0 10px 0;
    margin-left: 545px;
    width: 190px;
    }

    may or may not work, css not my strong point !

    @robin-w

    Moderator

    can you give us a link to your website?

    @robin-w

    Moderator

    ‘You can pass wp_query args into bb_has_topics(), but I can only only come up with code that shows topics from one forum – not multiple forums.’

    I’m afraid I don’t have time at the moment to do lots of coding for others, but take a look at this plugin

    bbp Private Groups

    Look at includes/topics.php for how I did this for private groups – called pg_has_topics, it may give you some help – I used ‘post__in’ to create a list of topics to display

    So you could do a coupe of loops to create this list and the pass that to the bbp_has_topics function.

    ‘post__in’ is realy, useful sometimes

    see

    https://codex.wordpress.org/Class_Reference/WP_Query

    @robin-w

    Moderator

    if marked private, then your csv compare should pick that up !

    @robin-w

    Moderator

    ok, could be lots of things, presume you’ve referred back to your developer?

    and presume this is a new installation of bbpress, so has never worked?

    I’d start by trying :

    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

    Great stuff !

    It always amazes me how long I spend to produce so little code 🙂

    Bet you learned a lot along the way though!

    @robin-w

    Moderator

    great !

    @robin-w

    Moderator

    @robkk

    ‘I would like the topic starter label throughout a topic , for whatever number pages it may have ‘

    So Stephen’s advice is good then, follow his link and put the topic at the start of each page !

    In reply to: Freshness Date Format

    @robin-w

    Moderator

    great -come back if you need to !

    @robin-w

    Moderator

    great – so you’re fixed ?

    @robin-w

    Moderator

    Sorry, yes I have been elsewhere.

    Sorry I’m not good enough to know how to do this, hopefully someone will be along to help you – sorry !

    @robin-w

    Moderator

    ok, may be a little rough, but seems to work

    put this in your functions file

    //This function adds the author to the reply
    function reply_display_author () {
    	global $countr ;
    	if ($countr == 5 ) {
    	echo '<span class="bbp-topic-started-by">' ;
    	printf( __( 'Topic started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) )) ; 
    	echo '</span>' ;
    	}
    	else {
    	return ;
    	}
    	}
    	
    	add_action ('bbp_theme_before_reply_content', 'reply_display_author') ;
    	

    and then create a file called bbpress in the root of your theme and copy across loop-replies.php

    then amend from line 42 so that it reads

    <?php if ( bbp_thread_replies() ) : ?>
    
    			<?php bbp_list_replies(); ?>
    			
    			
    		<?php else : ?>
    			<?php global $countr ;
    			$countr=-1 ; ?>
    		
    			<?php while ( bbp_replies() ) : bbp_the_reply(); ?>
    			
    			<?php 
    			$countr ++ ; 
    			
    			<?php bbp_get_template_part( 'loop', 'single-reply' ); ?>
    
    			<?php endwhile; ?>
    			
    			
    		<?php endif; ?>

    seems to do the trick !

    @robin-w

    Moderator

    ok, so do you get this when you click edit on the profile page, or when you try to access the profile page?

    @robin-w

    Moderator

    Is it all or just some users?

    try setting yourself up with a new username and participant and see if you can replicate the problem.

    what are they/you seeing – ie do they get the edit option?

    @robin-w

    Moderator

    This dropped into your functions file puts it in every reply – just thinking about how you’re get every 5th !

    //This function adds the author to the reply
    function reply_display_author () {
    	if( get_post_type() == 'reply' ) {
    	echo '<span class="bbp-topic-started-by">' ;
    	printf( __( 'Topic started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'size' => '14' ) )) ; 
    	echo '</span>' ;
    	}
    	else {
    	return ;
    	}
    	}
    add_action ('bbp_theme_before_reply_content', 'reply_display_author') ;

    @robin-w

    Moderator

    Great – keep looking – there must be a reason , and if not database, then next will be
    checking plugins are the same (inc version)
    wordpress is the same (inc version) and
    theme is the same (inc version).
    Then it would be either

    file corruption, so re-installing all the above software.
    or server issue, check server specific files, check same php, MySQL and other software versions.

    but there must be a cause !

Viewing 25 replies - 12,851 through 12,875 (of 14,028 total)