Jump to content

modify the contact at home


rob2

Recommended Posts

Hi,

 

im sorry,im not sure why i can not make reply on the thread https://forum.whmcs.com/showthread.php?111614-how-can-i-hide-some-fields

 

so,i make a new thread asking for help.

 

 

with my attachment,

 

i the contect will show both first name and last name,

 

i try to make some modify but still fail,

 

is it possible only showing the first name ?

 

 

thank you

 

contact.jpg

Link to comment
Share on other sites

  • 2 weeks later...
is it possible only showing the first name ?

do you really need it to? I know it looks like a simple change, but it's complicated underneath to do. :roll:

 

the big problem with this is that, unlike previous sidebar tweaks, we don't know the name of the menuitems - therefore, the only way to do what you want, would be to manipulate arrays either by...

 

a) getting the array of children in the sidebar, using PHP to change the labels of those children to firstname and then sending the modified array back to the sidebar.

b) if there is >0 contacts, using the $contacts array (which has a firstname variable) to either change the labels, or create a new sidebar using the firstname variable.

 

in some ways, it would probably be 'simpler' to create a new sidebar rather than modifying the existing one.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated