forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 plugins => Topic started 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!
-
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?
-
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.
-
What happens when you apply that mod?
-
A white screen and the words Fatal Error and that's it.
-
This mod will be like white or blacklist for registration? ::) ???
-
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...
-
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 (http://forum.coppermine-gallery.net/index.php/topic,16833.0.html) thread.
-
Thank you Αndré for the support!