• This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
  • This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Adding more supported protocols to URL tag (e.g. http, ftp)

Jake Bunce

XenForo moderator
Staff member
(per this post)

I want to offer the following URL as a hyperlink in a post:


I tried using
[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?
There is no configurable option to change that behavior. You can do it with a code modification:


Find this code:

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

		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: