Notifications
Clear all

Using shortcode from other app in advanced iframe

4 Posts
2 Users
0 Likes
519 Views
Posts: 12
Topic starter
(@morbificagent)
Eminent Member
Joined: 2 years ago

Hi there,

i am trying to get an videoplayer working inside of an iframe. itself has the shortcode:

[fwdevp preset_id="skin_live_ch01_mobile" video_path="{source:'encrypt:aHR0cHM6Ly9tZWV0LmJpdC1saW5rLmRlL2xpdmUvNjA5ZWEwNmViMjQ0NC==' , label:'Adaptive', videoType:'hlsLiveStream', isLive:'yes', isPrivate:'no'}" start_at_video="1" playback_rate_speed="1"]

 

I read that i have to replace [ with {{ and " with ' but this wont work here.

Is it to complex with its existing ' or can i get it to work somehow?

 

Many Thanks

Alex 

3 Replies
TinyWebGallery
Posts: 880
Admin
(@admin)
Prominent Member
Joined: 15 years ago

I think the one above is not possible as you need " and ' to have it valid. 

As this shortcode is then a "sub shortcode" of mine the " are already needed by the shortcode of my plugin. I think additional replace chars would have to be added. e.g. " could be like _|_  and replaced after. 

So if you like to modify the code a little bit you can make it work.  open includes/advanced-iframe-main-helper.php and look for 

$str_input = str_replace('}}', "]", $str_input);
$str_input = do_shortcode($str_input);

there you can add e.g. 
$str_input = str_replace('_|_', '"', $str_input);

and then replace all " with _|_ in your shortcode

Best regards,
Michael

Reply
Posts: 12
Topic starter
(@morbificagent)
Eminent Member
Joined: 2 years ago

Hi Michael, 

It's working great! Many thanks for your help! 

Reply
TinyWebGallery
Posts: 880
Admin
(@admin)
Prominent Member
Joined: 15 years ago

I will add this also to the next version. So if you update is will still work. 

Reply