Copy link to clipboard
Copied
You don't need a few dozen books to get this done. I told you where to find the solution and even provided a link to w3schools that showed how to set a cookie. The following is the basics of the syntax. It determines if a cookie is set and if it is then it will display the desired content ELSE it will show something else (like your video autoplay). You add the code to set the cookie in the ELSE section. Take a look at the code and it should make sense.
...<?php
// If Cookie is set
if ($_COOKIE["video_
Copy link to clipboard
Copied
you can set a cookie upon first page visit then add a conditional region where if cookie is set don't show movie else show the movie. The same task can be acheived using a session variable or database entry.
Copy link to clipboard
Copied
Could you show me please exactly how to do it please.
Beside, I want to show the movie but not having the movie to play.
Thanks.
Copy link to clipboard
Copied
what scripting language are you using? You can easily find the method my searching google. For instance entering the term set cookie (your chosen language) in a google search will direct you to a method of setting a cookie. w3schools has some good explainations of using if/else. Just do a google search for w3schools if/else and choose the scripting language you're using. Setting autoplay for the movie depends on the unmentioned video player that you're using.
Copy link to clipboard
Copied
I'm using PHP.
But, David Powers, could you help me out here?
Thanks!
Copy link to clipboard
Copied
Hi
Just to set the record straight, you would not use php or a server side / database for this, but a simple javascript cookie and javascript code to set/unset the flash autoplay code to play/stop as required depending upon if the cookie is set.
See for cookies - http://www.w3schools.com/JS/js_cookies.asp.
For setting/unsetting html elements, see - http://www.dustindiaz.com/add-and-remove-html-elements-dynamically-with-javascript/.
PZ
Copy link to clipboard
Copied
Thanks for tyring to set the record straight, unfortunately you CAN use server side scripting to set a cookie and apply is/else if the cookie is set. You can also use a database to permenantly apply the setting without worrying about the visitor removing their cookies to see the video again or loggin in from a different computer where the cookie isn't set.
Different methods are used for different scenarios... what if the client does not have javascript enabled on their browser?
Copy link to clipboard
Copied
Hi
unfortunately you CAN use server side scripting to set a cookie and
apply is/else if the cookie is set. You can also use a database to
permenantly apply the setting without worrying about the visitor
removing their cookies to see the video again or loggin in from a
different computer where the cookie isn't set.
Yes, you can use server-side scripting to set a cookie, but not a session as this expires when the browser is closed or after a specific time which is often set by your server provider and can seldom be changed on shared hosting environments. As for the database this would require the user to log-in in order to use this feature, are you going to ask all users to create an account?
PZ
Different methods are used for different scenarios... what if the client does not have javascript enabled on their browser?
If the user does not have javascript enabled then the flash will not play.
Message was edited by: pziecina
Copy link to clipboard
Copied
If the user does not have javascript enabled then the flash will not play.
I'm sorry the video is not playing for you. The video plays on the page with javascript disabled from my browser.
Copy link to clipboard
Copied
Hi
Are you sure it is a video and not an swf?
PZ
Copy link to clipboard
Copied
It is a FLV video.
Copy link to clipboard
Copied
Hi Boloco
I was referring to iPHP's answer as flv's require javascript to run, (swf's should have javascript, but will run without it in some cases).
As I said my recommendation is to use javascript cookies and a javascript function to replace the -
autoPlay=true
with
autoPlay=false
If your visitor has previously visited your site, however I would also recommend using jQuery for this as it 'sets' the autoplay before the dom has loaded in the browser, (using the document ready function).
PZ
Copy link to clipboard
Copied
Just to set the record straight.
Like I've already said: The video plays on the page with javascript disabled from my browser. Feel free to see for yourself. I trust you can determine the file type of the video without asking by simply viewing the page. The URL of the page with the video was provided in the original post. Personally I would use server side scripting in this instance for setting the cookie and determining if the cookie was set whether to display the video.
http://www.w3schools.com/php/func_http_setcookie.asp
Copy link to clipboard
Copied
Hi iPHP
Once a video has played, it and all its components are in the browser cache and it no longer requires the associating files or javascript to be enabled. However for 'new' visitors then javascript is required in order to load the flv and its components. If you do not believe me, (up to you) then visit the dreamweaver general section and the flash video forum and try telling people there that flv's do not require javascript.
PZ
Copy link to clipboard
Copied
Hi PZ,
Too bad you haven't viewed the page yourself to find out though. New browser, javascript disabled, cache deleted and cookies removed, visit page and voila! video plays! Regardelss I believe the OP has enough information to determine a method that will work for their desired function.
Just setting the record straight
Copy link to clipboard
Copied
Hi,
All these answers sound great but doesn't help me. 😉 ;-(
I guess I will have to open a few dozen of book and figure it out.
That said, and no offense, I like iPHP approach.
Ideally, I would love someone write me the code and I'll learn from there.
I know enough to understand once I see it written down.
What PHP command do I write before the DOCTYPE and what is the conditional logic function to write so the player won't play at the 2nd time visit.
Thank you much all!
Here is my page below.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="verify-v1" content="KV5sCBBRLSpkgU7GBcCoUlMRxp6Px6FHTIybhqto/cY=" />
<title>Ross Jeffries Official Home of Speed Seduction: From dating tips, to pickup lines, to hypnosis on dates.</title>
<meta name="description" content="This is Ross Jeffries official Speed Seduction® website. No lame dating tips for guys, no dating advice or tip can match what guys learn here. If you are looking for dating and tips about pleasing women, go somewhere else. Here you learn(Michel use whatever words here you want)" />
<link href="newStyles/global_basic.css" rel="stylesheet" type="text/css" />
<link href="styles/mainNew.css" rel="stylesheet" type="text/css" />
<link href="p7ap/p7ap_04.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="p7ap/p7APscripts.js"></script>
<!--[if lte IE 7]>
<style>
#masthead, #columnwrapper, #tnav, #columns-bottom {zoom:1;}
</style>
<![endif]-->
<script src="scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script language="Javascript" src="Hoverad.js" type=""></script>
<script type="text/javascript" src="stylesMenu/cssmainMenu/menu.js"></script>
<script src="scripts/swfobject_modified.js" type="text/javascript"></script>
<script src="scripts/swfobject_modified.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="all" href="stylesMenu/cssmainMenu/menuNew.css" />
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" media="all" href="stylesMenu/cssmainMenu/menu_ie.css" />
<![endif]-->
<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
with(navigator){
var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
if (!isIE || !isWin){
var flashVer = -1;
if (plugins && plugins.length > 0){
var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
if (desc == "") flashVer = -1;
else{
var descArr = desc.split(" ");
var tempArrMajor = descArr[2].split(".");
var verMajor = tempArrMajor[0];
var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
flashVer = parseFloat(verMajor + "." + verMinor);
}
}
// WebTV has Flash Player 4 or lower -- too low for video
else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
var verArr = reqVerStr.split(",");
var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
if (flashVer < reqVer){
if (confirm(msg))
window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
}
}
}
}
</script>
<link rel="stylesheet" type="text/css" media="all" href="newStyles/mainNewDaveTest3.css" />
</head>
<body onload="MM_CheckFlashVersion('8,0,0,0','Content on this page requires a newer version of Macromedia Flash Player. We highly recommend you download it now.');">
<?php include('includes/clicktaletop.inc.php'); ?>
<div id="masthead">
<div id="divHeader">
<p><img src="/images/img_logoSSnewD.gif" alt="logo Speed Seduction" width="535" height="58" id="pLogoSS" /></p>
<h1 id="h1SpeedSeduction">Speed Seduction®</h1>
<p id="pCall"><span class="lightGrey">Call</span> 310.822.5771</p>
<p id="pEmail"><span class="lightGrey">Email</span> rj@seduction.com</p>
<div id="bannerSeminar">
<a href="http://www.seduction.com/liveseminar.php" title="Los Angeles Speed Seduction 3.0 Seminar - April 23 - 25, 2010" target="_blank"><img src="images/img_2010laseminarApr400.jpg" alt="Los Angeles Speed Seduction 3.0 Seminar - April 23 - 25, 2010" width="400" height="90" /></a>
</div>
<p id="pCreated3" name="pCreated3">"Put My 20 Years And 5,000 + Hours Experience <br />
Teaching, Training
And Coaching Guys To Complete <br />
Success With Women, In Your
Corner And On Your Side"... Ross Jeffries, The "Getting Some" Guru</p>
<div id="tnav">
<div id="tnav-center">
<?php require_once("stylesMenu/cssmainMenu/menuNew.php"); ?>
<div class="clearfloat"> </div>
</div>
</div>
</div>
</div>
<div id="columnwrapper">
<div id="c2">
<div class="content">
<!--<h3 class="center"><a href="http://www.mindframepersuasion.com" target="_blank"><img src="images/MindFrameBanner400.jpg" width="400" height="90" /></a></h3>-->
<div id="divLeftContentHome">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="360" height="264" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName=videos/newhomepagevid&autoPlay=true&autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="360" height="264">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName=videos/newhomepagevid&autoPlay=true&autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<param name="expressinstall" value="scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<p><span class="bold">Ross Jeffries</span><br />
Founder of Speed Seduction®</p>
<p>Note: Move your mouse over the movie to hide or show <br />
the video control.</p>
</div>
<div id="divRightContentHome">
<div class="divIntakeHome">
<h1><img src="images/img_starterKit16.jpg" alt="Starter Kit" width="113" height="125" />Are You Making <span class="boldRed">THESE</span> 10 Fatal <br />
Mistakes With Women?<br />
Sign up for my free daily seduction tips and get instant access to this jaw-dropping free <br />
report!</h1>
<div class="clearfloat"></div>
<div class="introIntakeHome">
<p>Pull more hot women you really<br />
desire by stopping these mistakes ...</p>
<p class="last">Enter your first name and e-mail <br />
address on the right to download now!</p>
</div>
<div id="divFormHome">
<form id="optinHome" name="optinHome" method="post" action="http://www.getresponse.com/cgi-bin/add.cgi">
<table id="tableNewsletter">
<tr>
<td class="alignRight">First Name</td>
<td><label for="label"></label>
<input name="category2" type="text" id="category2" size="25" /></td>
</tr>
<tr>
<td class="alignRight">Email</td>
<td><label for="label2"></label>
<input name="category3" type="text" id="category3" size="25" /></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="subscribe" id="subscribe" value="Subscribe" /></td>
</tr>
</table>
<input type="hidden" name="nopopup" value="1" />
<input type="hidden" name="category1" value="ssebook" />
<input type="hidden" name="confirmation" value="http://www.seduction.com/index_thankyou2.php" />
<input type="hidden" name="error_page" />
<input type="hidden" name="misc" />
<input type="hidden" name="ref2" value="000" />
<input type="hidden" name="getpostdata2" value="get" />
</form>
</div>
</div>
<div id="divRowOne">
<div class="divAdHome" id="divR1"> <a href="products/nailyourinnergamepromo.php" target="_blank"></a>
<h1></h1>
<h2>
<a href="products/nailyourinnergamepromo.php" target="_blank">Gets You Incredible<br />
Girl-Grabbing<br />
Confidence!<br />
<span class="yellow">Nail Your Inner<br />
Game Course</span></a></h2>
</div>
<div class="divAdHome" id="divR2">
<h1></h1>
<h2>
<a href="products/RJ30.php" target="_blank">Closes The Deal For<br />
You Every Time!<br />
<span class="yellow">Speed Seduction 3.0<br />
Course</span></a></h2>
</div>
<div id="divR3" class="divAdHome">
<h1></h1>
<h2>
<a href="products/walkup.php" target="_blank">Gets You Meeting<br />
Dozens Of Girls<br />
Every Day!<br />
<span class="yellow">Gold Walk Up DVD</span></a></h2>
</div>
</div>
<div class="clearer"></div>
<div id="divRowTwo">
<div id="divR4" class="divAdHome">
<h1></h1>
<h2>
<a href="products/RJcoaching.php" target="_blank">Learn From Me Live<br />
And Get Can't-Miss<br />
Support!<br />
<span class="yellow">Coaching Progam</span></a></h2>
</div>
<div id="divR5" class="divAdHomeOrange"> <a href="http://www.seduction.com/blog/" target="_blank"></a>
<h1></h1>
<h2 class="version2"><a href="http://www.seduction.com/blog/" target="_blank">Watch<br />
Chick-Pulling<br />
Videos<br />
On My Blog</a></h2>
</div>
<div id="divR6" class="divAdHome">
<h1></h1>
<h2>
<a href="products/RJ183.php">Get Them Dripping<br />
With These Hot<br />
Touches
<br />
<span class="yellow">Irresistible Arousal<br />
DVD</span></a></h2>
</div>
</div>
</div>
<p> </p>
</div>
</div>
<div id="columns-bottom"> </div>
</div>
<div id="divFooter">
<p id="pLinkFooter">
<?php include("newIncludes/navFooter.inc.php"); ?>
</p>
<p id="pCopyrightsFooter">Copyrights ©
<?php include("newIncludes/copyrights.inc.php"); ?>
Ross Jeffries </p>
</div>
<!---Begin Tracking Includes--->
<?php include('includes/clicktalebottom.inc.php'); ?>
<?php include('includes/googleanalytics.inc.php'); ?>
<?php include('includes/visistat.inc.php'); ?>
<?php include('includes/webtrends.inc.php'); ?>
<!---End Tracking Includes--->
<script type="text/javascript">
<!--
swfobject.registerObject("FLVPlayer");
swfobject.registerObject("FLVPlayer");
//-->
</script>
</body>
</html>
Copy link to clipboard
Copied
You don't need a few dozen books to get this done. I told you where to find the solution and even provided a link to w3schools that showed how to set a cookie. The following is the basics of the syntax. It determines if a cookie is set and if it is then it will display the desired content ELSE it will show something else (like your video autoplay). You add the code to set the cookie in the ELSE section. Take a look at the code and it should make sense.
<?php
// If Cookie is set
if ($_COOKIE["video_viewed"] == "1") {
?>YOUR VIDEO HAS BEEN VIEWED
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="360" height="264" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName=vide os/newhomepagevid&autoPlay=false&autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="360" height="264">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName=vide os/newhomepagevid&autoPlay=false&autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<param name="expressinstall" value="scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<?php
} else { ?>SHOW YOUR VIDEO HERE (by adding the html code for the video)
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="360" height="264" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName=vide os/newhomepagevid&autoPlay=true&autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="360" height="264">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName=vide os/newhomepagevid&autoPlay=true&autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<param name="expressinstall" value="scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<?php
$value = "1";
// send a cookie that expires in 24 hours
setcookie("video_viewed",$value, time()+3600*24);
?><?php }
// End Conditional Region
?>
Copy link to clipboard
Copied
Hi,
It kind of make sense but still not working.
I really appreciate your effort but I would like someone who put in there the real complete code to make this work, not just some code and explanation.
That is why I sent my entire page.
I know it is obvious for you but it is not for me.
If someone out there could help me out, I would really appreciate.
Othewise, I understand that you guys are too busy to deal with someone like me. I will have to roll up my sleeves, get some books, go online, and learn the all thing about cookies and sessions.
It's too bad though that I have to do it for today or tomorrow.
Although I'm comfortable working with PHP and the database and sometimes doing fairly advance stuff, I'm not familiar with cookies at all, except that I understand what they do.
But, iPHP, I really appreciate that you tried to help me, and I don't want to waste your time.
I probably have to reformulate my request.
Thank you much!
This post is still open to anyone out there who can make this work.
Here is my code again, and I want to prevent the same video to play for a 2nd time visit.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="verify-v1" content="KV5sCBBRLSpkgU7GBcCoUlMRxp6Px6FHTIybhqto/cY=" />
<title>Ross Jeffries Official Home of Speed Seduction: From dating tips, to pickup lines, to hypnosis on dates.</title>
<meta name="description" content="This is Ross Jeffries official Speed Seduction® website. No lame dating tips for guys, no dating advice or tip can match what guys learn here. If you are looking for dating and tips about pleasing women, go somewhere else. Here you learn(Michel use whatever words here you want)" />
<link href="newStyles/global_basic.css" rel="stylesheet" type="text/css" />
<link href="styles/mainNew.css" rel="stylesheet" type="text/css" />
<link href="p7ap/p7ap_04.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="p7ap/p7APscripts.js"></script>
<!--[if lte IE 7]>
<style>
#masthead, #columnwrapper, #tnav, #columns-bottom {zoom:1;}
</style>
<![endif]-->
<script src="scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script language="Javascript" src="Hoverad.js" type=""></script>
<script type="text/javascript" src="stylesMenu/cssmainMenu/menu.js"></script>
<script src="scripts/swfobject_modified.js" type="text/javascript"></script>
<script src="scripts/swfobject_modified.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="all" href="stylesMenu/cssmainMenu/menuNew.css" />
<!--[if lte IE 6]>
<link rel="stylesheet" type="text/css" media="all" href="stylesMenu/cssmainMenu/menu_ie.css" />
<![endif]-->
<script type="text/javascript">
function MM_CheckFlashVersion(reqVerStr,msg){
with(navigator){
var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
if (!isIE || !isWin){
var flashVer = -1;
if (plugins && plugins.length > 0){
var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
if (desc == "") flashVer = -1;
else{
var descArr = desc.split(" ");
var tempArrMajor = descArr[2].split(".");
var verMajor = tempArrMajor[0];
var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
flashVer = parseFloat(verMajor + "." + verMinor);
}
}
// WebTV has Flash Player 4 or lower -- too low for video
else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
var verArr = reqVerStr.split(",");
var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
if (flashVer < reqVer){
if (confirm(msg))
window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
}
}
}
}
</script>
<link rel="stylesheet" type="text/css" media="all" href="newStyles/mainNewDaveTest3.css" />
</head>
<body onload="MM_CheckFlashVersion('8,0,0,0','Content on this page requires a newer version of Macromedia Flash Player. We highly recommend you download it now.');">
<?php include('includes/clicktaletop.inc.php'); ?>
<div id="masthead">
<div id="divHeader">
<p><img src="/images/img_logoSSnewD.gif" alt="logo Speed Seduction" width="535" height="58" id="pLogoSS" /></p>
<h1 id="h1SpeedSeduction">Speed Seduction®</h1>
<p id="pCall"><span class="lightGrey">Call</span> 310.822.5771</p>
<p id="pEmail"><span class="lightGrey">Email</span> rj@seduction.com</p>
<div id="bannerSeminar">
<a href="http://www.seduction.com/liveseminar.php" title="Los Angeles Speed Seduction 3.0 Seminar - April 23 - 25, 2010" target="_blank"><img src="images/img_2010laseminarApr400.jpg" alt="Los Angeles Speed Seduction 3.0 Seminar - April 23 - 25, 2010" width="400" height="90" /></a>
</div>
<p id="pCreated3" name="pCreated3">"Put My 20 Years And 5,000 + Hours Experience <br />
Teaching, Training
And Coaching Guys To Complete <br />
Success With Women, In Your
Corner And On Your Side"... Ross Jeffries, The "Getting Some" Guru</p>
<div id="tnav">
<div id="tnav-center">
<?php require_once("stylesMenu/cssmainMenu/menuNew.php"); ?>
<div class="clearfloat"> </div>
</div>
</div>
</div>
</div>
<div id="columnwrapper">
<div id="c2">
<div class="content">
<!--<h3 class="center"><a href="http://www.mindframepersuasion.com" target="_blank"><img src="images/MindFrameBanner400.jpg" width="400" height="90" /></a></h3>-->
<div id="divLeftContentHome">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="360" height="264" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName=videos/newhomepagevid&autoPlay=true&autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="scripts/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="FLVPlayer_Progressive.swf" width="360" height="264">
<!--<![endif]-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_2&streamName=videos/newhomepagevid&autoPlay=true&autoRewind=false" />
<param name="swfversion" value="8,0,0,0" />
<param name="expressinstall" value="scripts/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<p><span class="bold">Ross Jeffries</span><br />
Founder of Speed Seduction®</p>
<p>Note: Move your mouse over the movie to hide or show <br />
the video control.</p>
</div>
<div id="divRightContentHome">
<div class="divIntakeHome">
<h1><img src="images/img_starterKit16.jpg" alt="Starter Kit" width="113" height="125" />Are You Making <span class="boldRed">THESE</span> 10 Fatal <br />
Mistakes With Women?<br />
Sign up for my free daily seduction tips and get instant access to this jaw-dropping free <br />
report!</h1>
<div class="clearfloat"></div>
<div class="introIntakeHome">
<p>Pull more hot women you really<br />
desire by stopping these mistakes ...</p>
<p class="last">Enter your first name and e-mail <br />
address on the right to download now!</p>
</div>
<div id="divFormHome">
<form id="optinHome" name="optinHome" method="post" action="http://www.getresponse.com/cgi-bin/add.cgi">
<table id="tableNewsletter">
<tr>
<td class="alignRight">First Name</td>
<td><label for="label"></label>
<input name="category2" type="text" id="category2" size="25" /></td>
</tr>
<tr>
<td class="alignRight">Email</td>
<td><label for="label2"></label>
<input name="category3" type="text" id="category3" size="25" /></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="subscribe" id="subscribe" value="Subscribe" /></td>
</tr>
</table>
<input type="hidden" name="nopopup" value="1" />
<input type="hidden" name="category1" value="ssebook" />
<input type="hidden" name="confirmation" value="http://www.seduction.com/index_thankyou2.php" />
<input type="hidden" name="error_page" />
<input type="hidden" name="misc" />
<input type="hidden" name="ref2" value="000" />
<input type="hidden" name="getpostdata2" value="get" />
</form>
</div>
</div>
<div id="divRowOne">
<div class="divAdHome" id="divR1"> <a href="products/nailyourinnergamepromo.php" target="_blank"></a>
<h1></h1>
<h2>
<a href="products/nailyourinnergamepromo.php" target="_blank">Gets You Incredible<br />
Girl-Grabbing<br />
Confidence!<br />
<span class="yellow">Nail Your Inner<br />
Game Course</span></a></h2>
</div>
<div class="divAdHome" id="divR2">
<h1></h1>
<h2>
<a href="products/RJ30.php" target="_blank">Closes The Deal For<br />
You Every Time!<br />
<span class="yellow">Speed Seduction 3.0<br />
Course</span></a></h2>
</div>
<div id="divR3" class="divAdHome">
<h1></h1>
<h2>
<a href="products/walkup.php" target="_blank">Gets You Meeting<br />
Dozens Of Girls<br />
Every Day!<br />
<span class="yellow">Gold Walk Up DVD</span></a></h2>
</div>
</div>
<div class="clearer"></div>
<div id="divRowTwo">
<div id="divR4" class="divAdHome">
<h1></h1>
<h2>
<a href="products/RJcoaching.php" target="_blank">Learn From Me Live<br />
And Get Can't-Miss<br />
Support!<br />
<span class="yellow">Coaching Progam</span></a></h2>
</div>
<div id="divR5" class="divAdHomeOrange"> <a href="http://www.seduction.com/blog/" target="_blank"></a>
<h1></h1>
<h2 class="version2"><a href="http://www.seduction.com/blog/" target="_blank">Watch<br />
Chick-Pulling<br />
Videos<br />
On My Blog</a></h2>
</div>
<div id="divR6" class="divAdHome">
<h1></h1>
<h2>
<a href="products/RJ183.php">Get Them Dripping<br />
With These Hot<br />
Touches
<br />
<span class="yellow">Irresistible Arousal<br />
DVD</span></a></h2>
</div>
</div>
</div>
<p> </p>
</div>
</div>
<div id="columns-bottom"> </div>
</div>
<div id="divFooter">
<p id="pLinkFooter">
<?php include("newIncludes/navFooter.inc.php"); ?>
</p>
<p id="pCopyrightsFooter">Copyrights ©
<?php include("newIncludes/copyrights.inc.php"); ?>
Ross Jeffries </p>
</div>
<!---Begin Tracking Includes--->
<?php include('includes/clicktalebottom.inc.php'); ?>
<?php include('includes/googleanalytics.inc.php'); ?>
<?php include('includes/visistat.inc.php'); ?>
<?php include('includes/webtrends.inc.php'); ?>
<!---End Tracking Includes--->
<script type="text/javascript">
<!--
swfobject.registerObject("FLVPlayer");
swfobject.registerObject("FLVPlayer");
//-->
</script>
</body>
</html>
Copy link to clipboard
Copied
Hi iPHP,
I owe you my deepest and sincerest apologies.
My answer to you was mean and arrogant.
Please forgive me, 1000 pardons!
I guess I was so frustrated that I couldn't think clearly, but that's still not a reason to give you that answer after you spent all this time to help me out.
But somewhere, deep inside myself I sensed that you answer made sense but I couldn't get it wright.
After days of research and yes, I had to open a few books and check out your recommended sources I finally made your script working.
The only major difference though is that I put the declaration
<?php
$value = "1";
// send a cookie that expires in 24 hours
setcookie("video_viewed",$value, time()+3600*24);
?>
at the very top of the page, before the DOCTYPE html...
I'm glad to say that I achieved my goal and I learned something BIG TIME!
So thank you very much IPHP! And 1000 pardons again!
P.S. For a cookie that last one year, could I write?
<?php
$value = "1";
// send a cookie that expires in 24 hours
setcookie("video_viewed",$value, time()+3600*24*7*4*12);
?>
Copy link to clipboard
Copied
no big deal. glad you got it figured out