• Whenever I update my WordPress Network site I have a few blogs that were linking to network file servers using file://. In the past I would modify the formatting.php page to include file:// within the $protocols = array field. It looks like this entire php file formatting was changed in 3.3.1 so I am wondering what is the easiest way to enable a user to add a link to a file share since I can’t get the file:// method to work?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter D8TA

    (@d8ta)

    No one has any advise on how to fix this with the new code?

    Thread Starter D8TA

    (@d8ta)

    I located another file in /wp-includes/functions.php that has the allowed protocols. I added ‘file’ to the list but still doesn’t work. I really need to be able to create links to files on our internal file servers with this latest version but nothing is working.

    Thread Starter D8TA

    (@d8ta)

    I think I got this working but it doesn’t work for the link manager links. From some other topics the link-manager.php file needs to be edited but I don’t see it in 3.3.1.

    Anyone else using WordPress internally to link to different file shares so users can browse your blog and click links which open up specific files hosted on a file server like docs, etc

    I’m trying to accomplish the same thing, and so far have been only partially successful.

    I’ve found that trying to link to an internal network file server (Windows 2003 or 2008 R2), I’m able to make the link work from a Macintosh if I use the “SMB” protocol. The following syntax works:

    “smb://servername/sharename”

    SMB, however, is apparently not supported under Windows 7.

    Following suggestions made by other users of this forum, I’ve tried the form “file://servername/sharename” and “file://///servername/sharename”, but to no avail.

    The WP site in question is an Intranet site – so entirely internal to the company involved. The file servers I’m trying to access are local as well. The fact that SMB works just fine from a Mac (I’m prompted for my server login credentials and then the Mac Finder mounts the share and displays its files), establishes the fact that this is not a permissions issue, or a networking issue of some sort.

    I have also looked at the functions.php file, but haven’t been able to find the place where one edits the “allowed protocols” to include “file.”

    D8TA, if you could point me in the right direction on this last count, I’d very much appreciate that.

    Others – any ideas?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add file:// link in post’ is closed to new replies.