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

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

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

191 user(s) are online (168 user(s) are browsing Support Forums)


Members: 0


Guests: 191


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits