Jump to content

Recommended Posts

Posted

Hi All

I am new to all this so please excuse me if this seems to be a daft question, but how to you remove an airport from the "Add & Edit Airports" list

Does this have to be removed from the database?

I have also tried to rename the default airfield "KJFK" but it wont let me.

I can add new airfields, but not modify them or remove them.

Any advice

  • Moderators
Posted

maybe this should be something that should be added, so that the default airfield can be removed more easily

Simple!

Add the delete data class in the operations data class, and then in the module, you need to add the delete function and then add the delete link with the id in the tpl file.

Something I can take a look into it later today. I'll post it later.

Posted

Im not up on the programming side of things. so all the technical stuff is over my head. I would expect tho, that if you add something in, then you should be able to remove it, with out having to go into the back of things. Is that not the whole point of a CMS?

  • Moderators
Posted

Once Airports are inserted they should not be removed as this can mess things up.

There is an import on the forums of the 24000 or so fields to import is i remember right "don't quote me on that figure though" :)

Posted

Hi

Sorry i dont think i have explained it correctly.

Im not after removing the airfield from the database completely, but from the airport list.

The default airfiled if KJFK, under tasks, you have the option to add additional airports. and against them you have an "Edit" option. but not a removal/delete

I would like to remove the airport from the airport listing. I can add a picture to show right now :(

  • Moderators
Posted

lesson 1

the whole cms is working with PHP coding and databases

so iff you add an airport to the list you are using a queri to update the database

so all the airports showing in the list are in a database so its not possible to delete a airport from the list but not out off the database

  • Moderators
Posted

what part off not possible don't you understand.

its not possible to not show it there but keep it in the database without coding.

kjfk is a defould setting the commes with install ing phpvms just edit the airport change the name do a lookup and jfk is gone from you list but its also gone from your database

Posted

If you can add information into the database via scripting then it can be removed in the same way.

How to you think other CMS's work? How do you think Forums work?

Data gets added to the database and can be deleted. If you wanted to delete a post, you dont go into the database to do it do you!

If that is the case then this phpvms is not a CMS is it

`phpvms_airports` appears to be the table that they are created in. So if you can add items in there, via the HTML interface, but im sure that they can be removed. as you dont want to be giving access to the sql to do this.

  • Moderators
Posted

ok i think you are lost yourself

Im not after removing the airfield from the database completely, but from the airport list.

you don't want it removed in this post

but here

If you can add information into the database via scripting then it can be removed in the same way.

How to you think other CMS's work? How do you think Forums work?

Data gets added to the database and can be deleted. If you wanted to delete a post, you dont go into the database to do it do you!

If that is the case then this phpvms is not a CMS is it

`phpvms_airports` appears to be the table that they are created in. So if you can add items in there, via the HTML interface, but im sure that they can be removed. as you dont want to be giving access to the sql to do this.

you want it deleted .

so whate do you want

iff you are reffering to the lack off a delete button in that case indeed its not there but as Mark staded you don't want to delete anny aiports as it will mess up your database.

Posted

Look, we know where you're going with this, we really do. What Joeri is trying to really say is that the way phpVMS is setup, there are just a few things that shouldn't be deleted, and this just happens to be one of them (unfortunately). If you are just insisted in removing Kennedy from your Airport list in the Admin Center, the safe way is to just edit it to another airport name (LFPG Paris-Charles de Gaulle for example) then you don't have to worry about it being there.

The reason it is setup that way is because the system really doesn't want you to remove the airports (the aircraft work in the same way) because it can really wreak havok on your system's Pirep data.

If you do a few searches from the top right of these Forums, you will see that there are others that feel the same way you do. It is what it is.

EDIT: got another one in at the same time Joeri... :P

Guest lorathon
Posted

The airports, schedules and pireps tables are all tied together. If you remove the airport then any schedule or pirep that uses that airport may not be view-able anymore. When a query for a schedule or pirep is made the query is joined to the airports table on both the depicao and arricao.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...