fbrettnich / whmcs-supportpin-module

SupportPin WHMCS Addon | Let your customers generate a support/phone pin to identify your customers faster, for example on the phone
GNU General Public License v3.0
25 stars 12 forks source link

Add it on different location #4

Closed Businezz99 closed 3 years ago

Businezz99 commented 3 years ago

Does anyone knows how we can add it on a different page? Ex: to be displayed only on support sidebar instead of clientarea homepage?

Or maybe add it in a drop down right next to the notification icon?

Thanks!

fbrettnich commented 3 years ago

Currently you can change it in the hooks in the following line: https://github.com/fbrettnich/whmcs-supportpin-module/blob/531e723f72733266f784f5c4b61aaedfcdd55d9a/modules/addons/supportpin/hooks.php#L19

Maybe it can also be done by the TemplateManager (PR #3) from @ConanDoyl in the future

ConanDoyl commented 3 years ago

Yea the TemplateManager can handle different client Templates. Currently it's only one Template included, the default one, but it's easy to add a new one. Currently there's no option yet, to change the Template during runtime.

I think in the future we can add a Settings Page where we can define the Template for the Clientarea and where the Menu Link should be placed, if a Icon next to the Notification Icon, just a drop down menu link or somewhere else, should not be a problem.

Let me know what you prefer and i'll check how i can implement that as fast as possible.

Businezz99 commented 3 years ago

Currently you can change it in the hooks in the following line: https://github.com/fbrettnich/whmcs-supportpin-module/blob/531e723f72733266f784f5c4b61aaedfcdd55d9a/modules/addons/supportpin/hooks.php#L19

Maybe it can also be done by the TemplateManager (PR #3) from @ConanDoyl in the future

Thanks!