ZenphotoCMS Forum
tags_extras usage help needed - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: tags_extras usage help needed (/thread-11377.html)



tags_extras usage help needed - atomicmak - 2013-09-28

Hi all,
I was reading many threads on forum and bugtracker that with usage of "tags_extras" plugin one can fetch tags from images to album and sub-album and print.

I am no programmer so If one can guide.
How to put it simple ways to show it on renderings of output.




tags_extras usage help needed - acrylian - 2013-09-28

As with other plugins you need to place the function(s) it provides on those the theme pages where you want to use it and on these in the place where you want to use it. You don't need to be a programmer.

The functions follow the way the standard function printAllTagsAs(). All functions documented here:
http://www.zenphoto.org/documentation/plugins/_zp-extensions---tag_extras.php.html




tags_extras usage help needed - atomicmak - 2013-09-28

Okay I just figured out this.

this is showing tags in my album page inside which I've images.
But say I've three albums 0 images in AlbumX and I go to that page.

AlbumX does not shows any tags fetching from subalbums images.
any help plz ?




tags_extras usage help needed - atomicmak - 2013-09-28

resolved. got it working now. just need to replace false to true

but my live site breaks code of theme and same thing working in my localhost with XAMPP installed on mac.

Any help on that ?




tags_extras usage help needed - acrylian - 2013-09-28

Good you figured it out. As you see it is basically always the same way to do these things.

Regarding the error: As alway what errors are in the logs?




tags_extras usage help needed - atomicmak - 2013-09-28

actually it is not error its just that source of page stops at certain code and does not completes the whole html rendering.




tags_extras usage help needed - atomicmak - 2013-09-28

If i remove this code from album.php

` `
it workes perfectly but without tags of album/subalbums




tags_extras usage help needed - sbillard - 2013-09-28

If the page stops rendering mid-way it is an indication of a fatal PHP error. So you need to find that error in your server logs or the Zenphoto debug log.

There are any number of reasons why this code might fail. For instance if it is placed where the variable $_zp_current_album might not be defined you will get an error. So without knowing the error we really cannot help correct it.




tags_extras usage help needed - acrylian - 2013-09-28

Another one would be the plugin is not enabled so the function does not exist. Which throws said fatal error that way.




tags_extras usage help needed - atomicmak - 2013-09-29

thanks for the pointers solved it now.