Extension talk:JavascriptSlideshow/Archive

Latest comment: 11 years ago by Njw in topic 1.16?

Line 30

edit

Thanks for this great extension! I can't get the tag version to work, but the parser function is moving along.

I have a question about slideshow.js. Should line 30 say:

childDivs[i].style.width = parent.style.width;  // instead of parent.style.height.

??

Robertlankford 16:09, 21 August 2008 (UTC)Reply

Documentation

edit

Great Extension... mostly.

  • parser function works, tag call doesn't, can't find documentation as to how / why.
  • multiple calls of the parser function in a page do not seem to function; would love to know how to fix this.

-Random User 8:08, 28 October 2008 (PST)

Header warning

edit

Trying with 1.13.2 and always get a warning:

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/apache2/htdocs/wiki/extensions/Slideshow/slideshow.php:146)
 in /usr/local/apache2/htdocs/wiki/includes/WebResponse.php on line 10

the include_once statement is right after <?php in LocalSettings.php. Am I missing something ?

80.123.101.242 09:27, 11 December 2008 (UTC)Reply

Transition problems

edit

The transition "cut" is working, fade and blinddown are not. What could be the reason? -- Tom B. 10:21, 21 January 2009 (UTC)

Have you downloaded the scriptacolous scripts?? - Andreslucena 13:57, 1 June 2010 (UTC)Reply

Location for support

edit

Actually, is this the right place for questions anyway? -- Tom B. 10:21, 21 January 2009 (UTC)

Warning: Cannot modify header information etc.

edit

As good place as any to ask, the extension definitely ain't working. I get exactly the same errors, testing on a fresh installation of MediaWiki 1.13.3. After all, in the blue box on the main page of this extension it currently says it has been tested on 1.11.0.

--91.13.66.189 22:53, 5 February 2009 (UTC)Reply

Remove the ?> from slideshow.php. —Emufarmers(T|C) 18:05, 7 February 2009 (UTC)Reply

Key presses between frames

edit
  • I think this is a great extension for displaying images with nice transitions.
  • But I look for a slideshow extension which continues with the next frame when I press a key
  • Maybe this could be considered in the future

Can I use this extension with 1.15.x?

edit

My friend said that he can't install it on his 1.15.1? How will i install it? Chernobyl 13:21, 17 November 2009 (UTC)Reply

Works for me on 1.15.1. To use other transtions other than cut, don't forget to download and copy the mentioned .js files. Everything need to know is ont the extensions page.--213.134.24.64 00:33, 19 November 2009 (UTC)Reply
it works on 1.16 too. Adamtheclown 03:12, 14 December 2010 (UTC)Reply

Incompatible with XML compatible skin ?

edit

Hello, thanks for the extension. I successfully installed this extension in Mediawiki 1.15.1. However, when I changed my skin to XML-compatible one (as required by Extension:ASCIIMath4Wiki), this does not work anymore. All images were showed, instead of one slide at a time.

I cant' align my slideshow

edit

I want my slideshow appear center on my homepage. I have this: <slideshow sequence="random" transition="cut" refresh="10000" align="center">

caption 1
caption 1
caption 2
caption 2
caption 3
caption 3

</slideshow>

Jisel. 17/04/2010

The hack I've done is <center><slideshow ...> </slideshow> </center> - Andreslucena 13:57, 1 June 2010 (UTC)Reply
Unfortunately this does not work for me. The slideshow still shows on the left. I tried putting it in a table, but it ignores the align=center :(
Mitchelln 10:29, 14 October 2010 (UTC)Reply

With MediaWiki 1.15.1 this works, using either format described by the author. HOWEVER, I too observe the trouble that the positioning if the display is not quite right. Text can't flow around the image, and the image resists any re-positioning. I gather the author did that to work around some flaw in Microsoft IE, but I wish there were some option. I really need to fit the image in "tightly" with words around it on the sides.

Could the author provide a little advice on this? Pauljohn32 06:05, 7 December 2010 (UTC)Reply

same problem. <center> </center> and table does not work. Adamtheclown 05:39, 14 December 2010 (UTC)Reply
not much of a solution, but this is what I did:
{|width=100%
|width=50%| text
|width=25%|{{Template:Weaponsslideshow}} << slideshow here
|width=25%|
|}
Adamtheclown 05:42, 14 December 2010 (UTC)Reply

Will not work if your wiki is in the root folder

edit

This works for 1.16 but not for 1.15.5. Adamtheclown 22:41, 10 December 2010 (UTC)Reply

In 1.15.5 using Javascript Slideshow is strange, if I type:

<s>{{#slideshow:</s>
<s><div>Tick</div><div>Tock</div></s>
<s>|id=bar refresh=1000</s>
<s>}}</s>

and if:

require_once( "{$IP}/extensions/DPLforum/DPLforum.php" );

...is not on the list of extensions, or is below sideshow, this extension will just show this:

<s>{{#slideshow:</s>
<s>Tick</s>
<s>Tock</s>
<s>|id=bar refresh=1000</s>
<s>}}</s>

If DPLforum is in my list of extensions, and slideshow is below it, it will only show this:

<s>Tick</s>
<s>Tock</s>

Adamtheclown 23:12, 10 December 2010 (UTC)Reply

the problem was my wiki was in the root folder, instead of in /w/ or /wiki/ once this was fixed, there was no problem. See Template:Wiki-in-docroot Thanks User:Emufarmers for this help! He added an exception, then later moved the entire wiki to a subfolder. Adamtheclown 04:14, 14 December 2010 (UTC)Reply

Widget

edit

Probably not using this extension, despite being one of the examples, but pretty:

http://www.langantiques.com/university/index.php/Widget:MainPageGallery

Adamtheclown 17:47, 15 December 2010 (UTC)Reply

1.16?

edit

Doesn't seem to work in 1.16. The simplest tick/tock code from above just shows both "Tick" and "Tock" as static text and <slideshow></slideshow> based div doesn't show up at all. — Preceding unsigned comment added by 128.101.81.231 (talkcontribs)

I am using 1.16, and the tick tock works and the <slideshow></slideshow> tags work. this does not work though:
{{#slideshow:
Tick
Tock
|id=bar refresh=1000
}}

Adamtheclown 20:14, 13 January 2011 (UTC)Reply

The above code doesn't work as you need to enclose each element you want to rotate in a <div> tag. Njw (talk) 17:58, 18 February 2013 (UTC)Reply

Cannot modify header error for me too

edit

I too get the error when I try to add this to my site. I searched slideshow.php for the "?>", but it's not there. Any ideas why it doesn't work?

MediaWiki 1.14.0 PHP 5.2.14 (cgi-fcgi) MySQL 5.0.91-log

This is the error I get: "Warning: Cannot modify header information - headers already sent by (output started at /home/content/w/a/t/watc/html/extensions/Slideshow/slideshow.php:7) in /home/content/w/a/t/watc/html/includes/WebResponse.php on line 16"

Wow, I feel like an idiot. Got it figured out. I right-clicked and saved the php and js file instead of clicking the link and copy/pasting the text. Geez...duh!

Is it possible to redirect image clicks?

edit

I was just wondering if there is a way to redirect the clicks on the pictures? Right now if you click on the image, it takes you to that image's page. In my case, it would be nice if it would actually direct you to the page that image is being used on.

You can use the link= parameter. —Emufarmers(T|C) 05:43, 21 January 2011 (UTC)Reply
Thanks, but I can't seem to get it to work. It just directs to the image itself and not the page. This is what I have in there:

<div>[[Image:TheWayBack.jpg|link=Way_Back,_The_(2010)|thumb|center|128px|]]</div>--Ned4spd8874 04:00, 24 January 2011 (UTC)Reply

link= doesn't work with the thumb parameter before MediaWiki 1.17. —Emufarmers(T|C) 04:07, 24 January 2011 (UTC)Reply
Crap! --Ned4spd8874 16:52, 24 January 2011 (UTC)Reply

Javascript Syntax Error

edit

I'm getting a syntax error that is keeping the slideshow from displaying properly. When viewing the source, I see this:

<pre>

<script type="text/javascript">

</pre>

<p>

/*<![CDATA[*/

</p>

<pre>

startSlideshow('blah', 1000, 'forward', 'cut');

</pre>

<p>

/*]]>*/

</p>

<pre>

</script>

</pre>

Of course HTML tags should not be in the script syntax, but I can't figure out what is causing them to be placed there. What am I missing? By the way, Tidy is not installed as an extension.

I'm made change in slideshow.php:
                $script = <<<ENDSCRIPT
 
        <script type="text/javascript">
/*<![CDATA[*/
                startSlideshow('$id', $refresh, '$sequence', '$transition');
/*]]>*/
        </script>
ENDSCRIPT;

to

                $script .= "<script type='text/javascript'>/*<![CDATA[*/ startSlideshow('$id', $refresh, '$sequence', '$transition');/*]]>*/</script>";
After that this problem was solved. --Vpovilaitis 09:20, 26 January 2012 (UTC)Reply

Serius bug re. maxWidth

edit

Hi.

I noticed that when using image sizes, the slideshow has a much larger width than the specified image size. For example I have some 1024x768 images which I reduce to 500px using:

{{#slideshow:
<div>[[Image:IMG_2913.JPG|frameless|none|500px|link=]]</div>
<div>[[Image:IMG_2934.JPG|frameless|none|500px|link=]]</div>
<div>[[Image:IMG_2937.JPG|frameless|none|500px|link=]]</div>
<div>[[Image:IMG_2947.JPG|frameless|none|500px|link=]]</div>
|id=slides2 refresh=8000 transition=fade sequence=forward
}}

However, the javascript picks up the original image size rather than 500px. So spacer.style.width = maxWidth + 'px' is set to 768px rather than the specified 500px. The result is massive space to the right of the slideshow.

Could the code be modified to pick up the image size that is being passed in?

Thanks! --Mitchelln 14:16, 11 July 2011 (UTC)Reply

This doesn't seem to be an issue with current versions of the code; I can't reproduce it. Let us know if it's still an issue. Njw (talk) 17:51, 18 February 2013 (UTC)Reply

MediaWiki 1.17.0 and the Fade Transition

edit

I have tried everything, spending hours, but cannot get the fade transition to work on my website (or blindDown), although cut works great http://wheretosee.org/wildlife/Main_Page -- see the Photo Gallery page. And yes, I have loaded the scriptacolous scripts (I even went back three revisions, in case a later revision was incompatible). My code is:

{{#slideshow:
<div>[[Image:Green_Sea_Turtle_1.jpg| 800px]]</div>
<div>[[Image:Mountain_Goat_1.jpg| 800px]]</div>
<div>[[Image:Baby_Alligator_2.jpg| 800px]]</div>
<div>[[Image:Manta_Ray_5.jpg| 800px]]</div>
|id=bar sequence=forward transition=fade refresh=4000
}}

Is there any issue with MW1.17.0? Or an issue with later revisions of scriptacolous?

Install crashes wiki in 1.16.5

edit

Hi. For some reason installing this extension on my wiki crashes the whole thing. I've created a 'Slideshow' directory in extensions and included the slideshow.php and slideshow.js files in the folder. As soon as I add the 'require_once' line of code to my LocalSettings file my whole wiki goes down.

I can't see any obvious solution to this. I running my wiki through MAMP and it's installed in the htdocs folder. I've had no problems with any other extensions. Any ideas? --Mqbpjdj2 (talk) 10:07, 18 May 2012 (UTC)Reply

What do you mean by "crashes"? Are you seeing a blank page? If so, then see here. Yaron Koren (talk) 15:37, 18 May 2012 (UTC)Reply

Internet Explorer 9

edit

I am using this extension with Scriptaculous for fade transition. This works well on all browsers I have tried except for IE9. IE9 seems to ignore the delay between the slides and displays them almost simultaneously. Has anyone else noticed this?--Paulreed 14:24, 21 November 2011 (UTC)Reply

Which method are you using - the tag or parser function? I think you have to use the parser function.
--Mitchelln 17:23, 7 February 2012 (UTC)Reply
Note that since the extension has been rewritten to use jQuery rather than scriptaculous this is unlikely to still be an issue. Let us know if it is. Njw (talk) 17:44, 18 February 2013 (UTC)Reply

php 5.4

edit

I am having problem with php 5.4. (500 internal error). Is there any solution? Thanks

Return to "JavascriptSlideshow/Archive" page.