MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
     Site demo
Moderators: mem paulo89 adminik
RSSReply
2 Questions
AuthorText
imtom
Just arrived
Avatar

Posts: 3
Contributes: 3

Gender: _NEUTRAL_
Online: No
Date: 17/07/2008 20:55
2 Questions
#post10169
First:

How do I go about changing the minimum username to 3 characters, I would like for it to be a minimum of 3 characters and not 4

Second:

How can I turn off registeration on the portal as this is to be a private portal for a company.

Thanks
Tom
Delete Edit Quote
 
mem
MemHT's Dad
Admin / Developer

Avatar

Posts: 3780
Contributes: 1052

Gender: _MALE_
Online: No

Languages: English, Italiano, Makedonski, Srpski, Un poco de Español
Date: 17/07/2008 21:53
Re: 2 Questions
#post10172
Hi and welcome

Just switch off the users page or set registrations to be approved by admins (obviously you shouldn't approve users)
Image
MemHT Portal - Free PHP CMS and Blog

"Great works are performed, not by strength, but by perseverance."
Samuel Johnson

READ THIS before posting your support question in the forum!
Delete Edit Quote
 
imtom
Just arrived
Avatar

Posts: 3
Contributes: 3

Gender: _NEUTRAL_
Online: No
Date: 17/07/2008 23:45
Re: 2 Questions
#post10173
Thanks Mem

And now how do I allow for 2 letter names and 3 letter names? Right now its requiring me to do a minimum of 4
Delete Edit Quote
 
mem
MemHT's Dad
Admin / Developer

Avatar

Posts: 3780
Contributes: 1052

Gender: _MALE_
Online: No

Languages: English, Italiano, Makedonski, Srpski, Un poco de Español
Date: 17/07/2008 23:48
Re: 2 Questions
#post10174
inc/inc_functions.php

Find
code
function validUser($usert) {
        global $dblink,$siteConfig;

        if (eregi("^([a-zA-Z0-9._-]{4,".$siteConfig['user_max_lunghezza']."})$",$usert)) {
                return ($dblink->get_num("SELECT user FROM memht_utenti_vietati WHERE user='$usert'")) ? false : true ;
        } else {
                return false;
        }
}


Change {4, with {3,
Image
MemHT Portal - Free PHP CMS and Blog

"Great works are performed, not by strength, but by perseverance."
Samuel Johnson

READ THIS before posting your support question in the forum!
Delete Edit Quote
 
imtom
Just arrived
Avatar

Posts: 3
Contributes: 3

Gender: _NEUTRAL_
Online: No
Date: 18/07/2008 16:08
Re: 2 Questions
#post10193
Ok I modified that but its still displaying user name is too short, I changed the 4 to a 2
Delete Edit Quote
 
mem
MemHT's Dad
Admin / Developer

Avatar

Posts: 3780
Contributes: 1052

Gender: _MALE_
Online: No

Languages: English, Italiano, Makedonski, Srpski, Un poco de Español
Date: 18/07/2008 17:47
Re: 2 Questions
#post10198
What's your site?
Image
MemHT Portal - Free PHP CMS and Blog

"Great works are performed, not by strength, but by perseverance."
Samuel Johnson

READ THIS before posting your support question in the forum!
Delete Edit Quote
 
Reply
Tags Cloud
Advertising
News Archive
Language
Help MemHT Portal
Navigator
Search
Users Block
Hi Guest
IP: 38.103.63.60

Username
Password
New files
MemHT Wiki
Friends
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo