![]() |
|
Album Tags for Images - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: Album Tags for Images (/thread-7484.html) Pages:
1
2
|
Album Tags for Images - Sabyre - 2010-08-16 I would like to be able to call the album tags for each image, instead of each image having individual tags. For example: When creating an album, tags would be defined for that album and those tags would be displayed for every image within that album. Album Tags for Images - kagutsuchi - 2010-08-16 Depending on how you want to output the tags, you could use the Album Tags for Images - Sabyre - 2010-08-16 I tried using the tags_from_album plugin but I am having a hard time getting it to work ... not sure exactly what to put in my image.php file.... Album Tags for Images - sbillard - 2010-08-17 If you are intending these tags to be used for such things as searching there is not currently a solution. We have on our list a bulk-edit type feature for setting tags, but implementation has not begun on it. Album Tags for Images - Sabyre - 2010-08-17 Nope, just want to be able to define tags for an album and then have those same tags display with each individual image within that album. I enabled the tags_from_album plugin and placed the following code on my image.php, but all I got was SQL errors. [code] [/code] Album Tags for Images - sbillard - 2010-08-17 Let us know the SQL errors. Off hand that call looks correct. Album Tags for Images - Sabyre - 2010-08-17 Zenphoto encountered an error Album Tags for Images - acrylian - 2010-08-17 Actually kagutsuchi's way is a good ay for getting the direct tags of the album you are in. You will of course write a foreach loop to show them as a list. Regarding your function call ` Maybe you could also tell what MySQL version you are running. It seems that one value is empty on your sql but I don't know right now why that can happen. Album Tags for Images - Sabyre - 2010-08-17 MySQL 5.1.39 "sasha" is the name of the toplevel album folder. I tried putting albums in quotes... Same error I tried putting "toplevel(sasha)".... same error. Album Tags for Images - sbillard - 2010-08-17 There is an error in the function code which is resulting in the string Thank you for posting the SQL error. Could not have seen this without that hint. Album Tags for Images - acrylian - 2010-08-17 Ah, now I see it as well... Album Tags for Images - Sabyre - 2010-08-17 So where do I need to adjust the code? Which file? im not seeing it in tags_from_album.php Album Tags for Images - sbillard - 2010-08-17 See http://www.zenphoto.org/trac/changeset/5770/ Album Tags for Images - Sabyre - 2010-08-17 well, I put the spaces in around line 69 in tags_from_album.php and then there is a similar line below it it I adjusted that as well. Here is the adjustment. [code] I still get the same error. Album Tags for Images - Sabyre - 2010-08-17 Just looked at your change and adjusted mine ... still doesnt work Album Tags for Images - Sabyre - 2010-08-17 Got it ... line 81 is missing a FROM... should be... [code] Album Tags for Images - acrylian - 2010-08-17 Indeed! Good find! Fix is in the svn. (Btw, we don't use bbcode on the forum, just use Album Tags for Images - Sabyre - 2010-08-17 ok, this is what im using on my image.php.... I'm looking for a way for it to return the current album and I thought that this would do it. However it returning all tags from all albums instead. Any ideas? Album Tags for Images - Sabyre - 2010-08-17 and what are backticks? Album Tags for Images - Sabyre - 2010-08-17 again.... got it ... Had the quotes wrong. |