Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 7,076 through 7,100 (of 14,219 total)
  • @robin-w

    Moderator

    can only suggest that something else is putting it there

    maybe try

    Themes

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

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    @robin-w

    Moderator

    bbpress just uses wordpress login, so

    Themes

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

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Then come back

    In reply to: downloadable files

    @robin-w

    Moderator
    In reply to: downloadable files

    @robin-w

    Moderator

    you mean within here, or within your wordpress site?

    @robin-w

    Moderator

    can you post lines 60-65 here please

    @robin-w

    Moderator

    ok, for the participants trashing topics, install

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Topic/Reply Display items 17,18,& 19

    On the widgets, install
    the ‘widget logic plugin’, and on pages you want the widget, use

    is_bbpress()

    in the condition

    @robin-w

    Moderator

    I think this should work

    add_action('after_setup_theme', 'remove_admin_bar');
    
    function remove_admin_bar() {
    $user_id = get_current_user_id() ;
    $role -= bbp_get_user_display_role($user_id) ;
    if (role == 'bbp_participant' {
    show_admin_bar(false);
    }
    }

    put in your functions file or use the code snippets plugin

    @robin-w

    Moderator

    so it lists

    forum
    sub forum(s)
    topics from forum

    yes ?

    @robin-w

    Moderator

    contact me via

    Contact me

    In reply to: Delete “Header”

    @robin-w

    Moderator

    thanks for your kind comments – much appreciated !!

    @robin-w

    Moderator

    try

    add_action( 'bbp_template_before_forums_loop', 'rew_add_custom_menu'  ); 
    add_action( 'bbp_template_before_topics_loop', 'rew_add_custom_menu'  ); 
    
    function rew_add_custom_menu () {
    echo '<a href= "https://bbpress.org/forums/">customs menu area</a>' ;
    
    }

    @robin-w

    Moderator

    what is the issue with your code above?

    @robin-w

    Moderator

    untested but add this to your functions file or use code snippets plugin

    add_action( 'bbp_template_before_forums_loop', 'rew_add_custom_menu'  ); 
    add_action( 'bbp_template_before_topics_loop'', 'rew_add_custom_menu'  ); 
    
    function rew_add_custom_menu () {
    echo 'your link here' ;
    
    }
    In reply to: Reply to posts

    @robin-w

    Moderator

    ok, so

    1. Save the attached code to your pc, as a new file called reply.js
    2. Create a directory on your theme called ‘js’, and copy the renamed file reply.js to it, so that you end up with wp-content/themes/%my-theme%/js/reply.js

    where %my-theme% is the name of your theme

    Let me know if this works

    addReply = {
    	moveForm : function(replyId, parentId, respondId, postId) {
    		var t = this, div, reply = t.I(replyId), respond = t.I(respondId), cancel = t.I('bbp-cancel-reply-to-link'), parent = t.I('bbp_reply_to'), post = t.I('bbp_topic_id');
    
    		if ( ! reply || ! respond || ! cancel || ! parent )
    			return;
    
    		t.respondId = respondId;
    		postId = postId || false;
    
    		if ( ! t.I('bbp-temp-form-div') ) {
    			div = document.createElement('div');
    			div.id = 'bbp-temp-form-div';
    			div.style.display = 'none';
    			respond.parentNode.insertBefore(div, respond);
    		}
    
    		reply.parentNode.insertBefore(respond, reply);
    		if ( post && postId )
    			post.value = postId;
    		parent.value = parentId;
    		cancel.style.display = '';
    
    		cancel.onclick = function() {
    			var t = addReply, temp = t.I('bbp-temp-form-div'), respond = t.I(t.respondId);
    
    			if ( ! temp || ! respond )
    				return;
    
    			t.I('bbp_reply_to').value = '0';
    			temp.parentNode.insertBefore(respond, temp);
    			temp.parentNode.removeChild(temp);
    			this.style.display = 'none';
    			this.onclick = null;
    			return false;
    		}
    				
    		try { t.I('bbp_reply_content').focus(); }
    		catch(e) {
    			
    
    			
    			
    		}
    		
    		
    
    		return false;
    	},
    
    	I : function(e) {
    		tinymce.execCommand('mceFocus',false,'bbp_reply_content');
    	}
    	
    	
    	
    }

    @robin-w

    Moderator

    so you are fixed?

    @robin-w

    Moderator

    is_bbress() tells you if you are in forums/topics

    In reply to: Delete “Header”

    @robin-w

    Moderator

    best way would be to edit the templates

    loop_forums
    loop-single-forum
    loop-topics
    loop-single-topic

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

    then repeat for the others

    @robin-w

    Moderator

    and for the reasons stated in the article about using widgets

    @robin-w

    Moderator

    because that is how the developers chose to write this free software

    @robin-w

    Moderator

    2 things occur

    1. this is the code in the template

    <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count(); ?></li>
    
    	<li class="bbp-topic-reply-count"><?php bbp_show_lead_topic() ? bbp_topic_reply_count() : bbp_topic_post_count(); ?></li>

    2. these functions are looking for id so maybe

    <?php $post_id=get_the_ID() ; ?>
    <li class="bbp-topic-voice-count"><?php bbp_topic_voice_count($post_id); ?></li>
    
    	<li class="bbp-topic-reply-count"><?php bbp_show_lead_topic($post_id) ? bbp_topic_reply_count($post_id) : bbp_topic_post_count($post_id); ?></li>

    untested, but you get the idea

    @robin-w

    Moderator
    In reply to: Reply to posts

    @robin-w

    Moderator

    dashboard>settings>forums and allow threaded replies

    @robin-w

    Moderator

    sure it’s in

    \bbpress 2.5.13\includes\common\shortcodes.php

    @robin-w

    Moderator

    But when I try to use <?php echo do_shortcode( ‘[bbp-single-forum id=123]‘ ); ?> it’s a mess.

    without knowing what ‘it’s a mess’ means, not sure I can help – do you have a link to the site?

    @robin-w

    Moderator

    link to your site ?

Viewing 25 replies - 7,076 through 7,100 (of 14,219 total)