tags_extras usage help needed

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.

Comments

  • acrylian Administrator, Developer
    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
  • Okay I just figured out this.

    <?php printAllTagsFromAlbum($_zp_current_album->name,false,"images",',','',false,true,1,1,1,100); ?>

    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 ?
  • 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 ?
  • acrylian Administrator, Developer
    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?
  • actually it is not error its just that source of page stops at certain code and does not completes the whole html rendering.
  • If i remove this code from album.php

    ` <?php printAllTagsFromAlbum($_zp_current_album->name,true,"images",',','',false,true,1,1,1,100); ?> `
    it workes perfectly but without tags of album/subalbums
  • 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.
  • acrylian Administrator, Developer
    Another one would be the plugin is not enabled so the function does not exist. Which throws said fatal error that way.
  • thanks for the pointers solved it now.
Sign In or Register to comment.