| Author |
Message |
x-Ammo-Nx-x

Joined: Apr 16, 2007
Posts: 9
|
Posted:
Mon Apr 16, 2007 8:24 pm |
|
Ok I've added an extra catagory for members to select to the upload form. ( GameType) which can be seen here:
http://x-nexus-x.com/test/modules.php?name=Maps&file=addmap
I ideally wanted to add a drop down like map catagory with the short list JOTR:, JOE:,JOIC to select from, but I'm not sure how to do that. The problem I'm currently having is I cant get the extra catagory to show up in the maps download description here:
http://x-nexus-x.com/test/modules.php?name=Maps&file=viewmap&title=test&id=1
As u can see it only displays:
File Size -» 1.6 KB
Downloads -» 1
Author -» me
Author Email -» tim@wing.com
Recommended Players -» 12
( I want the Game Type, eg JOTR: :* to show here )
If anyone could help it would be appreciated.
Thanks. |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue Apr 17, 2007 12:55 pm |
|
I only see one category, "Maps".
Have you added any other categories that aren't showing up? |
| |
|
|
 |
x-Ammo-Nx-x

Joined: Apr 16, 2007
Posts: 9
|
Posted:
Tue Apr 17, 2007 7:27 pm |
|
I think I should of explained it a little better. If you look at the submit form I've added another row with the new field to add GameType. When submitted it doesnt show up in the viewmap section.
::::::::::::::Submit Map::::::::::::::::::::
Map Title :*
Map Category :*
Map Image :* Upload file :
OR
Enter URL :
Map Details :
Map Author :*
Map Author Email :*
Recommended Players :*
Game Type, eg JOTR: :* <--------------- New field
Map File :*
:::::::::::VIEW MAP:::::::::::::::::::::::
File Size -» 1.6 KB
Downloads -» 1
Author -» me
Author Email -» tim@wing.com
Recommended Players -» 12
[ ] <------------- Map type not showing |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Tue Apr 17, 2007 8:02 pm |
|
You would have to edit a bunch of code if you want another field. I think you can accomplish what you are trying to do by adding sub-categories, but I'm not sure. |
| |
|
|
 |
x-Ammo-Nx-x

Joined: Apr 16, 2007
Posts: 9
|
Posted:
Tue Apr 17, 2007 9:02 pm |
|
I've added the extra field, its just not showing up in the viewmap section. |
| |
|
|
 |
gotcha
Site Admin


Joined: Oct 25, 2004
Posts: 921
|
Posted:
Wed Apr 18, 2007 12:47 pm |
|
There are alot more things you have to do.
Add a field in the database.
Edit the queries that are used add/edit maps.
Edit all the forms that are used to add/edit.
Edit the queries the pull the map data.
Edit the code that displays the map data. |
| |
|
|
 |
x-Ammo-Nx-x

Joined: Apr 16, 2007
Posts: 9
|
Posted:
Wed Apr 18, 2007 3:03 pm |
|
I've done the SQL tables, this is what I have done so far.
http://www.x-nexus-x.com/downloads/Maps.zip
Do I need to add an SQL table for the mapview section? if so what is the query cos I couldnt figure out where to add the new table. |
| |
|
|
 |
|
|