Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 28. Mar 2024, 22:43

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: 16. Feb 2016, 11:55 
Offline

Joined: 9. Feb 2016, 18:42
Posts: 14
Is there a way of making all links in an embedded iFrame open in a new tab or window?


Top
 Profile  
 
PostPosted: 16. Feb 2016, 12:24 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
If you are on the same domain or you an use the external workaround: Yes.
Then you can change link targets:
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/change-links-targets#e11

Best, Michael


Top
 Profile  
 
PostPosted: 16. Feb 2016, 14:42 
Offline

Joined: 9. Feb 2016, 18:42
Posts: 14
Thanks for prompt reply Michael. Yes the iFrame content is on the same domain.

I'm not sure I fully understand, sorry to be thick:-

Where do I include the code:-
Quote:
<script>
var iframe_redirect_url = "http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo";
var change_iframe_links = "#iframe-navigation a";
var change_iframe_links_target = "_blank";
</script>


Top
 Profile  
 
PostPosted: 16. Feb 2016, 16:47 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
No - if you are on the same domain you can simply set it in the shortcode. The script is only needed for the external workaround.
See the example above.

Best, Michael


Top
 Profile  
 
PostPosted: 17. Feb 2016, 10:48 
Offline

Joined: 9. Feb 2016, 18:42
Posts: 14
In the example you quote the shortcode contains the following:-

Quote:
advanced_iframe securitykey="your key"
use_shortcode_attributes_only="true"
src="http://examples.tinywebgallery.com/example11/example.html"
id="advanced_iframe"
height="1000"
width="900"
show_part_of_iframe="true"
show_part_of_iframe_x="22"
show_part_of_iframe_y="85"
show_part_of_iframe_width="187"
show_part_of_iframe_height="121"
show_part_of_iframe_style="border: 2px solid #ff0000;"


... I'm sure I'm being a complete noobie but I'm at a loss to see which one relates to the opening of links.


Top
 Profile  
 
PostPosted: 17. Feb 2016, 11:39 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
You have to look at example 10 if you are on the same domain!


Top
 Profile  
 
PostPosted: 17. Feb 2016, 11:52 
Offline

Joined: 9. Feb 2016, 18:42
Posts: 14
Thanks should have looked above, the link you sent for me above was example 11. Trying to do too many things at once.


Top
 Profile  
 
PostPosted: 17. Feb 2016, 12:26 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
sorry for being unclear - in one of my post before I wrote "See the example above" where I mean example 10.


Top
 Profile  
 
PostPosted: 17. Feb 2016, 12:33 
Offline

Joined: 9. Feb 2016, 18:42
Posts: 14
I'm still not having much luck.

I'm trying to make sure that at:-

http://www.yarnwhispering.co.uk/cal-test/

... the "Test Link" URL opens in a new target. I can see that the div that contains the link is class="CalEvent". How do I phrase the shortlink to achieve this? Nothing I've tried works.


Top
 Profile  
 
PostPosted: 17. Feb 2016, 12:34 
Offline

Joined: 9. Feb 2016, 18:42
Posts: 14
TinyWebGallery wrote:
sorry for being unclear - in one of my post before I wrote "See the example above" where I mean example 10.


I can see now how the confusion arose ... wonderful thing language :>}


Top
 Profile  
 
PostPosted: 18. Feb 2016, 10:13 
Offline

Joined: 9. Feb 2016, 18:42
Posts: 14
southcot wrote:
I'm still not having much luck.

I'm trying to make sure that at:-

http://www.yarnwhispering.co.uk/cal-test/

... the "Test Link" URL opens in a new target. I can see that the div that contains the link is class="CalEvent". How do I phrase the shortlink to achieve this? Nothing I've tried works.



Can you advise?


Top
 Profile  
 
PostPosted: 18. Feb 2016, 10:22 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I don't know how your shortcode does look like.

Best, Michael


Top
 Profile  
 
PostPosted: 18. Feb 2016, 14:56 
Offline

Joined: 9. Feb 2016, 18:42
Posts: 14
[advanced_iframe securitykey="xxxxxxxxxxxxxxxxxxxxx" src="http://www.yarnwhispering.co.uk/Calcium40.pl?Op=ShowIt&CalendarName=Events" onload_resize="true" width="100%"]


Top
 Profile  
 
PostPosted: 18. Feb 2016, 15:50 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
And the configuration to change the link targets?


Top
 Profile  
 
PostPosted: 18. Feb 2016, 22:29 
Offline

Joined: 9. Feb 2016, 18:42
Posts: 14
What configuration? I don't understand what you are asking me for sorry.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy