web design, England, Britain, UK, belgium
 
Ulti Clocks content

Separate links for Briask ImageSlideShow module images Part 2

GJC Web Design UK Joomla & VirtueMart how to, tips, tricks, coding examples, html, php, tutorial, 101, useful hints, help

A collection of help articles and coding examples for Joomla & Virtuemart

Belgium, VirtueMart & Joomla Web Design England UK Britain & Germany

Joomla, VirtueMart, how to, tips, tricks, coding examples, html, php, tutorial, 101, useful hints, help sand How to link any Joomla ImageSlideShow module images to any url. The Joomla ImageSlideShow module from briask.com is an excellent and simple image gallery which shows any images from a designated folder.
picurl, case, picurlx, break, image, echo, url, number, images, file, params, add, mod, line, jpg, open, briaskiss, links, link, individual, module, imageslideshow, switch, editor, lines, replace, modules, preg, briask, ditch, underneath, folder, like, rename, allows, sequence, following, comment, hack, excellent

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

Mon

14

Dec

Separate links for Briask ImageSlideShow module images Part 2
  • 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.
This hack allows you to link any image to any url.

Separate links for ImageSlideShow module First rename your images with a sequence of numbers like so -
  • image1.jpg
  • image2.jpg
  • image3.jpg
etc...

Upload them to your image folder for the ImageSlideShow module.

Open up the file modules/mod_briaskISS/mod_briaskISS.xml in your editor and go to line 55 and add these lines underneath. Add as many new input boxes as you need for your links. -->
 
<param name="URL1" type="text" size="100" default = "http://www.joomla.org" label="URL1"  description = "URL1 to link to when Slideshow image is clicked."/>
 
<param name="URL2" type="text" size="100" default = "http://www.joomla.org" label="URL2"  description = "URL2 to link to when Slideshow image is clicked."/>
 
<param name="URL3" type="text" size="100" default = "http://www.joomla.org" label="URL3"  description = "URL3 to link to when Slideshow image is clicked."/>
 
<param name="URL4" type="text" size="100" default = "http://www.joomla.org" label="URL4"  description = "URL4 to link to when Slideshow image is clicked."/>
 

Separate links for each ImageSlideShow module image The ImageSlideShow module backend will look like this now.



Now open up the file modules/mod_briaskISS/mod_briaskUtility.php in your editor and go to line 221 and add these lines underneath. These just fetch the new url parameters. -->
 
$picURL1 = $params->get('URL1', 0);
  $picURL2 = $params->get('URL2', 0);
  $picURL3 = $params->get('URL3', 0);
  $picURL4 = $params->get('URL4', 0);
 

Then down to line approx. 347
 
echo '<li><a href="'.$picURL.'"><img src="'.$picDir.'/'.$file.'" alt="'.$picTitle.'" /></a></li>';
 

Comment this out and add the following ->
 
//echo '<li><a href="'.$picURL.'"><img src="'.$picDir.'/'.$file.'" alt="'.$picTitle.'" /></a></li>';
      $number = preg_replace("/[^0-9]/", '', $file); // ditch anything that is not a number
 
      switch ($number) {
      case 1:
       $picURLx = $picURL1;
        break;
 
        case 2:
       $picURLx = $picURL2;
        break;
 
        case 3:
       $picURLx = $picURL3;
        break;
 
        case 4:
       $picURLx = $picURL4;
        break;
        }
 
 
 
 
       echo '<li><a href="'.$picURLx.'"><img src="'.$picDir.'/'.$file.'" alt="'.$picTitle.'" /></a></li>';
 
and again for the Case 2 (open in new window)
 
echo '<li><a href="'.$picURL.'" target="_blank"><img src="'.$picDir.'/'.$file.'" alt="'.$picTitle.'" /></a></li>';
 
Change to..
 
//echo '<li><a href="'.$picURL.'" target="_blank"><img src="'.$picDir.'/'.$file.'" alt="'.$picTitle.'" /></a></li>';
      $number = preg_replace("/[^0-9]/", '', $file); // ditch anything that is not a number
 
      switch ($number) {
      case 1:
       $picURLx = $picURL1;
        break;
 
        case 2:
       $picURLx = $picURL2;
        break;
 
        case 3:
       $picURLx = $picURL3;
        break;
 
        case 4:
       $picURLx = $picURL4;
        break;
        }
 
 
 
 
       echo '<li><a href="'.$picURLx.'" target="_blank"><img src="'.$picDir.'/'.$file.'" alt="'.$picTitle.'" /></a></li>';
 



Now the individual images will link to the required links.


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 Updated on Saturday, 26 December 2009 00:35
 

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:
  The word for verification.
Lowercase letters only with no spaces.

The word for verification.<br/>Lowercase letters only with no spaces.
Word verification:

Subject:
Comment:
Comments (6)
good job
6 Sunday, 29 May 2011 08:52
Mardiy
it's work.. very nice..
thanks.. Mr. Green
Thankyou Genius Hack
5 Tuesday, 30 November 2010 07:53
Wayne
Subject says it all thanks for a genius hack that not only works but is straight forward. Good call on Case 2 by Guy. Thanks for adding to a great Joomla Community that makes us as developers keep using this excellent CMS.
Doesn't work on Joomla 1.5.21 for some reason...
4 Friday, 15 October 2010 00:03
Guy
Fatal error: Call to undefined function briask_collectpics() in /home/costless/public_html/modules/mod_briaskISS/mod_briaskISS.php on line 29
Open in new window
3 Saturday, 26 December 2009 00:31
GJC (admin)
You need then to apply the hack to the Case 2
~ line 334

Have added above in the article..
correction
2 Friday, 25 December 2009 20:00
Pete
The word 'links' is missing above. Should read "none of the links I inserted"
Image slide show new window select dysfunction
1 Friday, 25 December 2009 19:58
Pete
Your hack works great however when I choose the option to open in new window, none of the I inserted are seen by the script. Only the baseurl is applied to all images.

Our Recommended Reading

For those interested in extending their 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.


Joomla! Social Networking with JomSocial
Joomla! Social Networking
with JomSocial

by Kwasi Boateng & Beatrice A. Boateng.
Joomla! 1.5 Multimedia
Joomla! 1.5 Multimedia
by Allan Walker.


Building job sites with Joomla!
Building job sites with Joomla!
by Santonu Kumar Dhar.

Joomla! Template Design: Create your own professional-quality templates with this fast, friendly guide
Joomla! Template Design: 2nd Edition
Create your own professional-quality
templates with this fast, friendly guide
by Tessa Blakeley Silver.
Magento: Beginner's Guide
Magento: Beginner's Guide by William Rice
is a must for anyone trying the
open-source e-Commerce solution.

Read the review

object-oriented-javascript-applications-libraries
Object-Oriented JavaScript by
Stoyan Stefanov gives you a very
comprehensive grounding in
the latest Javascript techniques.

Read the review
Joomla! Web Security
Joomla! Web Security
by Tom Canavan.

Joomla 1.5 Top Extensions Cookbook
Joomla 1.5 Top Extensions Cookbook by
Suhreed Sarkar is an ideal and concise round up of the extensions available for the Joomla! system.

Read the review

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.

Mastering Joomla! 1.5 Extension and Framework Development
Mastering Joomla! 1.5 Extension and
Framework Development : 2nd Edition

by James Kennard.
Read the review

Building job sites with Joomla!
Building job sites with Joomla!
by Santonu Kumar Dhar.
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! 1.5 Site Blueprints Joomla! 1.5 Site Blueprints
by Timi Ogunjobi.

Joomla! 1.5 JavaScript jQuery Joomla! 1.5 JavaScript jQuery
by Jose Argudo Blanco.
Read the review
Joomla! Social Networking with JomSocial Joomla! Social Networking with JomSocial
by Kwasi Boateng & Beatrice A. Boateng.

Joomla! 1.5 Multimedia Joomla! 1.5 Multimedia
by Allan Walker.

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 : 2nd Edition
by James Kennard.

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

Magento: Beginner's Guide
Magento: Beginner's Guide by William Rice
is a must for anyone trying the
open-source e-Commerce solution.

Read the review

GJC Web Design UK Joomla & VirtueMart how to, tips, tricks, coding examples, html, php, tutorial, 101, useful hints, help

A collection of help articles and coding examples for Joomla & Virtuemart

Belgium, VirtueMart & Joomla Web Design England UK Britain & Germany

Joomla, VirtueMart, how to, tips, tricks, coding examples, html, php, tutorial, 101, useful hints, help



Separate links for Briask ImageSlideShow module images Part 2



How to link any Joomla ImageSlideShow module images to any url. The Joomla ImageSlideShow module from briask.com is an excellent and simple image gallery which shows any images from a designated folder.


picurl, case, picurlx, break, image, echo, url, number, images, file, params, add, mod, line, jpg, open, briaskiss, links, link, individual, module, imageslideshow, switch, editor, lines, replace, modules, preg, briask, ditch, underneath, folder, like, rename, allows, sequence, following, comment, hack, excellent