Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Soundcloud embedding?
Avatar
Stuart McHugh
Member
Free Members
sp_UserOfflineSmall Offline
Feb 14, 2013 - 11:37 am

Having some difficulty embedding Soundcloud links as it seems they're not on Wordpress' oembed list. I also saw another thread saying that iframe embedding is disallowed due to security issues (that's how I usually do it within the WP area of the site)

The way round this *seems* to be to install the Jetpack plugin which provides Wordpress.com functionality in your self-hosted blog. And indeed, the shortcodes seem to work fine - e.g. [soundcloud url="https://soundcloud.com/macgirvin/bittyblue" /]

However, this functionality doesn't seem to carry through into Simple:Press (you just get a blank post). I guess the Jetpack stuff doesn't operate under the Simple:Press area (I'm never quite sure where one stops and the other starts).

More info, or to muddy the waters further - the Soundcloud-supplied embed code usually is of the form [soundcloud url="http://api.soundcloud.com/tracks/38463994" params="" width=" 100%" height="166" iframe="true" /]

However, setting iframe to false makes no difference (docs suggest it should give you the Adobe Flash widget rather than the html5 iframe).

As the old saying goes, "any ideas?"

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 14, 2013 - 1:28 pm

Well to get the shortcode to work you would need to add it to the shortcode whitelist in the forum admin > Options > Content Settings. So that might be worth a try...

For the record, when you write a blog post there is no problem using an iFrame as you, the author, are the only person who can effect the content of that iFrame. You are in control of what URL is used to populate it.

When it comes to forum posts you are opening up that control to all of your users. A suitably constructed script placed in an iFrame url can destroy your site, wipe your data... you name it.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stuart McHugh
Member
Free Members
sp_UserOfflineSmall Offline
Feb 20, 2013 - 6:20 pm

cheers, the shortcode whitelisting sorted it. Youtube seems to be available automatically by just putting in the video url. Not tried bandcamp yet.

Point taken on the iframe code sabotage !

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 20, 2013 - 6:55 pm

thanks for the update...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625