经过几天的艰苦调试,一款利用了时下非常流行的插件制作完成的案例相册终于宣告完工,界面非常酷,其中经历了很多难点,一一攻破以后,有一种格外的喜悦与大家分享一下,下边是一篇参考文章,摘抄下来:
If you are referring to NextGEN Smooth Gallery, then I have good news! It is possible.
But, it does require a little more ‘hack’ than before.
The first problem, is that NextGEN Smooth Gallery doesn’t seem to care about the unique image id, but we need it. So, to solve that you need to change line 102 of nggSmoothSharedFunctions.php from the blank line it is now, to this:
$aux[“pid”] = $picture->pid;
Now, we can get the custom field created with NextGEN Custom Fields to use as the link like this:
On line 182 of nggSmoothSharedFunctions.php (if you didn’t create any new lines with the previous edit), you will see the link code. You need to replace that line with this:
$out .= ” “;
Remember to use the name you called your custom field in the place of “custom link”, as in the example I showed awarner20.
That should be it, let me know how that works out for you 🙂