GIDForums  

Go Back   GIDForums > Webmaster Forums > Websites Reviewed Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-Oct-2004, 07:54
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light

Photo Album Script


This is kind of a strange review, but I have been pondering how to quickly and easily place a photo album onto a web page. I have come up with a really basic scripting idea that I am pondering making a front end to make it more user freindly.

Click on the Pittsburgh, PA link under http://www.dbcservices.com/cgi-bin/darrin/index to see how this looks. It is very simple (as I have no creative flair), but it does what I want.

Basically, you call the same cgi script (C++ generated binary) and pass it a file and a possible page logo...

The file for the above site looks like:
Code:
:title Pittsburgh, Pennsylvania :date September 2004 :cols=4 :table :desc=Pittsburgh Skyline :thumb=/graphics/pit/skyline-small.jpg :photo=/graphics/pit/skyline.jpg :caption This photo shows the skyline of Pittsburgh from the North Shore of the Allegheny River, looking back towards the City. The foreground bridge is the 6th Street Bridge and the one behind it is the 7th Street Bridge. This picture was taken while walking to the Steelers game on Sunday. :enddata :desc=Fort Pitt Bridge :thumb=/graphics/pit/river-small.jpg :photo=/graphics/pit/river.jpg :caption This photo was taken on the south bank of the Monongahela River looking back towards the Fort Pitt bridge. In the background Heinz Field can be seen as well. This picture was taken at Station Square. Station Square is an incredible collection of shops, restuarants and venues that is set along the river bank. :desc=PPG Building :thumb=/graphics/pit/nanettecity-small.jpg :photo=/graphics/pit/nanettecity.jpg :caption This photo was taken at Station Square looking across the Monongahela River. The building in the background that looks like a glass castle is the PPG building. :enddata :desc=Foot Bridge :thumb=/graphics/pit/darrinonbridge-small.jpg :photo=/graphics/pit/darrinonbridge.jpg :caption This picture was taken on a foot bridge that crosses the Bouleverd of the Allies. In the background is Point State Park which is where the French originally built Fort Duquesne. :enddata :desc=Station Square Fountain :thumb=/graphics/pit/darrinfountain-small.jpg :photo=/graphics/pit/darrinfountain.jpg :caption This is another photo taken at Station Square. This is a spectacular fountain that they have set to music. Every 20 minutes they have a different set of songs play that the water and the lights are set to. The fountain itself consists of several hundred (at least) different outlets. During the day, this is neat. At night it is spectacular! :enddata :desc=Heinz Field :thumb=/graphics/pit/Heinzfield-small.jpg :photo=/graphics/pit/Heinzfield.jpg :caption The home of the Steelers! This new facility is the playing field for both the Pittsburgh Steelers and the University of Pittsburgh Panthers. It is located on the North Shore of the Ohio River and affords spectacular views of the confluence through the open end of the endzone. :enddata :desc=Football Player :thumb=/graphics/pit/rookie-small.jpg :photo=/graphics/pit/rookie.jpg :caption We were able to get a photo of one of the players outside of Heinz field! This is one of the most fearsome players that the NFL has ever known! (It's me if you don't know...) :enddata :desc=Our seats :thumb=/graphics/pit/nanettegame-small.jpg :photo=/graphics/pit/nanettegame.jpg :caption This is inside Heinz field. There were actually people that had seats above ours! Actually these turned out to be good seats as we were shaded on what was otherwise a pretty hot day. It was also quite easy to see the action from here. :enddata :desc=Playing Field :thumb=/graphics/pit/darringame-small.jpg :photo=/graphics/pit/darringame.jpg :caption Once again inside the stadium, looking down towards the field. :enddata :desc=Player Warm-ups :thumb=/graphics/pit/gamestretch-small.jpg :photo=/graphics/pit/gamestretch.jpg :caption This is the Steelers during pre-game stretches. In the foreground is #86 - Hines Ward - the best player in the NFL. (in my biased opinion). :enddata :desc=In-game action :thumb=/graphics/pit/gamerun-small.jpg :photo=/graphics/pit/gamerun.jpg :caption Just a little in-game action right at the snap of the ball. Tommy Maddox drops back to pass as a 4 receivers go out in pass patterns. :enddata :endtable

But by writing a front end, I am hoping that the setup of a photo album could be quite easy.

Anybody have any thoughts or comments?
  #2  
Old 05-Oct-2004, 08:11
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
You handsome devil, you!

Your data file looks like something that could actually been an XML file. Have you thought about that?
  #3  
Old 05-Oct-2004, 08:42
dsmith's Avatar
dsmith dsmith is offline
Senior Member
 
Join Date: Jan 2004
Location: Utah, USA
Posts: 1,351
dsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of lightdsmith is a glorious beacon of light
Quote:
Originally Posted by JdS
Your data file looks like something that could actually been an XML file. Have you thought about that?

No I haven't. I am famous for reinventing the wheel. I have never actually looked into XML at all. I liked this approach as all i need to do is place a small binary in the cgi-bin file and I can create instant photo albums.

But that is what I wanted to know. Is this useless?
  #4  
Old 05-Oct-2004, 08:48
JasonMichael's Avatar
JasonMichael JasonMichael is offline
Awaiting Email Confirmation
 
Join Date: Jul 2004
Posts: 135
JasonMichael has a spectacular aura about
I wouldn't call it useless. It looks like just the sort of thing I would have done, before learning XML. :-D

I really like what you've done!
  #5  
Old 05-Oct-2004, 08:51
JdS's Avatar
JdS JdS is offline
Senior Member
 
Join Date: Aug 2001
Location: KUL, Malaysia
Posts: 3,371
JdS will become famous soon enough
Quote:
Originally Posted by dsmith
... I liked this approach as all i need to do is place a small binary in the cgi-bin file and I can create instant photo albums...

You've just described the reason for XML's existence

XML is a standard, so you can't go wrong with it if you ever wanted to share the data files one day. If the data was an XML file, I could re-produce the web page with PHP in under an hour. Someone with knowledge of parsing XML files with Java could probably do the same but perhaps for a device or even a mobile phone, etc.
  #6  
Old 14-Dec-2004, 21:08
ToddSAFM's Avatar
ToddSAFM ToddSAFM is offline
Junior Member
 
Join Date: Dec 2004
Location: North Carolina
Posts: 75
ToddSAFM is on a distinguished road
Well... I'm not to sure about XML, as I have absolutely 0 experience with it... Only some html and xhtml. The photo album looks really nice. It also looks like alot of work!
Thats why for me, as lazy as I am, I would just use Photoshop (for everything... no, I'm serious!) to compile all my images into an album. Photoshop CS has many presets that you could take advantage of by just downloading the trial version from Adobe's website

http://www.adobe.com

But it appears that you are already on top of things with that nice bit of work you've already done! 8-)
 
 

Recent GIDBlogObservations of Iraq by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
hello, photo album dakedee MySQL / PHP Forum 1 21-Aug-2004 17:47
Two virtual hosts, cgi script behaves differently on each blimbo Apache Web Server Forum 0 04-Aug-2004 09:35
JavaScript Tutorial Part 1 pcxgamer Web Design Forum 2 01-Dec-2003 09:16
sms web sender script jrobbio MySQL / PHP Forum 1 11-Apr-2003 12:19
VALIDATING file types on an PHP upload script? JdS MySQL / PHP Forum 0 02-Jan-2003 07:58

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:27.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.