sherwin_flight
Member-
Posts
35 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Hotfixes
Everything posted by sherwin_flight
-
Hello, Just a quick question. Has anyone listed a module in the WHMCS Marketplace? If so, how long does it usually take to have a new Marketplace listing approved? It's been a few days now, so just thought I'd ask. Thanks for your feedback.
-
Administrator permissions for module
sherwin_flight replied to sherwin_flight's topic in Developer Corner
Great. I was able to get it to do what I wanted using that method. Thank you very much for the information. -
Hello, I have built a module for WHMCS, and after much work I have it working exactly as I want, with ONE minor exception. Under Setup > Addon Modules you can configure the permissions for each of the modules. Based on these permissions you can limit which administrator groups can access the module page. WHMCS takes care of this just fine. However, I also need this same functionality in my hooks.php file for my module. Basically, if an administrator does NOT have permissions to access the module page, I don't want the hooks to run either. How can I go about figuring out if the currently logged-in administrator has module permissions from my hooks file?
-
Having some trouble with translations in a hook
sherwin_flight replied to sherwin_flight's topic in Developer Corner
I figured it out: $varName = Capsule::table('tbladmins')->where('id', '=', $admin_id)->value('language'); -
Having some trouble with translations in a hook
sherwin_flight replied to sherwin_flight's topic in Developer Corner
So I have a partial answer so far. I have this code: include "lang/english.php"; foreach ($_ADDONLANG as $key => $value) { $LANG[$key] = $value; } That reads the language file, and creates variables in the exact same format that are used in other places in a module. I just need to know a way to access the currently logged in admin's language. using {debug} in the admin area, it shows a variable "$adminLanguage" but for some reason I can't get that variable into the PHP code of my hooks.php file. Any ideas? -
I am developing an addon module, and it also uses a hooks.php file. I have two hooks: AdminAreaFooterOutput and AdminAreaHeadOutput. My module also includes a lang/english.php file, and I have that working for the main part of my module, now i need to get it working for the hooks file. I have searched the forums and have found many posts relating to the use of Lang::trans. However, in pretty much all cases it says the language string needs to be added to the Language Overrides files. Since this is a module, I'd like it to work without needing any modifications to the main language overrides files. I would rather use the language files distributed with my module for this purpose. So how can I use the text strings from my module/lang/ folder in my hooks.php file?
-
Google Analytics eCommerce Stats Not Working
sherwin_flight replied to Serenade's topic in Using WHMCS
Didn't work for me either on the latest V6 version. -
Hello, Has anyone been able to customize the additionaldomainfields.php file with the data necessary for all of the new TLDs? I've been searching for information on this, and it's difficult to find. There are even some posts saying some of the info included here by default is no longer correct. It would be great to be able to find some up-to-date information on this file, and how to configure it properly.
-
Hello, just a very quick question. When a client signs in to the client area in WHMCS, how long does the session/cookie last if they are inactive, before they are forced to login again?
-
WHMCS contains the file additionaldomainfields.php that specifies which TLDs require additional information to be entered to register a domain with that TLD. A lot of the new TLDs require additional configuration, but are not listed in this WHMCS file. There are a lot of new TLDs, so adding them all manually could be quite time-consuming. Is there a version of this file that has been updated for all of the new TLDs? (Not sure if it makes any difference at all, but I'm using enom)
-
Currently the support tickets are filtered by "awaiting reply" by default. Is there any way to change this default to "All Active Tickets". If it makes a difference, I'm using verion 5.3.14 (Upgrading to 6 in about a month)
-
Hello, Just a quick question, so I understand how this situation would work. We use 2checkout to process our credit card payments. We also use their fraud checking tools, so WHMCS invoices are not marked as "Paid" until the 2co fraud check passes. This is usually pretty quick, but I've read that sometimes it can take a couple of hours. I've thought of a situation though, where this could be an issue, so wanted to make sure I understand how it would work. Say a user has an overdue invoice, and we have WHMCS set to add late fees on day 10, just as an example. Let's say on that 10th day the user logs in, and sees the total of the invoice, and makes a payment using 2checkout for the total amount. What happens if the CRON runs, and adds the late fees to the invoice, before the 2checkout fraud checked is passed, and the invoice marked as paid? The total returned from 2checkout would then be less than the total on the invoice, so the invoice wouldn't be marked as paid by WHMCS I assume?
-
I have a provisioning module that I've created, and it works as intended. I only have one small issue to work out. This module will only work if used with a domain that is already on the clients account in WHMCS. Right now when this product is set up, the domain needs to be entered as a custom field. I'm trying to figure out a way to show a list of domains the user already has on their account, and let them pick one from that list when ordering this product. How can I achieve these results?
-
Module development - Determine if user owns domain
sherwin_flight posted a topic in Developer Corner
Hi, I'm creating a custom "server" module for WHMCS. I have 99% of it figured out already. When the customer orders this product they need to enter the domain name they want it associated with. I need to figure out a way to determine if the domain entered is one that is on their account, that they own. Without that part figured out a client would be able to enter another domain we host. and make changes to that account, even though they don't own it. -
2checkout Tokenize Credit Card Gateway Module
sherwin_flight replied to WGS's topic in Commercial Modules and Addons
Has anyone tested this? -
Did you get this working in Chrome?
-
I have this installed and working correctly, with one problem, Some add-ons send out verification links that a user must click in their email to verify a product/service. Such a link could be: https://my.example.com/index.php?m=docsaway For a user using this 2 factor plugin they wouldn't be able to visit this page from an email link. After clicking it they are asked to log in, then asked to verify their two-factor auth code. After this they are taken to the Client Area overview page, NOT https://my.example.com/index.php?m=docsaway Is there any way to have this plugin redirect to the originally requested page after the user enters the correct code?
-
WHMCS Integration & PHP Sessions
sherwin_flight replied to sherwin_flight's topic in Developer Corner
I scrapped the idea of sessions because it was getting to be too much of a headache for something simple, and used cookies instead since it was not sensitive information that was being stored, just a simple preference. Have what I was trying to do almost done in a fraction of the time it took me to search for a solution using sessions. -
WHMCS Integration & PHP Sessions
sherwin_flight replied to sherwin_flight's topic in Developer Corner
Like, I set the session on http://www.example.com, and I can use the session variable on any pages from http://www.example.com, but when I browse to whmcs.example.com and do a print_r($_SESSION) it shows the WHMCS session variables, but not the ones I set on the WWW pages. I have figured out what the session_name is for my WHMCS install, and set session_name on the WWW pages to the same thing so that the sessions set there are available within WHMCS. At least that was my understanding from some of the posts I have read online. WWW is served over HTTP, and WHMCS is served over HTTPS, but I have the secure option set to true when the sessions are created on the WWW pages, so they should be available to HTTPS. -
WHMCS Integration & PHP Sessions
sherwin_flight replied to sherwin_flight's topic in Developer Corner
I have no problem including PHP in my template files, that's not the problem. The problem is that even when I put php in my template files the sessions I set on the other pages doesn't show up. -
WHMCS Integration & PHP Sessions
sherwin_flight replied to sherwin_flight's topic in Developer Corner
I have seen lots of examples of how to get WHMCS info on non-WHMCS pages, but I'm trying to do the opposite. I'm trying to get a session variable from a non-WHMCS page on a WHMCS page. I should also note that I am trying to do this without having to pass any variables through the URL using GET. -
I'm working on a fairly complex WHMCS integration on my website. I have created a custom template, and so far it's working great. I have run in to one small glitch though, that I would like to figure out. On my non-WHMCS pages I am setting a php session variable. I confirmed that this session variable is being created properly, and I can access it from different sub-domains, which is what I want. Now, in my header.tpl file for WHMCS I need a way to be able to get the value of this variable. The variable is not being set by WHMCS, but by my other pages, but should be accessible to my WHMCS sub-directory. So how can I call a variable set on http://www.example.com from whmcs.example.com in my header.tpl file?
-
I want to set up an add-on for a domain. However, when I try to create an add-on domains are not listed in the products the add-on can be applied to, just my other products. Is it possible to offer an add-on for a domain name?
-
Add link to Client Area product management drop-down
sherwin_flight replied to sherwin_flight's topic in Developer Corner
Thanks for the help -
I know how to create a new page in the client area of WHMCS that requires the user to log in to view, I have that part figured out. I want to add a custom link to this page from the product management menu. When a user goes to the "My Products & Services" page there is a drop-down menu next to each product that says "View Details", I want to add a link to that menu. Right now there is only one option in that menu, called "Upgrade/Downgrade" which points to /https://MYDOMAIN.com/upgrade.php?type=package&id=50#tab3 I would like to add a link item with a URL like this: /https://MYDOMAIN.com/MyCustomPage.php?type=package&id=50 Is this possible?
