Jump to content

Module Configuration Error


Go to solution Solved by WHMCS John,

Recommended Posts

I'm using a module called Pterodactyl, for game servers. 
http://prntscr.com/gz11xy
I have multiple locations, but the module appears to want the location ID, which is generated by the panel itself. The ID is a single number. Is there a way I can have a dropdown where a user can select a location by name, and it's translated into the corresponding number for the panel? I'd like to avoid having to completely start from scratch and implement a totally new panel.

Link to comment
Share on other sites

6 hours ago, WHMCS John said:

Hi,

This is possible with configurable options, you separate the system value and the friendly name with the | character.

Relevant documentation: https://docs.whmcs.com/Addons_and_Configurable_Options#Friendly_Display_Names

Thanks so much. I know that in module settings, you can use ConfigOption:OptionName and CustomField:FieldName, but can you use them in addition to other text? For example, a Garry's Mod server: 

./start.sh -game garrysmod +map gm_construct +maxplayers ConfigOption:Slots

Would this work?

Link to comment
Share on other sites

  • 4 weeks later...
Guest
This topic is now closed to further replies.
  • 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