Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m not a developer by any means… just someone who likes the plugin, and really wanted to keep using it. So, I did a good amount of troubleshooting. The good news… I think I have found a fix.

    This all has to do (I think) with pretty permalinks and the plugin settings after updating any of the plugin settings/parameters in the latest version.

    Here are the steps I took to get things back to normal:

    Step 1. Revert to default settings. You should notice immediately that your site is back up and running, but if you had any changes to the tokens they are all reverted. Those are easily changed again. The tricky part is in step 2.

    Step 2. In the plugin settings, tweak the “Series Custom Base” to the correct path of your series posts… so something like ” /subdirectory/series “… If you are like me, I had always left that Series Custom Base field blank. I then upgraded to the latest version of the plugin (a few weeks ago). So, just today when I made a change to one of the meta fields in the plugin settings and clicked “Update Options” I immediately noticed the Series Custom Base then had a trailing slash “/” in the field – this is when all heck broke loose, and my site no longer delivered my content properly.

    Step 3. Send me a message and I might be able to walk you through it a little more.

    Good luck,
    Ethan (aka Bentforkz)

    Howdy all, check out my solution that worked for my needs here:

    http://ww.wp.xz.cn/support/topic/242928?replies=5#post-1147482

    Best of luck!

    Howdy all, check out my solution that worked for my needs here:

    http://ww.wp.xz.cn/support/topic/242928?replies=5#post-1147482

    Best of luck!

    First of all, I am not – by any means – a PHP or WP whiz. I tinkered around with the NGG template files/code until I found a solution that works for me. I hope this at least might get you close to what you are trying to achieve.

    My Solution:

    Step 1. Open the Singlepic.php template file:

    nextgen-gallery > views > singlepic.php

    Step 2. Rename the singlepic.php file to something else like singlepic-caption.php
    (The hyphen caption seems to be the right way to rename the template files. You might find another way to name the files, but this seems to work well for me.)

    Step 3. Add the following PHP call to the code after line 21 of the above file (or really, wherever you want the text to be displayed):

    <?php echo $image->alttext; ?>

    or

    <?php echo $image->description; ?>

    ***NOTE*** I found the alttext version seems to display a little better on my server for some reason. Give both a shot to see which works better for you.

    At this point you should be able to style as needed.

    Step 4. Upload the renamed/edited file to your server.

    Step 5. In a WP post or page, use a new singlepic shortcode including the name of your new template like this:

    [singlepic id=1 template=caption]

    This solution seemed to work for me. I hope it works for you – Good luck!

    ***UPDATE*** Just thought of this: If you are using Float in your single pic shortcode, you may need to style the above call with matching right or left floats in the template/style and then create seperate templates to correspond to your singlepic shortcode float. Again, good luck!

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