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, 15:46

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  [ 9 posts ] 
Author Message
PostPosted: 25. Apr 2017, 16:19 
Offline

Joined: 25. Apr 2017, 15:59
Posts: 5
Hey there!

Thanks of building this great program!
I've been reading this forum now to figure out my problem, but have the feeling I'm missing something:

for the website: http://mulima.eu/alfa-romeo/
I have a iFrame in the right and want the links inside open in a new tab.

I the iFrame is not in the same domain, but I'm using the "Special case sub domain:"

If I open the iframe I can see the
Code:
<script>document.domain='mulima.eu';</script>
.


So I think I need to use: change_iframe_links="a" change_iframe_links_target="_blank"
because:
"After you have done this you can configure Advanced iFrame like you are on the same domain"

Like shortcode:
Code:
[advanced_iframe securitykey="57806018b9b163779e7807a7b17b7f45cdecb4a7" use_shortcode_attributes_only="true" src="http://occasions.mulima.eu/cgi/voertuigen.cgi?site=voorraadlijst&v=e587da88&merk=Alfa+Romeo&brandstof=&zoeken=Zoeken" id="al1" height="610" width="1000" show_part_of_iframe="true" show_part_of_iframe_x="1" show_part_of_iframe_y="171" show_part_of_iframe_width="320" show_part_of_iframe_height="433" scrolling="no"
change_iframe_links="a" change_iframe_links_target="_blank"]



But, unfortunatly, it still opens inside its own iFrame...

I can't add any other files to the iFrame server, only to the website parent server.

What am I thinking wrong?


Top
 Profile  
 
PostPosted: 26. Apr 2017, 10:37 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
document.domain='mulima.eu';
also needs to be in the parent domain
http://mulima.eu/alfa-romeo/

Enable this in the administration or add
add_document_domain="true" document_domain="mulima.eu"
to your shortcode.

you have
if (/\..*\./.test(document.domain)) {
document.domain = document.domain.replace(/^\w+\./, "");
}

in you code but I don't know it this is enough/working properly.
I tested this and if executed it seems fine. But it is not executed if mulima.eu is called
directly. I don't know if it has to be set again even when it is already set...

I also get a uncaught Syntax Error: Invalid regular expression in your code.

Best, Michael


Top
 Profile  
 
PostPosted: 26. Apr 2017, 16:09 
Offline

Joined: 25. Apr 2017, 15:59
Posts: 5
Hey Michael,

Thnx for this!
Yeah, thought that would have been enough, but unfortunately...
Anyways, this helps for the start!

2nd question:
Is there a way to "rewrite" links
for example:

I want this button in the frame link to:
http://mulima.eu/occasionss/

Or even better:
Can I make it open as an iframe inside the http://mulima.eu/occasionss/ ?

(like if you click on a vehicle inside the iframe on http://mulima.eu/occasionss/ )

Greetz,
Sam


Top
 Profile  
 
PostPosted: 26. Apr 2017, 17:22 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
You still have an error in the code;

var change_iframe_links_target = ""_blank"";

you don't have to include ai_external.js to you main page! this is wrong!
Also you need to remove the additional " from the _blank.

Currently you can only rewrite the links by including a custom Javascript.

Best, Michael


Top
 Profile  
 
PostPosted: 26. Apr 2017, 18:27 
Offline

Joined: 25. Apr 2017, 15:59
Posts: 5
Okay,
You hit me a little in the blue here...

The ""_blank"" was is the admin --> "modify the iframe" as "_blank" (So no need to add them extra I guess)

For the Javascript, is this something I can arrange in my situation?

And if so, can you help me out here?

And where to I take this ai_external.js out the main page?
Is this the
Code:
<script>
var iframe_redirect_url = "http://mulima.eu/occasionss/";
var change_iframe_links = "a";
</script>
<script src="http://www.mulima.eu/wp-content/plugins/advanced-iframe/js/ai_external.js"></script>

?

Thnx for your help!


Top
 Profile  
 
PostPosted: 27. Apr 2017, 10:15 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
you don't need this at all!

you need

document.domain='mulima.eu';
OR
ai_external.js (in the external page - not in the parent!)

as you have the first solution you are fine here.

Best, Michael


Top
 Profile  
 
PostPosted: 27. Apr 2017, 10:57 
Offline

Joined: 25. Apr 2017, 15:59
Posts: 5
Ah okay,

Got it right, now.

Could you maybe help me out with that javascript?
Or a link where I could find that? Have been searching, but couldn't find the thing that would fit.

Thanks ahead!

Greetz,


Top
 Profile  
 
PostPosted: 27. Apr 2017, 13:47 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
This is some jquery where you search the links and then replace the url somehow.

What you also can do is maybe simply use the:
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/hide-a-part-of-the-iframe
feature where you place a transparent div with a link..

Best, Michael


Top
 Profile  
 
PostPosted: 28. Apr 2017, 17:49 
Offline

Joined: 25. Apr 2017, 15:59
Posts: 5
Hey Awesome!

This is was I needed!
Thanks man!

Have a great weekend


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 17 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