You need a dedicated machine with Linux and Apache2 installed with a site enabled to get it work!
I know can be hard to install for newby, but it is a great feature if you have a dedicated, so try it.
DOWLOAD TPSUploader Package
How to install :
After you downloaded the TPS Gaseco 2.x and installed the Loader for your system (be sure also apache2 use the loader) and follow those steps...
1) go to /var/www folder in your linux
2) go to the website folder currently you are using (example : /var/www/mysite)
3) create a new folder (example : TPSUploader)
4) unzip the package in this folder
5) give to the folder CHMOD 775 (or 755 or enough to work)
6) open the config.php and fill with the folders where your TrackmaniaServer usually run
7) go to the Trackmania Server/UserData/Maps/ folder and create a new folder "UploadeD" or how you want (remember to change also in config.php if you choose another name)
8) give CHMOD 777 to this folder
9) go to the new config.xml of TPS Gaseco and do:
Code: Select all
<uploader>ON</uploader>
<uploader_url>http://www.yoursite.xxx/TPSUploader/tps_track_upload.php</uploader_url>
The folder must result like this (* are examples):
/home/*myuser*/*TrackMania_Servers*/*serverlogin*/UserData/Maps/UploadeD
In this case the config.php for the uploader must be like this:
Code: Select all
<?php
$manialink_path = 'http://www.mysite.xxx/TPSUploader/UploadTracks.php';
$trackmania_mainfolder = '/home/*myuser*/*TrackMania_Servers*';
$upload_final_folder = 'UserData/Maps/UploadeD';
$lenght_min = 10000; //It means 10 sec -- The min is 10000, if < 10000 it auto set to 10000 (10 sec)
$lenght_max = 50000; //It means 50 sec
?>
Anyway we will help all to solve problems
Big thanks to Fighter helped me to debug it!!!
Enjoy!