JasonO Posted February 19, 2008 Share Posted February 19, 2008 You can't, I tried - a contact and the default contact are 2 seperate things. 0 Quote Link to comment Share on other sites More sharing options...
jack10k Posted February 21, 2008 Share Posted February 21, 2008 This can be usefully. Very nicely done. Thank you. 0 Quote Link to comment Share on other sites More sharing options...
ihostct Posted April 13, 2008 Share Posted April 13, 2008 Thank you for this post! I just discovered the need to implement this code. Client wanted to cancel, and rather than using our standard cancel process they decided to try to skew the record by changing the name and address info on the account. Canceled or not, I still need to keep the records accurate I'll be getting this taken care of without delay! thank you again! 0 Quote Link to comment Share on other sites More sharing options...
ghpk Posted May 12, 2008 Share Posted May 12, 2008 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. 0 Quote Link to comment Share on other sites More sharing options...
jerett Posted May 22, 2008 Share Posted May 22, 2008 Nice work and I think WHMCS might want to integrate something similar. Another idea would be to make it where the client can change the information but it isn't registered in the system as a change until the administrator approves it. If it is no approved then the changes revert back to the original state. This should almost be a standard option. 0 Quote Link to comment Share on other sites More sharing options...
casa Posted May 25, 2008 Share Posted May 25, 2008 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. 0 Quote Link to comment Share on other sites More sharing options...
casa Posted May 30, 2008 Share Posted May 30, 2008 Any ideas? Thank you 0 Quote Link to comment Share on other sites More sharing options...
pixllmall Posted June 4, 2008 Share Posted June 4, 2008 thanks for this great tip. 0 Quote Link to comment Share on other sites More sharing options...
Serverweb Posted June 5, 2008 Share Posted June 5, 2008 i add this readonly="readonly" example <input name="firstname" value="{$clientfirstname}" readonly="readonly" size="25" /> 0 Quote Link to comment Share on other sites More sharing options...
casa Posted June 6, 2008 Share Posted June 6, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
Serverweb Posted June 6, 2008 Share Posted June 6, 2008 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:( 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted June 6, 2008 Share Posted June 6, 2008 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} </td><td>{$customfields.1.value} {$customfield.required}</td></tr> {/foreach} </table> </td></tr></table> {/if} 0 Quote Link to comment Share on other sites More sharing options...
Serverweb Posted June 6, 2008 Share Posted June 6, 2008 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) 0 Quote Link to comment Share on other sites More sharing options...
casa Posted June 7, 2008 Share Posted June 7, 2008 Thanks a lot. I will try and I post the result here. Thank you 0 Quote Link to comment Share on other sites More sharing options...
casa Posted June 7, 2008 Share Posted June 7, 2008 It work fine! Thanks a lot. 0 Quote Link to comment Share on other sites More sharing options...
michelle Posted July 8, 2008 Share Posted July 8, 2008 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. 0 Quote Link to comment Share on other sites More sharing options...
plazmahost Posted August 10, 2008 Share Posted August 10, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
Si Posted August 10, 2008 Author Share Posted August 10, 2008 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 0 Quote Link to comment Share on other sites More sharing options...
plazmahost Posted August 11, 2008 Share Posted August 11, 2008 ok i got the wrong end of the stick with this sorry - its my first time using whmcs 0 Quote Link to comment Share on other sites More sharing options...
addy1978 Posted March 9, 2009 Share Posted March 9, 2009 FANTASTIC. Thanks for the script. Its works great and is really appreciated. 0 Quote Link to comment Share on other sites More sharing options...
addy1978 Posted March 9, 2009 Share Posted March 9, 2009 Silly question. Can this also be applied to the address of the account which would only allow a member to be able to change their phone number and email address? If so, can somebody help with the code needed as i have had a quick play with no luck. Thanks guys. 0 Quote Link to comment Share on other sites More sharing options...
XN-Matt Posted March 12, 2009 Share Posted March 12, 2009 Remember to also do something similar in creditcard.tpl file too - otherwise they can change it there and you WONT get an email telling you about it, as we found out. 0 Quote Link to comment Share on other sites More sharing options...
Damainman Posted September 12, 2009 Share Posted September 12, 2009 Does this also apply to the latest version? 0 Quote Link to comment Share on other sites More sharing options...
Si Posted September 12, 2009 Author Share Posted September 12, 2009 Yep. Running it on 4.0.2 with no issues. 0 Quote Link to comment Share on other sites More sharing options...
redrat Posted September 12, 2009 Share Posted September 12, 2009 @ Si Thank you very much for this Si. It works brilliantly with 4.0.2. I've been meaning to arrange this protection for some time but just got around to it tonight. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.