• I’m attempting to make a couple changes to how the albums are displayed on a page. I’m editing nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/album-extend.php and my changes don’t affect the display. I also tried editing nextgen-gallery/products/photocrati_nextgen/modules/nextgen_basic_album/templates/extended. Still no luck.

    So I just need to know what file to edit to, for example, move the album title below the thumbnail (can’t be done with css).

    Thanks!

    https://wordpress.org/plugins/nextgen-gallery/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @chamster – Have you looked at creating a custom template based on one of the files found under this directory:
    ../wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view

    Create a copy and save it into that folder or save it under:
    ../wp-content/themes/[yourtheme]/nggallery/

    – Cais.

    Thread Starter chamster

    (@chamster)

    Yeah I’ve tried that. It has no effect on the display. In fact I tried deleting the entire ngglegacy directory and that had no effect either. So it seems like the file that’s controlling the layout of the page isn’t in that directory.

    The page I’m working on is using display type NextGen Basic Extended Album.

    Plugin Contributor photocrati

    (@photocrati)

    @chamster – If you want to use a custom template you have to select it under the Customization panel in the IGW (green button). You may need to clear the image cache under Gallery > Other Options > Miscellaneous after switching to the new template but it should work.

    It’s interesting to note you removed “the entire ngglegacy directory and that had no effect either” … are you using any sort of cache?

    – Cais.

    Thread Starter chamster

    (@chamster)

    I’m not using any cache that I know of. I just tried it again. I viewed the page, then deleted the ngglegacy directory, then cleared the cache in my browser, then viewed the page again, and it looks exactly the same as it did before deleting the directory.

    Plugin Contributor photocrati

    (@photocrati)

    @chamster – I just repeated what you described on one of my test sites and it completely breaks NextGEN Gallery (to be honest, I had never had a reason to test this before), perhaps you could go into more detail as to what exactly you are deleting?

    – Cais.

    Thread Starter chamster

    (@chamster)

    Here’s what I have done:
    1. Create a new page
    2. In WYSIWYG, click green NextGen button
    3. Under “Select a display type” choose NextGen Basic Extended Album
    4. Under “What would you like to display?” select an album.
    5. Under “Customize the display settings”:
    a. “Display gallery as”: NexGen Basic Thumbnails
    b. “Template”: leave blank
    c. “Thumbnail dimensions”: Custom 150 x 150
    D. “Thumbnail crop”: Yes
    6. Click Save
    7. Click Update
    8. View the page. I see the sub albums listed.
    9. Delete the following directory: /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view
    10. Clear browser cache and refresh browser. Page looks the same as it did before step 9.
    11. Delete the following directory: /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy
    12. Clear browser cache and refresh browser. Page looks the same as it did before step 11. But Gallery is gone from sidebar menu in wp admin area.

    I also copied /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view/album-extend.php, renamed it, and put the new file in the /wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view directory and in /wp-content/themes/[yourtheme]/nggallery/ but when click the drop-down menu under “Customize the display settings” > “Template”, I only see NextGen: album-compact.php and NextGen: album-extend.php

    Plugin Contributor photocrati

    (@photocrati)

    @chamster – Deleting the “view” folder while using a default template (read: blank selection) will have no affect on the gallery display as those are not being used.

    I’m still very surprised any significant part of NextGEN Gallery works when you delete the entire “ngglegacy” folder.

    The process to create a new custom template looks fine, what naming convention are you using for your “new” template? The specific name may even be relevant although I cannot see how at the moment.

    You should see another entry with NextGEN and one referencing the theme folder as well given the process you described. This is working as expected on my test sites so I am still baffled why it is not working on your site.

    – Cais.

    Thread Starter chamster

    (@chamster)

    I named the file gallery-gs.php

    Plugin Contributor photocrati

    (@photocrati)

    @chamster – The file name looks fine.

    We may need to have a look under the page at your site. Would you be able to submit a Bug Report (http://www.nextgen-gallery.com/report-bug/ … please reference this topic) with your site’s specifics.

    We will need log in and FTP credentials as well, please include those with your Bug Report.

    Thanks!

    – Cais.

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

The topic ‘Customize Album View’ is closed to new replies.