the default selected option is 15 seconds. just cut and paste the selection business.
Maych
Joined: 2005-12-07
Posts: 1
Posted: Sat, 2005-12-10 19:32
Thank you very much for this information !
TheMadHatter
Joined: 2005-10-19
Posts: 7
Posted: Tue, 2006-01-10 17:23
Yessssssssssss!!!! Awesome man!! I have a soccer club and the parents love the slideshow but are all complaining about having to adjust everything all the time...I was just looking for something unrealated and found this post...made the changes...fixed my issue!!! YOU ROCK!!!
Searching the Gallery2 Site: 5 minutes
Making Suggested Changes: 10 minutes
Members who post up kick-ass tips/tricks/help like this!: PRICELESS!!!
Cheers,
Travis
hoss
Joined: 2006-01-29
Posts: 6
Posted: Sun, 2006-01-29 18:19
good post, thanks
webp
Joined: 2006-02-03
Posts: 3
Posted: Fri, 2006-02-03 20:42
Worked like a dream! Thank you!
pvdgulik
Joined: 2004-04-20
Posts: 9
Posted: Sun, 2006-02-05 12:08
I only changed:
Quote:
var image = new Image(), timer, iDelay = 5000, iDir = 1, iSize = 0;
in gallery2\modules\slideshow\templates\local\slideshow.tpl
which worked fine for me ;-)
Jonathan Pikey
Joined: 2006-02-08
Posts: 8
Posted: Wed, 2006-02-08 23:53
pvdgulik wrote:
I only changed:
Quote:
var image = new Image(), timer, iDelay = 5000, iDir = 1, iSize = 0;
in gallery2\modules\slideshow\templates\local\slideshow.tpl
which worked fine for me ;-)
Here too! Like the slideshow alot though!
anner
Joined: 2005-12-07
Posts: 7
Posted: Wed, 2006-03-08 18:32
Any idea on how to get it to show more info by default instead of hiding it?
wesmoc
Joined: 2005-01-18
Posts: 6
Posted: Thu, 2006-03-30 18:13
Rather than deleting any lines when changing the default image size, I actually found it a little easier to just edit line 41 in modules/slideshow/templates/local/Slideshow.tpl to look like:
var image = new Image(), timer, iDelay = 3000, iDir = 1, iSize = 1;
The "iSize" variable defines the default size of the image. In the default configuration, iSize can be:
And I have mine set to "1", which is a 640x640 image.
Now, to change the default of showing/hiding the info, it would seem like all you would have to do is change the value for bShowText to 1 on line 42 in modules/slideshow/templates/local/Slideshow.tpl. But, when I tried that, it didn't seem to make a difference.
I personally don't mind it off by default, but it would be nice to see all of these as options that could be set from the web interface.
Jean-Marc Liotier
Joined: 2004-03-07
Posts: 80
Posted: Sat, 2006-05-20 11:11
Thanks ozgreg and wesmoc : your suggested modications to modules/slideshow/templates/local/Slideshow.tpl indeed work well. Now I wonder how to make them part of a theme so that they only affect that theme and not the whole multisite installation. I tried putting my modified copy of Slideshow.tpl into my theme's templates directory, but even after forced template cache deletion the modifications are not taken into account. Does anyone know how to make such modified template part of a theme ?
chingching2
Joined: 2005-02-27
Posts: 20
Posted: Thu, 2006-11-16 00:39
wesmoc wrote:
Rather than deleting any lines when changing the default image size, I actually found it a little easier to just edit line 41 in modules/slideshow/templates/local/Slideshow.tpl to look like:
var image = new Image(), timer, iDelay = 3000, iDir = 1, iSize = 1;
/quote]
This worked for me; however at the beginning of the file - slideshow.tpl it says:
* If you want to customize this file, do not edit it directly since future upgrades
* may overwrite it. Instead, copy it into a new directory called "local" and edit that
* version. Gallery will look for that file first and use it if it exists.
This did not work for me, when i replaced the file in it's original location it worked o.k.
Also u need to change row 179 - to
{g->text text="delay: "}
<select onchange="new_delay(this.value)">
<option value="1">{g->text text="1 seconds"}</option>
<option value="3">{g->text text="3 seconds"}</option>
<option selected="selected" value="5">{g->text text="5 seconds"}</option>
<option value="10">{g->text text="10 seconds"}</option>
<option value="15">{g->text text="15 seconds"}</option>
<option value="20">{g->text text="20 seconds"}</option>
</select>
or whatever yr new selected delay is. This will not change the time delay but the display that is showing. It is a little confusing to have the delay 5 seconds, and the drop down box showing 15 seconds.
The same for: image size; Line 198, i changed to.
{g->text text="max size: "}
<select onchange="new_size(this.value)">
<option value="0">{g->text text="640x640"}</option>
<option value="1">{g->text text="320x320"}</option>
<option value="2">{g->text text="800x800"}</option>
<option value="3">{g->text text="1024x1024"}</option>
<option value="4">{g->text text="1280x1280"}</option>
<option value="5">{g->text text="no limit"}</option>
</select>
Just putting 640x640 to show in drop down box by default. Again this doesn't change the default setting, only what shows.
I could not figure out how to change the default transition which is "blend".
irc_ii
Joined: 2007-02-13
Posts: 1
Posted: Tue, 2007-02-13 22:02
wesmoc wrote:
Rather than deleting any lines when changing the default image size, I actually found it a little easier to just edit line 41 in modules/slideshow/templates/local/Slideshow.tpl to look like:
var image = new Image(), timer, iDelay = 3000, iDir = 1, iSize = 1;
The "iSize" variable defines the default size of the image. In the default configuration, iSize can be:
And I have mine set to "1", which is a 640x640 image.
Now, to change the default of showing/hiding the info, it would seem like all you would have to do is change the value for bShowText to 1 on line 42 in modules/slideshow/templates/local/Slideshow.tpl. But, when I tried that, it didn't seem to make a difference.
I personally don't mind it off by default, but it would be nice to see all of these as options that could be set from the web interface.
I made this little hacks and it worked like a charm! Im using "iSize" set to "2" (800x600) and I didnt touch "bShowText" variable.
Thanks for the tips.
brashquido
Joined: 2006-09-13
Posts: 60
Posted: Wed, 2007-03-21 21:52
Awesome little hack ! Has any one figure out how to get the "show more info" to be on by default? I set bShowText = 0 to bShowText = 1 but it makes no difference, except now I have to click the "show more info" link before it actually works.
vbnautilus
Joined: 2007-04-25
Posts: 1
Posted: Wed, 2007-04-25 19:43
Figured out a way to get comments to show by default.
Leave the bShowText variable alone and just invoke the on/off function directly towards the end of the Slideshow.tpl file:
Posts: 1378
Post from Brian from the WPG2 forums..
what i did was delete the 320x320 option in gallery2\modules\slideshow\slideshow.inc
but you need to match that up in gallery2\modules\slideshow\templates\local\slideshow.tpl
and to change the time, also in slideshow.tpl, iDelay is the number of miliseconds. the default is 15000. i set it to 3 seconds.
and the dropdown box as well
the default selected option is 15 seconds. just cut and paste the selection business.
Posts: 1
Thank you very much for this information !
Posts: 7
Yessssssssssss!!!! Awesome man!! I have a soccer club and the parents love the slideshow but are all complaining about having to adjust everything all the time...I was just looking for something unrealated and found this post...made the changes...fixed my issue!!! YOU ROCK!!!
Searching the Gallery2 Site: 5 minutes
Making Suggested Changes: 10 minutes
Members who post up kick-ass tips/tricks/help like this!: PRICELESS!!!
Cheers,
Travis
Posts: 6
good post, thanks
Posts: 3
Worked like a dream! Thank you!
Posts: 9
I only changed:
in gallery2\modules\slideshow\templates\local\slideshow.tpl
which worked fine for me ;-)
Posts: 8
Here too! Like the slideshow alot though!
Posts: 7
Any idea on how to get it to show more info by default instead of hiding it?
Posts: 6
Rather than deleting any lines when changing the default image size, I actually found it a little easier to just edit line 41 in modules/slideshow/templates/local/Slideshow.tpl to look like:
The "iSize" variable defines the default size of the image. In the default configuration, iSize can be:
And I have mine set to "1", which is a 640x640 image.
Now, to change the default of showing/hiding the info, it would seem like all you would have to do is change the value for bShowText to 1 on line 42 in modules/slideshow/templates/local/Slideshow.tpl. But, when I tried that, it didn't seem to make a difference.
I personally don't mind it off by default, but it would be nice to see all of these as options that could be set from the web interface.
Posts: 80
Thanks ozgreg and wesmoc : your suggested modications to modules/slideshow/templates/local/Slideshow.tpl indeed work well. Now I wonder how to make them part of a theme so that they only affect that theme and not the whole multisite installation. I tried putting my modified copy of Slideshow.tpl into my theme's templates directory, but even after forced template cache deletion the modifications are not taken into account. Does anyone know how to make such modified template part of a theme ?
Posts: 20
Posts: 1
I made this little hacks and it worked like a charm! Im using "iSize" set to "2" (800x600) and I didnt touch "bShowText" variable.
Thanks for the tips.
Posts: 60
Awesome little hack ! Has any one figure out how to get the "show more info" to be on by default? I set
bShowText = 0
tobShowText = 1
but it makes no difference, except now I have to click the "show more info" link before it actually works.Posts: 1
Figured out a way to get comments to show by default.
Leave the bShowText variable alone and just invoke the on/off function directly towards the end of the Slideshow.tpl file:
<script type="text/JavaScript"> // <![CDATA[ linkStop = document.getElementById('stop'); spanPause = document.getElementById('pause'); spanText = document.getElementById('moreInfo'); toolText = document.getElementById('tools'); toolBar = document.getElementById('toolbar'); textBanner = document.getElementById('textBanner'); spanTitle = document.getElementById('title'); spanSummary = document.getElementById('summary'); spanDate = document.getElementById('date'); spanDescription = document.getElementById('description'); document.images.slide.onload = slide_view_start; document.images.slide.onerror = goto_next_photo; document.images.slide.src = document.getElementById('item_{$SlideShow.start}_'+item_map[{$SlideShow.start}][iSize]).href; text_onoff(); // ]]> </script>
Posts: 9
Has anyone figured out how to make the slide show start immediately an album in the gallery is opened.
I have a client who wants the slide show immediately an album is opened.