[dev] [cvs] commit: incubator/oscar/config conf.xml incubator/oscar/lib Oscar.php

Jan Schneider jan at horde.org
Mon Sep 10 15:52:34 UTC 2007


Zitat von Michael Rubinsky <mike at theupstairsroom.com>:

> Quoting Jan Schneider <jan at horde.org>:
>
>> Zitat von Michael Rubinsky <mike at theupstairsroom.com>:
>>
>>> Quoting Jan Schneider <jan at horde.org>:
>>>
>>>> Zitat von Michael Rubinsky <mike at theupstairsroom.com>:
>>>>
>>>>> mrubinsk    2007-09-09 23:51:06 EDT
>>>>>
>>>>> Modified files:
>>>>>   oscar/config         conf.xml
>>>>>   oscar/lib            Oscar.php
>>>>> Log:
>>>>> We should use a configuration parameter for an alias to oscar's
>>>>> VFS dir (like we do in Ansel). This make it more obvious that you 1)
>>>>> need a file based vfs, and 2) that you must create an alias to the
>>>>> proper dir in the VFS for oscar to function.
>>>>
>>>> Actually we should not require a file based VFS.
>>>
>>> Agreed, although we will still need a web accessable directory to
>>> store the flv files out of though, correct?  Should I just re-word
>>> the  configuration description then...maybe make it a fully
>>> qualified url  in the case the VFS represents a directory on another
>>> web server? I'm  still not clear on how viewing the flash files out
>>> of a sql based vfs  would work, though that is just probably my own
>>> lack of understanding :)
>>
>> It's the same like in Ansel. Files are generally provided through a
>> script, so the VFS backend doesn't matter. Having an alias that points
>> directly to VFS_file directory is only an exception.
>
> OK. Sorry for being so dense about this, but in Ansel, if we don't  
> use  the direct vfs method, then don't we have to pass the actual  
> raw image  data to the browser, instead of outputing an <img> tag?   
> Can something  similar be done with flash files?  I thought you had  
> to provide a src  for the file when embedding the plugin?  Again,  
> sorry for being so  dense about this, as I don't have a whole lot of  
> experience with using  this plugin...

Take a look at Ansel::getImageUrl() which is taking care of proving  
the correct url anywhere we need to reference it in a src attribute.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the dev mailing list