miken32
Forum Replies Created
-
Forum: Plugins
In reply to: [WP fail2ban - Advanced Security] Possible jail.local config for wp fail2banIn addition, on Ubuntu, the messages are sent to /var/log/auth.log. There’s no such thing as /var/log/messages.
I also prefer to use a more restrictive action, and set a long ban time. And of course you should enable other filters as well.
[wordpress] enabled = true filter = wordpress action = iptables-allports[name=wordpress] logpath = /var/log/auth.log maxretry = 2 findtime = 3600 bantime = 604800 [apache] enabled = true [apache-overflows] enabled = true [apache-noscript] enabled = true
Forum: Plugins
In reply to: [Plugin: WP-reCAPTCHA] Still see lots of spamI do, although I’ve now noticed that the “must have one approved comment” box was checked, which obviously will have the same effect.
I guess I was confused why these comments were able to get into the system at all. Thinking about it, all I can come up with is that the spammers are directly POSTing the comments without using the HTML on the post’s page? Is this a case where the plugin can’t stop it so tags it as spam instead? If so, it would be nice if the plugin could get deeper into the commenting code and stop any posts without the captcha text.
Forum: Plugins
In reply to: [Plugin: Share On Facebook] Share on Facebook plugin codeEssentially I’ve taken the crap HTML that Facebook provides and redone it properly; I also split out some of the stuff so that it’s not being repeated 6 times. In fact the entire
shareonfacebook()
function was just repeating whatshare_on_facebook()
did so I had the former call the latter instead of repeating all the code.
Since WP mangles CDATA sections I couldn’t put the URL into the JavaScript, you can see it just pulls the URL from the HTML and changes it to what it needs.
I also made changes to the styles for the “button” since the original Facebook code didn’t take into account existing colors, fonts, line heights, etc.
I’ll email a copy to the developer and we’ll see what shows up in the next version of this plugin.Forum: Fixing WordPress
In reply to: [Plugin: WP-Syntax] line problemInstead of
<pre lang="php" line="1">
just use<pre lang="php" line="5">
Edit: never mind, I just looked at the pictures and it’s clear there’s a problem you’re having with HTML layout, so all your code is running onto one line. Nothing to do with numbering.
Forum: Plugins
In reply to: Looks awesome! But..Head down about 60% of the way through the CSS file and find this line:
#content ul, ol, dl { margin-bottom: 20px;}
Replace it with this and you should get lists back:
#content ul li { list-style: square outside; } #content ol li { list-style: decimal outside; } #content ul, #content ol, #content dl { margin-bottom: 20px; margin-left: 20px; }