Page 1 of 1
Problem putting images in articles
Posted: 27 Mar 2009, 14:44
by nmintern
HI
I have have spent the best part of around 3 days now looking at the forum - the demos and any other sources of information that i have found. And for the life of me i can not get it to show images within articles.
I have copied all the codes across, put in my own {and} and changed the revelant category id to the id of my categorys and cannot get them to work! The plugin is enabled. I am using phoca gallery 2.2.3 and plugin 2.1 (the latest version).
{phocagallery view=category|categoryid=5|
imageid=37|limitstart=0|limitcount=5|
fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|
bordercolor=#B88A00|bordercolorhover=#86B300|
detail=3|displaybuttons=1|displayname=1|displaydetail=1|displaydownload=1|float=center}
Any hel pwould be much appreciated, as i am stumped!!!!
Many Thanks
Re: Problem putting images in articles
Posted: 27 Mar 2009, 15:46
by Jan
Hi, what is displayed on your site? Did you try to remove all spaces in the code, so no this:
{phocagallery view=category|categoryid=5|
imageid=37|limitstart=0|limitcount=5|
but this will be pasted:
{phocagallery view=category|categoryid=5|imageid=37|limitstart=0|limitcount=5|...
Jan
Re: Problem putting images in articles
Posted: 27 Mar 2009, 16:15
by nmintern
{phocagallery view=category|categoryid=5|imageid=37|limitstart=0|limitcount=5|fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00imagebgcolor=#FFD24D|bordercolor=#B88A00|bordercolorhover=#86B300|
detail=3|displaybuttons=1|displayname=1|displaydetail=1|displaydownload=1|float=center}
that is the code i put in my article,
do you just put the code in with the article? if it is right, does it automatically turn into the image? or is the image only viewable once the article is saved and live? i try looking at in preview and it just somes up with the script......
Re: Problem putting images in articles
Posted: 30 Mar 2009, 00:08
by Walsodar
Hello.
I think there are two problems to be solved:
1. collision of two parameters: 'imageid' and 'limitstart'
2. counting for these two parameters starts at 0 not at 1
Reading your code:
{phocagallery view=category|categoryid=5|imageid=37|limitstart=0|limitcount=5|fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|bordercolor=#B88A00|bordercolorhover=#86B300|detail=3|displaybuttons=1|displayname=1|displaydetail=1|displaydownload=1|float=center}
I assumed that you wanted to display 5 pictures starting from picture number 37 located in category number 5.
Ad.1: You should omit the 'imageid' parameter
Ad.2: The limitstart parameter should contain value 36
Additionally I am not sure if the last parameter (float) can be set to 'center' value. Jan described only two values for it (left and right) in the documentation.
Finally in my opinion your code should look like this:
{phocagallery view=category|categoryid=5|limitstart=36|limitcount=5|fontcolor=#B88A00|bgcolor=#FFBF00|bgcolorhover=#BFFF00|imagebgcolor=#FFD24D|bordercolor=#B88A00|bordercolorhover=#86B300|detail=3|displaybuttons=1|displayname=1|displaydetail=1|displaydownload=1|float=left}
Pay attention that the 'categoryid' parameter is counted from 1 (not from 0) so you don't need to decrease it.
Have a nice site
To Jan: great job, man. Sdravim s Polska.
Re: Problem putting images in articles
Posted: 30 Mar 2009, 09:32
by caro84g
Hi,
First: if you look in the preview in the backend you only see code, you don't see the image. To see the image you need to save the article and preview it on the frontend.
if you enter another value than 0 in imageid, then imageid is used, otherwise the limitparameter is used. So omit imageid if you want to
The limitstart parameter uses the 'ordering' number and it doesn't use the imageid! (so limitstart=36 means: start at the 36th image in that category).
Regards, Carolien
Re: Problem putting images in articles
Posted: 31 Mar 2009, 14:31
by nmintern
Hi,
Thank you very much for all your help! absolutely brilliant!!!
Got it working!
Great plugin! Well done guys!!
just one more thing, is there a list of codes for the colours somewhere???
Re: Problem putting images in articles
Posted: 02 Apr 2009, 01:06
by Jan
Hi, colours are HTML colours, see. e.g. here:
http://www.colorschemer.com/online.html
Jan