haaseg
Forum Replies Created
-
Forum: Your WordPress
In reply to: Upgrade and New Theme… Needs IE testingGreat… Thanks.
Forum: Requests and Feedback
In reply to: Blocking Unregistered Spammers, Porn, GamblingActually, there is a php function checkdnsrr() that will do this, but it does not work on Windows platforms (lucky for me, I can still use it though). The above link will take you to the php.net summary for the command, and in the comments there are several threads that post functions that can achieve the equivelant on Windows based servers.
If I have some time this weekend, I might fiddle with this idea a bit and see if I can get it to work.
Of course, I’m probably an idiot for posting this, as the poker player is probably reading this thread by now.Forum: Requests and Feedback
In reply to: Blocking Unregistered Spammers, Porn, GamblingOne thing I noticed about the poker spammer, is that his email address is always some derivation of byob@y###o.com, and then the ### always appears as the first characters in his message. It was pointed out earlier that this is obviously a script, and I think this tidbit just goes to confirm that some more. He’s obviously trying to keep people from being able to block based on his email address.
I was thinking it’d be nice to be able to use some kind of regex on the moderation keywords… like y(.+?)o.com, but then I think you’d also be blocking all of the yahoo.com email addresses, and that wouldn’t be a good thing.
But another thing occurred to me. I currently have my MTA set up so that it rejects incoming mail from domain names that cannot be resolved. This might be a sure fire way to get rid of this guy. If there’s a way to get PHP to do this kind of check, then we could probably put a stop to a lot of comment spam. Of course, that wouldn’t prevent someone from just using a fake yahoo or gmail address, but it could be another layer of armor to use.Forum: Your WordPress
In reply to: Comparison of layoutsI like #2 exactly like it is, but I agree with the general consensus that the style switcher is the way to go.
The psychological explanation for my answer… that brownish yellow in number 2 is a very warm/comforting color, where-as the blue in number 1 is a bit chilly.
Now, I didn’t actually *read* anything on the site, so chilly might actually be what you’re after.Forum: Your WordPress
In reply to: Upgrade and New Design: “WANTED”Root. I completely overlooked the font. It’s set to a font that I don’t have, and so defaulted to my desktop’s serif font. It looked fine to me, so I didn’t even bother to change it. I’ll have to find one of the more standard fonts. I was actually thinking of changing to a serif. I generally hate them, but it will probably go better with the theme.
Reminds me, I forgot to see if the template even works in IE. I’ll have to wait until I get to work for that, as I’m running Linux at home.Forum: Your WordPress
In reply to: Upgrade and New Design: “WANTED”That was a good idea. I couldn’t figure out what I was doing for a second there. I completely overlooked #menu form in the stylesheet. It does look much better centered.
Any idea how to make the search box a bit bigger? I thought size=”#” in the input tag itself, but that didn’t seem to change anything.Forum: Your WordPress
In reply to: Blog /w own “hacks”I’m not a big fan of white on black, I think it’s hard on the eyes. No, I’m not going to sit here and say you’re wrong, and post a bunch of bogus stats on “readability”, etc… I’m just personally not a fan. Other than that (and the aforementioned splash screen overdose), I think it’s a good clean layout.
Though there are no comments posted to any of your entries, you should take care to note that the CSS on the comment pop-up is still generic… it should probably be tweaked to match the rest of your site.Forum: Plugins
In reply to: Disemvoweler?hmm… if you really want to expose them for what they are, you don’t really want to mask their name like that though… I would suggest
$comment->comment_author .= ” is a troll”;
That will append “is a troll” to the end of the author’s name. So if the troll’s name is “Larry” is will show as “Larry is a troll”
If you really want to make them mad, just publish their IP address…
$comment->comment_author ,= ” is a troll from “.$comment->comment_author_IP;
That might be going a little overboard though.Forum: Plugins
In reply to: Disemvoweler?Sweet. I wasn’t sure how the whole apply_filter thing worked yet (yesterday was my first day to dive into the code). Your example has given me a bit of “applied experience” which will no doubt help in the future.
Forum: Plugins
In reply to: Disemvoweler?I’ll take a crack at brute force:
Open up template_functions.php and look for function comment_text();
find the following line:
echo $comment_text;
and right before it add:
$vowels = array(“a”, “e”, “i”, “o”, “u”, “A”, “E”, “I”, “O”, “U”);
$badIPs = array(“174.16.43.355″,”152.44.53.114”);
if (in_array($comment->comment_author_IP, $badIPs))
{
$comment_text = str_replace($vowels, “”, $comment_text);
}
Obviously you’d want to replace the IPs above with those of the offending trolls.
disclaimer: code is completely untested.Forum: Plugins
In reply to: Disemvoweler?Actually, I think the code you’re looking for is listed as an example for str_replace on php.net.
// Provides: Hll Wrld f PHP
$vowels = array(“a”, “e”, “i”, “o”, “u”, “A”, “E”, “I”, “O”, “U”);
$onlyconsonants = str_replace($vowels, “”, “Hello World of PHP”);Forum: Fixing WordPress
In reply to: Need orignal template codeI did a browse on the CVS repository and pulled up the text version of wp-layout.css. Copied the whole thing and pasted over my (very messed up) version. You can view that text from the repository right here