Jump to content


Trip Tracker Gallery


  • You cannot reply to this topic
3 replies to this topic

#1 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 06 November 2007 - 02:26 PM

Based on Dean's TTGal snippet, I've put together a 'style' for etogalthumb to use the Trip Tracker Gallery.
It doesn't have all the control that Dean's snippet does over the way that TTG works (you'll need to manually edit the style for that) and it only supports one use per page.
It does however benefit from having all the controls in EtogalThumbs for selecting which images are to be shown.

Quote

$styleStrings['TTG']['header']=<<<TOP
<script type='text/javascript'
src='http://slideshow.triptracker.net/slide.js'></script>
<script type='text/javascript'>
<!--
var viewer = new PhotoViewer();

viewer.disablePanning();
viewer.enableFading();
viewer.enableShade();
viewer.disableEmailLink();
viewer.disablePhotoLink();

viewer.setBorderWidth(5);
viewer.setSlideDuration(4000);
viewer.setBackgroundColor('#000000');

TOP;

$styleStrings['TTG']['image']=<<<IMG
viewer.add('%%fsfile%%','%%title%%');
IMG;

$styleStrings['TTG']['tail']=<<<TAI
//--></script>
<h3><a href="java script:void(viewer.show(0));void(window.setTimeout('viewer.slideShow(true)', 2000))">View as slideshow</a></h3>
TAI;


In use on Rogue Gene Collective test gallery where the background is generated by another invocation of EtoGalThumbs

#2 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 06 November 2007 - 04:17 PM

Or, with a slight change Recent art on Rogue Gene Collective:

Quote

$styleStrings['TTG2']['header']=$styleStrings['TTG']['header'];

$styleStrings['TTG2']['image']=$styleStrings['TTG']['image'];


$styleStrings['TTG2']['tail']=<<<TAI

viewer.show(0);
window.setTimeout('viewer.slideShow(true)', 2000);
//--></script>
<h3><a href="java script:void(viewer.show(0));void(window.setTimeout('viewer.slideShow(true)', 2000))">View as slideshow</a></h3>
TAI;

No, don't try this change. It upsets something in IE7 (probably security settings and cross-site scripting). 'Recent art' now reset to the TTG style.

Edited by mikef, 06 November 2007 - 07:42 PM.


#3 mikef

    Loves Etomite Forums!

  • Member
  • PipPipPipPip
  • 1,551 posts

Posted 09 November 2007 - 12:06 PM

Thanks to the helpful support people at triptracker/klika I now have a fix for the problem above.

Replace the above TTG2 tail string with

Quote

$styleStrings['TTG2']['tail']=<<<TAI

viewer.enableAutoPlay();
window.onload = function() { viewer.show(0); };

//--></script>
<h3><a href="java script:void(viewer.show(0));">View as slideshow</a></h3>
TAI;

A similar fix is probably needed on Dean's TTGal snippet for IE browsers (possibly only on PC?) for the immediate start slideshow displays.

demo available at Recent art (immediate) at Rogue Gene Collective - I haven't decided whether I want to use this on the site proper yet.

#4 Dean

    Loves Etomite Forums!

  • Admin
  • 4,758 posts
  • Gender:Male

Posted 09 November 2007 - 01:04 PM

I know that TTGal needs a fix, I know what the fix is as TripTracker sent me an e-Mail; I've just been that busy with stuff that I've never had a chance to update it... I actually may get round to retrying the snippet this weekend :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users