+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Personal page same as username

  1. #1

    Personal page same as username

    Hello. How can we make the personal page to autofill with the username chosen? for instance username: new_user - have as personal page www.my_site.com/new_user
    When a user creates a new account, he insert his username and olso can chose a diferent personal page. I think it would be best if that area will catch the username and add it in there and so, not letting a user to add a diferent personal page.

  2. #2
    Flynax developer
    Join Date
    Jun 2010
    Posts
    239
    Hello,

    You can try change it the following way:

    1.
    - open file includes/controllers/registration.inc.php
    - find this code:

    PHP Code:
    Only registered members can view the code
    and change it to:

    PHP Code:
    Only registered members can view the code
    2.
    - open file templates/your_template/tpl/controllers/registration.tpl
    - find the code:

    Code:
    Only registered members can view the code.
    and replace it with following line:

    Code:
    Only registered members can view the code.

  3. #3
    Quote Originally Posted by Vladimir View Post
    Hello,

    You can try change it the following way:

    1.
    - open file includes/controllers/registration.inc.php
    - find this code:

    PHP Code:
    Only registered members can view the code
    and change it to:

    PHP Code:
    Only registered members can view the code
    2.
    - open file templates/your_template/tpl/controllers/registration.tpl
    - find the code:

    Code:
    Only registered members can view the code.
    and replace it with following line:

    Code:
    Only registered members can view the code.

    Hello. Does not work. The personal adress area doesn't show but when i try to move to step 2 i receive ""Personal address" either has not been entered or is incorrect; please try again". What could be wrong?

  4. #4
    Flynax developer
    Join Date
    Jun 2010
    Posts
    239
    I am sorry, you need to perform 3-d step:

    3.
    - open file: includes/classes/rlAccount.class.php;
    - go to the method: ajaxSubmitProfile();
    - find this line:

    PHP Code:
    Only registered members can view the code
    and add the following code after this line:

    PHP Code:
    Only registered members can view the code

  5. #5
    [QUOTE=Vladimir;2463]I am sorry, you need to perform 3-d step:

    3.
    - open file: includes/classes/rlAccount.class.php;
    - go to the method: ajaxSubmitProfile();
    - find this line:

    PHP Code:
    Only registered members can view the code
    and add the following code after this line:

    PHP Code:
    Only registered members can view the code
    /QUOTE]

    That did the trick. Works perfect. Thank you

  6. #6
    [QUOTE=Vladimir;2463]I am sorry, you need to perform 3-d step:

    3.
    - open file: includes/classes/rlAccount.class.php;
    - go to the method: ajaxSubmitProfile();
    - find this line:

    PHP Code:
    Only registered members can view the code
    and add the following code after this line:

    PHP Code:
    Only registered members can view the code
    /QUOTE]


    seems to be a issue. is working perfect if i use a username like NewUser but if i add the username as New User, will not work. will get ""Personal address" either has not been entered or is incorrect; please try again". how do we lose the space between if a user ads a username made of 2-3 words? thanks

  7. #7
    Hi,

    Find function in rlAccount.class.php and find function ajaxValidateProfile, add line as below. Think it will work after the change

    Code:
    Only registered members can view the code.

  8. #8
    Quote Originally Posted by Mike F. View Post
    Hi,

    Find function in rlAccount.class.php and find function ajaxValidateProfile, add line as below. Think it will work after the change

    Code:
    Only registered members can view the code.
    thanks. will try it

  9. #9
    Quote Originally Posted by Mike F. View Post
    Hi,

    Find function in rlAccount.class.php and find function ajaxValidateProfile, add line as below. Think it will work after the change

    Code:
    Only registered members can view the code.
    unfortunaly is not working. have tried 2 times after cache refresh. when i use "test" is ok, when i use "test-test or test_test" is ok but when i use "test test" is not working. any ideea what should i try?

  10. #10
    Hello Petrache Nicolae,

    You should replace free space to _ or -or remove only, like you want.
    Viktor,
    Flynax technical department,
    Best wishes.

+ Reply to Thread