Archive

Posts Tagged ‘flash and wordpress’

Add extension to Dreamweaver (e.g. “.thtml/cpt” for cakephp)

January 4, 2010 2 comments

To  Configure Dreamweaver 3  to Opening CakePHP .thtml  CTP Files you need to  edit following three files:-

  1. Extensions.txt( program files)
  2. MMDocumentTypes.xml
  3. Extensions.txt(document and settings)

C:\Program Files\(Adobe/Macromedia)\(Dreamweaver-cs3)\configuration\extensions.txt

Open “Extensions.txt” and  add “THTML” and “CTP” separated by commas, so the line should read:

,MASTER,THTML,CTP:All Documents

,MASTER,THTML,CTP:All Documents

Similarly add these two extensions to the “:PHP Files” line.

PHP,PHP3,PHP4,PHP5,TPL,THTML,CTP:PHP Files

PHP,PHP3,PHP4,PHP5,TPL,THTML,CTP:PHP Files

Next open the “DocumentTypes” folder and edit the “MMDocumentTypes.xml” file, just open it up using notepad or wordpad. Search for the line which has an id “PHP_MySQL” and add the THTML/CTP file extensions to both the “winfileextension” and “macfileextension” so the line should read:

  1. winfileextension=“php,php3,php4,php5,thtml,ctp”
  2. macfileextension=“php,php3,php4,php5,thtml,ctp”

above two files editing will enable you to open the file in dreamweaver but if you want to enable dreamweaver search for these two extentions then do the final step as follows:

winfileextension=”php,php3,php4,php5,thtml,ctp”

macfileextension=”php,php3,php4,php5,thtml,ctp”

An another version of the “Extensions.txt” which is located in your “Documents and Settings” Folder e.g. in my case this is “C:\Documents and Settings\khalidrauf\Application Data\(Adobe or Macromedia)\(Adobe )Dreamweaver(version)\configuration” just add the very same things you inserted earlier in “Extensions.txt” .

How to Embed flash Object in WordPress

February 10, 2009 Leave a comment

Hi,
Its really Simple to embed the flash object in word press as follows:

<param name=”movie” value=”< ?php bloginfo(‘description’);? >/images/home.swf”>

<embed src=”/images/home.swf” quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer&#8221; type=”application/x-shockwave-flash” width=”800″ height=”162″>

<script LANGUAGE=”JavaScript” src=”< ?php bloginfo(‘description’);? >/images/fixit.js”>

Common Error:
most of time we forget to set flash object directory which is done as follows ,

< ?php bloginfo(‘description’);? >/images/home.swf

which help word press to find the object where it is located .