Please login or register.
Login with username, password and session length
May 21, 2013, 07:10:53 PM
News: We're back! And here to stay!
collapse

* User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

Fatal error: by mailtobala04
[May 17, 2013, 04:36:20 PM]


Backend Items (Images) don't work by bauchinj
[May 15, 2013, 04:18:55 PM]


Permissions issue: a user can upload images in other user galleries by guidocx84
[May 11, 2013, 05:17:44 PM]


Payment after loggin by mirjam
[May 11, 2013, 03:02:56 PM]


image titles without dashes by mirjam
[May 11, 2013, 02:57:48 PM]


Batch Upload Fails by mirjam
[May 11, 2013, 02:52:08 PM]


Slow Gallery with many Photos by mirjam
[May 11, 2013, 02:49:36 PM]


500 error Rackspace by mirjam
[May 11, 2013, 02:23:09 PM]

Advertisement


Pages: [1]   Go Down

Author Topic: Changing Slideshow parameter  (Read 356 times)

Offline David9937

  • Newbie
  • *
  • Posts: 2

Changing Slideshow parameter
« on: April 21, 2012, 01:46:14 PM »
I have just installed RSGallery 2.2. The slideshow moves a little too quickly for the photo captions I have in one of my galleries.

I have edited a parameter in the slideshow.rsgallery2.php which is found here:    /public_html/...../components/com_rsgallery2

I have changed the display parameter from 4 seconds to 15 seconds in the code below =

SlideShow. Written by PerlScriptsJavaScripts.com
Copyright http://www.perlscriptsjavascripts.com
Free and commercial Perl and JavaScripts     
*/

effect      = 23;// transition effect. number between 0 and 23, 23 is random effect
duration    = 1.5;// transition duration. number of seconds effect lasts
display     = 4;// seconds to diaply each image?
oW          = 400;// width of stage (first image)
oH          = 400;// height of stage
zW          = 40;// zoom width by (add or subtracts this many pixels from image width)
zH          = 30;// zoom height by

==

But still no luck. The photos still click over on the slideshow roughly every 4 seconds. Is there something else that needs to be done? Or am I on the wrong track?

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Changing Slideshow parameter
« Reply #1 on: April 21, 2012, 03:34:48 PM »
Which slideshow do you use? Check it in the Backend > Components > RSGallery2 > Control Panel > Configuration > tab: Display > setting: "Select slideshow".

By default this is "slideshow_parth", so for now I'll assume that you're using that one.

This "slideshow_parth" is found in the template directory /JOOMLAROOT/components/com_rsgallery2/templates/slideshow_parth/. If you use this template the delay in the slideshow parameters can be found in the file /JOOMLAROOT/components/com_rsgallery2/templates/slideshow_parth/html/slideshow.php on line 44
Code: [Select]
<script type="text/javascript">
function startGallery() {
var myGallery = new gallery($('myGallery'), {
/* Automated slideshow */
timed: true,
/* Show the thumbs carousel */
showCarousel: true,
/* Text on carousel tab */
textShowCarousel: 'Thumbs',
/* Thumbnail height */
thumbHeight: 50,
/* Thumbnail width*/
thumbWidth: 50,
/* Fade duration in milliseconds (500 equals 0.5 seconds)*/
fadeDuration: 500,
/* Delay in milliseconds (6000 equals 6 seconds)*/
delay: 6000
});
}
window.addEvent('domready',startGallery);
</script>
The delay there is 6000 milliseconds (6 seconds). The settings here are an override of the settings in the file /JOOMLAROOT/componenst/com_rsgallery2/templates/slideshow_parth/js/jd.gallery.js, which is the original JonDesign's SmoothGallery v2.0 file that is used for this particular slideshow.

The slideshow links is shown on the page with the gallery details, like this one: http://demo.rsgallery2.nl/demo-rsgallery2.html. On this demopage slideshow_parth is used.

So, yes, good attempt...

Notes:
- If you change this file and later upgrade to a newer v2, your changes will be lost, so either document your changes or create "your own template" (see http://www.rsgallery2.nl/display_and_templates/how_create_your_own_template_or_modify_semantic_template_16758.0.html).
- In v3 on Joomla 2.5 one can edit the main parameters of the slideshow_parth real easily in the RSGallery2 template manager, you don't need to change the code yourself.
« Last Edit: April 23, 2012, 12:18:05 PM by mirjam »
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.

Offline David9937

  • Newbie
  • *
  • Posts: 2

Re: Changing Slideshow parameter
« Reply #2 on: April 21, 2012, 05:19:32 PM »
Perfect! That worked. Just one thing though... I found the slideshow file in this directory - /public_html/.../components/com_rsgallery2/templates/slideshow_parth/html (ie the html directory). Thanks for your help.

Offline mirjam

  • Dev Team
  • Hero Member
  • *****
  • Posts: 558

Re: Changing Slideshow parameter
« Reply #3 on: April 23, 2012, 12:19:27 PM »
Good to hear this was what you were looking for and thanks for the correction: I modified the post with your info.
Suddenly on maternity leave: our baby boy was born a few weeks early, he's doing well now.
For the next couple of weeks I won't available, for true emergences pm locutusweb please.

I hope that RSGallery2 users will help each other out in the mean time.
Pages: [1]   Go Up
 

anything