I would like a script that allows me to upload 3d models to STE. so like
a form, where i can select the .rar files and give all teh information
necessary.
this is what i need:
a script that allows me to
- give the name of the ship, and the script will make a new map with that name
- automaticly make a .php file which contains the mesh info
- automaticly add a download link to the download page
- upload a small thumbnail image
- upload at most 7 .rar files, because the 3d model should be available in 7 formats.
to be more precise:
the .php file that has to be made should look like this: (all variables are between 2 $'s. these variables must be controllable by the script.)
- Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgproperties="fixed" background="../bgmeshes.jpg" text="#FFFFFF" link="#FFCC00" vlink="#FFCC00" topmargin="0" leftmargin="0">
<style>
<!--
a{text-decoration:none}
//-->
</style>
<table border="0" width="100%">
<tr>
<br>
<td align="left" height="160">
<img src="$norway_a.gif$" border="0">
</td><td align="right"><p align="left">
<font size="2" face="arial" color="lightgreen">
<b>Creator</b>: $Unknown$
<br>
<b>Rating</b>: $4/10$
<br>
<b>Comment</b>: $Even for game model this isn't really good.......$<br>
<b>Download</b>:
<a href="meshes/$norway$_3ds.rar">3DS</a>
-
MAX
-
LWO
-
COB
-
<a href="meshes/$norway$_obj.rar">OBJ</a>
-
BLEND
-
<a href="meshes/$norway$_an8.rar">AN8</a>
</font>
</td>
</tr>
</table>
</body>
</html>
the link in the download page must look like this:
- Code: Select all
<a class="Navf" target="$curry$" href="fedmeshes/$curry$/index.php" onmouseover="doTooltip(event,$9$)" onmouseout="hideTip()" onclick="window.open('fedmeshes/$curry$/index.php','$curry$','height=200,width=600,toolbar=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no'); return false;">$CURRY
Class$</a><br>
As you can see, in the example .php file, there are only 3 .rar files to be downloaded. Is it possible to have no link when i upload only 3 .rar files instead of all 7?
Thanks in advance!
(yes this must be a lot of scripting but i just cant figure it out. i hope someone finds the time and feels like helping me

