• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Share Form Modification

Started by TheBritain,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TheBritainTopic starter

This is going to probably be the dumb question of the year, but after surfing around for a while in the code, I can't seem to find the video upload form. I found the edit video form, but not the one shown when you are uploading/adding a video.

If someone could point me to this, it would be very helpful. Thanks!
  •  

ollipaust

  •  

TheBritainTopic starter

It would seem editing com/com_add.php has no effect.

Thanks for the tip though.

I did clear the cache.
  •  

ollipaust

Quote from: TheBritain on
It would seem editing com/com_add.php has no effect.

Thanks for the tip though.

I did clear the cache.

what you wanna do? edit the uploader itself? or just the page?
if you want to edit the uploader, u probably have to edit lib/maxupload.js

but its mostly javascript so be sure not to make errors
  •  

TheBritainTopic starter

I want to edit the form to set the input field for duration to hidden. I do not want them to be able to edit the duration. So instead of re-coding, I am just going to hide the field itself and make sure it always populates.
  •  

TheBritainTopic starter

Alright, I think, com_add.php if for uploading videos and add-video is for linked videos. Still searching.
  •  

ollipaust

Quote from: TheBritain on
Alright, I think, com_add.php if for uploading videos and add-video is for linked videos. Still searching.

i can only suggest you downloading "notepad++" for windows or "textwrangler" for mac, since both
editors supports multi-file search, which means you can find keywords through a whole folder.

i do not know which "duration" you mean... is it at upload or when you edit a video? i can only see it when i edit a video, theres no such element when i upload a video

  •  

TheBritainTopic starter

I actually use notepad++ already. I am slowly working through the code, though I've hit a new problem which is requiring my attention. All-in-all though, the code is mostly simple to work through.
  •  

PHPVibe A.

com/com_add.php shows on ffmpeg disabled:

if(get_option('ffa','0') <> 1 ) {
	$data .= '<div class="control-group">
	<label class="control-label">'._lang("Thumbnail:").'</label>
	<div class="controls"> <input type="file" name="play-img" id="play-img" class="validate[required] styled"></div>
	</div>
	<div class="control-group">
	<label class="control-label">'._lang("Duration:").'</label>
	<div class="controls">
<div class="row-fluid">
<div class="span4">
<input type="number" min="00" max="59" name="hours" class="span12" value="00"><span class="help-block">Hours format: hh</span>
</div>
<div class="span4">
<input type="number" name="minutes" min="00" max="59" class="span12" value="00"><span class="help-block align-center"> Minutes format: mm</span>
</div>
<div class="span4">
<input type="number" name="seconds" min="01" max="59" class="span12" value="00"><span class="help-block align-center">Seconds format: ss</strong></span>
</div>
</div>
	</div>
	</div>';
	}


com/com_share.php (for web embeds):

<div class="control-group span6" style="border-top:none;">
	<label class="control-label">'._lang("Duration:").'</label>
	<div class="controls">
	<input type="text" id="duration" name="duration" class="validate[required] span12" value="'.$details['duration'].'" placeholder="'._lang("In seconds").'">
	</div>
	</div>

Similar topics (7)