Jump to content

Rigsby

Member
  • Posts

    14
  • Joined

  • Last visited

About Rigsby

Rigsby's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Thanks Brian : ) 1. I think that's what I was aiming towards because I recognised the need for collecting such data on the page. So, how do I go about styling it? My current layout is the below image; no doubt you've seen it a thousand times before (I really don't like how things are; the page looks disjointed compared with other parts of the client area): And... why would the developers add a sidebar about ordering domain names when... they've.. just.. ordered one? Haha, it seems so unthought out to me. So yes, even the boxes in your image would be a start. I would like to know how to set out the basics of something similar which will enable me to go from there. 2. I have tried various ways to remove the Actions sidebar but to no avail, unfortunately. Here's what I've used: add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar) { if (!is_null($secondarySidebar->getChild('Actions'))) { $secondarySidebar->removeChild(‘Actions’); } }); ... I have also had the same issue with Shortcuts. It's strange because I have used other ho 3a. Where do I either delete the 'Continue Shopping" link or change the url? 3b. Actually, there is a reason for wanting to action 3a. The WHMCS hosting package templates don't suit my brand and there isn't any continuity (plus, I don't like the designs). What I would really like is to bring in my own layout being used on the main website (they are packages linked between WordPress and cPanel, and WHMCS obviously already knows about the cPanel link). So, is there a way to bring that in? (perhaps a page within a page or an added functionality that allows me to create my own template within WHMCS). If I am able to do that, there will be no reason to use a url to leave the shopping process to revisit the main webiste from whence they came! I hope I'm not boring you yet. The same can be said for the link in the below image (Explore packages now): ... and here: In fact, ANY link that points to the WHMCS hosting package templates need to be either updated to the link on my main website, deleted entirely, or I am hoping there's a way to bring in my own layout. Am I asking too much? I shall await your recommendations 4. How do I add View Cart to the Shortcuts sidebar? That's been killing me all day : ) 5. How do I delete 'Contact Support to Purchase' on the domain results page? I don't want people to be distracted whilst on a purchasing mission. 6. How do I add a link on the Review & Checkout page for other products? I like how it's there for domains so the customer can change the number of years they register for. It could be a great sales trick for hosting: 'pay annually and receive one month free' etc. etc. I think that's it for now. I have posted other questions, so won't repeat myself in this one. Thanks in advance for your invaluable expertise - - - Updated - - - Not sure why this sentence was cut off: ... I have also had the same issue with Shortcuts. It's strange because I have used other hooks and they all work fine
  2. Hello... Again! : ) Please can someone let me know the hook to hide the Actions sidebar on the Choose a Domain page. Thank you
  3. Hello... again! : ) Please can someone let me know how to fix this? I wish to hide View Available Addons: <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild(‘Actions’))) { $primaryNavbar->getChild('Actions')->removeChild('View Available Addons'); } }); Thank you : )
  4. Hello The Domains Configuration page is an absolute disgrace. I am sure that I am not the only one complaining about how it looks compared to the rest of their website theme. Is there a way to bypass this page entirely? No, we need to collect some data here, I understand that, but is there a way to make it look prettier? Any suggestions would be greatly appreciated. Whoever was putting this one together was having an off-day! Thanks : )
  5. Hello : ) The current orange colour doesn't match my theme. Please can someone tell me of a hook so I can change both the colour of the search box and the globe image. Many thanks
  6. Hello : ) When a client is viewing My Invoices and they click on one to view it, there is a link at the foot of the invoice saying "« Back to Client Area" (how silly, when really, they should be returned back to My Invoices; not everybody uses the browser's back button). Please can someone guide me to the correct place so I can update this. Thanks
  7. I bought an awesome module last night which let me fly through many navbar options. It's very affordable and is called WHMCS Advanced Menu Manager. I had been banging my head looking for answers all yesterday but within minutes of installing I was all over it like white on rice, haha. Here's my recent thread with screenshots https://forum.whmcs.com/showthread.php?128534-Hide-Announcements-Knowledgebase-RSS-etc I'm new to PHP and find it fascinating but sometimes I just need to crack on with my day and move to the next part of the project. Good luck
  8. Hello Does anyone know whether a copy of TOS is automatically attached to each customer? The reason why I ask is because things change, and if I am going to issue updates, then surely the customer would want the exact copy from the date they agreed at checkout, and not the newer version. If legal arguments arise and we refer to the original copy, then both the customer and myself will be singing from the same hymn sheet. Alternatively, what is to stop me (or any other website) changing the TOS to hoodwink the customer and their lawyer? Sure, it's downloadable, but how many people actually keep them, or better still, read them? To be safe, I would definitely go down the original agreement. If WHMCS doesn't offer this, is there a module, PHP script or hook that would enable this important function? Anyone's help would be greatly appreciated
  9. I have just spent the best £21 I will ever spend. It's a module for the navbar, and it.. is.. awesome! Search for WHMCS Advanced Menu Manager. The only downside, unless I haven't seen the option for it yet, is that it doesn't work with the sidebar. I wish I had known about this app 18 hours ago because I would be in bed instead of being up until 5am Zzzz They should pay me commission Tomorrow, I'm on the hunt for modules! What else is out there that are timesavers? Any ideas would be great
  10. Hi folks The below script adds a navbar drop-down menu pre-login and disappears after login, but does anyone know how to make it do the opposite? I would like to hide a parent pre-login and make it visible post-login. I found it on an earlier thread and thought it was very useful <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { $client = Menu::context('client'); // only add menu item when no client logged in if (is_null($client)) { $primaryNavbar->addChild('Client Portals') ->setOrder(100); $primaryNavbar->getChild('Client Portals') ->addChild('Remote Support', array( 'label' => 'Remote Support', 'uri' => 'http://www.example.com', 'order' => '200', )); $primaryNavbar->getChild('Client Portals') ->addChild('Divider1', array( 'order' => '300', )) ->setClass('nav-divider'); $primaryNavbar->getChild('Client Portals') ->addChild('WebMail', array( 'label' => 'WebMail', 'uri' => 'http://webmail.example.com', 'order' => '400', )); $primaryNavbar->getChild('Client Portals') ->addChild('Divider2', array( 'order' => '500', )) ->setClass('nav-divider'); $primaryNavbar->getChild('Client Portals') ->addChild('WebStats', array( 'label' => 'WebStats', 'uri' => 'http://example.com', 'order' => '600', )); } });
  11. Additionally, I am also trying to find a way to hide navbar links pre-login (I don't yet have a Knowledgebase; Home is redundant because that's the page that is loaded; Announcements I can use but only for logged in clients). If anyone could help that would be great. Thanks
  12. I am so frustrated. I am a php novice and have been stuck inside this lovely little world all day; it's like my first day of school Can someone please explain to me why some of the php scripts that I copy & paste from websites work, but then don't work if I change one single and lonesome word. For example, the below script worked fine... <?php #adding Menu Item to primaryNavbar use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { $primaryNavbar->addChild('Menu Name') ->setUri('https://www.example.com/') ->setOrder(70); }); ...but when I changed 'Menu Name' to something else, I got a white page. This has happened so many times today with, I don't know, about a hundred or more scripts. Is it related to what version php my provider is running or something more technical? Thanks in advance for any advice and help
  13. Greetings I would like to hide a few links from the navbar and sidebar. I can't quite seem to find the correct hook/s, and I've been searching everywhere. I have managed to hide a few items under the Support dropdown (Announcements, Knowledgebase and Downloads), but it's the single links for Announcements and Knowledgebase in the navbar that I can't seem to crack, and I also have not yet found a solution for the sidebar. Please can someone help? Many thanks in advance
  14. Hello I don't understand why some php scripts work while others don't. I've learnt so much and progressed very well these past twelve hours but I know I have so much more to learn, too! What I basically do is, create a new .php file, copy-paste in a script and then ftp it into the hooks folder. Another question I have which may be related is, do I have to create a different .php file for each little script or can they all go into one file? I have tried to put a few underneath each other but I can't quite get them to work. Perhaps it's my not understanding of the code which would show the end of one script and the beginning of the next. Here's one of today's culprits that hasn't worked when placed in its own .php file (it is to hide the sidebar to visitors NOT logged in): <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar) { $client = Menu::context('client'); if (is_null($client) and (!is_null($secondarySidebar->getChild('Categories')))) { $secondarySidebar->removeChild('Categories'); } if (is_null($client) and (!is_null($secondarySidebar->getChild('Actions')))) { $secondarySidebar->removeChild('Actions'); } });
×
×
  • 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