• Hi there.
    I need to know if there’s some way of adding a “&lang=en” string to every link of an album. I need this to make NextGEN work with WPML multilanguage plugin.

    I’m using this code in my WP posts to call the albums:
    [album id=2 template=compact]
    and I wonder if there’s something I can put into this line that adds the language string to every link…

    Thanks!!

    http://wordpress.org/extend/plugins/nextgen-gallery/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter ivank123

    (@ivank123)

    something like “it’s not possible” can useful too…!
    I’m quite stuck with this project so any piece of advice can be useful

    you can modify the template… just look into folder nextgen-gallery/view

    Thread Starter ivank123

    (@ivank123)

    Thanks for your response.
    I’m afraid that if I modify the NGG template, I’ll have the opposite problem: links in the default language won’t work. I need links to work in both ways: with and without the language string, depending in which language the album is shown.
    Thinking on your answer I wonder if there’s some way of having more than one gallery template. Would that be possible?

    You can add more templates , see here http://nextgen-gallery.com/templates/

    Thread Starter ivank123

    (@ivank123)

    works!!!!!
    thanks a lot!
    (muchas gracias!)

    Hello,

    I have exactly the same issue, with slideshow though. As it seems it doesn’t work with templates, is there a way to resolve this and have my slideshow working on translated pages?

    Hi, I’m having this problem too with the slideshow.

    Robert.glez, have you found a way to solve your problem ?

    Would it be a solution to edit the js/nggslideshow.js ? If so, how would you guys do ? (I’mm no good at Javascript)

    I’m having the same problem with slideshow too. Is there any fix for this? Anyone?

    As I posted in my posterous account, all you have to do is make a small change in nggfunctions.php

    On line 50:
    $swfobject->add_flashvars( ‘file’, urlencode ( trailingslashit ( home_url() ) . ‘index.php?callback=imagerotator&gid=’ . $galleryID ) );

    change to:

    $swfobject->add_flashvars( ‘file’, urlencode ( trailingslashit ( site_url() ) . ‘index.php?callback=imagerotator&gid=’ . $galleryID ) );

    Hope I helped!

    Yes you did, thanks a lot Karavas !

    line 50 concerns only the flash method though

    If you don’t use flash for your slideshow, you’ ll have to find and replace “home_url()” by “site_url” on line 132 also

    line 132 : ‘domain: “‘ . trailingslashit ( home_url() ) . ‘”,’ .
    becomes
    line 132 : ‘domain: “‘ . trailingslashit ( site_url() ) . ‘”,’ .

    In case someone stumbles upon this page like I did, looking for a fix to make the NextGen Gallery flash based slideshow work again when the language is set to a different language than the default one, I posted a fairly simple solution.

    thanks karavas and kiwimage!

    now if only I can get the [view as slideshow] to actually show it’s translation.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Plugin: NextGEN Gallery] Nextgen WPML possible hack?’ is closed to new replies.