Thursday, October 28, 2010

How to use VM Theme images

<***img src="<***? php echo VM_THEMEURL; ?***>images/title-red-left.jpg" /***>

Friday, October 22, 2010

How to remove blank lines from Dreamweaver


  1. Open the file

  2. Click CTRL + F

  3. Select "Current document" in "Find in" (You can also select the folder if you have multiple files)

  4. Search in "Source code"

  5. Tick "Use regular expression"

  6. Type "[\r\n]{2,}" (without quotes) in "Find"

  7. Type "\n" (without quotes) in "Replace"

  8. Press "Replace All"

Wednesday, March 24, 2010

How to Embed Flash Video (instead of using YouTube) Instructions:


  1. Load video in .avi, .mov or other to YouTube (If video is already in .flv or .swf skip to #3)
    (This is an online way to convert file from a big (>250MB) size to a small (<10MB) file size)

  2. Download the .flv video from YouTube using ClipNabber (http://clipnabber.com/)

    1. Go to the YouTube Page and Paste the video URL where indicated

    2. It will likely ask you to, "Enter video page source code and then click Nab Video again"

    3. To do this, go back to the YouTube Video Page, right-click on the side of the page outside of the video area, and then select "view source." A window will pop up showing lots of stuff that looks like computer code. Ctrl-A will select all text then Ctrl-C to copy it all

    4. Paste this in the box and click NAB again. This will show a link to "Download FLV"

    5. Download FLV


  3. Upload FLV to your website or server (ie. www.mysite.com/flash/mynewflash.flv)

  4. Go to LongTail video (http://www.longtailvideo.com/players/jw-flv-player/) and download the JW Player (5.1 at time of this writing)

  5. Extract the player.swf file from the download and upload to your server (ie FTP to www.mysite.com/flash/player.swf

  6. Get the correct html settings from the WIZARD (http://www.longtailvideo.com/support/jw-player-setup-wizard)

    1. Under Embed Parameters and Source: enter the player source where you uploaded it (ie. www.mysite.com/flash/mynewflash.flv

    2. If downloaded from YouTube enter height: 385 & width: 640

    3. Under File Properties enter URL where site is (ie. www.mysite.com/flash/mynewflash.flv)


  7. Where it says COPY YOUR CODE*... click on use the embed code.

  8. Copy the code.. should look like this... and paste on site.



<br /><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" height="385" id="single1" name="single1" width="640"> <br /><param name="movie" value="//www.mysite/flash/player.swf"> <br /><param name='allowfullscreen' value='true'> <br /><param name='allowscriptaccess' value='always'> <br /><param name='wmode' value='transparent'> <br /><param name='flashvars' value='file=http://www.mysite/flash/mynewflash.flv'> <br /><embed <br />type='application/x-shockwave-flash' <br />id='single2' <br />name='single2' <br />src='http://www.mysite/flash/player.swf' <br />width='640' <br />height='385' <br />bgcolor='undefined' <br />allowscriptaccess='always' <br />allowfullscreen='true' <br />wmode='transparent' <br />flashvars='file=http://www.mysite/flash/mynewflash.flv' <br />/> <br /></object> <br />