• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

unable to use mms:// URL

Ryan Kent

Well-known member
#1
I want to offer the following URL as a hyperlink in a post:

mms://stream.thisisgame.com/ncsoftext/this//1UPLOAD_HERE/press/BnS_CBT1closing.wmv

I tried using
Code:
[url=mms://stream.thisisgame.com/ncsoftext/this//1UPLOAD_HERE/press/BnS_CBT1closing.wmv] watch video [/url]
The issue is the http:// tag is added as a prefix which makes it not work. Also, when using the Insert/Edit link button the http:// is also added. If I copy the link and paste it into a browser, it works. How can I offer it as a link?
 

Jake Bunce

XenForo moderator
Staff member
#2
There is no configurable option to change that behavior. You can do it with a code modification:

library/XenForo/BbCode/Formatter/Base.php

Find this code:

Code:
		if (preg_match('#^(https?|ftp)://#i', $url))
		{
			return $url;
		}
Change to this:

Code:
		if (preg_match('#^(https?|ftp|mms)://#i', $url))
		{
			return $url;
		}
Ideally you will want to make this into an addon rather than modify the files directly.

Or you can probably do it with HTML:

http://xenforo.com/community/threads/parsehtml-permission-enabled-html-bbcode.8262/
 

James

Well-known member
#4
They'd be better off making an ACP option of the valid prefixes for URLs (this way people can use http|https|ftp|skype|mms|etc).
 
B

bogus

Guest
#5
I had same issues with irc urls. Read the last post in here
Looks like as if the methode from Jake is not working anymore?