Hooking/extending ucp register

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Post Reply
User avatar
RMcGirr83
Registered User
Posts: 360
Joined: Fri Mar 09, 2007 1:51 am
Contact:

Hooking/extending ucp register

Post by RMcGirr83 »

Is it currently possible to hook/extend the ucp_register class? For example, if someone wanted to inject some stopforumspam code. Took a look at it but not exactly sure as ucp_register seems to only have one function. Please remember, "Damn it Jim, I'm an accountant not a programmer".

TIA :)
Do not hire Christian Bullock he won't finish the job and will keep your money

User avatar
RMcGirr83
Registered User
Posts: 360
Joined: Fri Mar 09, 2007 1:51 am
Contact:

Re: Hooking/extending ucp register

Post by RMcGirr83 »

Hello, is this thing on?
Do not hire Christian Bullock he won't finish the job and will keep your money

User avatar
Pico88
Registered User
Posts: 73
Joined: Tue Apr 12, 2011 2:32 pm

Re: Hooking/extending ucp register

Post by Pico88 »

Hmm.. maybe add some events to it? :)

Or try use core.user_add_modify_data

User avatar
RMcGirr83
Registered User
Posts: 360
Joined: Fri Mar 09, 2007 1:51 am
Contact:

Re: Hooking/extending ucp register

Post by RMcGirr83 »

I am not looking to inject stuff in to the database. I am looking to inject stuff into the code when a user first registers....like an antispam thing. Similar could be asked about posting and/or includes/functions_posting.php.
Do not hire Christian Bullock he won't finish the job and will keep your money

User avatar
Pony99CA
Registered User
Posts: 986
Joined: Sun Feb 08, 2009 2:35 am
Location: Hollister, CA
Contact:

Re: Hooking/extending ucp register

Post by Pony99CA »

What about putting this code in session.php (I think that's the name)? That way you can handle IP addresses for guests, too. Or, if phpBB would support plug-ins for blacklists like they do for CAPTCHAs, you could easily use Stop Forum Spam there.

And, if anybody is interested, here's some code for implementing Stop Forum Spam.

Steve
Silicon Valley Pocket PC (http://www.svpocketpc.com)
Creator of manage_bots and spoof_user (ask me)
Need hosting for a small forum with full cPanel & MySQL access? Contact me or PM me.

User avatar
RMcGirr83
Registered User
Posts: 360
Joined: Fri Mar 09, 2007 1:51 am
Contact:

Re: Hooking/extending ucp register

Post by RMcGirr83 »

So I guess with no comment from a dev the answer would be no...which makes sense as I don't see any events with the ucp_register file nor within memberlist file (other than to add stuff to the display) to use in the contactadmin form.
Do not hire Christian Bullock he won't finish the job and will keep your money

Post Reply