Page 1 of 2

Slideshow Plugin : no images

Posted: 08 Apr 2009, 11:23
by chcouder
I have installed the Phoca Gallery slideshow plugin. I am calling it from one of the articles on my home page. Example: {pgslideshow id=1|width=300|height=200|delay=3000|image=L}
In the above example, id=1, is a phoca gallery category whith many images

I have no image when my article is publish : only texte of article.
Can you help me ?

For information, I have no problem with Phoca Gallery plugin

Re: Slideshow Plugin : no images

Posted: 15 Apr 2009, 21:10
by Jan
??? Hi, is the plugin enabled (published)?

Re: Slideshow Plugin : no images

Posted: 23 Apr 2009, 15:53
by chcouder
Yes, the plugin is published.
Plugin's management is as follow :
5 Phoca Gallery Plugin V Public content phocagallery 34
6 Phoca Gallery Slideshow Plugin V Public content phocagalleryslideshow 35

Re: Slideshow Plugin : no images

Posted: 24 Apr 2009, 21:59
by Jan
??? has the category ID 1 ?

Re: Slideshow Plugin : no images

Posted: 26 Apr 2009, 22:59
by chcouder
Yes,

Content of my article is :

{pgslideshow id=1|width=300|height=200|delay=3000|image=M}
{phocagallery view=category|categoryid=1|imageid=0|limitstart=0| limitcount=2|fontcolor=#B88A00|bgcolorhover=#BFFF0 0}

For phocacallery it's OK, but nothing for pgslideshow
:cry:

Re: Slideshow Plugin : no images

Posted: 27 Apr 2009, 16:55
by innfreds
Same problem for me.
It appears that the picture placeholder is there but no images appears :o
In fact the code returns a truncated URL for the pictures
Even if the array is created correctly in the page. The result is not complete

Code: Select all

<script type="text/javascript">
fadeimages9926752856 = new Array();
fadeimages9926752856[0] = ['i', '', ''];
fadeimages9926752856[1] = ['i', '', ''];
function fadeshowladen() {
new fadeshow(fadeimages9926752856, 530, 300, 0, 1000, 1, 'R');
}
I assume that the "i" is just the beginning of the image path
Should we change something in the javascript code of the plugin ?

Thanks for your help

Fred

Re: Slideshow Plugin : no images

Posted: 28 Apr 2009, 17:11
by Jan
Hi, I have tested the code now, there is no problem for me :( :( :(

If I paste this into article:

{pgslideshow id=1|width=300|height=200|delay=3000|image=M}
{phocagallery view=category|categoryid=1|imageid=0|limitstart=0| limitcount=2|fontcolor=#B88A00|bgcolorhover=#BFFF0 0}

then I get this in html code:

Code: Select all

fadeimages9927451704 = new Array();
fadeimages9927451704[0] = ['/J1510/images/phocagallery/new/thumbs/phoca_thumb_m_binary.png', '', ''];
fadeimages9927451704[1] = ['/J1510/images/phocagallery/new/thumbs/phoca_thumb_m_doc.png', '', ''];
fadeimages9927451704[2] = ['/J1510/images/phocagallery/new/thumbs/phoca_thumb_m_document.png', '', ''];
fadeimages9927451704[3] = ['/J1510/images/phocagallery/new/thumbs/phoca_thumb_m_document2.png', '', ''];
fadeimages9927451704[4] = ['/J1510/images/phocagallery/new/thumbs/phoca_thumb_m_empty.png', '', ''];
fadeimages9927451704[5] = ['/J1510/images/phocagallery/new/thumbs/phoca_thumb_m_empty_ascii.png', '', ''];
fadeimages9927451704[6] = ['/J1510/images/phocagallery/new/thumbs/phoca_thumb_m_file_temporary.png', '', ''];
fadeimages9927451704[7] = ['/J1510/images/phocagallery/new/thumbs/phoca_thumb_m_font.png', '', ''];
fadeimages9927451704[8] = ['/J1510/images/phocagallery/new/thumbs/phoca_thumb_m_font_bitmap.png', '', ''];
fadeimages9927451704[9] = ['/J1510/images/phocagallery/new/thumbs/phoca_thumb_m_font_truetype.png', '', ''];
fadeimages9927451704[10] = ['/J1510/images/phocagallery/new/thumbs/phoca_thumb_m_binary.png', '', ''];
function fadeshowladen() {
new fadeshow(fadeimages9927451704, 300, 200, 0, 3000, 1, 'R');
}
if(window.onload) {
var temp = window.onload;
window.onload=function(e) {
temp(e);
fadeshowladen();
};
}
 else{
 window.onload=function(e) {
fadeshowladen();
};
}
so if there is a "i", there is some problem with getting the image name from database ???, maybe while adding it into the script ??? :( :(

Jan

Re: Slideshow Plugin : no images

Posted: 29 Apr 2009, 19:50
by chcouder
I have no image, but my code is as follow :

Code: Select all

</div> 
results <div class="phocagalleryslideshow" style="text-align:center;"><div id="phocagallerycontent"></div>
<script type="text/javascript">
fadeimages9928209392 = new Array();
fadeimages9928209392[0] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_IMG_1546.JPG', '', ''];
fadeimages9928209392[1] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_PICT0372.JPG', '', ''];
fadeimages9928209392[2] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_IMG_1546comp.JPG', '', ''];
fadeimages9928209392[3] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_IMG_1546comp2.JPG', '', ''];
fadeimages9928209392[4] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_PICT0342.JPG', '', ''];
fadeimages9928209392[5] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_PICT0345.JPG', '', ''];
fadeimages9928209392[6] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_PICT0356.JPG', '', ''];
fadeimages9928209392[7] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_PICT0361.JPG', '', ''];
fadeimages9928209392[8] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_PICT0362.JPG', '', ''];
fadeimages9928209392[9] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_PICT0372.JPG', '', ''];
fadeimages9928209392[10] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_PICT0374.JPG', '', ''];
fadeimages9928209392[11] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_PICT0380.JPG', '', ''];
fadeimages9928209392[12] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_PICT0384.JPG', '', ''];
fadeimages9928209392[13] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_PICT0397.JPG', '', ''];
fadeimages9928209392[14] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_PICT0407.JPG', '', ''];
fadeimages9928209392[15] = ['/sitejoomla00/images/phocagallery/Bellegarde2008/thumbs/phoca_thumb_l_PICT0423.JPG', '', ''];
function fadeshowladen() {
new fadeshow(fadeimages9928209392, 605, 217, 0, 3000, 1, 'R');
}
if(window.onload) {
var temp = window.onload;
window.onload=function(e) {
temp(e);
fadeshowladen();
????????????????????

Re: Slideshow Plugin : no images

Posted: 07 Nov 2009, 17:27
by luisraposo
hello,

this same thing happens to me: there is the code calling the pictures, but nothing is shown
I found out this is some incompatibility with the tcimageslider module.. :?

regards,
luis raposo

Re: Slideshow Plugin : no images

Posted: 22 Nov 2010, 05:15
by luisraposo
hi Jan,
I found out some incompatibility issues with other modules/plugins.
This is common when adding "onload" events, and can be fixed by replacing the following code on phocagalleryslideshow.php, line #164

Code: Select all

/* kotasbiketeam */
/*
$script .= "if(window.onload) {\n";
$script .= "var temp = window.onload;\n";
$script .= "window.onload=function(e) {\n";
$script .= "temp(e);\n";
$script .= "fadeshowladen".$c."();\n";
$script .= "};\n}\n else{\n window.onload=function(e) {\n";
$script .= "fadeshowladen".$c."();\n";
$script .= "};\n}";
*/
$script .=	"	//setup onload function"." \n"
.	"	if(typeof window.addEventListener != 'undefined') {"." \n"
.	"		//.. gecko, safari, konqueror and standard"." \n"
.	"		window.addEventListener('load', fadeshowladen".$c.", false);"." \n"
.	"	} else if(typeof document.addEventListener != 'undefined') {"." \n"
.	"		//.. opera 7"." \n"
.	"		document.addEventListener('load', fadeshowladen".$c.", false);"." \n"
.	"	} else if(typeof window.attachEvent != 'undefined') {"." \n"
.	"		//.. win/ie"." \n"
.	"		window.attachEvent('onload', fadeshowladen".$c.");"." \n"
.	"}"." \n"
;
+info on http://www.brothercake.com/site/resourc ... ts/onload/

regards,
luis raposo