Author: tkoomzaaskz
Date: 2010-01-24 15:26:51 +0100 (Sun, 24 Jan 2010)
New Revision: 27127

Added:
   plugins/tdVideoPlugin/trunk/data/samples/
   plugins/tdVideoPlugin/trunk/data/samples/01.flv
   plugins/tdVideoPlugin/trunk/data/samples/02.flv
   plugins/tdVideoPlugin/trunk/data/samples/03.flv
Removed:
   plugins/tdVideoPlugin/trunk/web/flv/
Modified:
   plugins/tdVideoPlugin/trunk/README
   plugins/tdVideoPlugin/trunk/config/tdVideoPluginConfiguration.class.php
   plugins/tdVideoPlugin/trunk/lib/form/doctrine/PlugintdVideoForm.class.php
   plugins/tdVideoPlugin/trunk/package.xml
Log:
[td][video] reorganizing uploads

Modified: plugins/tdVideoPlugin/trunk/README
===================================================================
--- plugins/tdVideoPlugin/trunk/README  2010-01-24 14:15:27 UTC (rev 27126)
+++ plugins/tdVideoPlugin/trunk/README  2010-01-24 14:26:51 UTC (rev 27127)
@@ -34,7 +34,8 @@
         [php]
         enabled_modules: [ ..., tdSampleVideo ]
 
-  * Fixtures are provided with the plugin - 3 flv files (thanks to
+  * Fixtures are provided with the plugin and 3 flv files in the _data/samples_
+    directory (thanks to
     
[media_college](http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html).
     Run following commands:
 
@@ -44,13 +45,20 @@
 
         $ ./symfony doctrine:data-load
 
-    and run the following URL in your browser:
+    Now you have to create a directory for video uploads:
 
+        $ mkdir web/uploads/td/video
+
+    and make it writeable:
+
+        $ chmod 777 web/uploads/td/video
+
+    Now you have to copy those 3 sample flv files from 
_tdVideoPlugin/data/samples_
+    to the video upload directory created above. Everything is ready to run the
+    following URL in your browser:
+
         http://your-project/video
 
-    You may choose from 3 example flv files to display. Example flv files are
-    displayed in _tdSampleVideo/templates/indexSuccess.php_ file.
-
   * Enable the td_video admin generator in your backend application's
     _config/settings.yml_ enabled_modules section:
 
@@ -63,7 +71,7 @@
 You can modify settings of the tdVideoPlugin in the
 __config/tdVideoPluginConfiguration.class.php__ file:
 
-  * _td_video_image_dir_ - upload dir of all video files
+  * _td_video_upload_dir_ - upload dir of all video files
 
   * _td_video_short_text_sign_count_ - character count of a short video
     descrtiption version

Modified: 
plugins/tdVideoPlugin/trunk/config/tdVideoPluginConfiguration.class.php
===================================================================
--- plugins/tdVideoPlugin/trunk/config/tdVideoPluginConfiguration.class.php     
2010-01-24 14:15:27 UTC (rev 27126)
+++ plugins/tdVideoPlugin/trunk/config/tdVideoPluginConfiguration.class.php     
2010-01-24 14:26:51 UTC (rev 27127)
@@ -18,7 +18,7 @@
   public function initialize()
   {
     // video files upload dir
-    sfConfig::set('td_video_image_dir', 
sfConfig::get('sf_web_dir').'/tdVideoPlugin/flv');
+    sfConfig::set('td_video_upload_dir', 
sfConfig::get('sf_web_dir').'/uploads/td/video');
 
     // video short description sign count
     sfConfig::set('td_video_short_text_sign_count', 200);

Added: plugins/tdVideoPlugin/trunk/data/samples/01.flv
===================================================================
(Binary files differ)


Property changes on: plugins/tdVideoPlugin/trunk/data/samples/01.flv
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: plugins/tdVideoPlugin/trunk/data/samples/02.flv
===================================================================
(Binary files differ)


Property changes on: plugins/tdVideoPlugin/trunk/data/samples/02.flv
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: plugins/tdVideoPlugin/trunk/data/samples/03.flv
===================================================================
(Binary files differ)


Property changes on: plugins/tdVideoPlugin/trunk/data/samples/03.flv
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: 
plugins/tdVideoPlugin/trunk/lib/form/doctrine/PlugintdVideoForm.class.php
===================================================================
--- plugins/tdVideoPlugin/trunk/lib/form/doctrine/PlugintdVideoForm.class.php   
2010-01-24 14:15:27 UTC (rev 27126)
+++ plugins/tdVideoPlugin/trunk/lib/form/doctrine/PlugintdVideoForm.class.php   
2010-01-24 14:26:51 UTC (rev 27127)
@@ -32,7 +32,7 @@
       'with_delete' => false,
       'delete_label' => 'usuń plik video',
       'label'     => 'Plik video',
-      'file_src'  => '/tdVideoPlugin/flv/'.$this->getObject()->getFile(),
+      'file_src'  => '/uploads/td/video/'.$this->getObject()->getFile(),
       'edit_mode' => !$this->isNew(),
       'template'  => '%file%<br />%input%<br />%delete% %delete_label%',
     )));
@@ -45,7 +45,7 @@
 
     $this->setValidator('file', new sfValidatorFile(array(
       'required'   => true,
-      'path'       => sfConfig::get('td_video_image_dir'),
+      'path'       => sfConfig::get('td_video_upload_dir'),
     ), array(
       'required' => 'Musisz wybrać plik',
     )));

Modified: plugins/tdVideoPlugin/trunk/package.xml
===================================================================
--- plugins/tdVideoPlugin/trunk/package.xml     2010-01-24 14:15:27 UTC (rev 
27126)
+++ plugins/tdVideoPlugin/trunk/package.xml     2010-01-24 14:26:51 UTC (rev 
27127)
@@ -10,10 +10,10 @@
   <email>[email protected]</email>
   <active>yes</active>
  </lead>
- <date>2010-01-24</date>
+ <date>2010-01-25</date>
  <time>11:00:00</time>
  <version>
-   <release>0.1.3</release>
+   <release>0.1.4</release>
    <api>0.1.0</api>
  </version>
  <stability>
@@ -38,6 +38,11 @@
        <dir name="fixtures">
          <file name="fixtures.yml" role="data" />
        </dir>
+       <dir name="samples">
+         <file name="01.flv" role="data" />
+         <file name="02.flv" role="data" />
+         <file name="03.flv" role="data" />
+       </dir>
      </dir>
 
      <dir name="lib">
@@ -102,11 +107,6 @@
          <file name="flowplayer.css" role="data" />
          <file name="td_video.css" role="data" />
        </dir>
-       <dir name="flv">
-         <file name="01.flv" role="data" />
-         <file name="02.flv" role="data" />
-         <file name="03.flv" role="data" />
-       </dir>
        <dir name="js">
          <file name="flowplayer-3.1.4.min.js" role="data" />
        </dir>
@@ -152,6 +152,23 @@
 
    <release>
     <version>
+     <release>0.1.4</release>
+     <api>0.1.0</api>
+    </version>
+    <stability>
+     <release>beta</release>
+     <api>beta</api>
+    </stability>
+    <license uri="http://www.symfony-project.org/license";>MIT license</license>
+    <date>2010-01-24</date>
+    <license>MIT</license>
+    <notes>
+     * reorganized sample flv files directory and upload directory
+    </notes>
+   </release>
+
+   <release>
+    <version>
      <release>0.1.3</release>
      <api>0.1.0</api>
     </version>

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to