Those changes make the select boxes reflect the desired defaults, but we're not quite there yet. It appears there is Javascript? that needs to be changed as well .. as the pictures are still the same size (thumbs) and the timing is still 15 seconds.
bensiebro
Joined: 2003-05-16
Posts: 70
Posted: Sun, 2005-09-11 17:49
Found it:
In Slideshow.tpl Line 41
var image = new Image(), timer, iDelay = 15000, iDir = 1, iSize = 0;
Change to:
var image = new Image(), timer, iDelay = 3000, iDir = 1, iSize = 1;
BrockVond
Joined: 2005-09-17
Posts: 1
Posted: Sat, 2005-09-17 17:57
thanks for this. Saved me quite a bit of time with same problem.
robert070612
Joined: 2003-08-05
Posts: 565
Posted: Sun, 2005-10-02 10:49
Have been trying to get the 'text' default to show under the image in slideshows.
[Slideshow.tpl] changing...
var bPause = 0, bShowText = 0, bShowTools = 1;
...into...
var bPause = 0, bShowText = 1, bShowTools = 1;
...doesn't do it.
Haven't yet worked out whether it's the stuff in the area...
<a href="#" onclick="text_onoff();return false">
<span id="moreInfo">{g->text text="Show More Info"}</span>
</a>
...that might achieve the desired effect (text showing by default).
best wishes, Robert
Pinguin
Joined: 2005-09-27
Posts: 210
Posted: Sun, 2005-10-02 13:18
I agree that the default values are very strange. Nobody wants to wait 15sec. for the next picture and visitors get confused while nothing happens.
Also I think, that the minimum resolution today is 1024x768. Why not define this as default value?
robert070612
Joined: 2003-08-05
Posts: 565
Posted: Sun, 2005-10-02 13:50
I didn't say they were strange, the choice of timings depends on many criteria. For people with hosted bandwidth limits then 15sec seems friendly, particularly when you consider that you may not actually have a human viewer present! However, yes, I agree that some visitors appear to get confused if nothing happens within a few seconds. On my sites I am prepared to show (aka give away) no more than 640pix and have disabled all other sizes larger or smaller so the choice isn't even onscreen.
I'd still like to find out how to default (on) the descriptive text.
tmaes2
Joined: 2005-10-10
Posts: 1
Posted: Mon, 2005-10-10 18:10
to Robert:
I've been trying the same thing and I've found a ploblem...
if you put bShowText to 1, it will work on firefox only if you make also this change:
Quote:
line 227 <div id="textBanner" class="gbBlock gcBackground1" style="visibility:hidden">
to
line 227 <div id="textBanner" class="gbBlock gcBackground1" style="visibility:visible">
but I saw that the first change makes that IE always pauses the slide because of the line 83...
everithing happens like if it doesn't understand this line and stops there witout reading lines 84 and 85...
the following code will make IE pass trough the bug and continue the slideshow but it will not show the text...
Quote:
change:
function slide_view_start() {
if (bShowText) show_text();
preload(move_index(1));
if (!bPause) timer = setTimeout('goto_next_photo()', iDelay);
} to:
function slide_view_start() {
preload(move_index(1));
if (!bPause) timer = setTimeout('goto_next_photo()', iDelay);
if (bShowText) show_text();
}
For now I stop here, for the next times I will try to find why ie bugs with this line 83...
hope it can help...
tmaes
lixuefeng----
YES, cheers;~)
----best wishes, Robert
agilos
Joined: 2003-10-11
Posts: 9
Posted: Mon, 2005-11-21 07:08
Great that worked perfectly....thanks
Edward Andrews
Joined: 2005-12-06
Posts: 4
Posted: Tue, 2005-12-06 18:23
It says at the top of the file that you should customise a version of this file in a directory called local, so it doesn't get overwritten.
Should I make this directory inside the slideshow directory, or in the modules directory or...
I'm asking because I'm back doing this for a second time after upgrading!
Thanks
Edward
Edward Andrews
Joined: 2005-12-06
Posts: 4
Posted: Tue, 2005-12-06 19:07
To answer my own question for anyone else that's wondering
Put the folder inside templates that is:
copy orignal file to modules/slideshow/template/local/SlideShow.tpl and change that version.
hkkk
Joined: 2005-10-25
Posts: 43
Posted: Sat, 2005-12-10 09:09
Edward Andrews wrote:
To answer my own question for anyone else that's wondering
Put the folder inside templates that is:
copy orignal file to modules/slideshow/template/local/SlideShow.tpl and change that version.
thank your tip, it is useful for me too
sircuss
Joined: 2005-04-19
Posts: 46
Posted: Sat, 2006-01-14 17:15
I changed the selected size to value 1 at 640x640 and time delay to 3 seconds. I also adjusted the javascript on line 41 to those values and deleted the template cache in site admin-->maintainance. When I go to my slideshow it just seems to hang up in a loop.
<Any suggestions?>
Might be clearer for you work on a much
smaller album slideview - say 4 images max!
sircuss
Joined: 2005-04-19
Posts: 46
Posted: Sun, 2006-01-15 17:17
I'm not sure what you mean by that. Can you be more specific? Where/what do I change to have a smaller album slideview?
robert070612
Joined: 2003-08-05
Posts: 565
Posted: Sun, 2006-01-15 17:30
Make a separate (test) album consisting of just 4 images...
Then you or others might be able to see the wood for the trees:~)
At the moment it seems like the image compiling is taking time.
Whether it's a code problem or your host is too slow is not clear.
sircuss
Joined: 2005-04-19
Posts: 46
Posted: Mon, 2006-01-16 17:24
I created a test album here with 4 images and it's still not working. Could it be anything else?
robert070612
Joined: 2003-08-05
Posts: 565
Posted: Mon, 2006-01-16 23:47
You could try checking out why you're seemingly
downloading and not slideviewing the images.
Also check the url_rewrite stuff too? I can't
make head nor tail out of what your embedded
URL calls are doing;~/ No wonder nothing works.
Just do a source view (Firefox), it looks weird.
Or using M$IE... well that 'stuff' down in the little
status bar is certainly wrong. Perhaps you should
look at whatever it is you've done with some Smarty
commands. Smarty should be rendered/compiled and
not appear in the status line! You've messed up
the code somewhere - need more care I expect;~)
sircuss
Joined: 2005-04-19
Posts: 46
Posted: Fri, 2006-01-20 18:49
All I ever changed was the above mentioned changes. When I view source I see the error message and don't see anylinks. What do you mean?
Also, I just reverted the file to its former state, deleted the local folder, deleted template cache, deleted my browsers cache and yet I'm still getting an error for the link to the slideshow. Is this a bug?
robert070612
Joined: 2003-08-05
Posts: 565
Posted: Fri, 2006-01-20 18:55
What I mean is that you shouldn't see Smarty stuff appearing
in the Status Bar, the obvious inference from this is that
you've messed up the code in your edits/amendments. Probably
a missing } or something. Hence the 'more care'... ;~)
My apologies - I had the wrong url from my home page and forgot to change it. The slideshow does work when I revert it back to 320px and 15 sec. So I tried to change it to 3 seconds and 640px one more time from the beginning with the same bad results. Since I didn't change any smarty tags other than the above (the 2nd and 4th posts) and those don't seem to have any missing "}" or anything else, I can only assume that my host (a cheap one) just can't handle it for some reason, it's a bug, or I'm not catching the error. So I reverted it to 320px, 15 secs default (ugghh). I'm attaching my adjusted Slideshow.tpl file in the hope that I'm just missing something and it actually will work. Thanks for looking.
robert070612
Joined: 2003-08-05
Posts: 565
Posted: Fri, 2006-01-20 20:15
I'm still confused as to your requests.
Even before your posting I had already tried your
test album's settings for 3s and 640pix. Both worked.
Do you 'actually' mean that you want the DEFAULTS
amended to 3s and 640pix?
robert070612
Joined: 2003-08-05
Posts: 565
Posted: Fri, 2006-01-20 20:30
If you do want to default to 3s and 640pix make the changes as below...
old
var image = new Image(), timer, iDelay = 15000, iDir = 1, iSize = 0;
new
var image = new Image(), timer, iDelay = 3000, iDir = 1, iSize = 1;
...though not sure about that size change in the very
last bit as I don't give my viewers a choice in size;~)
tholio
Joined: 2006-05-05
Posts: 1
Posted: Fri, 2006-05-05 11:00
Hello, I couldn't find answer before questionning!
I would like to change position of the default slideshow. I would prefer to get it in the middle of the page?
randomly
Joined: 2006-07-06
Posts: 13
Posted: Wed, 2006-07-19 10:12
I start using Gallery 2 nowadays and find it great. However, I want to modify the NavBar for the photo page such that it has the form
eg. A simple php Code that I don't know that will "Select Option 15" of id='filter' from the start of the Slideshow.
PS> Thanx for the above suggestions, It's so much nicer having the Images Centered, Larger, 5sec delay with Random Transitions, and More Info displayed.
unrevealable
Joined: 2007-12-05
Posts: 1
Posted: Wed, 2007-12-05 21:56
I'm having a problem after changing the defaults. I copied everything exactly as written. Now, when I go into the slideshow view the slideshow does not work. If I click on one of the links at the top ("Pause", "Back One Image") it will start scrolling. I have cleared the template cache in the admin panel.
What am I missing?
jivyb
Joined: 2005-11-10
Posts: 31
Posted: Thu, 2008-04-24 21:03
@unrevealable: You're probably beyond this now, but I had this problem before changing the var line above. Once I did that it functioned as expected.
just for anyone else who wants to default their Text Descriptions below the photos to "on", the above probably worked for the code in 2003-5, but in 2008, it's actually even easier!!
Just change:
<script type="text/JavaScript">
// <![CDATA[
var image = new Image(), timer, iDelay = 5000, iDir = 1, iSize = 3;
var bPause = 0, bShowText = 0, bShowTools = 1;
to
<script type="text/JavaScript">
// <![CDATA[
var image = new Image(), timer, iDelay = 5000, iDir = 1, iSize = 3;
var bPause = 0, bShowText = 1, bShowTools = 1;
and, you'll also want to change:
<a href="#" onclick="text_onoff();return false">
<span id="moreInfo">{g->text text="Show More Info"}</span>
</a>
to
<a href="#" onclick="text_onoff();return false">
<span id="moreInfo">{g->text text="Hide More Info"}</span>
</a>
PaulineK
Joined: 2008-05-04
Posts: 1
Posted: Sat, 2008-06-14 20:44
That last change posted by jkuruppu did not work for me (gallery 2.2.4), but the original version of the change and all the other changes worked. Thanks!
wrecsamtri
Joined: 2007-09-29
Posts: 7
Posted: Sat, 2008-08-09 17:48
I also made all the above changes and they worked apart from the show comment
The slideshow starts correctly with the correct display.
The header is changed to show hide comments - but there are non there.
If I click on hide comments then back on show comments they appear
Any ideas>
mejon2
Joined: 2008-11-18
Posts: 2
Posted: Tue, 2008-11-18 18:02
Hello,
I've Gallery2 2.3 full, all work, but i don't know how can I change the default time between 2 pictures in the slideshow.
Defaut settings :10sec, and i need 3sec.
I use PicLens Diaporama Version 1.3.1.14221.
gallery2\modules\slideshow\
Posts: 32509
change modules/slideshow/template/SlideShow.tpl
in html, "selected" determines which option in a drop down list is selected by default.
change:
to:
and change:
to:
Posts: 70
Those changes make the select boxes reflect the desired defaults, but we're not quite there yet. It appears there is Javascript? that needs to be changed as well .. as the pictures are still the same size (thumbs) and the timing is still 15 seconds.
Posts: 70
Found it:
In Slideshow.tpl Line 41
var image = new Image(), timer, iDelay = 15000, iDir = 1, iSize = 0;
Change to:
var image = new Image(), timer, iDelay = 3000, iDir = 1, iSize = 1;
Posts: 1
thanks for this. Saved me quite a bit of time with same problem.
Posts: 565
Have been trying to get the 'text' default to show under the image in slideshows.
[Slideshow.tpl] changing...
var bPause = 0, bShowText = 0, bShowTools = 1;
...into...
var bPause = 0, bShowText = 1, bShowTools = 1;
...doesn't do it.
Haven't yet worked out whether it's the stuff in the area...
<a href="#" onclick="text_onoff();return false">
<span id="moreInfo">{g->text text="Show More Info"}</span>
</a>
...that might achieve the desired effect (text showing by default).
best wishes, Robert
Posts: 210
I agree that the default values are very strange. Nobody wants to wait 15sec. for the next picture and visitors get confused while nothing happens.
Also I think, that the minimum resolution today is 1024x768. Why not define this as default value?
Posts: 565
I didn't say they were strange, the choice of timings depends on many criteria. For people with hosted bandwidth limits then 15sec seems friendly, particularly when you consider that you may not actually have a human viewer present! However, yes, I agree that some visitors appear to get confused if nothing happens within a few seconds. On my sites I am prepared to show (aka give away) no more than 640pix and have disabled all other sizes larger or smaller so the choice isn't even onscreen.
I'd still like to find out how to default (on) the descriptive text.
Posts: 1
to Robert:
I've been trying the same thing and I've found a ploblem...
if you put bShowText to 1, it will work on firefox only if you make also this change:
but I saw that the first change makes that IE always pauses the slide because of the line 83...
everithing happens like if it doesn't understand this line and stops there witout reading lines 84 and 85...
the following code will make IE pass trough the bug and continue the slideshow but it will not show the text...
For now I stop here, for the next times I will try to find why ie bugs with this line 83...
hope it can help...
tmaes
Posts: 1
Just change
To
It will show descriptive text by default.
Posts: 565
lixuefeng----
YES, cheers;~)
----best wishes, Robert
Posts: 9
Great that worked perfectly....thanks
Posts: 4
It says at the top of the file that you should customise a version of this file in a directory called local, so it doesn't get overwritten.
Should I make this directory inside the slideshow directory, or in the modules directory or...
I'm asking because I'm back doing this for a second time after upgrading!
Thanks
Edward
Posts: 4
To answer my own question for anyone else that's wondering
Put the folder inside templates that is:
copy orignal file to modules/slideshow/template/local/SlideShow.tpl and change that version.
Posts: 43
thank your tip, it is useful for me too
Posts: 46
I changed the selected size to value 1 at 640x640 and time delay to 3 seconds. I also adjusted the javascript on line 41 to those values and deleted the template cache in site admin-->maintainance. When I go to my slideshow it just seems to hang up in a loop.
I noticed this also happens on another g2 installation I tried it on.
Any suggestions?
Posts: 565
<Any suggestions?>
Might be clearer for you work on a much
smaller album slideview - say 4 images max!
Posts: 46
I'm not sure what you mean by that. Can you be more specific? Where/what do I change to have a smaller album slideview?
Posts: 565
Make a separate (test) album consisting of just 4 images...
Then you or others might be able to see the wood for the trees:~)
At the moment it seems like the image compiling is taking time.
Whether it's a code problem or your host is too slow is not clear.
Posts: 46
I created a test album here with 4 images and it's still not working. Could it be anything else?
Posts: 565
You could try checking out why you're seemingly
downloading and not slideviewing the images.
Also check the url_rewrite stuff too? I can't
make head nor tail out of what your embedded
URL calls are doing;~/ No wonder nothing works.
Just do a source view (Firefox), it looks weird.
Or using M$IE... well that 'stuff' down in the little
status bar is certainly wrong. Perhaps you should
look at whatever it is you've done with some Smarty
commands. Smarty should be rendered/compiled and
not appear in the status line! You've messed up
the code somewhere - need more care I expect;~)
Posts: 46
All I ever changed was the above mentioned changes. When I view source I see the error message and don't see anylinks. What do you mean?
Also, I just reverted the file to its former state, deleted the local folder, deleted template cache, deleted my browsers cache and yet I'm still getting an error for the link to the slideshow. Is this a bug?
Posts: 565
What I mean is that you shouldn't see Smarty stuff appearing
in the Status Bar, the obvious inference from this is that
you've messed up the code in your edits/amendments. Probably
a missing } or something. Hence the 'more care'... ;~)
Posts: 565
I don't get it. Your test album...
http://www.foodneed.org/pics/v/test/slideshow.html
...seems to be working as a slideview?
Posts: 46
My apologies - I had the wrong url from my home page and forgot to change it. The slideshow does work when I revert it back to 320px and 15 sec. So I tried to change it to 3 seconds and 640px one more time from the beginning with the same bad results. Since I didn't change any smarty tags other than the above (the 2nd and 4th posts) and those don't seem to have any missing "}" or anything else, I can only assume that my host (a cheap one) just can't handle it for some reason, it's a bug, or I'm not catching the error. So I reverted it to 320px, 15 secs default (ugghh). I'm attaching my adjusted Slideshow.tpl file in the hope that I'm just missing something and it actually will work. Thanks for looking.
Posts: 565
I'm still confused as to your requests.
Even before your posting I had already tried your
test album's settings for 3s and 640pix. Both worked.
Do you 'actually' mean that you want the DEFAULTS
amended to 3s and 640pix?
Posts: 565
If you do want to default to 3s and 640pix make the changes as below...
...though not sure about that size change in the very
last bit as I don't give my viewers a choice in size;~)
Posts: 1
Hello, I couldn't find answer before questionning!
I would like to change position of the default slideshow. I would prefer to get it in the middle of the page?
Posts: 13
I start using Gallery 2 nowadays and find it great. However, I want to modify the NavBar for the photo page such that it has the form
<left>First Previous</left> <middle>Slideshow</middle> <right>Next Last</right>
and I need help on that. I am not sure if this is the correct forum to ask, but could anybody help me to make such a modification? Thank you.
Currently, I am using the matrix theme, but I believe that the modification can be done similarly for other themes as well.
Also I want to prevent slideshow to start a new window/tab.
Thanks
Posts: 565
tholio----
Your theme's files do that sort of stuff.
(nothing to do with the slideshow module)
This is how I changed mine... (YMMV)
----best wishes, Robert
Posts: 3
So.. anyway, back to the Default Slideshow Question... is there a more elegant way of defaulting to 'RANDOM' other than changing the header.tpl?
eg. A simple php Code that I don't know that will "Select Option 15" of id='filter' from the start of the Slideshow.
PS> Thanx for the above suggestions, It's so much nicer having the Images Centered, Larger, 5sec delay with Random Transitions, and More Info displayed.
Posts: 1
I'm having a problem after changing the defaults. I copied everything exactly as written. Now, when I go into the slideshow view the slideshow does not work. If I click on one of the links at the top ("Pause", "Back One Image") it will start scrolling. I have cleared the template cache in the admin panel.
What am I missing?
Posts: 31
@unrevealable: You're probably beyond this now, but I had this problem before changing the var line above. Once I did that it functioned as expected.
Posts: 43
just for anyone else who wants to default their Text Descriptions below the photos to "on", the above probably worked for the code in 2003-5, but in 2008, it's actually even easier!!
Just change:
<script type="text/JavaScript"> // <![CDATA[ var image = new Image(), timer, iDelay = 5000, iDir = 1, iSize = 3; var bPause = 0, bShowText = 0, bShowTools = 1;
to
<script type="text/JavaScript"> // <![CDATA[ var image = new Image(), timer, iDelay = 5000, iDir = 1, iSize = 3; var bPause = 0, bShowText = 1, bShowTools = 1;
and, you'll also want to change:
<a href="#" onclick="text_onoff();return false"> <span id="moreInfo">{g->text text="Show More Info"}</span> </a>
to
<a href="#" onclick="text_onoff();return false"> <span id="moreInfo">{g->text text="Hide More Info"}</span> </a>
Posts: 1
That last change posted by jkuruppu did not work for me (gallery 2.2.4), but the original version of the change and all the other changes worked. Thanks!
Posts: 7
I also made all the above changes and they worked apart from the show comment
The slideshow starts correctly with the correct display.
The header is changed to show hide comments - but there are non there.
If I click on hide comments then back on show comments they appear
Any ideas>
Posts: 2
Hello,
I've Gallery2 2.3 full, all work, but i don't know how can I change the default time between 2 pictures in the slideshow.
Defaut settings :10sec, and i need 3sec.
I use PicLens Diaporama Version 1.3.1.14221.
gallery2\modules\slideshow\
You can see my work : http://www.johnnyhapache.com/gallery2/main.php?g2_itemId=14
Thanks for your help.
Posts: 18
Solved!
http://gallery.menalto.com/node/78239#comment-293651
Posts: 2
Thanks !
Posts: 8339
My update allows you to do this in admin.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2