Jump to content

rob2

Member
  • Posts

    139
  • Joined

  • Last visited

About rob2

rob2's Achievements

Senior Member

Senior Member (3/3)

0

Reputation

  1. Hi, thanks all the reply from brian and sentq,it is really that template is more quicker for me to edit it,i still check if any way to write the hook for it. thank you.
  2. Hi, with the custom field feature, i add certain custom field with admin only and Required Field, but i do not need client to choose it and i hope it be X option directly. with my checking.whmcs will not automatically create the field data for the client and set the X option for it, i want to ask if any way that the new client registing or make ordering, when whmcs get the registering call,it will let the hook to choose the custom field as X option and generate the value for the client/and save in database directly, is it possible ? thank you
  3. 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
  4. Hi, thanks for your explain and i understnad more, but it seems the hook file has no effect to hide those items, may you help me check it ? thank you again.
  5. Hi, it seems the hook method still make my addon can not show well, finally,i use your way to replace the .tpl file to modify it. thank you again.
  6. Hi, may i ask a question, one is " if (!is_null($primarySidebar->getChild('Domain Details Management'))) { " , and this one is " if (!is_null($primarySidebar->getChild('Ticket Information'))) { " , how do you know it is "Details Management" or "Information" ? because i think try to remove the following 4 parts at support but no effect. Announcements Knowledgebase Downloads Network Status thank you
  7. Hi, mainly,i do not want to show the fulname, so,i think to replace them as one message directly, i search and find the hook but when i use,my certain addon can not show well on the clientarea.php, i want to ask if any way to let me modify the welcome message well ? thank you.
  8. Hi, i upgeade the whmcs to 6.3.0, i create my own language file and set it as default, but sometimes,the client aside will show as english insteaf of my custom/default language, is it possible i modify what file and make the issue ? thank you.
  9. Hi, i had check many post about use hook to hide or remove the items at sidebar, but it seems those items are menus with hyperlink, and what is need to remove are not menu(hyperlink), for instance,the priirity at itcket and get epp code at domain, do you know how to hide them ? thank you
  10. Hi, yes,i also remove it to achieve what i need now.but for the first time loading the page,the box does not show with green border and i need check/unchecked it later and it shows well.
  11. Hi, thank for your codes,but with my testing, it seems do not work but the same result.
  12. Hi, i use the order form "standard cart" and i hope some addon(s) are added by default, and client can disable it if he do not need it when ordering. for instance,i want to set id protect as enabled by default, i modify the file templates/orderforms/standard_cart/configuredomains.tpl i add checked after <input type="checkbox" name="idprotection[{$num}]" , when ordering,the id protect option will show as checked by default, but when i click the lower part button "add to cart" "added to cart(remove)", the buttons are no works at all, i think it is because the file templates/orderforms/standard_cart/base.js , do you know how can i correct the code at the base.js ? thank you
  13. Hi, i modify it as following but still get 500 error,may you help me check again ?
  14. Hi, do you mind help me correcting the following ? <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimarySidebar', 1, function (MenuItem $primarySidebar) { $client = Menu::context('client'); $footer = '<a href="clientarea.php?action=details" class="btn btn-success btn-sm btn-block"><i class="fa fa-pencil"></i> '.Lang::trans('clientareaupdatebutton').'</a>'; ->setFooterHtml($footer); if($client->companyname != ""){ $name = '<strong>'.$client->companyname.'</strong>'; } else { $name = '<strong>'.$client->fullname.'</strong>'; } $address1 = $client->address1; if($client->address2 != ""){$address2 = '<br>'.$client->address2;}else{$address2="";} $city = ' '.$client->city; $state = '<br>'.$client->state; $postcode = '<br>'.$client->postcode; $country = '<br>'.$client->countryname; $address_new = $name."<p>".$address1.$address2.$postcode.$city.$state.$country."</p>"; if (!is_null($primarySidebar->getChild('Client Details'))) { $primarySidebar->removeChild('Client Details') ->addChild('Client Details') ->moveToFront() ->addChild($address_new) ->setFooter($footer); } });
  15. Hi, the hook will remove the edit button,many i ask how can i keep the button here ?
×
×
  • 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