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, 05:19

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  [ 7 posts ] 
Author Message
PostPosted: 10. Jul 2017, 11:48 
Offline
User avatar

Joined: 10. Jul 2017, 11:39
Posts: 7
Until this last weekend, I was able to pull our cricket scorecard from CricHQ's website (example) but they've locked it behind a forced login page now, which is only an overlay, the actual scorecard is still live in the background, it it possible to generate an iframe from the specific DIV on their page (div class="match-region").

Btw, I'm not sure how I validate this user id as someone who's purchased the Pro version, if it matters.

Thanks.

*edit* Never mind, they've disabled the option to embed in an iframe too, ah well.

_________________
On behalf of Stalybridge St. Paul's Cricket Club: https://www.sspcc.co.uk


Top
 Profile  
 
PostPosted: 10. Jul 2017, 17:17 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Do you use the external workaround?

Best, Michael


Top
 Profile  
 
PostPosted: 11. Jul 2017, 09:28 
Offline
User avatar

Joined: 10. Jul 2017, 11:39
Posts: 7
Yes, I believe so...
Code:
<script>
var iframe_id = "crichqsc";
var updateIframeHeight = "true";
var hide_page_until_loaded_external = "true";
var iframe_content_id = "#main-region";
var enable_responsive_iframe = "true";
var iframe_hide_elements = "#header,.ui-widget-overlay,.ui-dialog,#footer-region,.adunit";
</script>

<script src="https://www.sspcc.co.uk/wp-content/plugins/advanced-iframe/js/ai_external.js"></script>

[advanced_iframe securitykey="529fxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" use_shortcode_attributes_only="true" id="crichqsc" src="https://www.crichq.com/matches/{urlpath-1}/print" width="835" height="1000"]


Then the page link is https://www.sspcc.co.uk/score-card/541194/ to pass the scorecard number to the iframe code.


Last edited by Stuart0870 on 12. Jul 2017, 10:55, edited 1 time in total.

Top
 Profile  
 
PostPosted: 11. Jul 2017, 17:42 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
You can remove the overlay

try:
var iframe_hide_elements = "#header,.ui-widget-overlay,.ui-dialog";

Best, Michael


Top
 Profile  
 
PostPosted: 12. Jul 2017, 10:50 
Offline
User avatar

Joined: 10. Jul 2017, 11:39
Posts: 7
Well, no matter what I try it's failing, i was just getting blank space in Chrome, but trying it in IE game me the error:

Quote:
This content cannot be displayed in a frame

To help protect the security of information you enter into this website, the publisher of this content does not allow it to be displayed in a frame


So I'm guessing I'm SoL, thanks for trying. :(

_________________
On behalf of Stalybridge St. Paul's Cricket Club: https://www.sspcc.co.uk


Top
 Profile  
 
PostPosted: 12. Jul 2017, 16:24 
Offline
Site Admin
User avatar

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

please see

http://www.tinywebgallery.com/blog/advanced-iframe/free-iframe-checker

https://www.crichq.com/matches/541194/1st_innings

if you check you get
Header X-Frame-Options found.

The header is set to SAMEORIGIN.
This means you can only incude this page on the same domain.

also on
https://www.crichq.com/matches/541194/1st_innings

is no ai_external.js anymore... Have they removed this?


Top
 Profile  
 
PostPosted: 16. Jul 2017, 12:38 
Offline
User avatar

Joined: 10. Jul 2017, 11:39
Posts: 7
Yeah, they've changed their layout, presumably to stop people like me helping my users from avoiding going to their website direct.

Ah well, thanks for your help.

_________________
On behalf of Stalybridge St. Paul's Cricket Club: https://www.sspcc.co.uk


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

All times are UTC + 1 hour [ DST ]


Who is online

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