Dubz31337
Retired Forum Member-
Posts
9 -
Joined
-
Last visited
About Dubz31337

Dubz31337's Achievements
Junior Member (1/3)
0
Reputation
-
I have 2 simple questions I'd like to ask as a developer. First off, how can I see whether the user logged in is an administrator or client as well as if it's from the admin or client side? Some hooks run both admin and client side and for some I may only want to run when it's an administrator in the admin area, such as editing a client details. I don't want it to screen clients from themselves if not needed, and possibly vice versa later on, so I was just curious as to the best method of doing so. Keep in mind a user can be logged in as an administrator and client at the same time as well as spoof the headers. I could check the URL with the admin area but I want to be on the safe side with it. Secondly, how can I get the admin or client's set language? I figured out how to get the system's language but not a specific user's. If I can't do that then how can I load a proper language file from an addon when visiting a page that doesn't normally load it itself? I'll look through the original source code later to find out if need be but I was just wondering and hoping to save some time, WHMCS has a lot of files to look through
-
Question for the WHMCS developers out there. Is there a way to modify how an already existing template works? For instance, lets say I want to modify the client list to add data, hide data, hide clients, etc., is this possible to do without making an entire new page? I haven't gotten too far into WHMCS modifications so I'm not too sure how to approach this without recreating the templates. Also, I don't want to have to change everything when WHMCS releases updates and such (unless I'd have to of course). Just looking for some pointers here, any would be great. Thanks!
-
Support Department Restriction
Dubz31337 replied to Dubz31337's topic in Commercial Modules and Addons
Yes, this addon is encrypted to help reduce the chance of source leaking and to ensure users who use it have purchased it. As for the features, I am open to suggestions for changing or adding on, however I can't guarantee everything. One part which I need to look into fixing, for instance, is the access denied page, which is pretty hard to change when you can't access the normal templates. I'll see into changing this at some point, but in the meantime the message and link-back is enough of a band-aid patch for the time being. I am usually pretty quick on the support since I have the support departments set to email me on new tickets or responses and I get notifications on my computer and tablet. The only reason I would not get it right away is if I am sleeping or special occasions when I am not available. -
Support Department Restriction
Dubz31337 replied to Dubz31337's topic in Commercial Modules and Addons
UPDATE: I've successfully setup the online payment system for my site and can now accept automated payments and activations. -
Support Department Restriction
Dubz31337 replied to Dubz31337's topic in Commercial Modules and Addons
This has nothing to do with the tickets, it allows administrators to allow or deny access of other administrators to certain products or client groups. Allow me to give you a scenario as where this could be used. Say I own a large webhosting company, or any type of company that chooses to use whmcs. Now lets say that you manage a small part of this large company, such as a specific set of products or a certain group of clients. For instance, you manage the basic members of a wehbhosting company only, not the premium or upgraded ones. With this addon, I can assign you to a support department (which could be public or private) and deny you access to the clients that aren't basic or products that aren't basic. This way I know for sure that my basic support is only managing the basic cllients and products and not interfering with the premium products. Keep in mind that this doesn't cover every aspect of the site. This addon only covers editing and deleting of clients and products, as well as closing client accounts. If people request for it, I could extend it to restrict other actions. Also, if you only want half of the group to be able to modify a client, you can tweak it between this addon and the administrator role permissions. - - - Updated - - - My apologies for anyone who may be interested in this but it appears that my webhosting provider is having some down time at the moment. -
Greeting members of WHMCS! I am here today to present you with my first addon, a restrictive addon for support departments. Who is this for? This module would be ideal for users who have large companies running WHMCS or simply require more control of their system. What does this do? This addon allows (full) administrators to restrict other administrators from editing or deleting certain clients or products based on their support department. You can specify whether an administrator can edit or delete clients based on their client group or products in general. Screenshots: Where can I get it? This module is available for purchase from my site DubTech for $15 When can I get it? Users may place there order and purchase the addon whenever they'd like, however the orders must manually be accepted in order to use it (I'm working on fixing this!) Why does this cost $15? This addon may be expensive, but college costs more. I'm in need of money to cover costs for college, car insurance, and the tools I used to build and license this. I'm releasing 10 promotion codes to allow users to get this at a discounted price since this is my first addon and it's in beta. You can purchase the addon for one low price of $5 and keep it when the full (official) version is released. Promo code: DT-First The addon is simple, yes, but it gets the job done for now. I released this early (beta) to have it tested out by everyone else, after I tested it countless times, and so that users who need this module can get the core aspect of it sooner. I'll modify it more in the future, patching bugs and adding more abilities to it so users can get more from it rather than just a few switches and whatnot. I know the access denied page is a little plain, but I'm not sure how else to go about it (I can't figure out how to make a message appear on a page created by WHMCS). As for the activation, I'm using a custom PayPal module (one which doesn't require business accounts) and still need to work out some of it (hopefully soon). If you have any questions, comments, suggestions, feel free to leave them below!
-
I'm not sure if this is the correct board to post in or not, but here it goes. I'm developing an addon for WHMCS (my first one in fact) and I have a couple questions about the hooks for it. First off, is there a way to have the hook cancel the action that it's for? For instance, let's say I make a hook for an administrator editing a client. I create my function add the hook for "ClientEdit". My question is, if I want to run a test to see if the administrator is allowed to do this, how would I abort the edit if they aren't allowed? Even if I call a die(); the settings are still saved. I know I could probably "hide" the client form the administrators' view, but that won't stop them from going into the URL and changing the ID to a client they cannot see. This is just an example, I need to be able to abort edits for various things and simply denying the permission isn't going to work. I'd explain more but I'd rather not spoil the addon for someone else to make on their own. Secondly, is there a way to grab the $vars variable, commonly found in the output function? I know I can grab the settings from the database and rebuild it, however I also need to get the language screens, found in $vars['_lang'], into the array, but I'm not sure as to how I should call it properly (to support multiple languages). Thanks in advanced! Any help would be appreciated.
-
The mysterious case of the disappearing ticket
Dubz31337 replied to rodolphe's topic in Developer Corner
Click on the link at the top for it and take a screenshot of the page, I'm sure it's there somewhere. -
Support operator member of 2 support groups
Dubz31337 replied to rodolphe's topic in Developer Corner
When creating a ticket, the creator (client or admin) chooses which department it is for. A screenshot of the administrator view for opening a ticket is attached with the department option selected to see the dropdown menu. - - - Updated - - - Also, then replying to currently open tickets, the response will come from whichever department it is set to. This can be changed/escalated to a different department of course. - - - Updated - - - Also, when*
