Wrong image with couple Phoca Galley Plugins in article
Posted: 30 Dec 2008, 11:12
Hello,
I have to put couple separate images in my article, so I've created something like (code copied from #_content by mysqldump):
Sorry for the form, but it would be impossible to show the error cause and the resolution otherways.
The code was created by copying from Displaying Phoca Gallery Plugin page. It worked well in couple articles with 2 or 3 images, but suddenly with the code above I've got very strange results - I've go 6 images, but really it was images 49 and 51 repeated 3 times. I've thought that it's because of "limitcount=2", but after changing it to "limitcount=1", I've got image 49 repeated 4 times.
Eventually I've removed all "\r\n"s from within the plugin code, so I've got:
and suddenly everything starts to work just fine. After I've found resolution of my problem, I've searched the forum and found that one of your first answers in most problems is to remove all spaces from within plugin call code. So my suggestion is to remove all break lines (<br>) from the example codes of Displaying Phoca Gallery Plugin page, because they are translated to "\r\n" code when pasted into Joomla content editor. I thing it would save me, you and others many hours of fighting with such problems.
Best regards,
Ćukasz Indeka
I have to put couple separate images in my article, so I've created something like (code copied from #_content by mysqldump):
Code: Select all
{phocagallery view=category|categoryid=6|\r\nimageid=49|limitstart=0|limitcount=2|\r\nfontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|\r\nbordercolor=#B88A00|bordercolorhover=#86B300|\r\ndetail=3|displayname=0|displaydetail=0|displaydownload=0|displaybuttons=0|float=left}\r\n\r\n{phocagallery view=category|categoryid=6|\r\nimageid=51|limitstart=0|limitcount=2|\r\nfontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|\r\nbordercolor=#B88A00|bordercolorhover=#86B300|\r\ndetail=3|displayname=0|displaydetail=0|displaydownload=0|displaybuttons=0|float=left}\r\n\r\n{phocagallery view=category|categoryid=6|\r\nimageid=50|limitstart=0|limitcount=2|\r\nfontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|\r\nbordercolor=#B88A00|bordercolorhover=#86B300|\r\ndetail=3|displayname=0|displaydetail=0|displaydownload=0|displaybuttons=0|float=left}\r\n\r\n{phocagallery view=category|categoryid=6|\r\nimageid=52|limitstart=0|limitcount=2|\r\nfontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|\r\nbordercolor=#B88A00|bordercolorhover=#86B300|\r\ndetail=3|displayname=0|displaydetail=0|displaydownload=0|displaybuttons=0|float=left}\r\nNew prototypes\r\n<hr id="system-readmore" />\r\nArticle details...
The code was created by copying from Displaying Phoca Gallery Plugin page. It worked well in couple articles with 2 or 3 images, but suddenly with the code above I've got very strange results - I've go 6 images, but really it was images 49 and 51 repeated 3 times. I've thought that it's because of "limitcount=2", but after changing it to "limitcount=1", I've got image 49 repeated 4 times.
Eventually I've removed all "\r\n"s from within the plugin code, so I've got:
Code: Select all
{phocagallery view=category|categoryid=6|imageid=49|limitstart=0|limitcount=2|fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|bordercolor=#B88A00|bordercolorhover=#86B300|detail=3|displayname=0|displaydetail=0|displaydownload=0|displaybuttons=0|float=left}\r\n\r\n{phocagallery view=category|categoryid=6|imageid=51|limitstart=0|limitcount=2|fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|bordercolor=#B88A00|bordercolorhover=#86B300|detail=3|displayname=0|displaydetail=0|displaydownload=0|displaybuttons=0|float=left}\r\n\r\n{phocagallery view=category|categoryid=6|imageid=50|limitstart=0|limitcount=2|fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|bordercolor=#B88A00|bordercolorhover=#86B300|detail=3|displayname=0|displaydetail=0|displaydownload=0|displaybuttons=0|float=left}\r\n\r\n{phocagallery view=category|categoryid=6|imageid=52|limitstart=0|limitcount=2|fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|bordercolor=#B88A00|bordercolorhover=#86B300|detail=3|displayname=0|displaydetail=0|displaydownload=0|displaybuttons=0|float=left}\r\nNew prototypes\r\n<hr id="system-readmore" />\r\nArticle details...
Best regards,
Ćukasz Indeka