Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 7,626 through 7,650 (of 14,219 total)
  • In reply to: Per Forum Moderators

    @robin-w

    Moderator

    no sorry this is a 2.6 feature when 2.6 is released

    @robin-w

    Moderator

    that code will close the topic on 100 replies, so unless you tested with creating the 100th reply, then it would not work. Did you do this ?

    @robin-w

    Moderator

    ok, I would strongly suspect you membership wall, presumably a plugin – not a lot we can do if it is.

    This generic help should let you define where the issue is

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    Themes

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

    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.

    Then come back

    @robin-w

    Moderator

    that would take a lot of code, beyond free help

    @robin-w

    Moderator

    can you say specifically what you want – ie where you want to determine or show this?

    @robin-w

    Moderator

    are you totally unable to edit your forum, or are you just unable to add videos?

    @robin-w

    Moderator

    add this to your functions file, it closes the topic when the 100th reply is posted

    add_action( 'bbp_new_reply_post_extras', 'rew_close_topic' );
    
    function rew_close_topic ($reply_id) {
    //  find out the topic_id
    $topic_id = bbp_get_reply_topic_id ($reply_id) ;
    $count = bbp_get_topic_reply_count ($topic_id) ;
    if ($count == 100) bbp_close_topic( $topic_id );
    }
    In reply to: Double avatar

    @robin-w

    Moderator

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    Themes

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

    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.

    Then come back

    @robin-w

    Moderator

    No idea from your post of what code you are trying.

    bbp_has_replies is the function you need for the loop

    @robin-w

    Moderator

    Notifications is a buddypress thing – I think you need to report it to their support

    @robin-w

    Moderator

    the default is false, so it would do nothing – you should be using

    $show_lead[] = 'true';

    then it will use the template it talks about and you can style it

    @robin-w

    Moderator

    the function that bbpress uses is in

    includes/common/functions.php

    line 1055 starts the function, and lines 1150 to 1153 are the offending ones which stop it being sent to the author

    I’d suggest you unhook that function and then hook your own

    so in your child theme functions file maybe have

    remove_action( 'bbp_new_reply',    'bbp_notify_topic_subscribers',           11, 5 );
    add_action ( 'bbp_new_reply' , 'rew_notify_topic_subscribers', 11,5 ) ;
    

    and then copy the whole bbp_notify_topic_subscribers function to your functions file, rename it to ‘rew_notify_topic_subscribers’ and edit out the lines which stop it being sent to the author

    do come back if anything isn’t clear, I’m assuming a level of knowledge you may not have, and quite happy to help further

    @robin-w

    Moderator

    I tried plugins and themes, but i’m sure i can erase it from a file inside the bbpress folder. What file can it be?

    it is not in nay file that I know, it looks like part of an error

    you may be able to hide it with css, I can’t say without a live link

    @robin-w

    Moderator

    yes, that is the default position, I’ll try and work out some code in the next few days.

    If I have not come back in 3 days time, post again to remind me !

    In reply to: bbpress user roles

    @robin-w

    Moderator

    in bbpress plugin in my site the moderator roles the forum is not showing in dashboard,

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    Themes

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

    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.

    Then come back

    @robin-w

    Moderator

    something is putting that code there, you will need to work out what

    It could be a theme or plugin issue issue, so you’ll need to test to find out which

    Themes

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

    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.

    Then come back

    @robin-w

    Moderator

    ok, sorry but you can only fault find by testing.

    Only having a live site is not a good policy, suggest you invest time in creating a test site

    Creating a Test Site

    @robin-w

    Moderator

    the function (1) can sit in your plugin

    the template (2) can also be in your plugin, but yes, you’ll need some code to do this

    in my style pack plugin I have a directory and sub directory called

    templates/templates1 and in this I have a bbpress templates I have amended eg

    wp-content/plugins/bbp-style-pack/templates/template1/loop-forums.php

    then in my plugin code I have (you’ll need to amend BSP_PLUGIN_DIR to a suitable name for your plugin

    if(!defined('BSP_PLUGIN_DIR'))
    	define('BSP_PLUGIN_DIR', dirname(__FILE__));
    
    add_action( 'bbp_register_theme_packages', 'bsp_register_plugin_template1' );
    
    function bsp_register_plugin_template1() {
    	bbp_register_template_stack( 'bsp_get_template1_path', 12 );
    }
    
    function bsp_get_template1_path() {
    	return BSP_PLUGIN_DIR . '/templates/templates1';
    }

    This loads all templates in that directory and registers them with bbpress

    come back if that doesn’t work for you with your code

    @robin-w

    Moderator

    Suspect Divi is responsible, but as Divi is a paid theme, you’ll need to raise this with them

    @robin-w

    Moderator

    great – thanks for letting me know – enjoyed coding it!

    @robin-w

    Moderator

    ok, try this – I think it works all fine, but let me know

    what it does is check every 5 minutes that any topic posted over 1/2 hour is closed.

    It will close all existing topics that meet this criteria.

    A topic will therefore be closed 30-35 minutes after the original post date

    BbPress close topic automatically 1/2 hour after topic is posted

    @robin-w

    Moderator

    @robin-w

    Moderator

    …and say where it is appearing – ie within the forums list, the topic list in a single forum, a page with shortcode etc.

    @robin-w

    Moderator

    ok, so concentrating on a topic and it’s reply list and ignoring forums, you are saying that you would like

    from clicking a topic in the forum list (a list of topics in the forum) you are taken to a page which displays

    • the topic name
    • some content/info but styled and controlled by you
    • the replies as per normal
    • the reply form

    If so I suspect you need to do two things

    1. use this piece of code in your functions file

    bbp_show_lead_topic

    2. amend content-single-topic-lead.php in your child theme’s bbpress directory.

    by

    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/content-single-topic-lead.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/content-single-topic-lead.phpbbPress will now use this template instead of the original and you can amend this

    I have no idea how technical you are and whether that gives you enough to go ahead and fix, or if you need further help – let me know

    @robin-w

    Moderator

    Can you contact me via my website

    Contact me

    (sorry putting an email address directly into wordpress support gets me spammed with email for a week!)

Viewing 25 replies - 7,626 through 7,650 (of 14,219 total)