Help - Search - Members - Calendar
Full Version: Photoblog with photos/thumbs in different dirs
Movable Type Community Forum > Additional Resources > Tips and Tricks
nancyann
I am so close I can taste it! LOL

Here are the beginnings of my photoblog:
sissybooboo.com

I cannot figure out how to do this with the thumbnails and the images in two different directories unless I specify the photo path in the main entry and thumbnail path in the extended entry.

Images: photos/bathtubwords/images/photonumber.jpg
Thumbs: photos/bathtubwords/thumbs/photonumber.jpg

I am new, so I don't know what I am doing, sorry! huh.gif
Any help would be appreciated smile.gif
Thanks!
Nancy
bill3555
You weren't very specific about how you were doing your photoblog (there are a couple of ways, depending whether you have the Image:Magic perl mod).

If you don't have that, which automaticly creates thumbs, then you need to hand code the extended entry (your thumb) to the path to the thumb directory, for example: "/blog/images/thumbs/".  Also, don't forget to change the image size if using this method.

If you have a blog and photo blog and want to create an excerpt of the photoblog on your regular blog, you can read my how-to entry here.
kadyellebee
If you always have the thumbnails in the thumbs directory, and always have the full sized in the images directory, then you could hard code that into your template.

It looks like you started to use the format from my blogstyles tutorial, and the method there could definitely be modified to fit your directory structure.  Instead of putting the full path to the image in the "MORE" section, you'd just put the image name like this: photonumber.jpg

And then you'd change the main index like this:
CODE
 <a href="<$MTEntryLink$>#<$MTEntryID pad="1"$>"><img
 src="photos/bathtubwords/thumbs/<$MTEntryMore$>" width="100" height="66"
 alt="<$MTEntryTitle$>"></a><br />


And the individual entry like this:
CODE
 <img src="photos/bathtubwords/images/<$MTEntryMore$>" width="500" height="333"
 alt="<$MTEntryTitle$>"><br>


Does that help at all?  Let me know if I'm completely off track and I'll see what else I can write up for you smile.gif

Kristine
nancyann
Thanks for the help!  biggrin.gif

Ooops, yes I am using Kristine's photoblog templates and I couldn't get Image:Magick to work (which is fine, I don't need a second thumbnail or duplicate photos, as I am using iPhoto for image cataloging and image web page generation and it makes thumbnails)

I am a little bit closer now, but I can't get the image to show in the Individual Entry Archive since changing the code

CODE
<img src="photos/bathtubwords/images/<$MTEntryMore$>" width="640" height="480"
 alt="<$MTEntryTitle$>">


This is what is generated:

CODE
<img src="photos/bathtubwords/images/32.jpg" width="640" height="480"
 alt="I love to blog - Image 32">


It matches the Main Index code except for the thumbs dir and that works...

I checked the path also and it is fine, I can pull up the photo in a browser.

Thank you!
Nancy
kadyellebee
Oh, you are right!  I forgot about the fact that the archive directory would get put in that path automatically smile.gif

Try this for the individual archive:
CODE
<img src="http://www.sissybooboo.com/4cats/photos/bathtubwords/images/<$MTEntryMore$>" width="500" height="333"
alt="<$MTEntryTitle$>"><br>


That will keep the full path in there smile.gif

Kristine
nancyann
Woohoo! Thank you so much for all of your help! biggrin.gif

You know, I just love all of your sites, you are so talented!  I want to get one of your new light color photoblog templates, but I can't choose which color! (blue or purple, blue or purple, hmmm wink.gif

Thanks again!
Nancy
kadyellebee
I'm glad I could help!  Its nice when it actually all works out, isn't it? smile.gif
And I really like how the light colored templates turned out!  Purple is always my favorite, but the light blue looks really pretty too! smile.gif

Kristine
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.