26

Re: Forum Extensions

Wow, really? I'll try myself

27

Re: Forum Extensions

Nevermind, it works now.

28

Re: Forum Extensions

Adding links to two more spam preventing extensions:
  Fancy Stop Spam
  StopForumSpam.com antispam (as mentioned by the-golem earlier in this thread)

29

Re: Forum Extensions

Baron Bruce wrote:

Nevermind, it works now.

Yes, it does. I don't know why you were having issues. Very peculiar.

30

Re: Forum Extensions

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

using LS since 1998. Old FPN site operator, owner of ShellFront, keeper of other LS domains
State of the Step 2011

31

Re: Forum Extensions

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...)

32

Re: Forum Extensions

who knows... I'm up for anything that's reasonable though, as long as we know what it does big_smile

using LS since 1998. Old FPN site operator, owner of ShellFront, keeper of other LS domains
State of the Step 2011

33

Re: Forum Extensions

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.

http://punbb.informer.com/forums/topic/ … recaptcha/

34

Re: Forum Extensions

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.)

35

Re: Forum Extensions

If it's humans there's nothing past moderation you can do.

36

Re: Forum Extensions

exactly... spam will always exist. All you can do is slow it down.

using LS since 1998. Old FPN site operator, owner of ShellFront, keeper of other LS domains
State of the Step 2011

37

Re: Forum Extensions

Adding a option to PM Users would be nice too.

38

Re: Forum Extensions

Baron Bruce wrote:

Adding a option to PM Users would be nice too.

I mentioned this, Post #1. It got voted down.

39

Re: Forum Extensions

the-golem wrote:
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.

40

Re: Forum Extensions

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 smile

// ==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 sad)

41

Re: Forum Extensions

Wow nice, that should make your lives a lot easier. Go test it out on "urgent care rockville md" for kicks.

Litestep will never die.

42

Re: Forum Extensions

I think we have a spam problem ... time to use The Force Luke.