开发者

Change URL NextGEN Gallery Plugin

We are using the NextGen Gallery plugin to generate a slideshow in a Wordpress site. I needed to change the site URL to a a different subdomain, and this seems to have broken the links. The plugin-generated javascript still passes the old URL to swfobject.embedSWF.

Does anyone know how to fix this? I already updated the Wordpress "General Settings" with the new WordPress address and Site address (whi开发者_如何学JAVAch are the same), and the plugin does not seem to pick up that change. Thanks!


Found it. It's in the string-encoded ngg_options entry in the wp_options table. The specific field is "irURL".

Why they chose to capture the site URL independently, instead of reading it from the Wordpress site configuration, is beyond me.


Could it be that NextGen has hardcoded those values somewhere in its database tables?

It could be a matter of running a bunch of SQL update queries to replace any instances of http://old.domain for http://new.domain

And now I'll state the obvious, recommending you to backup the full DB before you attempt any of this.


I had the same problem (unchanged absolute CSS/JS files' paths) after domain changing although I changed every single old domain's occurrence in database (even in serialized arrays/objects in options).

I found solution on http://www.nextgen-gallery.com/galleries-opening-lightbox/ - I didn't have time to do an investigation where they store these paths or in which format. :P

For me it is extremely stupid in Wordpress that it stores absolute paths (with one and the same domain) in so many places but that's another matter. :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜