Get this
ModuleIt can be installed through the administration menu (Do NOT run the admin/installer.php - db tables are created through module installation) and it works for the normal user pages.
In the remaining files remove all session_start()'s - this is done in XOOPS and you have full access to adding or removing variables in $_SESSION - I have tested that.
All mysql_ function calls shall be changed to $xoopsDB-> calls instead.
I could not get the freeRecordSet function to work, so I just commented it out.
Change all database tables in SQL queries from
...FROM tplls_tablename WHERE...
to
...FROM ".$xoopsDB->prefix("tplls_tablename")." WHERE...
Remove 2nd parameter from the queries as well as the "or die" clause, so
$xoopsDB->query("some SQL in here", $connection) or die(mysql_error());
becomes
$xoopsDB->query("some SQL in here");
I have changed the tplleaguestats/index.php, change.php, headtohead.php and season.php, so they should work now.
What is missing is the above mentioned changes in all files in tplleaguestats/admin except menu.php and leaguematches.php, so remove the admin/installer.php and admin/index.php altogether and change the other files to resemble the layout in leaguematches.php, which means that you should include root/include/cp_header.php and start with a cp_header() call and finish with a cp_footer() call.
When that is done, we'll look into the xoops_version.php for module preferences, so they are done through XOOPS built-in functionality instead of by the module itself.
Good luck and have fun