If there are no entries I am running out of ideas... Please try the getvariant and put thte result in a variable. Then do a `print_r()` on it to see if there is really nothing.
Thanks for that. It seems to work now. I did forget one of those parameters.
But... something else is not quite right yet, I think. When you look at this link, at the bottom of the page some tags are listed. But only the tags 'fabriek' and 'stoelen' are actually tags within that album and subalbums. You can check that by clicking the second, third and fourth subalbum. There are no tags in those albums, just two in the first one ('behangfabriek rijen'). The other tags are tags that belong to images in other albums.
Thanks, works much better now . I only get this code when I'm on an album page with only album thumbs and no image thumbs:
`Warning: Invalid argument supplied for foreach() in /srv/jackdaw/www/www.spoenk.nl/beeldend/zp-core/zp-extensions/tags_from_album.php on line 122`
I placed the function at the bottom of album.php, so the function is called on pages with just albums and pages of image thumbs. I hope it has nothing to do with that normalizecolumns thing, because I don't use that.
Also I'd like to now if there is a function which can check if the images inside an album has any tags. That way I can hide the line 'Tags inside this album:' if there are no tags.
Thanks for testing. I get this warning also, this is still a "bug" within ther "print" variant and will go away soon. I first wanted to know if the function itself now generally works.
The normalizeColumns function affects only the loops, not this function.
Once this is really finished you will be able to use the `getAllTagsFromAlbum` (with the same parameters like the `print` one) to do this check. This then will return "false" if there are no tags.
Fix is up. Give it a try. You can now use this setup to check for tags: ` if(getAllTagsFromAlbum($_zp_current_album->name,false,'images')) { echo "Tags in this album: "; printAllTagsFromAlbum($_zp_current_album->name,false,'images','',"",true,true,1,5,1,50); } `
I activated tags_from_album v1.3.1 but the usage information link doesn't work. I see a link here http://www.zenphoto.org/2010/04/tags_from_album/ but that doesn't have usage info either. Where do I get info on how to incorporate this plugin? Sorry for my ignorance.... Thanks!
Sorry... I'm still confused. I went to all elements and searched for "tags_from" and got no results. Are plugins listed in the documentation? Does the plugin just simply add the "tags_from_album" function so that I can use it programatically or does it add some functionality to the user interface? Thanks.
Sorry, my bad, I missed that you are using 1.3.1... The documentation is of course for the current release 1.4.x where this plugin has been improved internally and renamed to "tag_extras".
Anyway, just open the plugin file itself and you find always find the documentation there as comments as well. The documentation is generated of these anway.
Comments
I did not download the latest nightly
I'll let you know in a minute of it works...
I'm just getting this warning:
`Warning: Division by zero in /srv/jackdaw/www/www.spoenk.nl/beeldend/zp-core/zp-extensions/tags_from_album.php on line 122`
But... something else is not quite right yet, I think.
When you look at this link, at the bottom of the page some tags are listed. But only the tags 'fabriek' and 'stoelen' are actually tags within that album and subalbums. You can check that by clicking the second, third and fourth subalbum. There are no tags in those albums, just two in the first one ('behangfabriek rijen'). The other tags are tags that belong to images in other albums.
Thanks, works much better now .
I only get this code when I'm on an album page with only album thumbs and no image thumbs:
`Warning: Invalid argument supplied for foreach() in /srv/jackdaw/www/www.spoenk.nl/beeldend/zp-core/zp-extensions/tags_from_album.php on line 122`
I placed the function at the bottom of album.php, so the function is called on pages with just albums and pages of image thumbs. I hope it has nothing to do with that normalizecolumns thing, because I don't use that.
Also I'd like to now if there is a function which can check if the images inside an album has any tags. That way I can hide the line 'Tags inside this album:' if there are no tags.
The normalizeColumns function affects only the loops, not this function.
Once this is really finished you will be able to use the `getAllTagsFromAlbum` (with the same parameters like the `print` one) to do this check. This then will return "false" if there are no tags.
`
if(getAllTagsFromAlbum($_zp_current_album->name,false,'images')) {
echo "Tags in this album: "; printAllTagsFromAlbum($_zp_current_album->name,false,'images','',"",true,true,1,5,1,50);
}
`
Everything works fine now
I'm very happy with it. A very good addition to ZP I think.
http://www.zenphoto.org/documentation/index.html
I went to all elements and searched for "tags_from" and got no results. Are plugins listed in the documentation? Does the plugin just simply add the "tags_from_album" function so that I can use it programatically or does it add some functionality to the user interface?
Thanks.
Anyway, just open the plugin file itself and you find always find the documentation there as comments as well. The documentation is generated of these anway.