Re: Forum Extensions
Wow, really? I'll try myself
Please see this forum thread
view the old Litestep.info page
You are not logged in. Please login or register.
LiteStep Community Forums → General Discussion → Forum Extensions
Wow, really? I'll try myself
Nevermind, it works now.
Adding links to two more spam preventing extensions:
Fancy Stop Spam
StopForumSpam.com antispam (as mentioned by the-golem earlier in this thread)
Nevermind, it works now.
Yes, it does. I don't know why you were having issues. Very peculiar.
thanks Tobbe. I don't like that the 'StopForumSpam.com antispam' one could possibly have false positives, personally. I'd rather see some spam that can be deleted easily than legitimate users be potentially disallowed from joining.
the Fancy Stop SPAM sounds like it could help... though the author doesn't seem to describe how it works
No, he doesn't. Some screenshot I saw did mention something about a honeypot though. And in some post he mentioned looking at the source for a forum to see what form fields there were.
So I'm guessing there are hidden fields that bots would fill in, but humans wouldn't. (TBH I thought bots were smart enough not to mess with hidden fields...)
who knows... I'm up for anything that's reasonable though, as long as we know what it does
I don't get why this is so hard. Just use reCAPTCHA. The current CAPTCHA is awful and would explain why it isn't working. Also the question extension is really annoying.
Parts of why it's hard is that we're not actually sure it's bots doing the spamming. Could be humans doing it too, and then switching to another captcha solution will not help.
Something like "Fancy Stop Spam" might help though, or at least alleviate the problem a bit. (Only allowing so many links in your first post etc.)
If it's humans there's nothing past moderation you can do.
exactly... spam will always exist. All you can do is slow it down.
Adding a option to PM Users would be nice too.
Adding a option to PM Users would be nice too.
I mentioned this, Post #1. It got voted down.
Baron Bruce wrote:Adding a option to PM Users would be nice too.
I mentioned this, Post #1. It got voted down.
It didn't get voted down per se, it just needs email notification.
Not a forum extension per se, but I just wrote a small little greasemonkey script to make it faster for me and any other mod/admin to ban users! Should probably post it on the punbb page somewhere too, but I want to test it a bit more first
// ==UserScript==
// @name ban punbb user
// @namespace tlundberg.com
// @include http://forums.litestep.info/viewtopic.php*
// ==/UserScript==
var userId = 0;
var divs = document.getElementsByTagName('div');
console.log(divs.length);
for (var i = 0; i < divs.length; ++i) {
if (hasClassName(divs[i], 'post')) {
var lists = divs[i].getElementsByTagName('ul');
for (var j = 0; j < lists.length; ++j) {
if (hasClassName(lists[j], 'author-ident')) {
var listitems = lists[j].getElementsByTagName('li');
for (var k = 0; k < listitems.length; ++k) {
if (hasClassName(listitems[k], 'username')) {
var a = listitems[k].getElementsByTagName('a')[0];
var href = a.getAttribute('href');
var match = href.match(/id=(\d+)$/);
if (match && match.length == 2) {
userId = match[1];
}
}
}
}
}
var paragraphs = divs[i].getElementsByTagName('p');
for (var j = 0; j < paragraphs.length; ++j) {
if (hasClassName(paragraphs[j], 'post-actions')) {
var spans = paragraphs[j].getElementsByTagName('span');
for (var k = 0; k < spans.length; ++k) {
if (hasClassName(spans[k], 'report-post')) {
var banLinkSpan = document.createElement('span');
var banLinkA = document.createElement('a');
banLinkA.setAttribute('href', 'http://forums.litestep.info/admin/bans.php?add_ban=' + userId);
banLinkA.appendChild(document.createTextNode('Ban user'));
banLinkSpan.appendChild(banLinkA);
paragraphs[j].insertBefore(banLinkSpan, spans[k].nextSibling);
}
}
}
}
}
}
function hasClassName(element, className) {
var elementClassName = element.className;
return (elementClassName.length > 0 && (elementClassName == className ||
new RegExp("(^|\\s)" + className + "(\\s|$)").test(elementClassName)));
}
(Yay for nested loops and deep indentations? Not really )
Wow nice, that should make your lives a lot easier. Go test it out on "urgent care rockville md" for kicks.
I think we have a spam problem ... time to use The Force Luke.
LiteStep Community Forums → General Discussion → Forum Extensions
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_posts_feed official extension is installed. Copyright © 2003–2010 PunBB.
Please see this forum thread
view the old Litestep.info page