Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 12,876 through 12,900 (of 14,230 total)
  • @robin-w

    Moderator

    Hey thanks, glad its working for you !

    Name is gender neutral I know, but I’m the male version 🙂

    In reply to: Full Width Forum Help

    @robin-w

    Moderator

    I’d take out the line

    <?php get_sidebar( ‘primary’ ); // Loads the sidebar-primary.php template. ?>

    as that is loading a sidebar !

    @robin-w

    Moderator

    the following code in your function file will remove the subscribe

    function remove_subscribe () {
    $retval=false ;
    return $retval ;
    }
    
    add_filter( 'bbp_get_topic_subscribe_link', 'remove_subscribe' );

    ‘share’ is a buddypress function I suspect – sorry I know nothing of buddypress !

    @robin-w

    Moderator

    No problem,

    It might be a theme or plugin issue

    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, I’ve created a new version 1.8 that should fix the top level forum, and done some other tidy-ups that may or may not affect your search.

    Can you try it again?

    @robin-w

    Moderator

    There are all sorts of backdoors that a ‘page/post’ restricting plugin doesn’t cover for bbpress

    For instance :

    search is usually forum wide
    http://www.mysite.com/topics
    http://www.mysite.com/replies
    looking at topics/replies created in a user profile
    recent topics widget
    recent replies widget

    all usually just bypass a plugin written for pages.

    which is why I wrote the private groups plugin

    https://wordpress.org/plugins/bbp-private-groups/

    There is no reason why it shouldn’t work alongside your members with members protecting your pages & posts, and private groups protecting your forums.

    BUT you do have to set users up to see restricted forums, and this is manual. It is quick to do (just a setting within the user settings), but if you have an automated joining process, then you would need to add a manual step (or write some code!)

    @robin-w

    Moderator

    If it is text within wordpress/bbpess then the following code in you functions file will change it

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'old text' ) {
    	$translated_text = 'new text';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    

    But ‘text’ may be made up of code. For instance in your ‘create new topic in’ – the word topic may actually be a variable (I haven’t looked !), and the wrap around text used elsewhere for instance ‘create topic in’, ‘create reply in’, ‘create forum in’

    @robin-w

    Moderator

    when you say you’ve re-installed, do you mean your upgraded to 2.5.4. if not, what caused you to re-install?

    Did the ‘button’ work before or is this a new installation?

    In reply to: Latest 5 Topics?

    @robin-w

    Moderator

    I’ve just started working on a plugin that will have some additional shortcodes in it

    the only functional one so far is the ability to show the latest xx topics

    you can download it from here

    bbp additional shortcodes

    you use the shortcode

    [bbp_display_topic_index show=’5′]

    @robin-w

    Moderator

    Interesting, and offhand I’m not quite sure why it would do that, but I’ll have a dig and come back

    @robin-w

    Moderator

    great, glad you’re fixed !

    @robin-w

    Moderator

    but i don’t want this boring theme

    Yes, I know that – it was simply to test that it was a theme issue

    as I said before

    you’ll need to contact their support site for this as it’s a paid theme

    http://themeforest.net/item/x-the-theme/5871901/support

    they should be able to help you

    Themes can be very complicated, and we don’t offer a service to make bbpress work with bespoke/paid themes – that is for the theme authors to do 🙂

    @robin-w

    Moderator

    and the second problem…

    the logon widget is held in :

    wp-content>plugins>bbpress>includes>common>widgets.php

    I suspect you’ll already know that it is bad practice to alter core files, as they get overwritten on upgrades.

    You’d do better to fork the code into your functions file, rename and create your own widget based on that.

    @robin-w

    Moderator

    great – glad you’re fixed !

    @robin-w

    Moderator

    you’ll need to contact their support site for this as it’s a paid theme

    http://themeforest.net/item/x-the-theme/5871901/support

    they should be able to help you

    @robin-w

    Moderator

    Then I changed the slug of my 2 forums (slug? I don’t know if it is the right word in english. I mean, the name that is directly used in the permalink).
    … and issues appeared!

    ok, that will help me find the error – can you tell me what you changed and how eg I went into dashboard>xx>yy and changed aa to bb

    @robin-w

    Moderator

    Suspect this is a theme issue

    Can you switch to a default theme such as twentytwelve for a moment to see if that fixes. If so come back and we can try and get your theme to work with bbpress

    @robin-w

    Moderator

    ok, you’ll need to add the following to your functions file

    //this function removes the "this topic contains..." and "this forum contains..."  text
    function no_description ($retstr) {
    $retstr="" ;
    return $retstr ;
    }
    
    add_filter ('bbp_get_single_topic_description', 'no_description' ) ;
    add_filter ('bbp_get_single_forum_description', 'no_description' ) ;
    
    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'Your account has the ability to post unrestricted HTML content.' ) {
    	$translated_text = '';
    	}
    	if ( $translated_text == 'Oh bother! No topics were found here!' ) {
    	$translated_text = '';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    

    @robin-w

    Moderator

    great – glad you’re fixed !

    @robin-w

    Moderator

    Apologies but I’m being stupid, but can you explain or give an example of what you mean by bbp-template-notice info ?

    @robin-w

    Moderator

    Strange the things you don’t put in your testing – a top level forum was one I didn’t test! 🙂

    I’ve now worked a fix for this, but before I release it, I just want to check back on the search issue.

    Search should hide both ‘private group’ topics and replies from search results as though they don’t exist, and this works in my test site.

    Can you confirm that this is still an issue? and which version of the plugin you are using?

    @robin-w

    Moderator

    ok, thanks, I’ll take a look.

    @robin-w

    Moderator

    can you let me know what your settings are

    Dashboard>settings>bbp private groups>

    forum visibility settings
    general settings

    @robin-w

    Moderator

    I found this code in my files, try this

    /*
    Plugin Name: BBPress Close Old Posts
    Description: Close BBPress 2.0+ posts that haven't been updated in X days. 
    Author: Raygun
    Version: 0.1
    Author URI: http://madebyraygun.com
    
    Originally found here: https://wordpress.org/support/topic/plugin-bbpress-new-topic-notifications-new-reply-notications-too?replies=13
    
    This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
    You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
    */ 
    
    register_activation_hook(__FILE__, 'bbpress_topic_scheduler');
    
    add_action('bbpress_daily_event', 'bbpress_close_old_topics');
    
    function bbpress_topic_scheduler() {
     wp_schedule_event(time(), 'daily', 'bbpress_daily_event');
    }
    
    function bbpress_close_old_topics() {
    	// Auto close old topics
    	$topics_query = array(
    		'author' => 0,
    		'show_stickies' => false,
    		'parent_forum' => 'any',
    		'post_status' => 'publish',
    		'posts_per_page' => -1
    	);
    	if ( bbp_has_topics( $topics_query ) )
    		while( bbp_topics() ) {
    			bbp_the_topic();
    			$topic_id = bbp_get_topic_id();
    			$last_active = strtotime( get_post_meta( $topic_id, '_bbp_last_active_time', true ) );
    			if ($last_active < strtotime( '-10 days') )
    				bbp_close_topic( $topic_id );
    		}
    }
    ?>

    change the -10 days to whatever you want

    Basically just create a file called say ‘close.php’ and put this code in it. Create a directory in your site

    wp-content/plugins/close

    and put the file in there

    then go into

    dashboard>plugins>installed plugins and activate it

    I haven’t tested this.

    @robin-w

    Moderator

    Sorry, but there’s no simple way to do this.

    It can be done with code, but I don’t know of anything that has already been done

Viewing 25 replies - 12,876 through 12,900 (of 14,230 total)