Remove video embed option on view video page

How do I remove the embed link in the video info box on the view video page?

Quote · 10 Oct 2014

I don't see a way to do this through the video module's templates; it is not added through an individual key.  You could remove the code that adds the embed code to the info form.

Geeks, making the world a better place
Quote · 10 Oct 2014

I am trying to remove the code to stop the embed code from showing. Is this where I look? 

inc/classes/BxDolFilesTemplate.php 

getBasicFileInfoForm

I can't find it.

Quote · 10 Oct 2014

OK, inside of the video module /classes/BxVideoTemplate.php find the function at line 101:

    function getCompleteFileInfoForm (&$aInfo, $sUrlPref = '')
    {
        $aMain = $this->getBasicFileInfoForm($aInfo, $sUrlPref);
        $aAdd = array('embed' => array(
                'type' => 'text',
                'value' => $this->getEmbedCode($aInfo['medID'], array('video'=>$aInfo['medExt'], 'source'=>$aInfo['medSource'])),
                'attrs' => array(
                  'onclick' => 'this.focus(); this.select();',
                  'readonly' => 'readonly',
                ),
                'caption'=> _t('_Embed')
            ),
        );
        return array_merge($aMain, $aAdd);
    }

 

Change return array_merge($aMain, $aAdd);

to:

return $aMain;

That should work.

Edit; remember to back the file up first so that you can easily revert back in the future if you desire.

Geeks, making the world a better place
Quote · 10 Oct 2014

It worked. Thank you so much.

Quote · 10 Oct 2014

Ideally there should have been an option in the Admin Settings for the mod to turn this on/off.

Paypal email is jeromemingo@gmail.com - http://www.boonex.com/market/posts/modzzz
Quote · 20 Oct 2014

 

Ideally there should have been an option in the Admin Settings for the mod to turn this on/off.

That is true and certainly easy enough to add it.  However, I am not going to bother putting in a request for this to be added with the way that Dolphin updates are moving.  There are several places where switches are needed in the admin and a few requests have been placed in Trac; however, at this time it may just be a waste of effort.

Geeks, making the world a better place
Quote · 20 Oct 2014

Hi

 

Im trying to do this on my site. How do I get to the video module /classes/BxVideoTemplate.php  cpanel?

Thanks

Quote · 2 Dec 2015
 
 
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.