there is no tag yet to display one specific picture BUT if you read the code….
You will find function CPGPicture($pictID, $nSize=1, $before='
- ', $after='
', $mode='picture', $separator = '—') which is ding what you ask….
Few others functions exist also as :
CPGAlbumName($aid)
CPGCategoryName($cid)
CPGAlbumPicCount($aid)
CPGAlbumListCategory($cid, $count=-1, $nSize=1, $before=”, $after=”)
If you want I can easily add the related tags (eg: <cpg_picture>, <cpg_albumname>, …).
Anonymous
yes please, add the tags. but do I still need to check mysql for the image id?
for the mment, yes. I am thinking…
How do you see the way ? I mean where do you see the image list ?
Because within the post itself means hacking the “post.html”. Something that I don’t want due to compatibility with few other plugins….
May be a page within the “admin menu”…Where you will be able to view the coppermine album id, picture id, category id with an eventual preview of the selected item.. What do you think ?
Anonymous
yes, something like the link manager. that used to be a hack also.
It was at least when I still had b2.
Nice plugin but it’s not working for me. There is a “/” missing in the generated URL, e.g.
http://website.com/photos [slash should go here] displayimage.php? etc.
I supposed the script is assuming that CPG is installed in the root?
nope ! it gets the path to coppermine from the CPG variable : ‘ecards_more_pic_target’. Which is defined in the Coppermine Gallery Configuration tab at “Target address for the ‘See more pictures’ link in e-cards “.
The value has to be set to the “root” directory of the Coppermine Gallery. And it is true, it must be ended with “/”. For release 1.2.1, I will add the check and also few others stuffs.
I did figure that one out, and the script works very well. The downside is the URL in displayimage now has two slashes, e.g. ‘http://website.com/photos//displayimage.php?etc. Coppermine apparently places the extra ‘/’ by default. Displayimage.php around line 350 seems to be the culprit but I don’t know how to modify it to fix it.
the admin part is nearly finished. I have still few check to perform. But normally it version 1.2.1 will be available for Wednesday…..(I hope).
That release will have :
– Tags “<cpg_lbumName>”, “<cpg_CategoryName>”, “<cpg_AlbumPicCount>”, “<cpg_AlbumListCategory>”
– Admin module to view albums and pictures within WordPress (to get the albumid and the pictureid)
– Few small bugs fixing
few more information on psnCPGAdmin and psnGallery2 at psnCPGAdmin preview (psnGallery2 admin page)
Few delay…sorry
nice work idaho! Looking forward to your admin update 🙂
few more technical info….
Change overview
The psnGallery 1.2.1 is released ! :o)
Feel free to get it
Anonymous
Seems like a nice plugin … where to download it from buddy?
Anonymous
Would be very interested to see this working once blog.idahocline.com is up again.
Tarique Sani – Lead Dev Coppermine