Page 1 of 1
Variables instead of path to thumb- and full-size images
Posted: 09 Jul 2014, 20:36
by EdKo66
For a script, that I'm trying to get working with Phoca, I need to find out what the paths are for both the thumbs and the full-size image.
The script in question is the following (used for selling photo's through Dutch printing-services).
Code: Select all
<!-- oypo -->
<script language="JavaScript" src="http://www.oypo.nl/pixxer/api/orderbutton.asp?
foto=[[b]full-size-image[/b]]&thumb=[b][thumb][/b]&profielid=[profiel-id]&buttonadd=http://www.kijk.us/selectionadd.gif&buttondel=http://www.kijk.us/selectiondel.gif">
</script>
<script language="JavaScript" src="http://www.oypo.nl/pixxer/api/pixxerinit.asp?buttonadd=http://www.kijk.us/selectionadd.gif&buttondel=http://www.kijk.us/selectiondel.gif&nologo=1"></script>
<!-- /oypo -->
I have looked at the shopping cart, but that still lets me print out everything my self instead of letting the print-service do that for me

Re: Path to thumb- and full-size images
Posted: 09 Jul 2014, 23:15
by Jan
Hi, images in Phoca Gallery are stored in:
images/phocagallery ... folder
thumbnails have thumbs folder, for example:
images/phocagallery/category1
images/phocagallery/category1/thumbs
Jan
Re: Path to thumb- and full-size images
Posted: 09 Jul 2014, 23:23
by EdKo66
Yes, I found that, but that is not something I can use with the script, unfortunately

, or I need to change it manually for each and every picture.
I was hoping on something like $thumbs as global for the thumbs and $image for the image.
When I was using Plogger, I had the following to use
Code: Select all
<script language="JavaScript" src="http://www.oypo.nl/pixxer/api/orderbutton.asp?
foto=<?php[b] echo plogger_get_source_picture_url();[/b] ?>&thumb=<[b]?php echo plogger_get_picture_thumb(THUMB_LARGE);[/b] ?>&profielid=57070724C7D4A4AF&buttonadd=http://www.kijk.us/selectionadd.gif&buttondel=http://www.kijk.us/selectiondel.gif">
</script>
where the bolded parts where just the path/global settings to the image.
(edit: it seems in 'code' tags you can't use BB-code's.)
Variables Re: Path to thumb- and full-size images
Posted: 12 Jul 2014, 00:37
by EdKo66
Looks like I found some of the info
$items[$iS]->link -> link to detail window (image)
$items[$iS]->link2 -> link to detail window (icon under image)
$items[$iS]->linkother -> link to e.g. map, info, and different views in detail window
$items[$iS]->linkorig -> link to original image - is used by highslide JS
Now trying to find out what I need to use for the thumb-nail and then hoping I can get that script to go to work for real
And trying to find out the correct files to edit

Re: Variables instead of path to thumb- and full-size images
Posted: 14 Jul 2014, 00:03
by Jan
Hi, not sure if I understand this correctly: "Now trying to find out what I need to use for the thumb-nail"?
Jan
Re: Variables instead of path to thumb- and full-size images
Posted: 14 Jul 2014, 00:27
by EdKo66
The script needs an exact location for the thumbnails. So, I thought it might either be someting as $thumbs or $thumb_nail.
As you can see in the example - in bold - you can see that (in Plogger) I had to use the following:
<script language="JavaScript" src="
http://www.oypo.nl/pixxer/api/orderbutton.asp?
foto=<?php echo plogger_get_source_picture_url(); ?>[&thumb=<?php echo plogger_get_picture_thumb(THUMB_LARGE);?>&profielid=&buttonadd=
http://www.kijk.us/selectionadd.gif&but ... iondel.gif">
</script>
I believe I had found that the following had to be correct, but sadly so, it isn't
foto = $linkorig
thumb=$thumb
Sorry, it's late now, need to get some sleep.
ps. If you go to
site and click the details you might see what I mean.
pps: Don't mind the number of pictures, they will return when I've fixed this.
Re: Variables instead of path to thumb- and full-size images
Posted: 15 Jul 2014, 23:24
by Jan
Hi, path to images are always relative, so you need to use some Joomla! variable or constant to combine the relative path with your site path.
Links are thumbnail links, not original image links.
But depends on which method you will use - if iframe or image method (
https://www.phoca.cz/documents/50-phoca/ ... al-advices (8) )
- if you will use iframe method - the link is a link to php view site - where the thumbnail will be loaded from database
- if you will use image method - the link is a link directly to image - to large thumbnail.
Jan
Re: Variables instead of path to thumb- and full-size images
Posted: 17 Jul 2014, 10:39
by EdKo66
Thanks. Going to look that over. Maybe this time I will find the answer

Re: Variables instead of path to thumb- and full-size images
Posted: 19 Jul 2014, 14:04
by EdKo66
I officially don't get this to work. Still working on it though.