View next topic
View previous topic
Post new topic   Reply to topic
Author Message
x-Ammo-Nx-x




Joined: Apr 16, 2007
Posts: 9

PostPosted: Mon Apr 16, 2007 8:24 pm
Reply with quote

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.
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 894

PostPosted: Tue Apr 17, 2007 12:55 pm
Reply with quote

I only see one category, "Maps".
Have you added any other categories that aren't showing up?
 
View user's profile Send private message Visit poster's website
x-Ammo-Nx-x




Joined: Apr 16, 2007
Posts: 9

PostPosted: Tue Apr 17, 2007 7:27 pm
Reply with quote

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
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 894

PostPosted: Tue Apr 17, 2007 8:02 pm
Reply with quote

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.
 
View user's profile Send private message Visit poster's website
x-Ammo-Nx-x




Joined: Apr 16, 2007
Posts: 9

PostPosted: Tue Apr 17, 2007 9:02 pm
Reply with quote

I've added the extra field, its just not showing up in the viewmap section.
 
View user's profile Send private message
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 894

PostPosted: Wed Apr 18, 2007 12:47 pm
Reply with quote

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.
 
View user's profile Send private message Visit poster's website
x-Ammo-Nx-x




Joined: Apr 16, 2007
Posts: 9

PostPosted: Wed Apr 18, 2007 3:03 pm
Reply with quote

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.
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 5 Hours