Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 8,076 through 8,100 (of 14,261 total)
  • In reply to: signature separator

    @robin-w

    Moderator

    bbpress doesn’t have a signature field. Are you using another plugin to do this ?

    @robin-w

    Moderator

    this is a conditional statement

    basically it has 3 parts

    test
    ?
    true
    :
    false

    each in this case is a function

    so the test is bbp_show_lead_topic() – This will return false by default, but if you set it using a filter, then it would be true

    if this returns true then the ‘?’ function is executed which will show the reply count (just the number of replies)

    if false then the ‘:’ statement is executed which shows then post count (the count of topic + replies ie replies +1)

    @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

    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

    no problem, glad to have helped !

    @robin-w

    Moderator

    yes add this to your child theme function file

    add_filter ('bbp_get_do_not_reply_address', 'rew_no_reply') ;
    function rew_no_reply () {
    Return 'xxx@yyy.com' ;
    }

    changing xxx@yyy.com to wehatever address you want

    @robin-w

    Moderator

    @robin-w

    Moderator

    bbpress changed from sending individual subscription updates to sending a bulk one, by sending an email to no-reply@site-name and then bcc’ing in all the people due to get an email.

    This is why you are seeing this.

    @robin-w

    Moderator

    I think it is

    add_action( 'bbp_template_before_replies_loop', 'rew_shortcode' ) ;

    In reply to: Private Threads?

    @robin-w

    Moderator

    It wouldn’t be the same ticket thread. Perhaps I’m not explaining myself clearly.

    The previous comment was spam promoting a dentist site which I have deleted, so ignore that.

    On private groups.

    You would set up a group say called ‘users’

    You would set up two forums – one public where public posts can be posted as per standard bbpress, and then one that belongs to the private group ‘users’ which you set up above.

    Users are joined to users group either manually or by default.

    You then enable topic permissions opn the private forum, and set the topic permisisons for that group to Create/edit OWN topics. Users will only see their own topics and any replies posted.

    If just keymasters are responding, then they will see all topics on that forum. If others will be responding, then set up another group and make them able to see the whole forum.

    In reply to: Changing Display Name

    @robin-w

    Moderator

    looks like you theme is doing that.

    If a paid theme, try the theme author

    else let us know what theme it is

    In reply to: Private Threads?

    @robin-w

    Moderator

    my private groups plugin will allow you to set up forum where users can post threads, but not be seen by others

    Private groups

    and look at topic permissions

    @robin-w

    Moderator

    sorry, I will come back on this, but weekend here, so fitting in between family !

    @robin-w

    Moderator

    ok, I need to know when this page is displayed – from doing what would you get to it?

    for example ‘I go into forums, and select x and then click y and this page comes up’

    That will let me find the right action for you to link to.

    @robin-w

    Moderator

    I haven’t use it myself, but lots do.

    In reply to: History

    @robin-w

    Moderator

    I do have a plugin ‘bbp evergreen’ which removes all dates from bbpress

    bbp evergreen

    In reply to: History

    @robin-w

    Moderator

    can you please rephrase this question, I do not understand what you are asking

    @robin-w

    Moderator

    the wordpress forums run on bbpress, for instance

    https://wordpress.org/support/forum/how-to-and-troubleshooting/

    this one has 39,000 pages of 15 topics per page, so maybe give it a speed test !

    No reason why you shouldn’t just run a forum on a site – up to you

    @robin-w

    Moderator

    great – glad you are fixed !

    @robin-w

    Moderator

    ok, if I understand the issue this should fix

    install and activate

    bbp style pack

    then go to

    dashboard>settings>bbp style pack>breadcrumbs

    and you will see options to specify where the home and forum root breadcrumbs go to

    @robin-w

    Moderator

    so is this on the breadcrumbs – yes ?

    In reply to: Forum Creation Issue

    @robin-w

    Moderator

    hey great, glad you are fixed !!

    In reply to: Forum Creation Issue

    @robin-w

    Moderator

    sorry – but it’s most likely a theme or plugin upgrade, and ‘those suggestions’ are the way to find out which 🙂

    @robin-w

    Moderator

    no problem !

    @robin-w

    Moderator

    ok, I’ve also added breadcrumb navigation to my style pack plugin

    bbp style pack

    go to

    dashboard>settings>bbp style pack>breadcrumbs and you can select where the home and forum breadcrumbs take you to.

Viewing 25 replies - 8,076 through 8,100 (of 14,261 total)