WordPress.org

Ready to get started?Download WordPress

Forums

Flash widget showing images, but not linking to them (9 posts)

  1. falcomaker
    Member
    Posted 6 years ago #

    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?

  2. falcomaker
    Member
    Posted 6 years ago #

    Anyone? I'm willing to pay for a modification, if needed.

  3. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    What flash widget are you talking about?

  4. falcomaker
    Member
    Posted 6 years ago #

    The slideshow widget, powered by JW Image Rotator.

  5. falcomaker
    Member
    Posted 6 years ago #

    I really need this modification. Anyone?

  6. Helmut Granda
    Member
    Posted 6 years ago #

    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

  7. falcomaker
    Member
    Posted 6 years ago #

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

  8. Helmut Granda
    Member
    Posted 6 years ago #

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

  9. climbingnarc
    Member
    Posted 6 years ago #

    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");';'
    
    to
    
    '$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:

    http://climbingnarc.com/?page_id=673

    Let me know if it works for you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.