Support » Plugins » Flash widget showing images, but not linking to them

  • Hello,

    I don’t know if you guys noticed, but, the flash widget that displays some pictures (slideshow) doesn’t link to the pictures. If someone clicks in a picture, a new picture is shown. If someone clicks it, i want the image page, with description and details, to be shown. Is it possible?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Anyone? I’m willing to pay for a modification, if needed.

    What flash widget are you talking about?

    The slideshow widget, powered by JW Image Rotator.

    I really need this modification. Anyone?

    You need to create a new page and pass those parameters from within the flash widget. Do you know if that is one of the options of the widget? if that is not an option you either will have to create a new widget from scratch or just live with having only the image being displayed… but I’m not familiar with the widget so don’t take my word for it

    I don’t think it has that function built in. Anyone willing to freelance and make this modification for me?

    Do you have the source files for the widget? Meaning the FLA.. otherwise you need to create a new one from scratch.

    In order to do this you need to modify the XML file that is being read by the slideshow widget as well as change a couple of options in how the slideshow is being used. The two files that require modification are located in the NGG directory in your wordpress plugins directory (assuming you put it there) Here is what I did:

    Find the nggwidget.php file and make these changes
    – In function nggSlideshowwidget change the line that is

    $out .= "\n\t\t".'sbsl.addVariable("linkfromdisplay", "false");';'
    '$out .= "\n\t\t".'sbsl.addVariable("linkfromdisplay", "true");';

    This tells the slideshow widget to jump to an assigned link as opposed to bringing up the next image. If you want the gallery to open in the same window and not a new window you can also add this line right below the previous line that you changed:

    '$out .= "\n\t\t".'sbsl.addVariable("linktarget", "_self");';

    Next find nggextractXML.php and find the line near the bottom like this:

    echo " <location>".$siteurl."/".$picture->path."/".$picture->filename."</location>\n";

    I added a new line after this to add the location of the gallery page to the XML file:

    echo " <info>".$siteurl."/?page_id=".$picture->pageid."</info>\n";

    The exact url you are looking for will depend on how you have your galleries setup. So in my case I want to direct the slideshow to a URL like the below in order to reach the gallery page for that specific image:

    Let me know if it works for you.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Flash widget showing images, but not linking to them’ is closed to new replies.