[Plugin: NextGEN Gallery] image link to URL solved!
-
After piecing together a few ideas from the forums, I finally got the NextGEN Gallery system to allow slideshow pictures to link to user-designated URLs.
Requires a change to “nggextractXML.php” in the plugin folder.
// Create XML output header("content-type:text/xml;charset=utf-8"); echo "<playlist version='1' xmlns='https://xspf.org/ns/0/'>\n"; echo " <title>".stripslashes($thepictures[0]->name)."</title>\n"; echo " <trackList>\n"; if (is_array ($thepictures)){ foreach ($thepictures as $picture) { echo " <track>\n"; if (!empty($picture->description)) echo " <title>".strip_tags(stripslashes($picture->description))."</title>\n"; else echo " <title>".$picture->filename."</title>\n"; echo " <location>".$siteurl."/".$picture->path."/".$picture->filename."</location>\n"; // //populates the <info> tag with the contents of the "ALT" //field in NextGEN Gallery Manager // if (!empty($picture->alttext)) echo " <info>".($picture->alttext)."</info>\n"; echo " </track>\n"; } }
Then just enter the URL you want into the “ALT” area in the Manage Gallery page.
Also in the SWFObject embed code for the JW Image Rotator, you must ensure that the “linkfromdisplay” variable is set to “true”.
so.addVariable("linkfromdisplay", "true");
cheers
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘[Plugin: NextGEN Gallery] image link to URL solved!’ is closed to new replies.