Airport-Data.com Forum Index  
  Airport-Data.com » Forums  Guest: Log in |  Register |  Search |  Memberlist |  Usergroups |  Profile |  Private messages |  FAQ 
Notification of new images posted?       
Post new topic   Reply to topic    Airport-Data.com Forum Index -> General
  Display posts from previous 
Display posts from previous:   

  Notification of new images posted? 
Author Message
Bluedharma



Joined: 25 May 2007
Posts: 130
Location: Littleton, CO

PostPosted: Tue Sep 18, 2007 1:39 am    Post subject: Notification of new images posted? Reply with quote

Ken,

Thank you for providing this site. I look forward to looking at the photos posted here.

I really enjoy loading pictures and looking at the pictures others have loaded.
It is nice to load a picture of a B-17 in the month of May from Denver and see someone else post in August from New York.

I was just thinking...

Would it be possible in the future to have a way of showing on our gallery any new images that are added since our have been?
Or perhaps being able to put a watch on an aircraft of interest?
* 4 New (N5017N)


It would be great to post an image of say a B-17 and be notified when others post images of it later on.
see: http://www.airport-data.com/aircraft/photos/N5017N;1.html

I know that many on this site take very good photos. I would love to see the shots they have taken without having to look up the N-code again.

Anyway, it is just a thought. I really do love this site!
And as a programmer myself, I apologize for the headache I just gave your tech staff by this request.
Regards,
Bluedharma

   
Author Message
Airport-Data
Site Admin


Joined: 06 Aug 2005
Posts: 276
Location: Toronto, ON

PostPosted: Tue Sep 18, 2007 11:34 pm    Post subject: Reply with quote

Hi Bluedharma,

It's really a great idea.

Some quick thoughts:

add a function in member section, to track interested aircraft.
member can add/remove aircraft from this tracking list
new photo count will be displayed while viewing this list
an extra option, when checked, will send email to members who are watching when a photo of given aircraft is uploaded.

Any feedback is welcome.

Ken

   
Author Message
Bluedharma



Joined: 25 May 2007
Posts: 130
Location: Littleton, CO

PostPosted: Wed Sep 19, 2007 7:38 pm    Post subject: Reply with quote

Ken,
Thank you for your reply.

A tracking alert would be great!

I don’t know what sort of system you are running, but I am assuming it is PHP with some type of SQL database in the background.

There may be a way to ID the most recent pictures in the system and display a chart of them on the member section.

I do know that you are storing certain items.
1.) Photo Type
2.) Folder Name
3.) Tail
4.) Airport
5.) Description
6.) Picture Date
7.) Upload Date
8.) The User who uploaded the image.

One thing we do at work when we want to find out what is the most recent is not query the database directly.
That is just too hard on the server.

1.) What we do is “build an empty shell” of the above fields.
2.) We then fill that shell with a query of those unique records.
3.) Now we have a record set of the latest images that may or may not be uploaded by user Bluedharma (But we know that Bluedharma has worked with them).
4.) We then query off of that result set and if the name in the last field is not Bluedharma, then you have a new picture posted.


Now the code is different for everything, but here it is in Microsoft Access. I think you may be able to do this in SQL Server, or MySQL.

Code:
SELECT Max(DATABASE.UploadDate) AS MaxOfUploadDate, DATABASE.Tail, DATABASE.user, '' AS LastUpLoadDate INTO temp1
FROM [DATABASE]
GROUP BY DATABASE.Tail, DATABASE.user
ORDER BY Max(DATABASE.UploadDate) DESC;


Code:
SELECT Max(temp1.MaxOfUploadDate) AS MaxOfMaxOfUploadDate, temp1.Tail, First(temp1.user) AS FirstOfuser
FROM temp1
GROUP BY temp1.Tail
ORDER BY Max(temp1.MaxOfUploadDate) DESC;




It was just a thought. Once you have the final recordset, you have your report to display.
In this case it shows that Johnlittle has loaded a new picture and it is on my list of uploaded images.

**now that I think of it... there has got to be a better way, but I did this in a few min. With a database your size, it may have to be done differently.
Still I would love to see a chart of my images, and who has something new.

Live the good life!
Bluedharma

   
Author Message
Airport-Data
Site Admin


Joined: 06 Aug 2005
Posts: 276
Location: Toronto, ON

PostPosted: Wed Sep 19, 2007 9:50 pm    Post subject: Reply with quote

Thank you very much for taking time to experiment the idea and write it down.

Looking at your code, I guess what you want to automatically tracking ALL aircraft for which you have uploaded photos, instead of only track those you selected?

With your idea, a "new photo counter" will be displayed beside each photo you have updated, but you still need to browse to a particular photo to find out if there's any new photo for the same aircraft came in.

I was thinking a function to let them create a tracking list might be useful.

Any thought?

Ken

  Tracking function. 
Author Message
Bluedharma



Joined: 25 May 2007
Posts: 130
Location: Littleton, CO

PostPosted: Wed Sep 19, 2007 10:05 pm    Post subject: Tracking function. Reply with quote

Ken,
I would be happy with anything that you make.
A function would be fine.
There really is only a few aircraft that I really, really want to follow up on.

I thought a bit about it since I posted, and with
your database growing each day, it might not be reasonable to do a query like my example.

The code I wrote would only provide a "grid" recordset with links on it to the N-number or such. It really is overkill.

The grid would be like what you have when looking at say all B-17G. "some have photos...some do not..."
Example Grid Display:http://www.airport-data.com/search/search2.html?field=model&search=Search&code=Boeing+B-17G


However, a function would be very nice. That should be fine for me.
Anyone else have a need or a desire for such a function feature?

Regards,

Bluedharma

Post new topic   Reply to topic    Airport-Data.com Forum Index -> General All times are GMT - 4 Hours
Page 1 of 1
View previous topic :: View next topic  

 
Jump to:  
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

Copyright 2004-2008, Airport-Data.com. All rights reserved.
Airport-Data.com does not guarantee the accuracy or timeliness of any information on this site. Use at your own risk.
Do NOT use these information for navigation, flight planning, or for use in flight.