Menu Content/Inhalt
Home

Login Form






Lost Password?
No account yet? Register
May 03 2005
What is moszoomimglink? Print E-mail
Tuesday, 03 May 2005
I am one of those guys that writes reports about trips he's made, and 'spices' them up with relevant pictures taken on the road. I like having the prose interrupted by my images, because it's easier on the eye, because you have a better chance of figuring out if you are interested in a particular ride or hike if you see the surroundings, and just because I am so proud of my pictures.

In parallel, I started looking at all the different forms of gallery add-ons for Mambo. I looked at all the non-integrated ones, looked at all the integrated ones, and ended up liking zOOm the best. I found it had a few bugs, a few idiosyncrasies, but all in all it worked the best for me. Little problem: you can't really integrate the pictures from your galleries into the content area. I was getting desperate, because that was such an easy thing for me in my old site setup. I would just enter a tag that looked like:
%%Image:/images/People/Marco/fatmarco%%
and the software I wrote would translate that into a thumbnail with popup image.

What to do? What to do? I scoured the web for ideas, and finally found moszoomteaser. That's a little mambot that takes links like { moszoomteaser:'catid','imgid' } and translates them into a preview of the first eight images in that gallery. The author did a great job, but didn't do what I really needed - close enough, though!

I set out to write a mambot based on moszoomteaser. I came up with moszoomimglink, which allows for similar syntax. You can add links like:

  • { moszoomimglink:#'id'# }
  • { moszoomimglink:'approx.name' }
  • { moszoomalbum:#'id'# }
  • { moszoomalbum:'approx.name' }

And you magically get thumbnails that link to the album (moszoomimglink) or a link that says 'Album' (moszoomalbum).

You want an example? Well, let's see... My absolute favorite picture of myself is called "Marco and the wind at the pali lookout" and has the ID 79. So let's add the links { moszoomimglink:#79# } and { moszoomimglink:marco and the wind at the pali lookout }.

Cool, isn't it? Or course, both pictures were from my favorite album.

Discuss this article on the forums. (0 posts)

 
< Prev

Newsflash

We made it! After a solid week of riding, 2000+ cyclists from all walks of life reached Los Angeles, yours truly one of many amongst them. It was amazing, an experience quite impossible to forget, almost a little life of its own.

Funny thing is, I still can't stop talking about it. Everyone I see gets treated to a first hand account of the ride, because so much of what I am thinking about right now is just the last week and all the things that happened.

Really, if you want to treat yourself to an experience quite unlike any other one you've had - try AIDS LifeCycle. I am not saying it's going to be easy, I am not saying it's going to be just fun. Somewhere between the atrocious coffee, the face caked in mud made of sweat and road dust, and the smell of port-a-pits you'll hate anyone that ever suggested you partake. But I guarantee, once it's over, you'll talk about it until your grandchildren reach retirement age.

 

Syndicate