remove/disable the url and embed link

Hi,

Is there a way to remove/disable the url and embed link codes on the videos/view page ?

Thanks!

Quote · 19 Apr 2010

you know the solution

Quote · 19 Apr 2010

You can remove Main Video Info block from the page builder Laughing

Quote · 19 Apr 2010

But here's how to do it.


To remove the URL you will have to remove the link site-wide, it is not a module-specific function.

Open BxDolFilesTemplate.php (inc/classes/ folder)

Find around line 82 : function getBasicFileInfoForm

In the function remove these lines of code:

'url' => array(
'type' => 'text',
'value' => $sUrlPref . 'view/' . $aInfo['medUri'],
'attrs' => array(
'onclick' => 'this.focus(); this.select();',
'readonly' => 'readonly',
),
'caption'=> _t('_URL')
),

That will remove the URL info.

To remove the embed link, open BxVideosTemplate.php (modules/boonex/videos/classes/ folder)

Line 113 find this code:         return array_merge($aMain, $aAdd);

change to:

return array_merge($aMain);

Quote · 19 Apr 2010

perfect - thank you very much for your help

Quote · 19 Apr 2010

I have the lastest version of dolpin installed and when i make the changes to BxDolFilesTemplate as directed I get this error

 

Warning: Division by zero in /home/myadult/public_html/inc/classes/BxDolPaginate.php on line 202

Warning: Cannot modify header information - headers already sent by (output started at /home/myadult/public_html/inc/classes/BxDolPaginate.php:202) in /home/myadult/public_html/inc/design.inc.php on line 133


Can someone help me correct this?

Thanks


object { display: none; }

Quote · 11 Dec 2010

I made the changes - in D7.0.4 - I have no error - maybe you made a mistake

Enclosed is a source file - BxDolFilesTemplate.php - with the change

BxDolFilesTemplate.php · 16.7K · 97 downloads
Bosun / Moderator -- My Products : http://www.boonex.com/market/posts/danielmarseille
Quote · 12 Dec 2010
 
 
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.