Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
May 5, 2008 - May 08 Web Site of the Month? - Submit your LINKS!!!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2008, 07:26:57 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Photo Album  (Read 1242 times)
thisguy1
Newbie
*
Offline Offline

Posts: 3


« on: March 21, 2008, 12:35:42 PM »

Hi Guys. I created a site for a customer (a couple actually :p) of mine from my daytime bus. cause he had like the one a made for my own.  excelcarpentry.com is the one I'm making in progress.  I'm trying to find the easiest way to set up how the photos will scale when they are clicked (you know for a larger view).  I was going to use something like SimpleViewer to make the photo albums, but he likes the big thumbnails and I'm not getting the Pro version cause I don't know if he'll like the set up anyway. I don't want to just link the .jpeg's.  Is there any way to make something nice w/o making a html (for background color, table centering etc.) page for each photo?  Maybe there is something like SimplViewer that's just html/js based?
Logged
Rick_E
Master Jedi
*****
Offline Offline

Posts: 1067


« Reply #1 on: March 22, 2008, 07:41:46 AM »

An easy way is to have one pre-made display page that shows whatever photo is requested. The file name to be displayed is passed in the hyperlink.

Code:
http://showphoto.php?file1=photo1.jpg

A display page named showphoto.php has a few lines of PHP code that parses the hyperlink and displays the requested photo. Insert this code into the display page where you want the photo to appear. There can be other HTML on the page such as banners, text, centering tags, etc.

Code:
<?php
$file1
=$_GET['file1'];
$imagetag="<img src=\"".$file1."\" alt=\"Alt text here\">";
echo 
$imagetag;
?>

This example assumes the file showphoto.php is in the same folder as the photo files.

The PHP code won't work on your computer so you'll have to upload to the server and test it from there.
« Last Edit: March 22, 2008, 09:53:47 AM by Rick_E » Logged

All the best, Rick E

FrontPage has been discontinued.
If you plan to stay with FrontPage, consider upgrading to FrontPage 2003 now.

Search the Microsoft KB for error messages:
http://support.microsoft.com/search/default.aspx?catalog=LCID%3D1033&spid=919&adv=1

Microsoft groups have additional FrontPage assistance:
http://www.microsoft.com/communities
Rick_E
Master Jedi
*****
Offline Offline

Posts: 1067


« Reply #2 on: March 22, 2008, 08:18:27 AM »

Another option if you don't have too many thumbnails is to show the pictures in an iFrame on the same page. Use the hyperlink target as the name of the iFrame.
« Last Edit: March 22, 2008, 11:16:04 PM by Rick_E » Logged

All the best, Rick E

FrontPage has been discontinued.
If you plan to stay with FrontPage, consider upgrading to FrontPage 2003 now.

Search the Microsoft KB for error messages:
http://support.microsoft.com/search/default.aspx?catalog=LCID%3D1033&spid=919&adv=1

Microsoft groups have additional FrontPage assistance:
http://www.microsoft.com/communities
thisguy1
Newbie
*
Offline Offline

Posts: 3


« Reply #3 on: March 22, 2008, 08:59:29 AM »

http://www.excelcarpentry.com/php_test/photo_album.html  the photo will not show up. I guess I have to change the code in the <?php tag, but I'm not sure.  Here is how I set it up http://www.excelcarpentry.com/php_test/

I used your exact code

<?php
$file1=$_GET['file1'];
$imagetag="<img src=\"".$file1."\" alt=\"Alt text here\">";
echo $imagetag;
?>

am I supposed to change the GET[''"] and/or imgsrc=""?
Logged
Rick_E
Master Jedi
*****
Offline Offline

Posts: 1067


« Reply #4 on: March 22, 2008, 09:11:54 AM »

Almost right... your hyperlink on the thumbnail has an extra slash in it after the ".php". It should be

http://excelcarpentry.com/php_test/showphoto.php?file1=photo1.jpg
Logged

All the best, Rick E

FrontPage has been discontinued.
If you plan to stay with FrontPage, consider upgrading to FrontPage 2003 now.

Search the Microsoft KB for error messages:
http://support.microsoft.com/search/default.aspx?catalog=LCID%3D1033&spid=919&adv=1

Microsoft groups have additional FrontPage assistance:
http://www.microsoft.com/communities
thisguy1
Newbie
*
Offline Offline

Posts: 3


« Reply #5 on: March 22, 2008, 09:26:44 AM »

awesome I think this will work great! thanks alot for the help!!  http://www.excelcarpentry.com/php_test/photo_album.html

dave
Logged
Rick_E
Master Jedi
*****
Offline Offline

Posts: 1067


« Reply #6 on: March 22, 2008, 09:35:29 AM »

You're welcome and glad it's working. Don't forget to add your ALT text for the search engines  Thumbs Up
« Last Edit: March 22, 2008, 09:55:22 AM by Rick_E » Logged

All the best, Rick E

FrontPage has been discontinued.
If you plan to stay with FrontPage, consider upgrading to FrontPage 2003 now.

Search the Microsoft KB for error messages:
http://support.microsoft.com/search/default.aspx?catalog=LCID%3D1033&spid=919&adv=1

Microsoft groups have additional FrontPage assistance:
http://www.microsoft.com/communities
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM