Page 3 of 5 FirstFirst 12345 LastLast
Results 31 to 45 of 67

Thread: How to stop customers change their account name details

  1. #31
    Join Date
    May 2008
    Posts
    27

    Default

    Hi,

    Very nice work. But I try do it in the custom fileds and it not function well.

    The custom code is

    {if $customfields}
    <br />
    <table cellspacing="1" cellpadding="0" class="frame"><tr><td>
    <table width="100%" cellpadding="2">
    {foreach key=num item=customfield from=$customfields}
    <tr><td width="150" class="fieldarea">{$customfield.name}</td><td>{$customfield.input} {$customfield.required}</td></tr>
    {/foreach}
    </table>
    </td></tr></table>
    {/if}

    Can you help me to change this for the customer not edit it?

    Thank you.

  2. #32
    Join Date
    May 2008
    Posts
    27

    Default

    Any ideas?

    Thank you

  3. #33
    Join Date
    Mar 2008
    Posts
    2

    Default

    thanks for this great tip.

  4. #34
    Join Date
    Jun 2008
    Posts
    48

    Default

    i add this
    readonly="readonly"
    example

    <input name="firstname" value="{$clientfirstname}" readonly="readonly" size="25" />

  5. #35
    Join Date
    May 2008
    Posts
    27

    Default

    Hi Serverweb,

    The code in the file clientareadetails.tpl is the below

    {if $customfields}
    <br />
    <table cellspacing="1" cellpadding="0" class="frame"><tr><td>
    <table width="100%" cellpadding="2">
    {foreach key=num item=customfield from=$customfields}
    <tr><td width="150" class="fieldarea">{$customfield.name}</td><td>{$customfield.input} {$customfield.required}</td></tr>
    {/foreach}
    </table>
    </td></tr></table>
    {/if}

    Please, where I change the code and put your tip?

    Thank you

  6. #36
    Join Date
    Jun 2008
    Posts
    48

    Default

    Sorry...that eas for normal contact

    I try a lot of solution but not fine

    I would like find class $customfield.""input""
    If we find this "INPUT" we can modify it

  7. #37
    Join Date
    Apr 2008
    Posts
    69

    Default

    Hi,

    Try the code below.
    .1.value is the ID number of the custom field in the tblcustomfields table.

    {if $customfields}
    <br />
    <table cellspacing="1" cellpadding="0" class="frame"><tr><td>
    <table width="100%" cellpadding="2">
    {foreach key=num item=customfield from=$customfields}
    <tr><td width="150" class="fieldarea">{$customfield.name}&nbsp;</td><td>{$customfields.1.value} {$customfield.required}</td></tr>
    {/foreach}
    </table>
    </td></tr></table>
    {/if}

  8. #38
    Join Date
    Jun 2008
    Posts
    48

    Default

    find solution
    I hope you like this
    ---

    change
    {$customfield.input}
    to
    {$customfield.value}
    ----

    try it..
    Now all customfield are not editable (i try and it work fine)
    Last edited by Serverweb; 06-06-08 at 07:30 PM.

  9. #39
    Join Date
    May 2008
    Posts
    27

    Default

    Thanks a lot. I will try and I post the result here.

    Thank you

  10. #40
    Join Date
    May 2008
    Posts
    27

    Default

    It work fine!

    Thanks a lot.

  11. #41
    Join Date
    Aug 2006
    Posts
    175

    Default

    Quote Originally Posted by ghpk View Post
    Thanks "Si" works fine in 3.6.1 too.

    However I've restricted the client from changing the EMail ID and Address too.

    Preventing EMAIL id change might also help in case someone's clientArea Password is stolen. Hacker/kiddie would not be able to access it once the forget password option has been used by Original Client, and much more.

    Also i've used Text stating "Please Raise a Support request should you need to change above Contact details/ownership".

    Thanks again Si.
    This is an awesome contribution. Thanks, Si!

    gnpk: How did you do the above? I'd love to implement something like that.

    Thanks in advance.

  12. #42
    Join Date
    Dec 2007
    Posts
    59

    Default

    Hello - how would this work now as clients can add extra contacts - is there a way to disable adding new contacts or something?

    thanks

    daniel

  13. #43
    Join Date
    Aug 2007
    Posts
    895

    Default

    Quote Originally Posted by Neath Hosting View Post
    Hello - how would this work now as clients can add extra contacts - is there a way to disable adding new contacts or something?

    thanks

    daniel
    You could always add new contacts. That makes absolutely no difference to this mod as it only affects the primary account holder. You don't get involved with editing any other files re additional contacts (why would you?).

    Just follow the instructions that are provided.

    Si

  14. #44
    Join Date
    Dec 2007
    Posts
    59

    Default

    ok i got the wrong end of the stick with this

    sorry - its my first time using whmcs

  15. #45
    Join Date
    Mar 2009
    Posts
    10

    Default

    FANTASTIC. Thanks for the script. Its works great and is really appreciated.

Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Stop WHMCS from wiping out CC details
    By pod in forum Feature Requests
    Replies: 2
    Last Post: 03-18-11, 01:07 AM
  2. How to stop browser auto-fill filling in login details
    By charlottezweb in forum Customisation & Integration Questions
    Replies: 9
    Last Post: 01-02-08, 11:36 PM