Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter alitscha

    (@alitscha)

    Somebody already gave hints about it in the past, but the same code doesn’t seem to work for me, what am I doing wrong?I added the custom filed “credit” in the settings and I did put some text in there. Yet not showing when i see the javascript slideshow…thanks in advance!

    <?php if ($gallery->show_slideshow) { ?>
    	<!-- Slideshow link -->
    	<div class="slideshowlink">
    		<a class="slideshowlink" href="<?php echo $gallery->slideshow_link ?>">
    		</a>
    	</div>
    	 <p><?php echo $image->ngg_custom_fields['credit']; ?></p>
    <?php } ?>
    Thread Starter alitscha

    (@alitscha)

    just one more detail, I guess the solution is near and one quick advice would help a lot:

    I can add custom fields for example under the thumbnails, but not in the slideshow mode. SO I am probably adding the code for the slideshow mode in the wrong place, where do I do that?

    THX!

    Plugin Author shauno

    (@shauno)

    Hi alitscha

    As far as I can remember, the NGG slideshow outputs its markup inside the actual plugin files. This makes editing it to add the custom fields tricky, because you will lose your changes when you have to update NGG.
    I can’t look at it in more detail right now (I’m at my day job), but I will try have a look in more detail later, and see if there is a ‘hack’ around this.

    Thread Starter alitscha

    (@alitscha)

    Many thanks Shauno, let me know!

    In the meanwhile I thought about a possible workaround: I installed the jQuery GalleryView add on and I’ll try to modify that template to achieve what I want. I’ll post any solution I might find.

    Best!

    Thread Starter alitscha

    (@alitscha)

    Update: no way out for the moment. I guess my skills in tweaking code are not enough for this specific hack.

    It would be a pity to start over with a different slider/rotator, any hint about where and how to place the code would greatly welcomed, and I’ll keep in mind the donate button of course!

    Best

    Plugin Author shauno

    (@shauno)

    Hi alitscha
    I had a quick look last night, and I think it looks like it will be pretty difficult to get the custom fields to display on the JS slideshow.
    I didn’t have too much free time yesterday, so I will try again tonight to see if there’s a way in there. But I’m not sure it’s going to be feasible, or even possible without major code changes.

    Plugin Author shauno

    (@shauno)

    Ok, so I’ve had a proper look, and I this isn’t possible without major changes.
    The gallery plugin outputs a bunch of JS directly into the page, calling an included jQuery plugin. That plugin in-turn, calls another plugin to deal with the transitions etc.
    The images are not in any sort of containers, so adding fields and showing/hiding them becomes even more difficult.

    Basically, there’s just too much going on to be able to add to it.

    Sorry I can’t help you with this one 🙁

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

The topic ‘custom field for javascript slideshow’ is closed to new replies.