Jump to content

Move all support function to another link


Tom Wilson

Recommended Posts

Hey

We've just got Zendesk, and won't be using the built-in WHMCS KB and Support system.

What's the easiest way to send anyone who goes to submit a ticket, goes to the KB or tries to view a support ticket gets redirected to another link.

I also want to remove the 'Recent support tickets' from the client's home page.

Any help is appreciated 🙂

 

Thanks

Tom

Link to comment
Share on other sites

22 minutes ago, Tom Wilson said:

I also want to remove the 'Recent support tickets' from the client's home page.

<?php
use WHMCS\View\Menu\Item;

add_hook('ClientAreaHomepagePanels', 1, function (Item $homePagePanels) {
	
	if (!is_null($homePagePanels->getChild('Recent Support Tickets'))) {
		$homePagePanels->removeChild('Recent Support Tickets');
	}
});
28 minutes ago, Tom Wilson said:

What's the easiest way to send anyone who goes to submit a ticket, goes to the KB or tries to view a support ticket gets redirected to another link.

depends on the theme! 🙂

if it were Six, i'd be tempted to say hooks - because existing sidebar/navbar links can be changed with hooks.. do a search for setUri and my username, and see where the results get you... there should be plenty of hooks out there that i've written for such a purpose... you could also use redirection hooks, e.g if someone goes direct to knowledgebase.php, they're redirected to your zendesk equivalent page... again, do a search for location: with my username and that should get you some examples... though let me know if you get nowhere with searching.

htaccess might be another option, but then you're fighting against Friendly URLs and WHMCS internal redirection - so that may be more hassle than it's worth.

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