• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] 2 Questions

Started by Bob.Weston,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bob.WestonTopic starter

Hi,

1. What file and code do I need to change to make the default visibility for files being uploaded be "Users Only" Instead of "Everybody"?

2. Is it possible to implement a multiple image upload easily? Uploading 1 image at a time can get old :(

Thanks

Bob
  •  

Marius P.

Hi Bob,
1. You use ffmpeg? If so videocron.php one of the queries for update, jut drop an
privacy='1'

2. Uploader allows this, but processing has to be re-coded. Kinda hard to attach details to multi-uploaded images? We actually plan to make an image upload script next, since is heavilly requested, in PHPVibe we focus on video primarily.
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!
  •  

Bob.WestonTopic starter

Quote from: @Mario on
Hi Bob,
1. You use ffmpeg? If so videocron.php one of the queries for update, jut drop an
privacy='1'

2. Uploader allows this, but processing has to be re-coded. Kinda hard to attach details to multi-uploaded images? We actually plan to make an image upload script next, since is heavilly requested, in PHPVibe we focus on video primarily.

Hi Mario,

I do use FFMPEG and opened the videocron.php but fail to find any privacy settings in there.
What I am talking about is when uploading a video or image, there is a radio button to set the visibility (see picture). I want this to default to "Users Only"


As far as the image multiple upload, a good start for this would be to be able to multi upload more than one image pertaining to the same description.
For example a kids birthday party has 50 images to upload.. would be nice to upload all 50 at once into it's own channel with one description instead of uploading 50 separate all with the same description.
  •  

Marius P.

Hi, example:

// Update so far
$db->query("UPDATE  ".DB_PREFIX."videos SET thumb='".$thumb."', source='".$source."', pub = '".intval(get_option('videos-initial'))."'  WHERE id = '".intval($cron->id)."'");



to

// Update so far
$db->query("UPDATE  ".DB_PREFIX."videos SET thumb='".$thumb."', source='".$source."', pub = '".intval(get_option('videos-initial'))."', privacy = '1'  WHERE id = '".intval($cron->id)."'");



privacy is default set 0 by the sql field definition.
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!
  •  

Bob.WestonTopic starter

I added it and now the images don't even upload..

is it possible you tell me where the radio button for visibility is located in the php?
  •  

Bob.WestonTopic starter

nevermind.. I found what I was looking for as far as images.. it is in com_image.php

<div class="controls">
	<label class="radio inline"><input type="radio" name="priv" class="styled" value="1"> '._lang("Users only").' </label>
	<label class="radio inline"><input type="radio" name="priv" class="styled" value="0" checked>'._lang("Everybody").' </label>
	</div>


changed it to

<div class="controls">
	<label class="radio inline"><input type="radio" name="priv" class="styled" value="1" checked> '._lang("Users only").' </label>
	<label class="radio inline"><input type="radio" name="priv" class="styled" value="0">'._lang("Everybody").' </label>
	</div>


I am guessing it will be the same for videos and mp3 in different files
  •  

Marius P.

com_music.php
com_share.php
com_add.php

Submision files are this ones.
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)