| View previous topic :: View next topic |
| Author |
Message |
The Boy Hope Feral Scot
Joined: 08 Nov 2002 Posts: 1586 Location: Scotland
|
Posted: Thu Dec 22, 2005 8:11 am Post subject: |
|
|
That's the navigation tweaked a bit. Still sometimes moves a tiny bit but it doesn't jump around all over the place like before. Oh, and there's a dropdown list, too.
Better?
I'm trying to figure out where I can fit a map in to show you where these places are. Still need to remove that useless confirmation email, too. _________________ Let's all lobby for mandatory blood and urine testing of all politicians on a weekly basis. They have nothing to hide. |
|
| Back to top |
|
 |
The Boy Hope Feral Scot
Joined: 08 Nov 2002 Posts: 1586 Location: Scotland
|
Posted: Thu Dec 22, 2005 4:35 pm Post subject: |
|
|
I've put an example map thingo up at http://walks.theboyhope.com/2005/december/glen_lyon/route/
It does nothing for me but then I obviously know where the place is already. What do you guys reckon? _________________ Let's all lobby for mandatory blood and urine testing of all politicians on a weekly basis. They have nothing to hide. |
|
| Back to top |
|
 |
The Boy Hope Feral Scot
Joined: 08 Nov 2002 Posts: 1586 Location: Scotland
|
Posted: Tue Dec 27, 2005 9:44 am Post subject: |
|
|
Post-xmas bump. _________________ Let's all lobby for mandatory blood and urine testing of all politicians on a weekly basis. They have nothing to hide. |
|
| Back to top |
|
 |
caddickj Never Satisfied
Joined: 08 Nov 2002 Posts: 1736 Location: PA, USA
|
Posted: Tue Dec 27, 2005 6:14 pm Post subject: |
|
|
The map's okay. Gives me a little better idea, but would be better with a couple major cities or landmarks or something indicated.
I also just realized that the "route description" text is a link. Totally missed that before because it wasn't underlined or indicated in any way. _________________ When . . . it's time to step into the darkness of the unknown, faith is knowing that one of two things shall happen: either you will be given something solid to stand on, or you will be taught how to fly. - Edward Teller |
|
| Back to top |
|
 |
The Boy Hope Feral Scot
Joined: 08 Nov 2002 Posts: 1586 Location: Scotland
|
Posted: Fri Dec 30, 2005 7:06 pm Post subject: |
|
|
Yeah, I suppose it is a touch bare. I'll fill the map in a bit.
I can see why you didn't notice the route description link. That's another one of those things I knew I needed to do something about but managed to avoid doing it. ;-)
Did you get by with the new nav any better? _________________ Let's all lobby for mandatory blood and urine testing of all politicians on a weekly basis. They have nothing to hide. |
|
| Back to top |
|
 |
caddickj Never Satisfied
Joined: 08 Nov 2002 Posts: 1736 Location: PA, USA
|
Posted: Sat Dec 31, 2005 3:09 pm Post subject: |
|
|
Yeah, that new nav was an improvement. Thanks! _________________ When . . . it's time to step into the darkness of the unknown, faith is knowing that one of two things shall happen: either you will be given something solid to stand on, or you will be taught how to fly. - Edward Teller |
|
| Back to top |
|
 |
The Boy Hope Feral Scot
Joined: 08 Nov 2002 Posts: 1586 Location: Scotland
|
Posted: Sat Jan 07, 2006 4:22 pm Post subject: |
|
|
I've added a few towns to the map. Here's hoping it makes a bit more sense to people unfamiliar with the country now.
Cheers everybody. _________________ Let's all lobby for mandatory blood and urine testing of all politicians on a weekly basis. They have nothing to hide. |
|
| Back to top |
|
 |
KmsCage Worker Bee
Joined: 08 Nov 2002 Posts: 65
|
Posted: Fri Jan 20, 2006 10:40 am Post subject: |
|
|
| Really nice photos TBH! I have quite a few nature pictures I've taken over the years but nothing as nice as your pictures. I was wondering, did you create the code for the photo album yourself or is this something one can get/download from the web? I ask because I've been trying to find a good photo album I can use for my photos but haven't found anything good so far. |
|
| Back to top |
|
 |
The Boy Hope Feral Scot
Joined: 08 Nov 2002 Posts: 1586 Location: Scotland
|
Posted: Mon Jan 23, 2006 6:56 am Post subject: |
|
|
I originally pinched a function to get all the images in a directory from somewhere or other and then tore it all up and started again. As usual. ;-)
I've pondered releasing it after tidying it up and fixing all the bits behind the scenes that I'm secretly ashamed of but it's way down the list at the minute. I'd be happy to help you with anything you're stuck with if you're rolling your own. _________________ Let's all lobby for mandatory blood and urine testing of all politicians on a weekly basis. They have nothing to hide. |
|
| Back to top |
|
 |
KmsCage Worker Bee
Joined: 08 Nov 2002 Posts: 65
|
Posted: Tue Jan 24, 2006 12:19 am Post subject: |
|
|
| Quote: | | I'd be happy to help you with anything you're stuck with if you're rolling your own. |
Thanks, I appreciate it but it'll be a very long time before I get to the point where I can roll my own photo album (creating one from scratch that is). I've found several options on the web such as Coppermine Photo Gallery but their interfaces are just too much, I prefer something simple. |
|
| Back to top |
|
 |
The Boy Hope Feral Scot
Joined: 08 Nov 2002 Posts: 1586 Location: Scotland
|
Posted: Tue Jan 24, 2006 8:28 am Post subject: |
|
|
It's not as hard as you think. Here's a simple example to get you started. Just drop it into a directory with some images.
| Code: |
<?php
function makeImageArray( $dir )
{
$ctr = 0;
if ( $img_dir = opendir( $dir ) )
{
while ( false !== ( $img = readdir( $img_dir ) ) )
{
if ( preg_match( "/(\.jpeg|\.jpg|\.JPG|\.JPEG)$/", $img ) )
{
$images[ $ctr ] = $img;
$ctr++;
}
}
closedir($img_dir);
return $images;
} else {
return false;
}
}
$here = "{$_SERVER[ 'PHP_SELF' ]}";
if( !isset( $_GET[ 'img' ] ) )
$_GET['img'] = 0;
$img = $_GET[ 'img' ];
$images = makeImageArray( getcwd() );
sort( $images );
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Your Gallery Title</title>
<style type="text/css">
div#thumbs img { border:none;margin:10px; }
</style>
</head>
<body>
<div id="thumbs">
<?php
for( $ctr=0; $ctr < count( $images ); $ctr++ )
{
if( $ctr < count( $images ) )
echo "<a href=\"$here?img=$ctr\"><img src=\"" . $images [ $ctr ] . "\" width=\"100px\" /></a>";
}
?>
</div>
<div id="mainImg">
<img src="<?= $images[ $img ] ?>" />
</body>
</html>
|
_________________ Let's all lobby for mandatory blood and urine testing of all politicians on a weekly basis. They have nothing to hide. |
|
| Back to top |
|
 |
KmsCage Worker Bee
Joined: 08 Nov 2002 Posts: 65
|
Posted: Tue Jan 24, 2006 10:30 pm Post subject: |
|
|
| Quote: | | Just drop it into a directory with some images. |
So . . . I guess I should create a php file and then place that file containing this code in the directory where my images are? |
|
| Back to top |
|
 |
The Boy Hope Feral Scot
Joined: 08 Nov 2002 Posts: 1586 Location: Scotland
|
Posted: Wed Jan 25, 2006 3:46 am Post subject: |
|
|
Yeah. _________________ Let's all lobby for mandatory blood and urine testing of all politicians on a weekly basis. They have nothing to hide. |
|
| Back to top |
|
 |
|