UADDIRECTOR2 Posted June 10, 2011 Share Posted June 10, 2011 Is it possible to have one product called Game Servers and inside that have a drop down with all games and game ids? So i dont have to make like 30 game packages? Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted June 10, 2011 Share Posted June 10, 2011 Yes, Make a dropdown: TCGAMEID|Game1, TCGAMEID2|Game2 ...etc Then in your tcadmin_advanced code link the variables name to the gameid sent to tcadmin master server. Link to comment Share on other sites More sharing options...
UADDIRECTOR2 Posted June 11, 2011 Author Share Posted June 11, 2011 when you say "Then in your tcadmin_advanced code link the variables name to the gameid sent to tcadmin master server. " does that mean i need to edit the php file? im confused Link to comment Share on other sites More sharing options...
ECF Posted June 11, 2011 Share Posted June 11, 2011 Yes you will need to edit the php file. Link to comment Share on other sites More sharing options...
UADDIRECTOR2 Posted June 11, 2011 Author Share Posted June 11, 2011 im unsure of what i need to edit ans, possible you could do thi for me? Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted June 11, 2011 Share Posted June 11, 2011 im unsure of what i need to edit ans, possible you could do thi for me? Here. open and update tcadmin_advanced.php Where it says "Game ID" => array( "Type" => "text", "Size" => "15", replace with "Game ID" => array( "Type" => "dropdown", "Options" => $ddoptions, This should be the easiest solution. ---- The solution will cause the gameID box under Module Settings to become a dropdown with all current configurable options, and custom fields available to select for that product. Link to comment Share on other sites More sharing options...
UADDIRECTOR2 Posted June 11, 2011 Author Share Posted June 11, 2011 Also can someone point me to the wiki for the tca_advanced setup.. i know there was a wiki online of it.. Also if i wanted to ask the user for a tcadmin username they wanted to use how could i do that too? I think i want passwords to be randomly generated but just incase how can i ask for that also? Link to comment Share on other sites More sharing options...
LFA Posted June 11, 2011 Share Posted June 11, 2011 There is no need to edit the php file. In the product's Custom Field tab create a custom field of type drop down with these values: Field Name: Game Select Options: TCA_Game_Id|Game name,TCA_Game_Id|Game name,etc Then in the product's module settings set the value of game id to "CustomField:Game" Link to comment Share on other sites More sharing options...
UADDIRECTOR2 Posted June 11, 2011 Author Share Posted June 11, 2011 How about the tcauser option? Link to comment Share on other sites More sharing options...
Admin-Nation-Servers Posted June 11, 2011 Share Posted June 11, 2011 There is no need to edit to php file. But if you want to have a dropdown of all your current configoptions and custom fields for that product, editing that file would be the easiest method. But note, using the dropdown method would require you to always have a custom field or configuration option to define the gameID. Link to comment Share on other sites More sharing options...
UADDIRECTOR2 Posted June 11, 2011 Author Share Posted June 11, 2011 ^^^^^how to ask the user for tcadmin name and pass they want Link to comment Share on other sites More sharing options...
LFA Posted June 11, 2011 Share Posted June 11, 2011 https://clients.tcadmin.com/knowledgebase.php?action=displayarticle&id=51 Link to comment Share on other sites More sharing options...
UADDIRECTOR2 Posted June 11, 2011 Author Share Posted June 11, 2011 thank you ! and my last 2 questions when i set the ["configOption:"] in the php file can i set it to configOption:Tcadmin Usermame or does it have to be one word? Also is there a way to set specific slot amounts per drop down selected. Ex: WHen the user selects cod4 from the game list ID section i want it to show the alloted slot count only for cod. Not from 2 slots to 100 slots. IS that possible? Link to comment Share on other sites More sharing options...
UADDIRECTOR2 Posted June 11, 2011 Author Share Posted June 11, 2011 ok i got everything up to the product menu where you enter default_values.php i added that and nothing shows up all of the values below that are blank and dont show the drop downs Link to comment Share on other sites More sharing options...
UADDIRECTOR2 Posted June 12, 2011 Author Share Posted June 12, 2011 As well as not being able to load the default_values.php i would like to change "hostname" to Server Name So at the Custom Fields menu instead of Hostname i would like to see Server Name. What file and line of code do i need to edit to make the option CustomField:Server Name And i can have spaces in the lines of code right? It can be Server Name and not Servername? Link to comment Share on other sites More sharing options...
kaosx Posted July 4, 2011 Share Posted July 4, 2011 In default_values.php look for Client UserId and Password Replace with code i listed below and edit to you liking /* ************************** */ /* Client UserId and Password */ /* ************************** */ $billing_api_values["user_name"] = "CustomField: Username"; $billing_api_values["user_password"] = "CustomField:Password"; $billing_api_values["host_name"] = "CustomField:Name"; I have mine set to $billing_api_values["user_name"] = "CustomField:Gamepanel Username"; $billing_api_values["user_password"] = "CustomField:Gamepanel Password"; $billing_api_values["host_name"] = "CustomField:Server Name"; Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.