Sunday, May 31, 2009

File Extentsion Add for File Upload setting

Site configuration -> File uploads ->

  • Maximum width and height for uploaded images(w*h)
  • Default permitted file extensions
  • Default maximum file size per upload

  • 可以限縮上傳影像大小 (e.g. 640x480)
  • 可以增/刪/修 允許上傳的檔案副檔名
  • 可以改變 上傳檔案的容量限制

Monday, April 13, 2009

How to quickly add reference to internal links ?

[Q] How to quickly add reference to internal links in an article?

[try]
  • node reference explorer [ http://drupal.org/project/nodereference_explorer ]

  • http://drupal.org/project/freelinking
    install "FreeLinking" module, enable it, configure it,  Permission,  and
    Filter(InputFormat) : 
    Site Configuration -> Input Format -> Configure to add FreeLinking filter

  • http://drupal.org/project/linktocontent
    [need TinyMCE and not applicable to drupal 6.x yet]

Sunday, February 8, 2009

SwfObject related links and digest

//===
SWFObject javascript library, http://code.google.com/p/swfobject/
SWFObjectAPI module, http://drupal.org/project/swfobject_api

To add flash blocks, still need swfobject module
http://drupal.org/project/swfobject [no release for drupal 6 yet?]


Step by step guide to use swfobject.js with cck
http://openconcept.ca/blog/varun/creating_a_flash_cck_content_type_with_swfobjectjs


//===
http://code.google.com/p/swfobject/wiki/documentation

http://www.alistapart.com/articles/flashembedcagematch/
[February 06, 2007]




"...
look into the complexities and subtleties of embedding Flash content and
examine the most popular embedding methods to see how good they really are.
...
Opera also introduced a similar click-to-activate mechanism. These mechanisms work like speed bumps in the road: you have to break, slowly drive over it, and push the gas pedal again.
...

'object' method is not browser-specific and is therefore the preferred implementation.
...

'embed' simply has never been a W3C recommendation and it never will be, because of patent issues. However in reality it does have better cross-browser support than each single implementation of the object element alone

...
Flash Satay

Another option is the Flash Satay method, which ... includes an additional movie parameter to avoid the bug that causes Flash content not to display in Internet Explorer. ...

It also includes a container Flash movie to fix the Internet Explorer streaming bug

<object type="application/x-shockwave-flash" »
data="c.swf? path=myContent.swf" width="300" height="120">
<param name="movie" value="c.swf?path="myContent.swf" />
<p>Alternative content</p>
</object>


...

DOM scripting

..."

DOM scripting: UFO, SWFObject, ObjectSwap --> SWFObject2.0