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 29. Mar 2024, 12: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  [ 12 posts ] 
Author Message
PostPosted: 8. Sep 2016, 17:36 
Offline

Joined: 8. Sep 2016, 17:28
Posts: 7
Is it possible to nest a shortcode within the Advanced iFrame Pro shortcode?

Something like this:

[advanced_iframe securitykey="ABCDEFG" src="[MYSHORTCODE FIELD="CUSTOM_URL"][/MYSHORTCODE]"] [/advanced_iframe]

The shortcode I want to use pulls a url from a custom field. I had this working on a previous version of your plugin but the old code no longer works.

Help! Thanks :)


Top
 Profile  
 
PostPosted: 8. Sep 2016, 23:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Yes. this is supported in the pro version.

See the documentation of the url field. [] needs to be replaced by {{}} because Wordpress would filter this otherwise.

Best, Michael


Top
 Profile  
 
PostPosted: 9. Sep 2016, 01:14 
Offline

Joined: 8. Sep 2016, 17:28
Posts: 7
Great, glad to hear this is supported in the pro version. I have already upgraded.

I have followed the syntax you described, thank you. When I use the double braces, the resulting iframe url is broken. Instead of using the src url from the 3rd party plugin, the plugin shortcode parameters are appended to the site url.

Here is an example of what happens:

I use this set of nested shortcodes in a post:

[advanced_iframe securitykey="ABCDEFG" src="{{myshortcode field='url' output='raw'}}{{/myshortcode}}"][/advanced_iframe]

The url in the advanced iframe becomes:

http://www.mysite.com/my-unique-post-name/{{myshortcode field=

Any idea of what is happening here?


Top
 Profile  
 
PostPosted: 9. Sep 2016, 13:41 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
{{myshortcode field='url' output='raw'}}{{/myshortcode}}
is not supported. Only
{{myshortcode field='url' output='raw'}}


Top
 Profile  
 
PostPosted: 9. Sep 2016, 19:53 
Offline

Joined: 8. Sep 2016, 17:28
Posts: 7
Thank you for your help, I appreciate the fast replies.

I used the following syntax:
[advanced_iframe securitykey="ABCDEFG" src="{{myshortcode field='url' output='raw'}}"]

Unfortunately I get the same result:
http://www.mysite.com/my-unique-post-name/{{myshortcode field=


Top
 Profile  
 
PostPosted: 9. Sep 2016, 20:59 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
What does the shortcode alone generate?

I just tested with my simlple shortcode and there it works fine.

Best, Michael


Top
 Profile  
 
PostPosted: 9. Sep 2016, 21:59 
Offline

Joined: 8. Sep 2016, 17:28
Posts: 7
The 3rd party shortcode alone outputs a url. Your shortcode also works when I input a url in the src parameter.


Top
 Profile  
 
PostPosted: 9. Sep 2016, 23:36 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
can you provide this shortcode for testing?


Top
 Profile  
 
PostPosted: 10. Sep 2016, 00:20 
Offline

Joined: 8. Sep 2016, 17:28
Posts: 7
Absolutely! Is it possible to send it to you directly?


Top
 Profile  
 
PostPosted: 10. Sep 2016, 00:24 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
Sure: http://www.tinywebgallery.com/en/about.php

Best, Michael


Top
 Profile  
 
PostPosted: 10. Sep 2016, 00:33 
Offline

Joined: 8. Sep 2016, 17:28
Posts: 7
Thank you. I sent you the plugin files and a link to a sample post.


Top
 Profile  
 
PostPosted: 13. Sep 2016, 15:50 
Offline

Joined: 8. Sep 2016, 17:28
Posts: 7
PROBLEM SOLVED by Michael (who is awesome!)
Issue was with my install of the Advanced iFrame Pro plugin. Somehow old free version had overwritten the good Pro version. I reinstalled a fresh version and everything is beautiful. Thanks a million.
This plugin is AWESOME.
Thanks again for all your help!


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

All times are UTC + 1 hour [ DST ]


Who is online

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