links to open in a new window

  • yaksich
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 years 3 months ago #261 by yaksich
Hi and many thanks for this great module! I need the image links to open in a new window. Is this possible?
Many thanks in advance for your assistance.
Cheers
Nick

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 3 months ago #267 by milos
Please open default.php and change this line:
Code:
<?php if (($showLink!=0)and($imageLinkArray[$imageCounter]!="")) { ?><a href="<?php echo $imageLinkArray[$imageCounter]; ?>"><?php } ?>
to
Code:
<?php if (($showLink!=0)and($imageLinkArray[$imageCounter]!="")) { ?><a href="<?php echo $imageLinkArray[$imageCounter]; ?>" target="_blank"><?php } ?>

Please Log in to join the conversation.

  • yaksich
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 years 3 months ago #269 by yaksich
Hi Milos and many thanks for your quick reply. I have replaced the code as suggested, but strangely enough,the links still open in the same window...This is a bit puzzling.
Cheers

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
14 years 3 months ago #274 by milos
I just checked it on my server and it worked fine. Please double check it at your end. Did you insert code properly. The only difference is added
Code:
target="_blank"

Please Log in to join the conversation.

  • yaksich
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
14 years 3 months ago #278 by yaksich
Sorry Milos - you were right - it works ok. I made a small mistake when copying the line of code.
By the way, the slider is really nice, but adding the settings option for opening links in a new window would be just great.
Thanks heaps for your help! Hvala!
Nick

Please Log in to join the conversation.

Time to create page: 0.267 seconds
Powered by Kunena Forum