SoundCloud BBcode Media Site [Deleted]

Over here its again the same result as with the old version.
http://soundcloud.com/johantest/tunelab-test-track-2/s-o5JRu

gets linked and repacked to
"media=soundcloud]soundcloud.com/johantest/tunelab-test-track-2/s-o5JRu[/media"

Thats all whats happening.

It must be server specific as it does the same on mine.
I have no idea why though.

this update should fix you guys up, if you still have it installed you can just replace the callback
 
@tom2tom
I would need to run a few tests on your server if you really want to use this. I for the life of me can not think off the top of my head why it wont work for you.
 
Pages with soundcloud links are loading extremely slow. Takes about 2 minutes to load the page and then soundcloud is displayed only as a link.
 
I am getting server errors on this media site, though I might have an older one installed from the big mediasite pack. Any chance on updating that soon?
 
I keep getting server errors as well. Not sure if the error below causes an error to the user as well.

Any idea what the below means?


Error Info​
ErrorException: simplexml_load_string() [<a href='function.simplexml-load-string'>function.simplexml-load-string</a>]: Entity: line 1: parser error : Start tag expected, '&lt;' not found - library/MediaSites/Soundcloud.php:14
Generated By: Unknown Account, Today at 8:08 AM

Stack Trace​
#0 [internal function]: XenForo_Application::handlePhpError(2, 'simplexml_load_...', '/var/sites/w/we...', 14, Array)
#1 /var/sites/w/wearepopslags.com/public_html/forum/library/MediaSites/Soundcloud.php(14): simplexml_load_string(' ')
#2 [internal function]: MediaSites_Soundcloud::buildEmbed('71071832', Array)
#3 /var/sites/w/wearepopslags.com/public_html/forum/library/XenForo/BbCode/Formatter/Base.php(1572): call_user_func_array(Array, Array)
#4 /var/sites/w/wearepopslags.com/public_html/forum/library/XenForo/BbCode/Formatter/Base.php(1537): XenForo_BbCode_Formatter_Base->_getMediaSiteHtmlFromCallback('71071832', Array)
#5 [internal function]: XenForo_BbCode_Formatter_Base->renderTagMedia(Array, Array, Object(Tinhte_XenTag_XenForo_BbCode_Formatter_Base))
#6 /var/sites/w/wearepopslags.com/public_html/forum/library/XenForo/BbCode/Formatter/Base.php(646): call_user_func(Array, Array, Array, Object(Tinhte_XenTag_XenForo_BbCode_Formatter_Base))
#7 /var/sites/w/wearepopslags.com/public_html/forum/library/XenForo/BbCode/Formatter/Base.php(557): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#8 /var/sites/w/wearepopslags.com/public_html/forum/library/XenForo/BbCode/Formatter/Base.php(481): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#9 /var/sites/w/wearepopslags.com/public_html/forum/library/XenForo/BbCode/Formatter/Base.php(462): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#10 /var/sites/w/wearepopslags.com/public_html/forum/library/XenForo/BbCode/Formatter/Base.php(442): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#11 /var/sites/w/wearepopslags.com/public_html/forum/library/XenForo/BbCode/Parser.php(505): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#12 /var/sites/w/wearepopslags.com/public_html/forum/library/XenForo/ViewPublic/Forum/View.php(61): XenForo_BbCode_Parser->render('View attachment 264
 
I had problems awhile ago with this and it actually took my entire site offline. I had no problems using AME on vbulletin with soundcloud so this is kind of disappointing for a music oriented site.

Here was the match
Code:
http://[w\.]*soundcloud\.com/(
[\w-]+)/(?!sets/)([\w-]+)
and the replacement
Code:
<center><object height="81" width="40%">
<param name="movie" value="http://player.soundcloud.com/player.swf?url=http://www.soundcloud.com/$p1/$p2"></param>
<param name="allowscriptaccess" value="always"></param>
<param name="wmode" value="transparent"></param>
<embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http://www.soundcloud.com/$p1/$p2" type="application/x-shockwave-flash" width="50%" wmode="transparent"></embed></object><br />
<span style="text-align:center" class="smallfont"><a href="$ameinfo[url]">$ameinfo[title]</a></span>

I wish XF supported the ability to match multiple calls ($p1/$p2) :(
 
I have this installed and working great with the exception of what ever is posted does not play, any advice??
 
I received this error :unsure:

Code:
Error Info

ErrorException: Trying to get property of non-object - library/MediaSites/Soundcloud.php:15
Generated By: Unknown Account, Wednesday at 5:08 PM

Stack Trace

#0 /var/www/vhosts/xf124/httpdocs/library/MediaSites/Soundcloud.php(15): XenForo_Application::handlePhpError(8, 'Trying to get p...', '/var/www/vhosts...', 15, Array)
#1 [internal function]: MediaSites_Soundcloud::buildEmbed('soundcloud.com/...', Array)
#2 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(1590): call_user_func_array(Array, Array)
#3 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(1555): XenForo_BbCode_Formatter_Base->_getMediaSiteHtmlFromCallback('soundcloud.com/...', Array)
#4 [internal function]: XenForo_BbCode_Formatter_Base->renderTagMedia(Array, Array, Object(Tinhte_XenTag_XenForo_BbCode_Formatter_Base))
#5 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(664): call_user_func(Array, Array, Array, Object(Tinhte_XenTag_XenForo_BbCode_Formatter_Base))
#6 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(575): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#7 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(488): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#8 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(469): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#9 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(449): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#10 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Parser.php(505): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#11 /var/www/vhosts/xf124/httpdocs/library/DescriptionContentRss/ViewPublic/Forum/View.php(52): XenForo_BbCode_Parser->render('Ishq Bey Parwa ...')
#12 /var/www/vhosts/xf124/httpdocs/library/XenForo/ViewRenderer/Abstract.php(227): DescriptionContentRss_ViewPublic_Forum_View->renderRss()
#13 /var/www/vhosts/xf124/httpdocs/library/XenForo/ViewRenderer/Rss.php(31): XenForo_ViewRenderer_Abstract->renderViewObject('XenForo_ViewPub...', 'Rss', Array, 'forum_view')
#14 /var/www/vhosts/xf124/httpdocs/library/XenForo/FrontController.php(582): XenForo_ViewRenderer_Rss->renderView('XenForo_ViewPub...', Array, 'forum_view', NULL)
#15 /var/www/vhosts/xf124/httpdocs/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Rss), Array)
#16 /var/www/vhosts/xf124/httpdocs/index.php(13): XenForo_FrontController->run()
#17 {main}

Request State

array(3) {
  ["url"] => string(88) "http://xf124.com/forums/audio-video-songs.16/index.rss"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
I received this error :unsure:

Code:
Error Info

ErrorException: Trying to get property of non-object - library/MediaSites/Soundcloud.php:15
Generated By: Unknown Account, Wednesday at 5:08 PM

Stack Trace

#0 /var/www/vhosts/xf124/httpdocs/library/MediaSites/Soundcloud.php(15): XenForo_Application::handlePhpError(8, 'Trying to get p...', '/var/www/vhosts...', 15, Array)
#1 [internal function]: MediaSites_Soundcloud::buildEmbed('soundcloud.com/...', Array)
#2 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(1590): call_user_func_array(Array, Array)
#3 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(1555): XenForo_BbCode_Formatter_Base->_getMediaSiteHtmlFromCallback('soundcloud.com/...', Array)
#4 [internal function]: XenForo_BbCode_Formatter_Base->renderTagMedia(Array, Array, Object(Tinhte_XenTag_XenForo_BbCode_Formatter_Base))
#5 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(664): call_user_func(Array, Array, Array, Object(Tinhte_XenTag_XenForo_BbCode_Formatter_Base))
#6 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(575): XenForo_BbCode_Formatter_Base->renderValidTag(Array, Array, Array)
#7 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(488): XenForo_BbCode_Formatter_Base->renderTag(Array, Array, 0)
#8 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(469): XenForo_BbCode_Formatter_Base->renderTreeElement(Array, Array, 0)
#9 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Formatter/Base.php(449): XenForo_BbCode_Formatter_Base->renderSubTree(Array, Array)
#10 /var/www/vhosts/xf124/httpdocs/library/XenForo/BbCode/Parser.php(505): XenForo_BbCode_Formatter_Base->renderTree(Array, Array)
#11 /var/www/vhosts/xf124/httpdocs/library/DescriptionContentRss/ViewPublic/Forum/View.php(52): XenForo_BbCode_Parser->render('Ishq Bey Parwa ...')
#12 /var/www/vhosts/xf124/httpdocs/library/XenForo/ViewRenderer/Abstract.php(227): DescriptionContentRss_ViewPublic_Forum_View->renderRss()
#13 /var/www/vhosts/xf124/httpdocs/library/XenForo/ViewRenderer/Rss.php(31): XenForo_ViewRenderer_Abstract->renderViewObject('XenForo_ViewPub...', 'Rss', Array, 'forum_view')
#14 /var/www/vhosts/xf124/httpdocs/library/XenForo/FrontController.php(582): XenForo_ViewRenderer_Rss->renderView('XenForo_ViewPub...', Array, 'forum_view', NULL)
#15 /var/www/vhosts/xf124/httpdocs/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_Rss), Array)
#16 /var/www/vhosts/xf124/httpdocs/index.php(13): XenForo_FrontController->run()
#17 {main}

Request State

array(3) {
  ["url"] => string(88) "http://xf124.com/forums/audio-video-songs.16/index.rss"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
I've got the same error.
 
Top Bottom