Closed (fixed)
Project:
CDN2 Video
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2009 at 14:01 UTC
Updated:
8 Dec 2009 at 20:10 UTC
Hi there,
is it possible to hide the list of the diferent formats in upload form?
Override...??
Cheers
Comments
Comment #1
sphism commentedOverride the theme function in cdn2.module called:
theme_cdn2_upload_form
and just remove the bit about $preset_inputs
The default values should still be in the form but not displayed for editing.
The upload form is very weird in that it is in an iframe, i have no idea why, but it is actually generating the form from within your drupal site.
Comment #2
sphism commentedOk, ignore my advice. The (extremely weird non drupal) form needs to have the presets listed otherwise the video will be uploaded to cdn2 with no transcode options, so you get no thumbnail and no videos!! What's more is that when you go to edit the node you can't add the transcode options in...
oh joy.
I just don't understand why an end user would have the ability to alter the transcoding formats??? Surely that should just be a admin setting.
Especially since the user can untick all the boxes and get no videos of thumbnail.
It's bonkers.
Anyhoo, i just tried changing the checkboxes to be hidden form items instead but get the same result. I think i'm just gonna have to resort to hiding them with css which is obviously wide open to abuse and completely lame.
If anyone knows how to this properly i'd really appreciate it.
Also if anyone at cdn2 could rewrite the upload form using drupals forms api instead of html that would be great too, i mean, using an html form inside an iframe??? Who ever came up with that idea?
m
Comment #3
sphism commentedok i seem to have this working...
except thumbnails aren't being made but that could be something else...
i overrode theme_cdn2_upload_form
and replaced this
with this
Comment #4
kylebrowning commentedIve actually been meaning to add this as a feature.
You can now change this option on the Format Presets page near the bottom.