- Posts: 3
- Thank you received: 0
links to open in a new window
-
yaksich
Inactive member - Topic Author
- New Member
Less
More
15 years 1 month ago #261
by yaksich
links to open in a new window was created 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
Many thanks in advance for your assistance.
Cheers
Nick
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6754
- Thank you received: 718
15 years 1 month ago #267
by milos
Replied by milos on topic Re:links to open in a new window
Please open default.php and change this line:
to
Code:
<?php if (($showLink!=0)and($imageLinkArray[$imageCounter]!="")) { ?><a href="<?php echo $imageLinkArray[$imageCounter]; ?>"><?php } ?>
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
Less
More
- Posts: 3
- Thank you received: 0
15 years 1 month ago #269
by yaksich
Replied by yaksich on topic Re:links to open in a new window
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
Cheers
Please Log in to join the conversation.
-
milos
Support Staff - Moderator
Less
More
- Posts: 6754
- Thank you received: 718
15 years 4 weeks ago #274
by milos
Replied by milos on topic Re:links to open in a new window
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
Less
More
- Posts: 3
- Thank you received: 0
15 years 4 weeks ago #278
by yaksich
Replied by yaksich on topic Re:links to open in a new window
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
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.182 seconds