Shared Music: turn off embed code

On my shared music pages each file has an embed code that allows other sites to steal my bandwidth by embeding the files from my site.

How do I hide this?

I dont want to hid the whole _File Information block.

Thanks

Dan V

Quote · 9 Sep 2008

inc/classes bxdolsharedmedia.php

function showFileInfo

find and remove:

<div>
<?=_t("_Embed")?>:
<input type="text" onClick="this.focus(); this.select();" readonly="true" value="<?=htmlspecialchars($sEmbedCode)?>"/>
</div>

global so...this removes all embed codes from vids also

I have video tutorials to help you mrpowless.com
Quote · 9 Sep 2008

This is awesome I'm going to try this right now! Thanks mrpowless!!!

PS Worked Perfect...

Quote · 9 Sep 2008

Thanks Mr P

Your a treasure !

Im sure it will work :-)

DV

Quote · 9 Sep 2008

Hi there

What line or code would I need to remove to remove the URL link in the same Music Window please, I don't wanna mess anything so would rather ask .. thanks

Quote · 10 Sep 2008

In the

inc/classes bxdolsharedmedia.php file comment out:
<div>

<?=_t("_URL")?>:

<input type="text" onClick="this.focus(); this.select();" readonly="true" value="<?=$this->getFileUrl($aFile['medID'], $aFile['medUri'])?>"/>

</div>

"Comment out" means to place "//" (without quotes) at the beginning of each line  ..... 
OR
add */ before the first line of a block of code you want to comment out and /* just after the last line  ..... 
That comments out the entire block  ..... 
.

Quote · 10 Sep 2008

Comment out:

<div>

<?=_t("_URL")?>:

<input type="text" onClick="this.focus(); this.select();" readonly="true" value="<?=$this->getFileUrl($aFile['medID'], $aFile['medUri'])?>"/>

</div>

Thanks a stack !!

Richard

Quote · 10 Sep 2008

Commenting out does not work. It only works if you delete the code MrP gave here. And to delete the LINK as well as the EMBED code...you will need to delete the following:


<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>

Quote · 11 Aug 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.