Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 5,126 through 5,150 (of 14,141 total)
  • In reply to: Change css id’s

    @robin-w

    Moderator

    you could use

    wp_dequeue_script ('bbp-default') ;

    to dequeue and then load you own named version

    @robin-w

    Moderator

    and maybe this

    SEO and bbPress

    @robin-w

    Moderator

    if you are using yoast, then this helps

    BBP Improvements for yoast

    if not, read this

    SEO and bbPress

    In reply to: Change css id’s

    @robin-w

    Moderator

    ok

    1. I’m very unclear about how changing css will increase your website security. Css is passed to your browser, so anyone accessing you site has a view to all the css. I’m always willing to learn, but I know of no hack that involves knowing css id’s, or indeed how changing them would prevent a hack if indeed that were possible – as soon as I load your site to my browser I see all css.

    2. Changing the css class bbpress would involve rewriting large portions of the plugin, which would make it unsupportibale, and would leave you vulnerable to real hacks that security releases in bbpress would prevent

    @robin-w

    Moderator

    that looks interesting !

    @robin-w

    Moderator

    do you mean 2.5.14?

    @robin-w

    Moderator

    WordPress creates a unique sequential number for every post, page, custom post type (which bbpress has as forums, topics and replies), every revision of the above, and many other plugins also use this mechanism.

    so if a topic is created as 15623 it means there are 15622 pre-existing entries of the above in the database.

    replies to topics are associated by another entry in the database giving the post’s ‘parent’

    so numbers are entirely irrelevant in the scheme of bbpress.

    @robin-w

    Moderator

    no idea ! but I think you are there in terms of getting rid of 99.9999% !

    @robin-w

    Moderator

    the ‘term’ code deletes orphaned and unused stuff in the database. By definition these belong to nothing, so there is no bbpress relationship (or indeed other relationship) that you can select against

    @robin-w

    Moderator

    I can’t see an option for tags in the code

    @robin-w

    Moderator

    Actually, this is the (I hope) correct code for revisions

    foreach ( $query as $id ) {
    $post_parent_id = wp_get_post_parent_id ($id) ;
    $type = get_post_type ($post_parent_id) ;
    if ($type != 'topic' && $type != 'reply' ) 
    wp_delete_post_revision( (int) $id );
    }

    @robin-w

    Moderator

    if you go into the plugin and find

    wp-sweep.php

    find line 557 which says

    foreach ( $query as $id ) {
    												wp_delete_post_revision( (int) $id );
    }

    and amend to

    foreach ( $query as $id ) {
    $post_parent_id = wp_get_post_parent_id ($id) ;
    $type = get_post_type ($post_parent_id) ;
    if ($type != 'topic' && $type != 'reply' ) 
    wp_delete_post_revision( (int) $id );
    }

    that should do it

    @robin-w

    Moderator

    bbpress is not particularly Xampp friendly, and without being able to see your site of ocurse it’s hard to start to problem find.

    it could be a theme or plugin issue

    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

    try dashboard>settings>permalinks and just click save, that will, reset the permalinks

    then come back

    @robin-w

    Moderator

    no problem … ignoring you …. 🙂

    @robin-w

    Moderator

    if you have set

    dashboard>settings>roles>Automatically give registered visitors the participant forum role

    then registered users will on first login get that role and be able to access the forums

    In reply to: Empty forum index

    @robin-w

    Moderator

    great- glad you are fixed

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    🙂

    In reply to: Empty forum index

    @robin-w

    Moderator

    you have in-line css code that says

    .bbp-forums {
     display:none
    }

    which means they don’t display, but the forum is there on the page.

    I cannot see what is setting that, and in-line code cannot be overridden.

    It may be your theme, or another plugin, so a setting you have in your theme or another plugin.

    Have you added any plugins lately, or updated theme or plugins ?

    @robin-w

    Moderator

    great !

    @robin-w

    Moderator

    yes !

    @robin-w

    Moderator

    always a toss up – I can add endless options to my plugins or take judgements on what people want.

    <span class=”bsp-la-text”>in </span> lets people translating change what they want. If I take then space out, then that is always there.

    you can use

    //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 );

    to put in a : if you want it

    @robin-w

    Moderator

    not sure why you are asking on a bbpress forum – a bit like asking the Ford Garage about the best place to buy chrysler cars !

Viewing 25 replies - 5,126 through 5,150 (of 14,141 total)