Skip to main content
boloco
Known Participant
April 12, 2010
Answered

How to prevent a video to play at a 2nd visit

  • April 12, 2010
  • 1 reply
  • 3348 views

Hi There!

Please look at www.seduction.com

How to prevent the video to play at a 2nd visit?

Thanks!

This topic has been closed for replies.
Correct answer

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&reg;</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">&quot;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&quot;... Ross Jeffries, The &quot;Getting Some&quot; 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&reg;</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 &copy;

    <?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>


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
?>

1 reply

April 12, 2010

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.

boloco
bolocoAuthor
Known Participant
April 12, 2010

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.

April 12, 2010

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.