Forum Replies Created
-
In reply to: New to bbPress – registration email
no problem, glad to have helped
In reply to: Title “Archives: Forum” – change to read “Forums”?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; }In reply to: Akismet — false positives, grrrr!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.In reply to: New to bbPress – registration email70% 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.
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 !
In reply to: Large space between header and forumsno problem !
In reply to: New to bbPress – registration emailnot 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?
In reply to: New to bbPress – registration emailbbpress 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
In reply to: Title “Archives: Forum” – change to read “Forums”?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
In reply to: Increase bbPress font size. Simple???great – glad you are fixed
In reply to: how to speedup the bbpress@kriskl – thanks I’ll make a note that wp rocket is bbpress friendly 🙂
In reply to: how to speedup the bbpressThis support site has 100,000 topics. How many topics and how much slower is your site ?
In reply to: Splitting a topic🙂
In reply to: Pagination – How to remove last page numbers?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 topicI’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
In reply to: Pagination – How to remove last page numbers?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 🙂
In reply to: Pagination – How to remove last page numbers?yes, find
wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.phptransfer 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%/bbpresswhere %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.phpbbPress will now use this template instead of the original
In reply to: cannot edit, delete or close a topicgreat – glad you are fixed
In reply to: Pagination – How to remove last page numbers?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 !!
In reply to: cannot edit, delete or close a topicthen use this to allow participants to close or delete topics and delete replies
once activated go to
dashboard>settings>bbp style pack>Topic/Reply Display
and look at items
17, 18 & 19
In reply to: cannot edit, delete or close a topicso 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;
}In reply to: Pagination – How to remove last page numbers?ok, so did you try MY code on another site?
In reply to: Pagination – How to remove last page numbers?hmm end works with 0 on my test site !
In reply to: cannot edit, delete or close a topicif you change
bottom:15px;to
bottom:1px ;it works
In reply to: cannot edit, delete or close a topicyes 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
In reply to: cannot edit, delete or close a topicok, 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.