Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 6,376 through 6,400 (of 13,530 total)

  • Robin W
    Moderator

    @robin-w

    try

    .archive:not(.page-one-column):not(.has-sidebar) #primary article {
     float : none !important;
     Width : 100% !important ;
    
    }

    Robin W
    Moderator

    @robin-w

    I have seen this, and will respond, but I need to do paid work first. I am only a volunteer on here.


    Robin W
    Moderator

    @robin-w

    your theme is doing this – try this in you custom css

    .archive:not(.page-one-column):not(.has-sidebar) #primary article {
    float : none ;
    Width : 100%

    }

    but it may affect how other pages/post show


    Robin W
    Moderator

    @robin-w

    it could do with an action link in the topic handler, but you may wait a while for the devs to add that.


    Robin W
    Moderator

    @robin-w

    the issue will be site specific, and given that it is on an intranet, not one that I’d be able to investigate.


    Robin W
    Moderator

    @robin-w

    hmm

    you’ll need to alter several files, so general first

    altering bbpress templates

    You can copy all the templates across, but you only need to copy those that you want to change, and it is better just to do this, as then you know which you have altered.

    so if you wanted to amend loop-single-forum you would do the following

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

    files

    There may be others, but

    loop-forums (forum headings)
    loop-single forum (forum content)
    loop-topics (single forum heading)
    loop-single-topic (single forum content)

    will get you most of the way there


    Robin W
    Moderator

    @robin-w

    really hard to do – i’d suggest you’d need to look at rss feeds.


    Robin W
    Moderator

    @robin-w

    ok, two things

    1. you could just use the template in my

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>forum templates

    2. if you want to alter that,
    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

    then download my plugin and find template/templates1/loop-forums

    copy that file to your theme and put it in the bbpress directory


    Robin W
    Moderator

    @robin-w

    @ works!

    I have topics setup so that most recent replies appear at the top.

    so first thing is I need to know how you did this?


    Robin W
    Moderator

    @robin-w

    tools>forums>reset forums

    you will need bbpress enabled to do this


    Robin W
    Moderator

    @robin-w

    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

    @robin-w

    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

    @robin-w

    In reply to: downloadable files

    Robin W
    Moderator

    @robin-w

    you mean within here, or within your wordpress site?


    Robin W
    Moderator

    @robin-w

    can you post lines 60-65 here please


    Robin W
    Moderator

    @robin-w

    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

    @robin-w

    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

    @robin-w

    so it lists

    forum
    sub forum(s)
    topics from forum

    yes ?


    Robin W
    Moderator

    @robin-w

    contact me via

    Contact me

    In reply to: Delete “Header”

    Robin W
    Moderator

    @robin-w

    thanks for your kind comments – much appreciated !!


    Robin W
    Moderator

    @robin-w

    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

    @robin-w

    what is the issue with your code above?


    Robin W
    Moderator

    @robin-w

    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

    @robin-w

    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

    @robin-w

    so you are fixed?

Viewing 25 replies - 6,376 through 6,400 (of 13,530 total)