• Resolved kYem

    (@kyem)


    At the moment I’m using GIT to deploy the website from my local development server and it does create a big issue, as I need to constantly change the url.

    The worst part is that, when I’m browsing through the website it looks like everything is working as expected, due to the url pointing to my local server that is only accessible from my computer, therefore until someone actually starts to complain or I test it on different computer I’m not aware that the js/css files are not found and the lightbox effects are not working.

    I’m was wondering if it possible to do it same way the custom styles work. We save lightbox folder on ngg_styles folder and then link it from there if is available. Example would be
    ../ngg_styles/lightbox/{effectName}/effectname.css
    ../ngg_styles/lightbox/{effectName}/effectname.js

    Would solve the problem, otherwise I’m assuming I could define this path somewhere and do a check to see if it’s development or production server and adjust the paths then.

    I would like to note that I’m using the the modified shutter effect, therefore it needs to be upgrade safe (outside plugin directory), so ngg_styles folder works well for that.

    Thanks,
    Kes

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 1 replies (of 1 total)
  • Thread Starter kYem

    (@kyem)

    I was looking through the lightbox effect code and actually saw there is a function that will try to replace the absolute path to the relative,so in short if you put:

    ../wp-content/ngg_styles/lightbox/shutter/shutter.css
    ../wp-content/ngg_styles/lightbox/shutter/shutter.js
    ../wp-content/ngg_styles/lightbox/shutter/nextgen_shutter.js

    It will actually work, so for now it will solve my problem, however I still feel like this could be improved in case we have multiple effects. We should be able to select them in the backend, same way custom styles work

Viewing 1 replies (of 1 total)
  • The topic ‘Migration lightbox effect url issues’ is closed to new replies.