google-code-export / slideshow

Automatically exported from code.google.com/p/slideshow
0 stars 1 forks source link

Slideshow.js is not work with phpThumb. #216

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Note: If this is a troubleshooting or help question, please first look in
the FAQ (http://bit.ly/ny4EG), search in the Google Group
(http://bit.ly/2Ph5h) and post your question there!

This form is only for technical issues or bugs, thank you. If you post a
troubleshooting question here you will NOT receive help.

What steps will reproduce the problem?
1.I use phpThumb with these html codes:
<div id="slideshowContainer_field15_211" class="slideshow">
<div class="slideshow-images"><a href="javascript:;"><img 
src="/j17/components/com_flexicontent/librairies/phpthumb/phpThumb.php?src=/j17/
components/com_flexicontent/medias/3-8-2554-17-54-52.png&w=450&h=300&zc=1" 
id="slideshowContainer_field15_211_0" alt="3-8-2554 17-54-52.png" border="0" 
/></a> 

<a href="javascript:;"><img 
src="/j17/components/com_flexicontent/librairies/phpthumb/phpThumb.php?src=/j17/
components/com_flexicontent/medias/6-22-2011-12-12-17.png&w=450&h=300&zc=1" 
id="slideshowContainer_field15_211_1" alt="6-22-2011 12-12-17.png" border="0" 
/></a> 
</div> 
<div class="slideshow-thumbnails"><ul><li><a 
href="#slideshowContainer_field15_211_0"><img 
src="/j17/components/com_flexicontent/librairies/phpthumb/phpThumb.php?src=/j17/
components/com_flexicontent/medias/3-8-2554-17-54-52.png&w=100&h=66&zc=1" 
border="0" /></a></li> 

<li><a href="#slideshowContainer_field15_211_1"><img 
src="/j17/components/com_flexicontent/librairies/phpthumb/phpThumb.php?src=/j17/
components/com_flexicontent/medias/6-22-2011-12-12-17.png&w=100&h=66&zc=1" 
border="0" /></a></li> 
</ul></div> 
</div>
And it's not work properly.
2.
3.

What is the expected output? What do you see instead?
I expected to see my images was displayed proplerly. I saw phpThumb(php  image 
errors). Slideshow.js replaced img src with this value 
'/j17/components/com_flexicontent/librairies/phpthumb/phpThumb.php', it's 
remove everythings that be after '?' sign.

I fixed this problem by edited these lines:
line 400 : var src = this.data.images[this._slide].replace(/([^?]+).*/, '$1'),
edited to be : var src = this.data.images[this._slide],

line 414 : var src = this.data.images[this._slide].replace(/([^?]+).*/, '$1');
edited to be : var src = this.data.images[this._slide];

What version of the product are you using? On what operating system and
browser?

Slideshow version: Slideshow-1.3.2.110508.zip
Google Chrome 13.0.782.112
Ubuntu 11.04

Please provide any additional information below.
-I truely sure that it's not problem of phpThumb.

Original issue reported on code.google.com by enjoy...@gmail.com on 12 Aug 2011 at 2:13