Robin W (@robin-w)

Forum Replies Created

Viewing 25 replies - 5,176 through 5,200 (of 14,283 total)
  • @robin-w

    Moderator

    no problem, glad to have helped

    @robin-w

    Moderator

    if you are using code snippets, then JUST the code below (not the “wp-content/theme” etc – do NOT add that) , and use this code as it has the correct apostrophies in it

    add_filter( 'get_the_archive_title', 'to_archive_title_remove_prefix' );
    function to_archive_title_remove_prefix( $title ) {
    if ( is_post_type_archive() ) {
    $title = post_type_archive_title( '', false );
    }
    return $title;
    }

    @robin-w

    Moderator

    it is REALLY hard to get a computer to distinguish between real stuff and spam.

    This support site uses askimet, but 3-5 spam posts get through each day. many just copy content and add their own url.

    my strategy is

    1. spam will get through, so unless your bbpress is massively used I use https://wordpress.org/plugins/bbpress-notify-nospam/ to notify me of each post and reply. I can quickly look at it, and if needed delete.
    2. I also use https://en-gb.wordpress.org/plugins/moderation-tools-for-bbpress/ that way the topic or reply does not ‘disappear’ the author sees it as pending, and you get an email so you know to take action.

    @robin-w

    Moderator

    70% in internet sites worldwide are WordPress ! Every hacker in the world knows how to identify a WordPress site. Probably 90% of sites don’t change the login url, so is this a risk?

    The answer is not really.

    Every site has to have a login screen, and that is visible to a hacker. If a hacker guesses an ordinary user, then all they get is an ordinary users access, so at worst they can create a post in someone else’s name.

    What they are after is the admin user and their password. Then they can install plugins that add files to the site that can be used to say create a sub site that looks like a bank and try and get info from email links. You will have received scam emails with links to dodgy sites where this has been done.

    The majority of site owners leave their username as admin, so hackers try and guess passwords based on the site name – so for say the French Horse Society website (if it existed) you might try admin with a password of FHS123 or french01 etc.

    In other words they try and guess passwords for sites owners who have set themselves a password they can remember.

    If you use a WordPress generated password, then there is no chance that a hacker will guess this or realistically can use software to break the site.

    Now hackers use computers to find and target sites – they don’t sit at screens and look at websites.

    So if you change your login url, then the ‘robots’ won’t see it, and chances are that they will just move on to another site, rather than search your site for a page that has login on it, but they can do this, so changing the url doesn’t stop this, it just means that you make yourself a lesser target. So it’s a good idea, but not a failsafe

    Much more critically you need to have a WordPress generated password for your admins.

    I’d also suggest that you look to install the wordfence plugin. This stops multiple attempts to guess password on your site, as well as a load of other security stuff. the free version is fine, and you will get lots of emails from wordfence and some that pester you to upgrade, but it is a great plugin.

    Wordfence Security – Firewall & Malware Scan

    last of all – don’t get obsessed by this – you website is for you and others to enjoy. Owning a diamond is lovely unless you spend your whole life worried about whether it will get stolen !

    @robin-w

    Moderator

    no problem !

    @robin-w

    Moderator

    not quite sure what you want or whether I am mis-understanding?

    People need to be able to login, and for that they need a login url, and that will be your altered login url. How else can they log in?

    @robin-w

    Moderator

    bbpress just uses WordPress registration and login.

    bbpress then just assigns the default role on first login that is set in Dashboard>settings>forum>roles if you have that ticked, or you can manually assign if you wish.

    Therefore you can ignore anything bbpressy on registration and login, and just use anything that WordPress does instead.

    This gives you the ability to utilise plugins such as ‘theme my login’ to give yourself a nice registration and login (there are plenty of other good login plugins, just search around).

    It looks like you have already changed the default wp urls – which is great and good security practise, so suggest you just don’t use bbpress login shortcodes or widgets, and let wordpress do your registration and login.

    Do come back if you need further help

    @robin-w

    Moderator

    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

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    @kriskl – thanks I’ll make a note that wp rocket is bbpress friendly 🙂

    @robin-w

    Moderator

    This support site has 100,000 topics. How many topics and how much slower is your site ?

    In reply to: Splitting a topic

    @robin-w

    Moderator

    🙂

    @robin-w

    Moderator

    great – really pleased that we got there – it was nagging me that I couldn’t do it so I took another look – glad you are fixed !!

    In reply to: Splitting a topic

    @robin-w

    Moderator

    I’d just use the backend to create 2 topics, copy the relevant info into each one, and use the author information on the right hand side to change to the required author ID

    @robin-w

    Moderator

    oh, and I found a bit where we can do some string editing, so…

    This code reduces the last to 1 entry, and then looks for that entry and removes it…

    add_filter ('bbp_before_paginate_links_parse_args' , 'rew_pagintion' ) ;
    
    function rew_pagintion ($args) {
    	$args['end_size'] = 0 ;
    return $args;
    }
    
    add_filter ('bbp_make_first_page_canonical', 'rew_take_out_last', 10 ,2) ;
    
    function rew_take_out_last ($retval, $pagination_links) {
    	$posf = strrpos ($pagination_links, '<a class="page-numbers' ) ;
    	$posl = strpos ($pagination_links, '<a class="next page-numbers' ) ;
    	$start = substr ($pagination_links, 0 , $posf) ;
    	$end = substr ($pagination_links, $posl , strlen($pagination_links)) ;
    	$links = $start.$end ;
    return $links ;
    }

    you can get rid of the page number dots using css or some more str functions in the code above, but I’ll leave you to work that out 🙂

    @robin-w

    Moderator

    yes, find
    wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php

    transfer this to your pc and edit

    you’ll see

    <?php bbp_get_template_part( 'pagination', 'topics'    ); ?>
    
    <?php bbp_get_template_part( 'loop',       'topics'    ); ?>
    
    <?php bbp_get_template_part( 'pagination', 'topics'    ); ?>

    change that to take out the first line and save

    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

    Then transfer the file you saved above 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-forum.php

    bbPress will now use this template instead of the original

    @robin-w

    Moderator

    great – glad you are fixed

    @robin-w

    Moderator

    hmm – that’s a core WordPress bug.

    It has a track ticket, but no date

    https://core.trac.wordpress.org/ticket/39251

    sorry, best I can do !!

    @robin-w

    Moderator

    then use this to allow participants to close or delete topics and delete replies

    bbp style pack

    once activated go to

    dashboard>settings>bbp style pack>Topic/Reply Display

    and look at items

    17, 18 & 19

    @robin-w

    Moderator

    so put this in the custom css are of your theme

    #bbpress-forums ul.bbp-forums li.bbp-body .reply .bbp-reply-header .bbp-admin-links,
    #bbpress-forums ul.bbp-forums li.bbp-body div.hentry .bbp-reply-header .bbp-admin-links,
    #bbpress-forums ul.bbp-replies li.bbp-body .reply .bbp-reply-header .bbp-admin-links,
    #bbpress-forums ul.bbp-replies li.bbp-body div.hentry .bbp-reply-header .bbp-admin-links,
    #bbpress-forums ul.bbp-topics li.bbp-body .reply .bbp-reply-header .bbp-admin-links,
    #bbpress-forums ul.bbp-topics li.bbp-body div.hentry .bbp-reply-header .bbp-admin-links {
    bottom:1px !important;
    }

    @robin-w

    Moderator

    ok, so did you try MY code on another site?

    @robin-w

    Moderator

    hmm end works with 0 on my test site !

    @robin-w

    Moderator

    if you change
    bottom:15px;

    to

    bottom:1px ;

    it works

    @robin-w

    Moderator

    yes your theme has a style sheet

    wplms/assets/css/bbpress.min.css

    which contains

    #bbpress-forums ul.bbp-forums li.bbp-body .reply .bbp-reply-header .bbp-admin-links,
    #bbpress-forums ul.bbp-forums li.bbp-body div.hentry .bbp-reply-header .bbp-admin-links,
    #bbpress-forums ul.bbp-replies li.bbp-body .reply .bbp-reply-header .bbp-admin-links,
    #bbpress-forums ul.bbp-replies li.bbp-body div.hentry .bbp-reply-header .bbp-admin-links,
    #bbpress-forums ul.bbp-topics li.bbp-body .reply .bbp-reply-header .bbp-admin-links,
    #bbpress-forums ul.bbp-topics li.bbp-body div.hentry .bbp-reply-header .bbp-admin-links {
     position:absolute;
     bottom:15px;
     right:0
    }

    which moves the links, and makes them unclickable

    @robin-w

    Moderator

    ok, you say you have admin rights, but what forum role do you have ?

    Participants are not by default allowed to delete or close.

    Your theme (or another plugin) is only letting you see any admin links when you focus on the content. This is I am pretty sure preventing you clicking the link to edit.

Viewing 25 replies - 5,176 through 5,200 (of 14,283 total)