Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 5,101 through 5,125 (of 14,319 total)
  • In reply to: last topic/comment

    @robin-w

    Moderator

    great

    my bug fix for this in bbp-style-pack does what the patch does, so should be a good alternative for those not happy with editing core files.

    @robin-w

    Moderator

    none that I know of 🙂

    In reply to: Security Update 2.6.5

    @robin-w

    Moderator

    I don’t know of any easy way to find that – I’m a bbpress user who helps out here, not an author.

    This shows the changes in 2.6.5

    https://bbpress.trac.wordpress.org/milestone/2.6.5

    and this is the security update I think

    https://bbpress.trac.wordpress.org/query?status=closed&group=resolution&component=General+-+Administration&milestone=2.6.5

    In reply to: Security Update 2.6.5

    @robin-w

    Moderator

    so do you know what files in bbpress you have changed ?

    bbpress will continue to have new releases, and this will be an ongoing problem for you.

    There are lots of ways to keep changes to bbpress outside of the core files.

    @robin-w

    Moderator

    so who is creating the topic ?

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    topics can be ‘sticky’ or ‘super-sticky’

    sticky posts go at the top of their forum
    Super sticky posts go at the top of every forum

    sounds like your topics are becoming super sticky

    you can look at these in then backend

    dashboard>topics>edit topics and select topic > topic attributes on top right hand side> Type

    they can also be set in front end

    where in the topic they show in admin as

    stick (to front)

    if you click the ‘stick’ then it is sticky, if you click the ‘(to front)’ it becomes super-sticky which is very easy to do by mistake.

    on relationships, bbpress uses wordpress ‘post-parent’

    so a reply has a post parent of the topic it belongs to
    a topic has a post parent of the forum it belongs to
    and a forum has a post parent of a forum if it is a sub forum, or a category if it belongs to a category

    These relationships are also stored in the post_meta table

    details on ‘children’ are not kept – for instance displaying topics is done by a function called bbp_has_topics which selects topics where the post_parent is the forum concerned. bbp_has_relies has a similar serach for replies where the post_parent is the topic concerned.

    In reply to: bb style pack

    @robin-w

    Moderator

    🙂

    In reply to: bb style pack

    @robin-w

    Moderator

    no sorry not a function in bbpress or style pack

    In reply to: bb style pack

    @robin-w

    Moderator

    I’m not quiet sure why I am left to guess what your users want !! I’d suggest you ask them.

    you can set your site up to display forums in a number of ways, but this is site wide, not per user

    dashboard>settings>bbp style pack>forum order

    In reply to: bb style pack

    @robin-w

    Moderator

    what do they want to sort via latest posts ?

    @robin-w

    Moderator

    create a page and call it the same as your forum slug (usually forums)

    then in that page put the message you want followed by

    [bbp-forum-index]

    (If you are using Gutenberg, then as this as a shortcode block)

    this will then be your forums page

    @robin-w

    Moderator

    ok, thanks for letting me know

    @robin-w

    Moderator

    thanks for posting that fix, can you add that fix to the trac ticket please 🙂

    @robin-w

    Moderator

    great – come back if you need further help

    @robin-w

    Moderator

    @robin-w

    Moderator

    if you have not got it already, you might also consider installing

    bbPress – Moderation Tools

    whilst it is old it still works, and tells the user that their post is being held, so that they don’t keep trying to repost it

    @robin-w

    Moderator

    usually due to too many links or blacklisted words

    go to

    dashboard>settings>discussion and look at comment moderation. Firstly the number of links, and secondly any words.

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    if you can do some basic editing and understand a bit of php, then this with some work shouldbe what you are after

    add_action ( 'bbp_template_before_single_forum', 'bsp_display_buttons' ) ;
    
    function bsp_new_topic_button () {
    	global $bsp_style_settings_buttons;
    	if (!empty ($bsp_style_settings_buttons['new_topic_description'] )) $text=$bsp_style_settings_buttons['new_topic_description'] ;
    	else $text=__('Create New Topic', 'bbp-style-pack') ;
    	if ($bsp_style_settings_buttons['button_type'] == 2)  $class=$bsp_style_settings_buttons['Buttonclass'] ;
    	else $class='bsp_button1' ;
    	if ( bbp_current_user_can_access_create_topic_form() && !bbp_is_forum_category() ) {
    	$href = apply_filters ('bsp_new_topic_button' , '#new-post' ) ;
    	echo '<a class="'.$class.'" href ="'.$href.'">'.$text.'</a>' ;
    	}
    }
    
    function bsp_create_new_topicb () {
    	echo '<div><a class="bsptopic" name="bsptopic"></a></div>' ;
    	}
    add_action( 'bbp_theme_before_topic_form', 'bsp_create_new_topicb' ) ;

    @robin-w

    Moderator

    it would have been helpful to tell me this in the original post, and that would have saved a considerable amount of effort by me.

    🙁

    @robin-w

    Moderator

    sorry, that’s how it works, and how all plugins that I have known use custom fields work. As far as I can see that’s how it worked under 2.5.x – no code change I can see.

    I’m just a user who helps out here, so if you really feel strongly about it, I suggest you log a bug at

    https://bbpress.trac.wordpress.org/

    @robin-w

    Moderator

    after you enter the custom fields, you have to click ‘update’ on right hand side to update the entries and save !!

    In reply to: Login URL

    @robin-w

    Moderator

    or use code snippets !!

    In reply to: Login URL

    @robin-w

    Moderator

    if you update to bbp-style-pack 4.5.9 and then

    Put this in your child theme’s function file –

    ie wp-content/themes/%your-theme-name%/functions.php

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

    or use

    Code Snippets

    add_action ('bsp_form_topic_login' , 'rew_redirect' ) ;
    add_action ('bsp_form_reply_login' , 'rew_redirect' ) ;
    
    function rew_redirect () {
    	if ( ! is_user_logged_in() ) {
    		echo '<ul><li><a href="http://www.mysite.com/login">Click here to log in</a></li></ul>' ;
    	}
    }

    amending the url to what you want, and amend the text as well if you want to

Viewing 25 replies - 5,101 through 5,125 (of 14,319 total)