XMB Forum Software

Registration passkey

Scarlet - 9-15-2017 at 11:48 AM

I'd like to request a passkey that can be set in the admin panel and then forced on registration so as to stop spammers, and have a private forum that only privileged people can register on that I have previously approved. My forum is mainly for people I talk to online and not really anyone else at the moment so I think this will be pretty necessary for my site.

I'll probably need to edit the templates for member_reg and add some things into the member.php file. However, with little PHP knowledge (and even then my understanding of PHP only extends to one specific forum package which is very badly coded), I won't be able to do this.

It shouldn't be too hard though, just adding an extra security check on the register form and a field I suppose x')

Anyone? ^^

lottos - 9-15-2017 at 11:49 AM

This deals with spammers nicely:
http://forums.xmbforum2.com/viewthread.php?tid=776991#pid137...

and you can set up a forum with passwords for specific forum fids.

Scarlet - 9-15-2017 at 12:05 PM

Thanks for the help, but that seems to deal more with the spam posting rather than their actual registrations. I'm probably more bothered about the spammers actually registering rather than having to remove their posts :sniffle:

I did try adding an extra field on the registration template called 'passkey' and then adding this to member.php somewhere:

if(isset($_POST['passkey']) && $_POST['passkey'] != "passkey") {
die("Invalid passkey - please contact via outside the board if you need it");
}

(or something like that, I can't remember everything -.-)

Unfortunately, this didn't work, it still let my test registration in. Maybe I need to create a new template? I'm not sure everything about XMB's codebase.

Xian - 9-15-2017 at 06:04 PM

Quote: Originally posted by Scarlet  
Thanks for the help, but that seems to deal more with the spam posting rather than their actual registrations. I'm probably more bothered about the spammers actually registering rather than having to remove their posts :sniffle:

I did try adding an extra field on the registration template called 'passkey' and then adding this to member.php somewhere:

if(isset($_POST['passkey']) && $_POST['passkey'] != "passkey") {
die("Invalid passkey - please contact via outside the board if you need it");
}

(or something like that, I can't remember everything -.-)

Unfortunately, this didn't work, it still let my test registration in. Maybe I need to create a new template? I'm not sure everything about XMB's codebase.


Does your board not have the Captcha Image Settings?

Look at the attached files below for reference.


Screen Shot 2017-09-15 at 11.03.05 AM.png - 68kBScreen Shot 2017-09-15 at 11.02.36 AM.png - 130kB

Scarlet - 9-15-2017 at 08:19 PM

It doesn't have said function because I haven't installed the dependencies for it yet. Also, CAPTCHA doesn't stop persistent humans or such, so is useless. :P

For some reason my community has been rather a big target for spammers due to a few feuds I have had with others, usually resulting in me disabling registration access for a few days. I'd rather keep registrations locked rather than completely disabled, though. :)

Xian - 9-16-2017 at 06:21 AM

I'm working on a hack for you.

Scarlet - 9-16-2017 at 06:23 AM

Oh cool, thanks! It's awesome to see people are sticking around and helping others out. :3 I appreciate what you're doing A LOT.

Xian - 9-16-2017 at 07:32 AM

Quote: Originally posted by Scarlet  
Oh cool, thanks! It's awesome to see people are sticking around and helping others out. :3 I appreciate what you're doing A LOT.


Here you go:

http://forums.xmbforum2.com/viewthread.php?tid=776997#pid137...

Let me know if you have troubles. I will try and help you out.