View Full Version : Ability to turn of upload video (local)
Peter Jonsson
December 3, 2012, 09:13 AM
I want to have the ability to turn off the upload video localy, i only want to have the youtube thing and maybe you can ad something more like vimeo etc etc
Vladimir
December 4, 2012, 06:01 AM
Hello,
You should remove (or disable) the local video option:
- open the file: templates/your_template/tpl/blocks/video_upload.tpl
- find this code:
<select id="video_type" name="type" >
<option value="">{$lang.select}</option>
<option {if $smarty.post.type == 'youtube'}selected="selected"{/if} value="youtube">{$lang.youtube}</option>
<option {if $smarty.post.type == 'local'}selected="selected"{/if} value="local">{$lang.local}</option>
</select>
and change it to:
<select id="video_type" name="type" >
<option value="">{$lang.select}</option>
<option {if $smarty.post.type == 'youtube'}selected="selected"{/if} value="youtube">{$lang.youtube}</option>
</select>
Sui soon Chua
May 20, 2013, 03:41 PM
Hi, Thanks to Vladimir.
Nguyen Dat tai
June 8, 2013, 11:52 AM
Can i add this?
<option {if $smarty.post.type == 'vimeo'}selected="selected"{/if} value="vimeo">{$lang.vimeo}</option>
Ramu Palanisamy
February 20, 2019, 12:13 PM
Hello,
You should remove (or disable) the local video option:
- open the file: templates/your_template/tpl/blocks/video_upload.tpl
- find this code:
<select id="video_type" name="type" >
<option value="">{$lang.select}</option>
<option {if $smarty.post.type == 'youtube'}selected="selected"{/if} value="youtube">{$lang.youtube}</option>
<option {if $smarty.post.type == 'local'}selected="selected"{/if} value="local">{$lang.local}</option>
</select>
and change it to:
<select id="video_type" name="type" >
<option value="">{$lang.select}</option>
<option {if $smarty.post.type == 'youtube'}selected="selected"{/if} value="youtube">{$lang.youtube}</option>
</select>
Hello Why this code not working? I want to have the ability to turn off the upload video locally.
Ramu Palanisamy
February 21, 2019, 05:50 AM
Any Idea???
Bahram Soltanirad
February 21, 2019, 07:00 AM
As i know, the mentioned code is no longer using in flynax script.
It seems there is no way with current version 4.7 and you need customization by flynax team.
Ramu Palanisamy
February 21, 2019, 07:10 AM
As i know, the mentioned code is no longer using in flynax script.
It seems there is no way with current version 4.7 and you need customization by flynax team.
Thank You...Bahram Soltanirad.,
But for everything customization by flynax team..is not good.. :O:O:O
Bahram Soltanirad
February 21, 2019, 08:54 AM
There is a temporary solution:
Go to: templates/your_template_name/controllers/add_listing/step.photo.tpl
Find:
var video_file_types = 'mp4|flv';
Replace with:
var video_file_types = ' ';
OR
Replace with:
var video_file_types = 'jpg';
Find:
interface.append(' ' + lang['video']);
replace with:
interface.append(' ');
Find:
interface.append(' ' + lang['or'] + ' ');
Replace with:
// interface.append(' ' + lang['or'] + ' ');
Save and check again
Ramu Palanisamy
February 21, 2019, 09:54 AM
There is a temporary solution:
Go to: templates/your_template_name/controllers/add_listing/step.photo.tpl
Find:
var video_file_types = 'mp4|flv';
Replace with:
var video_file_types = ' ';
OR
Replace with:
var video_file_types = 'jpg';
Find:
interface.append(' ' + lang['video']);
replace with:
interface.append(' ');
Find:
interface.append(' ' + lang['or'] + ' ');
Replace with:
// interface.append(' ' + lang['or'] + ' ');
Save and check again
Thank You...Bahram Soltanirad.. I will try this
Also I found other option as below link I dont this will work or not..
https://forum.flynax.com/showthread.php?3770-Disable-local-video-option-in-admin&p=24999#post24999
Ramu Palanisamy
February 22, 2019, 04:02 AM
There is a temporary solution:
Go to: templates/your_template_name/controllers/add_listing/step.photo.tpl
Find:
var video_file_types = 'mp4|flv';
Replace with:
var video_file_types = ' ';
OR
Replace with:
var video_file_types = 'jpg';
Find:
interface.append(' ' + lang['video']);
replace with:
interface.append(' ');
Find:
interface.append(' ' + lang['or'] + ' ');
Replace with:
// interface.append(' ' + lang['or'] + ' ');
Save and check again
Hi Bahram Soltanirad, This code is working fine for me..Thank you very much..But I DONT Know why you said temporary solution. Please explain
Wei Hong
February 22, 2019, 04:12 AM
Hi Bahram Soltanirad, This code is working fine for me..Thank you very much..But I DONT Know why you said temporary solution. Please explain
I think he meant unofficial and that it's done by editing template
Ramu Palanisamy
February 22, 2019, 05:04 AM
I think he meant unofficial and that it's done by editing template
oh..Ok Thank You Wei Hong..
Powered by vBulletin® Version 4.1.9 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.