Ulti Clocks content

Separate links for Briask ImageSlideShow module images

JOOMLABOTTOM sand How to get separate links for ImageSlideShow module images. The ImageSlideShow module from briask.com is an excellent and simple image gallery which shows any images from a designated folder.
link, image, number, images, file, url, content, different, individual, like, imageslideshow, jpg, php, module, index, itemid, mod, ways, option, pages, echo, folder, briask, joomla, links, desired, adds, finds, simply, corresponding, rename, note, post, clonky, second, ditch, replace, editor, preg, line

Home Joomla - VirtueMart Joomla & VM How To's Separate links for Briask ImageSlideShow module images

Dim

13

Separate links for Briask ImageSlideShow module images

  • Joomla 1.5

The ImageSlideShow module from briask.com is an excellent and simple image gallery which shows any images from a designated folder and have one link from the images. Clients (and I see on Briask's own forum) have asked whether it would be possible to have individual links to individual images.
I've come up with a couple of ways.



Separate links for ImageSlideShow module Both ways are pretty primitive and involve naming the image file in a certain way that is then detected and provides the correct link. I'm sure it could be done more nicely but it works flawlessly.
The first way is if you want to link to different content pages within your own site or at least if the links are all similar except for a different id number each time.

First find the Joomla link structure that you want to link to. The url will be like
index.php?option=com_content&view=article&id=60&Itemid=32
so note each different id number you want to link to.

Then rename your images corresponding to the id number like so -
  • image60.jpg
  • image72.jpg
  • image84.jpg
Upload them to your image folder for the ImageSlideShow module.

The url in the backend ImageSlideShow module parameters will be
index.php?option=com_content&Itemid=32&id=
Open up the file modules/mod_briaskISS/mod_briaskUtility.php in your editor and go to line 325 -->
 
echo '<li><a href="'.$picURL.'"><img src="'.$picDir.'/'.$file.'" alt="'.$picTitle.'" /></a></li>';
 
Comment this out and add the following ->
 
$number = preg_replace("/[^0-9]/", '', $file); // ditch anything that is not a number
echo '<li><a href="'.$picURL.$number.'&view=article"><img src="'.$picDir.'/'.$file.'" alt="'.$picTitle.'" /></a></li>';
 

This simply finds the number in the image file name and adds it to the url.

Now the individual images will link to the desired pages.

The second way is even more clonky but this way you can link to any url that you like.
I will describe it in the next post.


Add this page to your favorite Social Bookmarking websites
Digg! Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! Slashdot! Technorati! StumbleUpon! Spurl! Newsvine! Furl! Fark! Yahoo! Netvouz! Mister-Wong! RawSugar! Ma.gnolia! Squidoo! DZone! Swik!
LAST_UPDATED2 Read : 3302 times
 
Comments (2)
@Wayne Swearingen
2 Mercredi, 26 Mai 2010 07:28
(GJC Admin)
It does.....
Separate Links Briask Slideshow
1 Mardi, 25 Mai 2010 22:20
Wayne Swearingen
Is there a way to make this work with SEO links?

Add your comment

BoldItalicUnderlineStrikethroughSubscriptSuperscriptEmailImageHyperlinkOrdered listUnordered listQuoteCodeHyperlink to the Article by its id
Very HappySmileWinkSadSurprisedShockedConfusedCoolLaughingMadRazzEmbarrassedCrying or Very SadEvil or Very MadTwisted EvilRolling EyesExclamationQuestionIdeaArrowNeutralMr. GreenGeekUber Geek
Your name:
Titre:
Comment:

Latest Articles

Paypal Donation

If you use this module on your site please donate a small amount.
Any donation amount appreciated.

VM Live Product Search

Recommended Reading

For those interested in extending there knowledge of Joomla! & VirtueMart Packt Publishing has an excellent range of help & how to books.
Listed below are some I can recommend.
Simply click on the images to be taken directly to their web shop.

Learning Joomla! 1.5 Extension Development Learning Joomla! 1.5 Extension Development
by Joseph L. LeBlanc.
Read the review
Joomla! E-Commerce with VirtueMart Joomla! E-Commerce with VirtueMart
by Suhreed Sarkar.
Read the review
Joomla! Web Security Joomla! Web Security
by Tom Canavan.

Mastering Joomla! 1.5 Extension and Framework Development Mastering Joomla! 1.5 Extension and Framework Development
by James Kennard.

Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide
by Tessa Blakeley Silver.

JOOMLABOTTOM



Separate links for Briask ImageSlideShow module images



How to get separate links for ImageSlideShow module images. The ImageSlideShow module from briask.com is an excellent and simple image gallery which shows any images from a designated folder.


link, image, number, images, file, url, content, different, individual, like, imageslideshow, jpg, php, module, index, itemid, mod, ways, option, pages, echo, folder, briask, joomla, links, desired, adds, finds, simply, corresponding, rename, note, post, clonky, second, ditch, replace, editor, preg, line