1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can somebody please help me with this script?

Discussion in 'General Scripting Chat' started by niceguy36, Aug 21, 2015.

Thread Status:
Not open for further replies.
  1. niceguy36

    niceguy36 Junior Member

    Joined:
    Jun 13, 2014
    Messages:
    183
    Likes Received:
    94
    Hi guys i hope somebody can help me with this. I got this fake video player script on another forum, but i want it as soon as you hit the play button it'll ask to complete a CPA offer.

    Can anyone help me with this?

    Code:
    <script type="text/javascript">  //
      // Editable Veriables Start:
      //
      ppiplayer_max_width = '640px'; // The maximun width of the player. Has to be in pixels (example: '640px').
      ppiplayer_bg = 'http://img853.imageshack.us/img853/127/o0vw.png'; // The cover of the video. Needs to be an image path or url.
      ppiplayer_error_title = 'A plugin is missing'; // The title for missing plugin.
      ppiplayer_error_download_text = 'Click here to download plugin'; // The text for download link.
      ppiplayer_error_download_url = '#'; // The url for your PPI download (example: 'http://www.skayon.com/freebies').
      ppiplayer_error_download_url_target = '_self'; // Where to open download url ('_blank' = new tab or window, '_self' = the same window).
      //
      // Editable Veriables End.
      //
    </script>
    
    
    <style type="text/css"> .ppiplayer-container { padding-top: 56.25%; background-size: cover; -moz-background-size: cover; background-position: center; z-index: 1; } .ppiplayer-container-error { padding-top: 56.25%; background-image: url('http://imageshack.com/a/img850/515/5s0k.png'); z-index: 1; } .ppiplayer-inner { position: relative; margin: -33% auto; text-align: center; z-index: 2; } .ppiplayer-play { background: url('http://imageshack.com/a/img538/9750/GbmTKa.png') no-repeat; width: 86px; height: 60px; cursor: pointer; margin: 0 auto; } .ppiplayer-play:hover { background: url('http://imageshack.com/a/img538/9750/GbmTKa.png') no-repeat -86px; } .ppiplayer-error { background: url('http://imageshack.com/a/img842/7021/d1xv.png') no-repeat; width: 86px; height: 60px; margin: 0 auto; } .ppiplayer-error-text p { font-size: 18px; margin: 10px auto; color: #fff; } .ppiplayer-error-text a { font-size: 22px; color: #fff; text-decoration: underline; display: block; } .ppiplayer-hidden { display:none!important; visibility:hidden!important; }
     </style> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script> <script type="text/javascript">$(document).ready(function(){$("#ppiplayer").attr("style","max-width:"+ppiplayer_max_width);$(".ppiplayer-container").attr("style","background-image:url("+ppiplayer_bg+")");$(".ppiplayer-error-text").addClass("ppiplayer-hidden");$("#ppiplayer-error-title").html(ppiplayer_error_title);$("#ppiplayer-download").html(ppiplayer_error_download_text);$("#ppiplayer-download").attr("href",ppiplayer_error_download_url);$("#ppiplayer-download").attr("target",ppiplayer_error_download_url_target);$(".ppiplayer-play").click(function(){$(".ppiplayer-container").attr("style","background-image:url(http://imageshack.com/a/img850/515/5s0k.png)");$(".ppiplayer-container").attr("class","ppiplayer-container-error");$(".ppiplayer-play").attr("class","ppiplayer-error");$(".ppiplayer-error-text").removeClass("ppiplayer-hidden");})})</script> <div id="ppiplayer" style="max-width:640px"> <div class="ppiplayer-container"> <div class="ppiplayer-inner"> <div class="ppiplayer-play"></div> <div class="ppiplayer-error-text"> <p id="ppiplayer-error-title">Click below to read more about</p> <a id="ppiplayer-download" href="http://www.skayon.com/freebies/ppiplayer.php" target="_self">PPI Player</a> </div> </div> </div> </div>
     
  2. Sythix

    Sythix Senior Member

    Joined:
    Sep 29, 2014
    Messages:
    1,168
    Likes Received:
    739
    Location:
    127.0.0.1
    Home Page:
    Change the "#" to "http://yourcpaofferlink".
     
  3. niceguy36

    niceguy36 Junior Member

    Joined:
    Jun 13, 2014
    Messages:
    183
    Likes Received:
    94
    I just tried to put my cpa grip content locker script in there but now the image will not show just the play button and the locker opens right away asking to complete offers as i open the site?
     
  4. niceguy36

    niceguy36 Junior Member

    Joined:
    Jun 13, 2014
    Messages:
    183
    Likes Received:
    94
    I guess i have to ask on fiverr since there are no programmers here :(
     
  5. jaredwins

    jaredwins Junior Member

    Joined:
    Aug 13, 2013
    Messages:
    139
    Likes Received:
    97
    Why would you put a link locker script there rather than a PPI site page?

    This code works as designed... User clicks 'play button' ---> error is seen- "plugin is missing, click to download" ---> PPI link asks them to download software to play the video...

    What are you missing?
     
  6. nglbh

    nglbh Registered Member

    Joined:
    Jan 4, 2011
    Messages:
    94
    Likes Received:
    182
    First thing, you need to generate the code from your cpa network with the option Show onclick and not on page load
    then add this code at the top of the script you posted. After that edit the <a> tag accordingly to the one generated by the cpa company you choosed.
     
  7. ChanzGrande

    ChanzGrande Elite Member

    Joined:
    Feb 16, 2008
    Messages:
    2,487
    Likes Received:
    1,180
    Occupation:
    Accountant
    Location:
    Northern Woods Counting Money
    Do take special notice that this file references images hosted at an image file sharing site. Because of this - these images are likely to be gone at some point in the future ... then the script will look silly. Best to download those images, and re-host them somewhere else to ensure you don't lose them. Or at least make a backup copy of the images for use later on should the originals at imageshack get deleted.

    You could probably find a similar script with slightly more compelling video player ... or simply edit these images to more closely match your own needs. Overall it's an acceptably deceptive installer in my opinion.
     
  8. niceguy36

    niceguy36 Junior Member

    Joined:
    Jun 13, 2014
    Messages:
    183
    Likes Received:
    94
    Instead of plugin missing i want the cpa to pop up
     
  9. meetparikh

    meetparikh Newbie

    Joined:
    Dec 13, 2013
    Messages:
    13
    Likes Received:
    0
    Hi I want such script which should look more real video and then offer.. Will you pls help me with this?
     
  10. Zwielicht

    Zwielicht Moderator Staff Member Moderator Jr. VIP

    Joined:
    Aug 31, 2013
    Messages:
    7,764
    Likes Received:
    13,921
    Gender:
    Male
    Occupation:
    Death
    Location:
    Southern California
    Home Page:
    Please don't bump old threads.

    Thread Closed
     
Thread Status:
Not open for further replies.