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 16. Dec 2018, 17:47

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Add custom field to src
PostPosted: 21. Sep 2017, 11:55 
Offline

Joined: 9. Jun 2017, 19:39
Posts: 12
Is it possible to add a custom field, e.g., Advanced Custom Fields, to the src attribute?

For example, [advanced-iframe securitykey="111222333444" src="http://www.baseurl.com/token/dd1-8874-sP3dCial"]

The intent is for the src (external workaround in place) to parse the token and customize the user experience.

For the site in question, I have six different pages, each will have a unique token, but the base URL will be the same.


Top
 Profile  
 
PostPosted: 21. Sep 2017, 13:03 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10956
The post meta data is not read. But if you have 6 different pages can you not simply add this to the src url directly?

Best, Michael


Top
 Profile  
 
PostPosted: 21. Sep 2017, 16:37 
Offline

Joined: 9. Jun 2017, 19:39
Posts: 12
The token that is passed includes the user's id so the app knows what content to deliver. It needs to know who the user is in order to configure itself correctly.


Top
 Profile  
 
PostPosted: 21. Sep 2017, 16:45 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10956
the user id is available. See the documentation in the administration of the src field.

See http://www.tinywebgallery.com/blog/advanced-iframe/advanced-iframe-pro-demo/url-features#h49

Best, Michael


Top
 Profile  
 
PostPosted: 21. Sep 2017, 17:06 
Offline

Joined: 9. Jun 2017, 19:39
Posts: 12
Sweet!

//www.test.com/{userid,none}

This will be amazing to see in action!!

Thanks!


Top
 Profile  
 
PostPosted: 21. Sep 2017, 18:02 
Offline

Joined: 9. Jun 2017, 19:39
Posts: 12
I now understand parameters...that is a great feature!

However, one problem:
Refused to display 'http://xxxxxxxx/app/token/3' in a frame because it set 'X-Frame-Options' to 'deny'.

xxxxxxx == my app's site
3 == my userid, so it's getting parsed correctly.

The app site is not on the same server.


Top
 Profile  
 
PostPosted: 21. Sep 2017, 18:15 
Offline

Joined: 9. Jun 2017, 19:39
Posts: 12
Disregard the last post about X-Frame-Options. I'm pretty sure it's my mistake. When I removed /token and simply added the {userid,none} param the iframe displays.

In other words:

WORKS: src="http://basesite.com/hm5/app/{userid,none}"

FAILS: src="http://basesite.com/hm5/app/token/{userid,none}"

The reason is on my app end.

Thanks for your patience and rapid responses!

GREAT SUPPORT!


Top
 Profile  
 
PostPosted: 24. Sep 2017, 21:05 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 10956
Great ;).


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


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