Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


WHMCS E-Mail Templates - No PHP? - Page 2
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

WHMCS E-Mail Templates - No PHP?

2»

Comments

  • SolusVMSolusVM Member, Host Rep

    Create a custom field for the product and populate it using your PHP code in the module create function. You can then reference it in emails with the custom fields variables that are built in. It then gives you the options to edit, resend emails and display in the client area.

  • randvegetarandvegeta Member, Host Rep

    @SolusVM said:
    Create a custom field for the product and populate it using your PHP code in the module create function. You can then reference it in emails with the custom fields variables that are built in. It then gives you the options to edit, resend emails and display in the client area.

    That sounds like a lot of extra work and unnecessary complexities.. Since the ports allocated are simply a multiple of the last octet of the private IPv4 address, it would seem to make sense to simply 'explode' the IP at '.', get the last entry, and append a couple of zeros to it.

    Easiest solution would be to just build a small PHP page where you can input your private IP, and you get the details there. It has the added benefit of not actually having anything to do with WHMCS, meaning WHCS can't brake it, and IT can't brake WHMCS.

  • @randvegeta

    I'm feeling nice today, and since providers that offer NAT often lose money on their services, here's my gift to them.

    https://phpdev.andrew-hong.me/portcheck/

    No PHP needed. Download it at https://phpdev.andrew-hong.me/portcheck/portcheck.zip

  • MikePTMikePT Moderator, Patron Provider, Veteran

    @FlamesRunner said:
    @randvegeta

    I'm feeling nice today, and since providers that offer NAT often lose money on their services, here's my gift to them.

    https://phpdev.andrew-hong.me/portcheck/

    No PHP needed. Download it at https://phpdev.andrew-hong.me/portcheck/portcheck.zip

    This is going to be useful, thank you for your contribution!

  • jetchiragjetchirag Member
    edited December 2017

    @randvegeta said:

    @jetchirag said:
    Oh and a better suggestion.

    Create an app on your domain under any subdirectory like tools which takes ip as input from $_GET

    Show all your php logic and add link in emails as

    https://myhost.com/clients/whatsmyport?ip=192.168.0.1

    That's actually brilliant! Takes all of 5 mins to do. A bit ugly but it's not bad.

    Just out of curiosity, how much would it cost to get it done properly?

    Can do whmcs or this, you can choose and give me a pm

    If you already have logic written to find port, and I don't encounter any problems, I can probably do it for nothing

Sign In or Register to comment.