Tutorial

Tested with Dolphin 6.1.4

If you do not really like the idea of providing the link or embed code for the entire world to potentially use and link to your site you can simply hide this from your members.

Screen Shot with original un-edited code:
Before


Screen Shot after editing code:
After

*Note: Someone that knows dolphin can actually still find this and enter the address directly into a browser and still watch or download the video. Even if you have your admin panel configured to only allow members to be able to watch a video.

A simple http://www.yoursite.com/ray/modules/movie/files/1.flv or 1.mpg, 2.flv, 3.flv, etc. etc. And you can watch and download all the videos you want.

This is not a dolphin issue, it's the way all scripts work. We can try to prevent it with .htaccess but the /ray/modules/module_name/files folder/directory is an odd ball that makes it difficult to achieve this.

At any rate we can remove the links and embed part of the page which will make it much more difficult for most to find the actual address. Especially the Embed part which reveals the most details.

Since this part can't be removed from displaying from within your admin panel editing a file will be necessary.

The file to edit is:
/inc/classes/BxDolSharedMedia.php

First backup the file before making any changes to the file.

Then find:

            <div id="serviceInfo">
                <div>
                    <?=_t("_Added")?>: <b><?=defineTimeInterval($aFile['medDate'])?></b>
                </div>
                <div>
                    <?=$sNumberAlt?>: <?=$aFile['medViews']?>
                </div>
                <div>
                    <?=_t("_URL")?>:
                    <input type="text" onClick="this.focus(); this.select();" readonly="true" value="<?=$this->getFileUrl($aFile['medID'], $aFile['medUri'])?>"/>
                </div>
                <div>
                    <?=_t("_Embed")?>:
                    <input type="text" onClick="this.focus(); this.select();" readonly="true" value="<?=htmlspecialchars($sEmbedCode)?>"/>
                </div>
                <div>
                    <?=_t("_Tags")?>:
                    <?=$this->getTagLinks($aFile['medTags'])?>
                </div>
                <div>
                    <?=_t("_DescriptionMedia")?>:
                    <?=$aFile['medDesc']?>
                </div>
            </div>


And remove the references to url and embed including the </div> or you will get an error.

Remove this:
                <div>
                    <?=_t("_URL")?>:
                    <input type="text" onClick="this.focus(); this.select();" readonly="true" value="<?=$this->getFileUrl($aFile['medID'], $aFile['medUri'])?>"/>
                </div>
                <div>
                    <?=_t("_Embed")?>:
                    <input type="text" onClick="this.focus(); this.select();" readonly="true" value="<?=htmlspecialchars($sEmbedCode)?>"/>
                </div>


So it would look like:

            <div id="serviceInfo">
                <div>
                    <?=_t("_Added")?>: <b><?=defineTimeInterval($aFile['medDate'])?></b>
                </div>
                <div>
                    <?=$sNumberAlt?>: <?=$aFile['medViews']?>
                </div>
               
                <div>
                    <?=_t("_Tags")?>:
                    <?=$this->getTagLinks($aFile['medTags'])?>
                </div>
                <div>
                    <?=_t("_DescriptionMedia")?>:
                    <?=$aFile['medDesc']?>
                </div>
            </div>


Save the changes and upload over-writing the original.

Visit a video page and refresh page if necessary to see the changes.

 

Any problems or if it doesn't work for you simply restore orginal backup.

 
Written By
Tutorial by: Jeremy LeSarge (AKA Ray)

I am the owner and administrator of DialMe.com. I write Tutorials for Boonex Dolphin as well as tips and resources surrounding website programming and development. I enjoy working with WordPress, SEO, and Web Hosting / Servers. I also maintain a WordPress Blog here on this site where you will find a variety of technology and webmaster resources.

Actions
Sponsored Links
Recommend