Blocking Certain TLDs from registering Blocking Certain TLDs from registering
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Blocking Certain TLDs from registering

Started by TeraS, June 17, 2010, 09:19:05 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TeraS

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!

Joe Carver

Quote from: TeraS on June 17, 2010, 09:19:05 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?

TeraS

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.

Αndré


TeraS

A white screen and the words Fatal Error and that's it.


mykee

This mod will be like white or blacklist for registration?  ::) ???
My gallery and demo for AnythingSlider, Photocols and CollagePlus plugin: http://foto.acegem.hu/index.php

TeraS

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

Αndré

Quote from: TeraS on June 18, 2010, 08:05:25 PM
A white screen and the words Fatal Error and that's it.
Mod works like expected. In register.php, find
    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 thread.

TeraS