1
byronbussey
Re: New User Registration and Activation Question
  • 2006/5/6 22:30

  • byronbussey

  • Just popping in

  • Posts: 3

  • Since: 2006/5/3 1


in the register.php file there is


if (strrpos($email,' ') > 0) {
$stop .= _US_EMAILNOSPACES.'<br />';

which prevents a user to supply an email with spaces...
you could simply duplicate this with:
(note the change of function to stristr)


if (stristr($email,'gmail.com') > 0) {
$stop .= _US_EMAILNOSPACES.'<br />';

and gmail.com would be disallowed. Pack an array from a .txt file on your server of the banned email hosts and do a While Loop and you would have what you need. I cannot whip up PHP off the top of my head but maybe someone else (or you can).
GL.

Byron



2
byronbussey
varibles?
  • 2006/5/6 20:49

  • byronbussey

  • Just popping in

  • Posts: 3

  • Since: 2006/5/3 1


Are there global variables? Is there a list of all XOOP variables? Im trying to play with a block that simply displays the current logged in user "to themselves" but it would seem to be beyond my ability.



3
byronbussey
modify register.php
  • 2006/5/3 18:43

  • byronbussey

  • Just popping in

  • Posts: 3

  • Since: 2006/5/3 1


I want to remove the option in the registration that has the "allow other users to see my email" box. Thanks to anyone with some tips.




TopTop



Login

Who's Online

187 user(s) are online (123 user(s) are browsing Support Forums)


Members: 0


Guests: 187


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits