• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Remove remote file link

Started by wackmofo,

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

wackmofoTopic starter

Hi,

I would like to remove the remote file link, when the user is sharing a video. I would only keep the YouTube URL field. In which file can I find the code?

Thanks,

Tomaz
  •  

Marius P.

Hi!

com/com_share.php

Remove:
<h3>'._lang("OR").'</h3>
   <input type="text" id="vremote" name="vremote" class=" span12" value="" placeholder="'._lang("http://www.mycustomhost.com/video/rihanna-file.mp4").'">
   <span class="help-block" id="limit-text">'._lang("Remote file (direct link to .mp4,.flv file)").'</span>


lib/ajax/addVideo.php

change

//Insert video
if(_post('type') < 2) {
//if it's web link
$db->query("INSERT INTO ".DB_PREFIX."videos (`pub`,`source`, `user_id`, `date`, `thumb`, `title`, `duration`, `tags` , `views` , `liked` , `category`, `description`, `nsfw`) VALUES 
('".intval(get_option('videos-initial'))."','"._post('file')."', '".user_id()."', now() , '".$thumb."', '".toDb(_post('title')) ."', '".$sec."', '".toDb(_post('tags'))."', '0', '0','".toDb(_post('categ'))."','".toDb(_post('description'))."','".toDb(_post('nsfw'))."')");    
} else {


to
//Insert video
if(_post('type') ) {



Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

Similar topics (7)