/**************************************************************************************************
|
| VideoWatch Professional - Video Sharing Script
| http://www.videowatchpro.com
| videowatchopro@gmail.com
| Version: 1.3.4
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.videowatchpro.com/eula.html and to be bound by it.
|
| Copyright (c) 2008 VideoWatchPro.com. All rights reserved.
|**************************************************************************************************/

Upgrade Instructions - v1.3.3 to v1.3.4

1. Open themes/playvideo.tpl

Find:
{$videoarray[0].description}

Replace With:
{insert name=get_stripped_phrase value=a assign=vdescrip details=$videoarray[0].description}{$vdescrip}


2. Open include/functions/main.php

Find:
$stripper = str_replace("\\r", "<br>", $stripper);

Replace With:
	$stripper = str_replace("\\r", "", $stripper);
	$stripper = str_replace("\\", "", $stripper);
	
		
3. Open themes/myseriesedit.tpl

Find:
{$seriesarray[0].description}

Replace With:
{insert name=get_stripped_phrase2 value=a assign=pdesc details=$seriesarray[0].description}{$pdesc}
	
	
4. Open themes/mychannelsedit.tpl

Find:
{$channelarray[0].details}

Replace With:
{insert name=get_stripped_phrase2 value=a assign=pdesc details=$channelarray[0].details}{$pdesc}


5. Open include/functions/main.php

Find (3 places):
, '&sup3;'

Add After:
, '&aelig;', '&thorn;', '&aacute;', '&eth;', '&uml;', '&ouml;', '&Ouml;'


Find (3 places):
''), $title);

Replace With:
'', 'ae', 'th', 'a', 'd', 'o', 'o', 'O'), $title);


Find:
echo "$results"."-".$seo_title_include;

Replace With:
echo $results.$seo_title_include;


Find:
function insert_get_seotitle_from_videoid($a)

Add Above:
function seo_clean_titles_regular($title)
{
	$title = str_replace ( array ('&Agrave;', '&agrave;', '&Aacute;', '&aacute;', '&yacute;', '&Yacute;', '&Egrave;', '&egrave;', '&Eacute;', '&eacute;', '&Igrave;', '&igrave;', '&Iacute;', '&iacute;', '&Ntilde;', '&ntilde;', '&Ograve;', '&ograve;', '&Oacute;', '&oacute;', '&Ugrave;', '&ugrave;', '&Uacute;', '&uacute;', '&Uuml;', '&uuml;', '&Atilde;', '&sup3;', '&aelig;', '&thorn;', '&aacute;', '&eth;', '&uml;', '&ouml;', '&Ouml;'), array ( 'A', 'a', 'A', 'a', 'y', 'Y', 'E', 'e', 'E', 'e', 'I', 'i', 'I', 'i', 'N', 'n', 'O', 'o', 'O', 'o', 'U', 'u', 'U', 'u', 'U', 'u', 'o', '', 'ae', 'th', 'a', 'd', 'o', 'o', 'O'), $title);
    $title = str_replace("&amp;", "&", $title);
    $title = preg_replace("/&([a-z]+);/", "", $title); 
    $title = str_replace(
            array(":", "?", ".", "!", "$", "^", "*", ",", ";", "'", '"', "%", "~", "@", "#", "[", "]", "<", ">", "\\", "/", "=", "+"), 
                        "", $title);
    $title = str_replace(array("&"), array("und"), $title);
    $title = htmlentities(strtolower($title));
    $title = str_replace ( array ('&auml;', '&ouml;', '&uuml;', '&szlig;'), array ( 'ae', 'oe', 'ue', 'ss'), $title);
    $title = preg_replace("/&([a-z]+);/", "", $title); 
    $results = rawurlencode($title);
	return "$results";
}


Find:
$stripper = str_replace("\r", "<br>", $stripper);

Replace With:
$stripper = str_replace("\\r", "", $stripper);
$stripper = str_replace("\\", "", $stripper);


6. Open videowatchprorecentvideos.php

Find:
utf8_encode

Replace With:
seo_clean_titles_regular


7. Open themes/header.tpl

Find:
{if $isvideouploadpage eq "1"}

Add Above:
{if $issignuppage eq "1"}
<script type="text/javascript" src="{$baseurl}/js/passwordmeter.js"></script>
{/if}


8. Open themes/login.tpl

Find:
					<tr>
			            <td align="right" width="160">{$lang248}&nbsp;</td>
			            <td align="left">
		                    	<input type="password" name="confirmpassword" value="" class="textField"/><br/> 	
						</td>
			        </tr>

Add Above:
					<tr>
			            <td align="right" width="160">&nbsp;</td>
			            <td align="left">
                        		<link href="{$cssurl}/passwordmeter.css" rel="stylesheet" type="text/css" />
		                    	<div class="strengthMeter" id="strengthMeter"><div class="scoreBar" id="scoreBar"></div></div>           		
			            </td>
			        </tr>

Find:
<input type="password" name="password" value="" class="textField"/>

Replace With:
<input type="password" name="password" value="" class="textField" id="password" onkeydown="updateMeter();" onkeyup="updateMeter();" />
	
					
9. Open login.php

Find:
include("include/functions/import.php");

Add Below:
STemplate::assign('issignuppage',"1");


10. Upload the following files to your website from the package:
- css/passwordmeter.css
- js/passwordmerer.js
- images/meter_background.gif
- images/meter.gif