I need to add in my forum BBcode for opening a link to a folder or file on the surver in local network for example "\\Pavel-pc\public\Flash", but with URL tag it wont open, couse it's not http://
Thanks!
BBcode for opening a link in local network
Forum rules
Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here. Feature requests are closed.
Discuss features as they are added to the new version. Give us your feedback. Don't post bug reports, feature requests, support questions or suggestions here. Feature requests are closed.
Re: BBcode for opening a link in local network
Same here. We're using phpbb3 on our intranet only, so I need to have the ability to link to file shares on servers...
Haven't been able to do it yet...
Haven't been able to do it yet...
Re: BBcode for opening a link in local network
I got this format to work, but only in Internet explorer. It doesn't work in firefox or chrome. I haven't tested it in Safari, Opera, etc.
Code: Select all
[url=file://servername/fileshare/file.html]LAN link[/url]
Re: BBcode for opening a link in local network
The proper URI for a network share would be file://servername/fileshare/file.html -- however Firefox at least, will not open "file:"-links from a remote host, for security reasons. You can trick it, by referring to localhost, and then redirecting it to the remote host. You can do this by using file://localhost///servername/fileshare/file.html ("localhost/" can be shortened to just "/" so file://///servername/fileshare/file.html will work).
However, for security reasons, Firefox will never open "file:"-links from a page fetched using another protocol, so "file:"-links WILL NEVER WORK from a phpBB forum -- at least not with Firefox, and most likely not with most other browsers either.
You should do one of the following:
http://en.wikipedia.org/wiki/Uniform_Re ... Identifier
However, for security reasons, Firefox will never open "file:"-links from a page fetched using another protocol, so "file:"-links WILL NEVER WORK from a phpBB forum -- at least not with Firefox, and most likely not with most other browsers either.
You should do one of the following:
- Upload the file to an internal webserver and link to it
- Attach it to the forum post
- Instruct your users to manually locate the file or copy/paste the link
- Instruct your users to use Internet Explorer for the intranet forum
http://en.wikipedia.org/wiki/Uniform_Re ... Identifier
- callumacrae
- Former Team Member
- Posts: 1046
- Joined: Tue Apr 27, 2010 9:37 am
- Location: England
- Contact:
Re: BBcode for opening a link in local network
://////////Kolthor wrote:You can do this by using file://localhost///servername/fileshare/file.html ("localhost/" can be shortened to just "/" so file://///servername/fileshare/file.html will work).
I never knew that, thanks
~Callum
Re: BBcode for opening a link in local network
Hi,
that file://localhost stuff works great. My problem is that my users are copying and pasting the adress from the windows explorer. So I need a bbcode that's adding "file://localhost/" at the start and what's changing windows backslashes into the correct slashes. Can anybody help me?
Regards, Conrad
that file://localhost stuff works great. My problem is that my users are copying and pasting the adress from the windows explorer. So I need a bbcode that's adding "file://localhost/" at the start and what's changing windows backslashes into the correct slashes. Can anybody help me?
Regards, Conrad