forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: TeraS on June 17, 2010, 09:19:05 pm

Title: Blocking Certain TLDs from registering
Post by: TeraS on June 17, 2010, 09:19:05 pm
Hello!

Back in 1.4.x there was a MOD that you could add to the register.php file that would allow you to list a number of TLDs that you didn't want people to be registering from. Such sites as mailinator and so on could be refused permission to join your gallery in that way.

Does anyone have an idea of how to do this in 1.5.6?

I've been fiddling with the old method and cannot for the life of me make it work.

((My gallery is at: http://succubus.net/gallery ))

Thank you in advance for any thoughts on this!
Title: Re: Blocking Certain TLDs from registering
Post by: Joe Carver on June 17, 2010, 10:36:15 pm
Back in 1.4.x there was a MOD that you could add to the register.php ......

Please be more specific - could you post the link?
Title: Re: Blocking Certain TLDs from registering
Post by: TeraS on June 17, 2010, 11:55:47 pm
http://forum.coppermine-gallery.net/index.php/topic,16833.0.html

The MOD as on this forum. Sorry, I was not on one of my computers with the saved links on them.
Title: Re: Blocking Certain TLDs from registering
Post by: Αndré on June 18, 2010, 07:19:56 pm
What happens when you apply that mod?
Title: Re: Blocking Certain TLDs from registering
Post by: TeraS on June 18, 2010, 08:05:25 pm
A white screen and the words Fatal Error and that's it.

Title: Re: Blocking Certain TLDs from registering
Post by: mykee on June 19, 2010, 05:38:32 pm
This mod will be like white or blacklist for registration?  ::) ???
Title: Re: Blocking Certain TLDs from registering
Post by: TeraS on June 19, 2010, 05:51:25 pm
It is a blacklist for registrations

I've started on building a plug in for this, though that will take me a while, as I am a noobie at this...
Title: Re: Blocking Certain TLDs from registering
Post by: Αndré on June 22, 2010, 04:13:44 pm
A white screen and the words Fatal Error and that's it.
Mod works like expected. In register.php, find
Code: [Select]
    if (!Inspekt::isEmail($email)) {
        $error .= '<li style="list-style-image:url(images/icons/stop.png)">' . $lang_register_php['email_warning2'] . '</li>';
    }
and after it add your preferred solution from that (http://forum.coppermine-gallery.net/index.php/topic,16833.0.html) thread.
Title: Re: Blocking Certain TLDs from registering
Post by: TeraS on June 22, 2010, 05:28:14 pm
Thank you Αndré for the support!