WordPress.org

Ready to get started?Download WordPress

Forums

Slideshow Gallery
[resolved] url links always open new windows (25 posts)

  1. weiover
    Member
    Posted 2 years ago #

    Hi, great plugin. I have got it configured really close to the way I wanted, however, the url links I have setup under each slide always open the link in a new window even though I had it set on "Current window." Where can I go to fix that? Any help would be appreciated. Thanks!

    http://wordpress.org/extend/plugins/slideshow-gallery/

  2. Marventus
    Member
    Posted 2 years ago #

    Hi.
    Could you please share a link to your site? Also, what pages or sections of your site are you displaying your galleries?
    Cheers!

  3. danielnichols
    Member
    Posted 2 years ago #

    My site http://www.waltonchurch.org has exactly the same problem.

    All links loading in new window even though 'options' are set to current.

  4. weiover
    Member
    Posted 2 years ago #

    just a little background on the setup, the WP site has a basic 3.4.1 install running the slightly trimmed down TwentyTen theme and the following plugins: Executable PHP widget, TheThe Tabs and Accordions and Slideshow Gallery. This behavior is shown on all 4 major browsers both Mac (3 for the Mac) and PC. Thanks.

  5. Marventus
    Member
    Posted 2 years ago #

    I installed an set up the plugin, and indeed the "open on current window" option is not working on my end either.
    My advice would be to wait for an answer from the developer see if he can figure out what the problem is.
    Cheers!

  6. brazmus
    Member
    Posted 2 years ago #

    Hi guys

    It was working fine for me last week but has changed this week. Didn't know if it was because I installed another new plugin (Wishlist Membership plugin) but since then I have turned that plugin off and the slideshow still opens the URL in a new browser window. I think it has coincided with upgrading to the latest WordPress version.

    The test page I'm working on where you can see the only slideshow I'm using is here:

    http://primalhealth.co/New

    Marventus I take it you are not a co-developer?

    Brad

  7. brazmus
    Member
    Posted 2 years ago #

    Just following up on this again developers... Really love this plugin. This is the last thing to fix before going live so please let me know if you can attend to this soon else I'll look for another plugin.

    Thanks

    Brad

  8. brazmus
    Member
    Posted 2 years ago #

    As directed by my theme developer, I installed the plugin on an older version of WordPress 3.3.2 (using the same domain name) and it still does the same things: http://primalhealth.co/slideshow/ in opening a new broswer window when it's set to keep it in the same window.

    I even put it on WP 3.1 but it wouldn't work, them images wouldn't render.

    Brad

  9. Snegu
    Member
    Posted 2 years ago #

    Having the same exact problem with my site. I'd really like to see a fix!

  10. roothorick
    Member
    Posted 2 years ago #

    Had the same problem. I think it might be browser specific, but I'm not exactly familiar with JS; just applying my programming knowledge.

    in js/gallery.js I changed line 41:
    a.tg = tag('a',h)[0]? tag('a',h)[0].target:'_self';
    to:
    a.tg = tag('a',h)[0] != '' ? tag('a',h)[0].target:'_self';

    It seems to work. I didn't do much testing though.

  11. waterd99
    Member
    Posted 2 years ago #

    Hey,

    I'm having the exact same problem. I select the image link to open in the same window, but it keeps opening to a new window. Any fixes to this problem???

  12. pegasus1112
    Member
    Posted 2 years ago #

    If we're keeping count, add mine to the list of installations where the URL links open in a new window. I'm just trying out this plugin and so far I'm mega impressed. It meets all my needs...except for this one thing! Hoping it will be fixed soon....? :-)

  13. Memo
    Member
    Posted 2 years ago #

    Had the same problem.
    It happens when you use the slideshow by gallery_id, you have the configuration "Open Images in Thickbox Overlay" as "Yes", and the slides haven't links associated to them.
    I debugged it and i saw that in the default gallery.php view the "link" attribute for the slide object is empty.
    Slideshow-gallery/views/default/gallery.php Line:53

    I hope this helps

  14. Snegu
    Member
    Posted 2 years ago #

    Yes, it works! So all I did was insert target="_self" into line 53 of Slideshow-gallery/views/default/gallery.php

    Now that line looks like:
    <a href="<?php echo $slide -> link; ?>" title="<?php echo $slide -> title; ?>" target="_self"></a>

    Thanks so much, Memo!

    Now, because I'm changing this directly in the plugin folder, I'm a little worried it will get overwritten when there's an update. But I suppose it will do for now.

  15. dad42kids
    Member
    Posted 1 year ago #

    I have looked everywhere and I could not find the file that you were referencing to. I did, however, find this file:
    slideshow-gallery/helpers/html.php
    With this code in it:
    <a>" rel="<?php echo $rel; ?>" <?php echo (!empty($onclick)) ? 'onclick="' . $onclick . '"' : ''; ?> href="<?php echo $href; ?>" target="<?php echo $target; ?>" title="<?php echo $title; ?>"><?php echo $name; ?></a>

    This seemed to be the closest thing that I could find but I still could not find a solution to this issue. If there is anything that you could do to help, I would really appreciate it

  16. gschaefer
    Member
    Posted 1 year ago #

    i have exactly the same problem and have tried all these suggestions slide links are still opening new windows under Chrome, Firefox and IE

    Can someone please help fix this as I really want to use this slideshow.

  17. dad42kids
    Member
    Posted 1 year ago #

    gschaefer,
    I have been fighting with this for weeks and I just couldn't find the solution. I ended up using a different slideshow plugin called "Slideshow" and it ended up working perfectly in the default settings. That is what I would recommend.

    Hope this helps

  18. Antonie Potgieter
    Member
    Plugin Author

    Posted 1 year ago #

    We apologize for the inconvenience caused, it is a known problem which will be fixed and released shortly.

    There is a solution to this problem here: http://wordpress.org/support/topic/plugin-slideshow-gallery-url-links-always-open-new-windows?replies=10

  19. pegasus1112
    Member
    Posted 1 year ago #

    Antonie, thanks for letting us know you're working on the problem. I really look forward to getting this running properly. However, your link just goes to this forum thread. Can you please repost the (correct) link? Thank you!

  20. Antonie Potgieter
    Member
    Plugin Author

    Posted 1 year ago #

    @pagasus1112,

    Sorry I didn't realize, the solution is actually in this topic: http://wordpress.org/support/topic/plugin-slideshow-gallery-url-links-always-open-new-windows?replies=19#post-2987120

    The change is made to the slideshow-gallery/js/gallery.js file.

  21. pegasus1112
    Member
    Posted 1 year ago #

    Yes, that works. Thank you!!

  22. Antonie Potgieter
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for your response!
    I'm glad to hear that helped!

  23. Antonie Potgieter
    Member
    Plugin Author

    Posted 1 year ago #

    We have released v1.2.3 with a fix for this.

  24. doubleusolutions
    Member
    Posted 1 year ago #

    Hi I am trying to install this plugin which seems just what i have been looking for,

    Unfortunately, it doesn´t show on the page eventhough it is well loaded on the page.

    this is a testing page: http://www.rioaccueil.com.br/?page_id=1832

    Any idea why?
    Would appreciate your help.

    Anne-Catherine

  25. Antonie Potgieter
    Member
    Plugin Author

    Posted 1 year ago #

    Thank you for your message, Anne-Catherine.

    You have a different slideshow plugin there, not ours.

    Either way, there is a Javascript error on the page terminating execution: http://screencast.com/t/0W8mAMCx0

    Best Regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic