• Resolved BartJanvanAssen

    (@bartjanvanassen)


    Hi guys,
    firt things first, thnx for your great working plugin and i`m sry to hear from your motoraccident.

    i have allready been struggeling for days whith this problem and cant findout in the support on those pages how to solve this problem.

    my problem is that i just want to have in the thumpnails gallary the title of the picture under the image. now i heave read allmost evry post here and stil cant find it out. i have made changes to the template/index.php but even if i delete the code it isn`t changing on my screen. very strange i hope you can help me becouse i need is ASAP.

    Many thanks in advance

    Bart Jan

    http://wordpress.org/plugins/nextgen-gallery-custom-fields/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author shauno

    (@shauno)

    Hi Bart

    From NGG v2, the template is /nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/templates/thumbnails/index.php. This will only work for galleries inserted WITHOUT selecting a template from the gallery display options.

    Thread Starter BartJanvanAssen

    (@bartjanvanassen)

    Right, i allready found that in other topics.
    im still struggeling i have 2 thoughts
    1. the gallery-display template that has te be the emty rule, the NO template option, is evrytime i have a check reselected at the gallery.php themplate.
    2. in the additional plugin ‘custom fields’ i have created a custom field called:’ title ‘ and the in code of the …/thumbnails/index.php i changed the code into:

    <div class="ngg-gallery-thumbnail">
                <a>get_image_url($image))?>"
                   title="<?php echo esc_attr($image->description)?>"
                   data-image-id='<?php echo esc_attr($image->pid); ?>'
                   <?php echo $effect_code ?>>
                    <img
                        title="<?php echo esc_attr($image->alttext)?>"
                        alt="<?php echo esc_attr($image->alttext)?>"
                        src="<?php echo esc_attr($storage->get_image_url($image, $thumbnail_size_name))?>"
                        width="<?php echo esc_attr($thumb_size['width'])?>"
                        height="<?php echo esc_attr($thumb_size['height'])?>"
                        style="max-width:none;"
                    />
    <?php echo nggcf_get_field($image->pid, 'title'?>
                </a>
    
            </div>

    I
    m still not seeing any underscript/title.

    cant i just do something like a echo $image->discription ?

    Thread Starter BartJanvanAssen

    (@bartjanvanassen)

    to be clear: what i change in ”/subdomains/bert2/httpdocs/wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/templates/thumbnails/index.php”
    WONT make any difference to the site. and please tell me why,.. becouse i think i can solve the rest.

    PS* the code in the post before was wrong the code should be:
    <?php echo nggcf_get_gallery_field($gallery->ID, "title"); ?>

    Plugin Author shauno

    (@shauno)

    Is there a URL I can see? I might be able to decipher what settings you have used to insert the gallery into your age, and then tell you which template those settings use.

    Thread Starter BartJanvanAssen

    (@bartjanvanassen)

    Plugin Author shauno

    (@shauno)

    Sorry, I see you are trying to show a GALLERY custom field. NGG v2 broke compatibility with GALLERY custom fields 🙁

    I am trying to find some time to investigate how to fix the problem, but for now you cannot show gallery custom fields, only image custom fields.

    Sorry for the confusion.

    Thread Starter BartJanvanAssen

    (@bartjanvanassen)

    ok, but can you tell me were i can find the gallary.php? maybe i can just adjust the code so it will automaticly show the name of the image right under the image. the custom field is not a priorrity. a display of the image name is just what i want. i’d really want to use youre plugin becouse there aren’t simmilar plugins with this ease

    Plugin Author shauno

    (@shauno)

    I don’t know what template your site it loading. As I have said previously, from NGG v2, the template is /nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_gallery/templates/thumbnails/index.php. This will only work for galleries inserted WITHOUT selecting a template from the gallery display options.

    But you say that isn’t the case for your site. The I can only assume you are not selecting the “NextGEN Basic Thumbnails” option, with no template selected when inserting the gallery into your page.

    You can try see if it’s loading the legacy template from wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/gallery.php.

    Thread Starter BartJanvanAssen

    (@bartjanvanassen)

    fixed it!,
    as i tried to say in my poor english, i used the “NextGEN Basic Thumbnails” option but the without template is everytime jumping back to the gallary.php
    now that i`ve got that link:
    <em>wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/gallery.php. </em>
    i went there and pasted:
    <?php echo $image->alttext ?>
    in the thumpnailsection After the ending of the ngg-gallary-thuimpnail div. now it is dispolaying the title of the image just as i wanted to 🙂
    thnx mate for the greatest gallary plugin at this moment and your fast reactions to the support

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘title under the tumbnails’ is closed to new replies.