NOTICE:
This module comes PREINSTALLED with THT 1.3.5 Reworked! PLEASE do not install it on 1.3.5 Reworked. You don't need to.
Module: THT SDK
Module Version: 1.0
For THT Version: 1.3 Reworked (Should work on older versions)
Author: Na'ven Enigma
Website: http://thelifemaster.com
DESCRIPTION:
This SDK module is designed to make it easier for people to program for THT. It ads a bunch of functions to THT that can be quite helpful and can even simplify your code. To learn what functions are available and what each one does, read the comments in the class_sdk.php file. I intend to release more functions later on as I find ones that can come in handy. You can also submit your own functions as well for inclusion in the SDK by posting the functions below. Be sure to include the description and usage in a comment above your function and I'll test it out and add it in. Future releases will overwrite the class_sdk.php file and will keep all of the existing functions and will add more functions as well. This will keep your programs stable. You may also wish to remove unused functions from the SDK and rename the SDK file and place it in your own module's directory.
To anyone who is not programming for THT, this module is a requirement for some modules, but is not a stand alone program. This means that alone, the SDK module will not do anything to enhance your THT experience. This is simply to aid developers in building programs and to be installed as a requirement for some modules that use it.
PREREQUISITES:
AutoMod: http://thehostingtool.com/forum/thread-1754.html
The comments in the SDK will guide you as to how to use them.
This module comes PREINSTALLED with THT 1.3.5 Reworked! PLEASE do not install it on 1.3.5 Reworked. You don't need to.
Module: THT SDK
Module Version: 1.0
For THT Version: 1.3 Reworked (Should work on older versions)
Author: Na'ven Enigma
Website: http://thelifemaster.com
DESCRIPTION:
This SDK module is designed to make it easier for people to program for THT. It ads a bunch of functions to THT that can be quite helpful and can even simplify your code. To learn what functions are available and what each one does, read the comments in the class_sdk.php file. I intend to release more functions later on as I find ones that can come in handy. You can also submit your own functions as well for inclusion in the SDK by posting the functions below. Be sure to include the description and usage in a comment above your function and I'll test it out and add it in. Future releases will overwrite the class_sdk.php file and will keep all of the existing functions and will add more functions as well. This will keep your programs stable. You may also wish to remove unused functions from the SDK and rename the SDK file and place it in your own module's directory.
To anyone who is not programming for THT, this module is a requirement for some modules, but is not a stand alone program. This means that alone, the SDK module will not do anything to enhance your THT experience. This is simply to aid developers in building programs and to be installed as a requirement for some modules that use it.
PREREQUISITES:
AutoMod: http://thehostingtool.com/forum/thread-1754.html
PHP Code:
//List of functions in the SDK:
//
//tdata($tablename, $column = "", $find = "", $where_clause = "", $return_query = 0, $orderclause = "", $like = 0)
//insert($table, $array)
//update($table, $array, $column = "", $searchfor = "", $whereclause = "", $like = 0)
//money($amount, $code = "", $noamount = 0, $local = "en-US")
//uname($id, $table = "users")
//userid($uname, $table = "users")
//uidtopack($userid = "")
//thtlog($message, $uid = "", $user = "", $usertable = "users", $time = "")
//addzeros($number)
//tpl($mod_dir, $tpl_file, $array = 0)
//isint($mixed_var)
//dropDown($name, $values, $default = 0, $top = 1, $class = "", $custom = "")
//s($number, $prefix = "")
The comments in the SDK will guide you as to how to use them.
---
See my GitHub at https://github.com/cozylife
See my GitHub at https://github.com/cozylife