XMB Forum Software
Not logged in [Login - Register]
Go To Bottom

Printable Version  
Author: Subject: Registration passkey
Scarlet
Member
***




Posts: 60
Registered: 9-15-2017
Location: England
Member Is Offline

Mood: Excited for XMB's resurrection!

[*] posted on 9-15-2017 at 11:48 AM
Registration passkey


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? ^^
View user's profile View All Posts By User This user has MSN Messenger
lottos
Administrator
********




Posts: 461
Registered: 6-3-2002
Member Is Offline

Mood: pass me a TimTam

[*] posted on 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.



View user's profile View All Posts By User
Scarlet
Member
***




Posts: 60
Registered: 9-15-2017
Location: England
Member Is Offline

Mood: Excited for XMB's resurrection!

[*] posted on 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.
View user's profile View All Posts By User This user has MSN Messenger
Xian
Member
***




Posts: 48
Registered: 9-12-2017
Location: Los Angeles, California
Member Is Offline

Mood: w00h00!

[*] posted on 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
View user's profile View All Posts By User
Scarlet
Member
***




Posts: 60
Registered: 9-15-2017
Location: England
Member Is Offline

Mood: Excited for XMB's resurrection!

[*] posted on 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. :)
View user's profile View All Posts By User This user has MSN Messenger
Xian
Member
***




Posts: 48
Registered: 9-12-2017
Location: Los Angeles, California
Member Is Offline

Mood: w00h00!

[*] posted on 9-16-2017 at 06:21 AM


I'm working on a hack for you.
View user's profile View All Posts By User
Scarlet
Member
***




Posts: 60
Registered: 9-15-2017
Location: England
Member Is Offline

Mood: Excited for XMB's resurrection!

[*] posted on 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.
View user's profile View All Posts By User This user has MSN Messenger
Xian
Member
***




Posts: 48
Registered: 9-12-2017
Location: Los Angeles, California
Member Is Offline

Mood: w00h00!

[*] posted on 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.
View user's profile View All Posts By User

  Go To Top

Powered by XMB 1.9.12 (Debug Mode)
XMB Forum Software © 2001-2024 The XMB Group
[Queries: 16] [PHP: 45.4% - SQL: 54.6%]