Shaun Posted November 19, 2008 Share Posted November 19, 2008 Purpose: This mod allows you to store key value pairs against a WHMCS server registered in the database. This can be useful when you need to store info for custom service modules, which is why i needed this module. Installation: Copy attached php file into: /whmcs/modules/admin/extended_server_info/ Usage: Functions alot like the IP Manager module (was created from this code). Screen Shot 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 19, 2008 Share Posted November 19, 2008 Shaun, Did you forget the link 0 Quote Link to comment Share on other sites More sharing options...
Shaun Posted November 19, 2008 Author Share Posted November 19, 2008 Shaun, Did you forget the link *Goes to look for where he left head* extended_server_info.zip 0 Quote Link to comment Share on other sites More sharing options...
Impact-John Posted November 19, 2008 Share Posted November 19, 2008 lol shaun must have been late eh lol 0 Quote Link to comment Share on other sites More sharing options...
handsonwebhosting Posted November 20, 2008 Share Posted November 20, 2008 Hmm.. seems to be an issue on here; Installed the module, but it only pulls the most recent server from the list. The dropdown only has one server listed in our listing. Anyone else seeing that? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 20, 2008 Share Posted November 20, 2008 @Conor: Its only listing the active servers. If you want it to list all servers change this line $query = "SELECT id, name FROM tblservers where active=1"; to $query = "SELECT id, name FROM tblservers"; Hope you don't mind Shaun 0 Quote Link to comment Share on other sites More sharing options...
handsonwebhosting Posted November 20, 2008 Share Posted November 20, 2008 (edited) Active servers? We have over 150 active EDIT: OHHHHhhhh.. THAT active servers. It's the active with the " * " on it, not necessarily active as in active Got it. Edited November 20, 2008 by handsonwebhosting ACTIVE SERVERS 0 Quote Link to comment Share on other sites More sharing options...
Shaun Posted November 20, 2008 Author Share Posted November 20, 2008 @Conor: Its only listing the active servers. If you want it to list all serverschange this line Hope you don't mind Shaun Nah; threw this one out as compleatly opensource. People can monitor it how they want. 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted November 20, 2008 Share Posted November 20, 2008 @Shaun: I believe that the active key/value pair in tblservers means the default server so there would only ever be 1 listed. 0 Quote Link to comment Share on other sites More sharing options...
Shaun Posted November 20, 2008 Author Share Posted November 20, 2008 @Shaun: I believe that the active key/value pair in tblservers means the default server so there would only ever be 1 listed. Ahhh. Thats one thing i didn't know. A spec would be awsome. The database that im using currently has 2 server groups with one server is each. Easy was then would be to remove the where and then edit the code out. Here is a new version: Lines 51-58: $servers= array(); $query = "SELECT id, name FROM tblservers order by name"; $result=mysql_query($query); while ($data = mysql_fetch_array($result)) { $id = $data["id"]; $name = $data["name"]; $servers[$id] = $name; } 0 Quote Link to comment Share on other sites More sharing options...
Impact-John Posted November 20, 2008 Share Posted November 20, 2008 what do you need for the key and value areas im a little confused on it shaun 0 Quote Link to comment Share on other sites More sharing options...
Shaun Posted November 20, 2008 Author Share Posted November 20, 2008 The idea of these areas is to store key value pairs of extra settings agains s a server. Im going to be using this mod to store extra settings i need for a TeamSpeak module that im developing. Such s Max UdpPort and MinUpdPort. 0 Quote Link to comment Share on other sites More sharing options...
Impact-John Posted November 21, 2008 Share Posted November 21, 2008 oh ok so this tie into that so it was good ti install this on my server shaun 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.