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 25. Nov 2024, 13:05

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  [ 10 posts ] 
Author Message
PostPosted: 17. Dec 2018, 17:10 
Offline

Joined: 17. Dec 2018, 16:59
Posts: 6
Hello, please give me a working example for how to achieve the opening of an iframe (fixed size), with the click of a wordpress button. I am trying to reproduce this example http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/lazy-loading#e25 with no success.

I want to make use of:

[advanced_iframe use_shortcode_attributes_only="true" src="https://playl2.net/register" width="550" height="700" id="registration" show_iframe_loader="true" enable_lazy_load="true" enable_lazy_load_manual="true" show_part_of_iframe="true" show_part_of_iframe_x="0" show_part_of_iframe_y="126" show_part_of_iframe_width="533" show_part_of_iframe_height="573" multi_domain_enabled="true" use_post_message="true" ]

by clicking this button:

<div class="text-left" style="text-align: left;"><a id="registration" href="#"> REGISTER</a></div>


Top
 Profile  
 
PostPosted: 17. Dec 2018, 23:13 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Add

enable_lazy_load="true" enable_lazy_load_manual="true" enable_lazy_load_manual_element="#registration"

But are you sure you don't like this:
http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/show-the-iframe-as-layer

Best, Michael


Top
 Profile  
 
PostPosted: 22. Dec 2018, 15:47 
Offline

Joined: 17. Dec 2018, 16:59
Posts: 6
Yes you are right. It's definitely better.
Now in case I want to use it with a button from my template, what do I need to change?
Code of my button is:
Code:
[yp_button id="linklayer2" href="https://playl2.net/account/register/" size="md" icon_before="fa fa-sign-in " target="registration"] CREATE ACCOUNT[/yp_button]

and I can only add a custom class there.
This example doesn't seem to work with change_parent_links_target="a#linklayer2" which is making sense 100% cause is not a hyperlink :)
Also is there a way to allow downloads from inside iframe? What I mean is to my case after the registration, there is a .txt file with some information that is automatically being created for each user.


Top
 Profile  
 
PostPosted: 22. Dec 2018, 17:08 
Offline

Joined: 17. Dec 2018, 16:59
Posts: 6
Forget about the button question. I made a custom modal and hosted iframe in there.
However while it's displaying correctly now the content i want, I only seem to have a problem now with the download of this .txt file from inside the frame.
Tell me please if there is a solution about this.


Top
 Profile  
 
PostPosted: 23. Dec 2018, 15:02 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
What is the problem with the txt file?
Do you provide any headers for this file from your server?

Best, Michael


Top
 Profile  
 
PostPosted: 23. Dec 2018, 17:16 
Offline

Joined: 17. Dec 2018, 16:59
Posts: 6
Hello again. It's just a txt file with the credentials of the registered account, after the registration completes.
It starts the download but never ends. I'm not sure I understand what you mean with headers.


Top
 Profile  
 
PostPosted: 24. Dec 2018, 16:26 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
I don't know what this actually has to do with the iframe.
Headers means the headers you can sent for specific file types from your server.

See e.g. https://perishablepress.com/http-headers-file-downloads/

Best, Michael


Top
 Profile  
 
PostPosted: 28. Dec 2018, 19:59 
Offline

Joined: 17. Dec 2018, 16:59
Posts: 6
Oh php headers. Yes I'm sorry, I thought that iframe needed something more.
One last question please. I designed everything (chose x,y coordinates etc) and now my frame looks like http://prntscr.com/m0pgnb and it's fine. However I can't find a proper way to stop the scrolling so my players will never see something like this http://prntscr.com/m0ph4j

My frame now is:

[advanced_iframe use_shortcode_attributes_only="true" src="https://playl2.net/account/register/" width="550" height="700" class="registration_button" id="registration" url_forward_parameter="ALL" show_iframe_loader="true" show_part_of_iframe="true" show_part_of_iframe_x="72" show_part_of_iframe_y="20" show_part_of_iframe_width="394" show_part_of_iframe_height="577" show_part_of_iframe_style="border: 2px solid #1C232F;" show_part_of_iframe_next_viewports_loop="true" show_part_of_iframe_new_url="https://playl2.net/account/login/" show_part_of_iframe_next_viewports_hide="true" onload_resize="true" multi_domain_enabled="true" use_post_message="true" ]

And decreasing the height does not solve my problem, is just moving the active window lower.


Top
 Profile  
 
PostPosted: 30. Dec 2018, 00:29 
Offline

Joined: 17. Dec 2018, 16:59
Posts: 6
I'm not sure if I can even send a pm :)


Top
 Profile  
 
PostPosted: 31. Dec 2018, 01:29 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
change height="700" to something much bigger. So that the whole page does fit.

Best, Michael


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

All times are UTC + 1 hour [ DST ]


Who is online

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