Advanced search  

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

Pages: [1]   Go Down

Author Topic: Blocking Certain TLDs from registering  (Read 7915 times)

0 Members and 1 Guest are viewing this topic.

TeraS

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 17
  • Lost but trying really hard...
    • Succubus.net
Blocking Certain TLDs from registering
« 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!
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Blocking Certain TLDs from registering
« Reply #1 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?

TeraS

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 17
  • Lost but trying really hard...
    • Succubus.net
Re: Blocking Certain TLDs from registering
« Reply #2 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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Blocking Certain TLDs from registering
« Reply #3 on: June 18, 2010, 07:19:56 pm »

What happens when you apply that mod?
Logged

TeraS

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 17
  • Lost but trying really hard...
    • Succubus.net
Re: Blocking Certain TLDs from registering
« Reply #4 on: June 18, 2010, 08:05:25 pm »

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

Logged

mykee

  • Contributor
  • Coppermine frequent poster
  • ***
  • Country: hu
  • Offline Offline
  • Gender: Male
  • Posts: 140
    • One moment from Hungary
Re: Blocking Certain TLDs from registering
« Reply #5 on: June 19, 2010, 05:38:32 pm »

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

TeraS

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 17
  • Lost but trying really hard...
    • Succubus.net
Re: Blocking Certain TLDs from registering
« Reply #6 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...
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Blocking Certain TLDs from registering
« Reply #7 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 thread.
Logged

TeraS

  • Coppermine newbie
  • Offline Offline
  • Gender: Female
  • Posts: 17
  • Lost but trying really hard...
    • Succubus.net
Re: Blocking Certain TLDs from registering
« Reply #8 on: June 22, 2010, 05:28:14 pm »

Thank you Αndré for the support!
Logged
Pages: [1]   Go Up
 

Page created in 0.043 seconds with 20 queries.