Removing some upload options.

Hello All,


Does anyone know how I can remove all options (besides Embed) under the videos upload section?

Here is a picture of what I'm talking about:

Quote · 17 Jan 2010

I asked this same question a few days ago, with no reply.  Maybe you'll get a better response rate, I hope...

newbreed
Quote · 18 Jan 2010

I asked this same question a few days ago, with no reply.  Maybe you'll get a better response rate, I hope...

I hope so too :)

Quote · 18 Jan 2010

Hello everybody!

Sometime ago detailed answer on this question, but can't find it. Ok, again:


For deleting unnecessary upload options from any of BoonEx uploaders need to delete elements from array, which is returned by getUploaderSwitcher method of Bx(ModuleName)Config.php file. If current module hasn't this method (like in BxVideosConfig.php) then method should be completely redeclared - u may see detailed example in Files module, see file modules/boonex/classes/BxFilesConfig.php - it has less uploaders than other.


Regards

Quote · 18 Jan 2010

@LeonidS

HI..

As u said the Bxvideosconfig.php has no "getUploaderSwitcher method". I just gave a look at the same in Files module which has this method referenced. Wat can be the exact tweek to add the youtube embed option to this as i have shown below,

function getUploaderSwitcher ($sLink = '') {
return array(
_t('_adm_admtools_Flash') => array('active' => !isset($_REQUEST['mode']) ? true : false, 'href' => $sLink),
_t('_bx_' . $this->getUri() . '_regular') => array('active' => $_REQUEST['mode'] == 'single' ? true : false, 'href' => $sLink . "&mode=single"),
);
}

Thanks in advance.

Quote · 18 Jan 2010

Leave there only this element:

_t('_' . $this->sPrefix . '_embed') => array('active' => $_REQUEST['mode'] == 'embed' ? true : false, 'href' => $sLink . "&mode=embed"),


Regards

Quote · 18 Jan 2010

If someone made a mod for this, I think a lot of people would buy it!

newbreed
Quote · 20 Jan 2010

I did remove "Flash, Regular, and Record" just fine but the problem is the default as shown above is Flash even though embed is sleeted. Is there anywhere I can make the default as Embed?

Here is a picture:

Quote · 20 Jan 2010

I did remove "Flash, Regular, and Record" just fine but the problem is the default as shown above is Flash even though embed is sleeted. Is there anywhere I can make the default as Embed?

Here is a picture:

open "/inc/classes/BxDolFilesUploader.php" file

find
------------------------------------------
$sForm = $this->getMultiUploadFormFile();
------------------------------------------

Replace it with below code
------------------------------------------
//$sForm = $this->getMultiUploadFormFile();
$sForm = $this->getEmbedFormFile();
------------------------------------------

This modification will make the default as Embed

Hope this helps

Looking for Help? http://www.boonex.com/kevinmitnick
Quote · 20 Jan 2010

I did remove "Flash, Regular, and Record" just fine but the problem is the default as shown above is Flash even though embed is sleeted. Is there anywhere I can make the default as Embed?

Here is a picture:

open "/inc/classes/BxDolFilesUploader.php" file

find
------------------------------------------
$sForm = $this->getMultiUploadFormFile();
------------------------------------------

Replace it with below code
------------------------------------------
//$sForm = $this->getMultiUploadFormFile();
$sForm = $this->getEmbedFormFile();
------------------------------------------

This modification will make the default as Embed

Hope this helps

That did the job! Thanks very much :)

Quote · 20 Jan 2010

;:) i like to remove embed videos. What should I do for this

brunno
Quote · 5 Oct 2011

LOL what is this???????????

go to administration panel - modules - videos - settings(in the top) - scroll down - Available uploaders

select what you want......

Good luck :)

so much to do....
Quote · 5 Oct 2011
 
 
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.