I'd like to know this too.Working on Xenforo 1.3.2! But how to control size (width and height) when it display?
Yes, that is exactly my issue. I don't mind the full width, but it only needs to be as high as the audio waveform.please fix widht and height on this plugin its very ugly http://mostarskafronta.info/index.php?threads/monstruozna-vijest-iz-doboja.290/
<?php
class MediaSites_Soundcloud
{
public static function buildEmbed($mediaKey, array $site)
{
$urlKey = urlencode($mediaKey);
$scUrl = 'http://soundcloud.com/oembed?iframe=true&url=http%3A%2F%2F' . $urlKey;
$datas = @file_get_contents($scUrl);
$xObj = simplexml_load_string($datas);
$embedHtml5 = $xObj->html;
if (isset($embedHtml5)) {
return $embedHtml5;
}
else return '<a href="http://' . $mediaKey . '">http://' . $mediaKey . '</a>';
}
}
what if change true to false??
PHP:<?php class MediaSites_Soundcloud { public static function buildEmbed($mediaKey, array $site) { $urlKey = urlencode($mediaKey); $scUrl = 'http://soundcloud.com/oembed?iframe=true&url=http%3A%2F%2F' . $urlKey; $datas = @file_get_contents($scUrl); $xObj = simplexml_load_string($datas); $embedHtml5 = $xObj->html; if (isset($embedHtml5)) { return $embedHtml5; } else return '<a href="http://' . $mediaKey . '">http://' . $mediaKey . '</a>'; } }
Yes, but I don't have time to test it though so I will paste it in here in hopes that you can check it out and let me know if it works for you. If it does I will upload an update at some point.Hi, thanks for this addon.
Is it possible to make it smaller?
<?php
class MediaSites_Soundcloud
{
public static function buildEmbed($mediaKey, array $site)
{
$urlKey = urlencode($mediaKey);
if(preg_match('#/sets/#siu', $mediaKey, $large)){ $mh = '305'; }else{ $mh = '81'; }
$scUrl = 'http://soundcloud.com/oembed?iframe=true&url=http%3A%2F%2F' . $urlKey . '&maxheight=' . $mh;
$datas = @file_get_contents($scUrl);
$xObj = simplexml_load_string($datas);
$embedHtml5 = $xObj->html;
if (isset($embedHtml5)) {
return $embedHtml5;
}
else return '<a href="http://' . $mediaKey . '">http://' . $mediaKey . '</a>';
}
}
If you already have this installed just upload the files, otherwise update as normal.
Did you happen to swap the file in this post https://xenforo.com/community/threads/soundcloud-bbcode-media-site.48613/page-4#post-832656Is it possible to make the Window width="500" height="300" ?
I will be removing this shortly so please grab the newest as fast as you can. Thanks.Is it possible to make the Window width="500" height="300" ?
Just upload the folders/file if you already have this installed
.scWrapper {
max-width: 500px;
}
WelcomeThank you...
That is really sadThis resource has been removed and is no longer available for download.
We use essential cookies to make this site work, and optional cookies to enhance your experience.