WordPress + JW Player + Ad Overlay = Money

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TheSenator
    Too lazy to set a custom title
    • Feb 2003
    • 13340

    #31
    Originally posted by rogueteens
    This please.

    Also if i add it to one of my legal tube sites will the advert show up if people embed the video on their sites?
    No....

    Since, the div layer and css is on the local server.

    I guess in can modify it some more to be portable.
    ISeekGirls.com since 2005

    Comment

    • vdbucks
      Monger Cash
      • Jul 2010
      • 2773

      #32
      Here's one I did for a site not too long ago... This one shows the ads on pause and when the video ends... It won't show when embedded on another site.. but with a little research you can figure out how to add the html inside the js functions so that it will...

      CSS: (this WILL need to be modified based on your side layout/config)

      #player-content {
      display: none;
      position: absolute;
      width: 640px;
      height: 447px;
      background-color: #000;
      padding: 0;
      margin: 35px 0 0 20px;
      opacity: 0.95;
      text-align: left;
      }

      #player-content-banner {
      position: absolute;
      bottom: 75%;
      width: 661px;
      text-align: center;
      }

      ------------------------------

      Player:

      <div id="player"></div>
      <div id="player-content">
      <div id="player-content-banner">
      <div style="position: relative; top: 160px;">
      AD CONTENT HERE
      </div>
      </div>
      </div>
      <script type="text/javascript" src="/player/jwplayer/jwplayer.js"></script>
      <script type="text/javascript">
      $(function()
      {
      $('#icon-resume').click(jwResume);
      $('#icon-replay').click(jwReplay);
      });
      jwplayer('player').setup({
      flashplayer: '/player/jwplayer/player.swf',
      id: 'jwplayer',
      width: '640',
      height: '480',
      skin: '/player/jwplayer/glow.zip',
      file: 'url/to/video',
      autostart: 'true',
      provider: 'video',
      events:
      {
      onPause: jwOnPause,
      onPlay: jwContentHide,
      onComplete: jwOnFinish
      }
      });
      function jwResume()
      {
      jwplayer()
      .play(true);
      }
      function jwReplay()
      {
      jwplayer()
      .playlistNext();
      }
      function jwOnFinish()
      {
      $('#icon-replay').show();
      $('#icon-resume').hide();
      jwContentShow();
      }
      function jwOnPause()
      {
      $('#icon-resume').show();
      $('#icon-replay').hide();
      jwContentShow();
      }
      function jwContentHide()
      {
      $('#player-content')
      .hide();
      }
      function jwContentShow()
      {
      var position = $('#player').position();
      $('#player-content')
      .css({top: position.top + 'px', left: position.left + 'px'})
      .show();
      }
      </script>

      Comment

      • Paul
        Confirmed User
        • Nov 2002
        • 2637

        #33
        Very nice!

        Comment

        • TheSenator
          Too lazy to set a custom title
          • Feb 2003
          • 13340

          #34
          Originally posted by vdbucks
          Here's one I did for a site not too long ago... This one shows the ads on pause and when the video ends... It won't show when embedded on another site.. but with a little research you can figure out how to add the html inside the js functions so that it will...

          CSS: (this WILL need to be modified based on your side layout/config)

          #player-content {
          display: none;
          position: absolute;
          width: 640px;
          height: 447px;
          background-color: #000;
          padding: 0;
          margin: 35px 0 0 20px;
          opacity: 0.95;
          text-align: left;
          }

          #player-content-banner {
          position: absolute;
          bottom: 75%;
          width: 661px;
          text-align: center;
          }

          ------------------------------

          Player:

          <div id="player"></div>
          <div id="player-content">
          <div id="player-content-banner">
          <div style="position: relative; top: 160px;">
          AD CONTENT HERE
          </div>
          </div>
          </div>
          <script type="text/javascript" src="/player/jwplayer/jwplayer.js"></script>
          <script type="text/javascript">
          $(function()
          {
          $('#icon-resume').click(jwResume);
          $('#icon-replay').click(jwReplay);
          });
          jwplayer('player').setup({
          flashplayer: '/player/jwplayer/player.swf',
          id: 'jwplayer',
          width: '640',
          height: '480',
          skin: '/player/jwplayer/glow.zip',
          file: 'url/to/video',
          autostart: 'true',
          provider: 'video',
          events:
          {
          onPause: jwOnPause,
          onPlay: jwContentHide,
          onComplete: jwOnFinish
          }
          });
          function jwResume()
          {
          jwplayer()
          .play(true);
          }
          function jwReplay()
          {
          jwplayer()
          .playlistNext();
          }
          function jwOnFinish()
          {
          $('#icon-replay').show();
          $('#icon-resume').hide();
          jwContentShow();
          }
          function jwOnPause()
          {
          $('#icon-resume').show();
          $('#icon-replay').hide();
          jwContentShow();
          }
          function jwContentHide()
          {
          $('#player-content')
          .hide();
          }
          function jwContentShow()
          {
          var position = $('#player').position();
          $('#player-content')
          .css({top: position.top + 'px', left: position.left + 'px'})
          .show();
          }
          </script>
          I wish I had a stronger understanding of java script.
          ISeekGirls.com since 2005

          Comment

          • V_RocKs
            Damn Right I Kiss Ass!
            • Nov 2003
            • 32447

            #35
            I like you... and not just because you are sexy.

            Comment

            • vdbucks
              Monger Cash
              • Jul 2010
              • 2773

              #36
              Originally posted by TheSenator
              I wish I had a stronger understanding of java script.
              I honestly know very little about js... I'm just good at RTFM'ing and googling... sometimes spend days working on some code til it's just right.

              I think that one I posted above took me a good 6 hours to figure out lol

              Comment

              • The Dawg
                Confirmed User
                • Apr 2002
                • 2438

                #37
                Very nice.

                Comment

                • papill0n
                  Unregistered Abuser
                  • Oct 2007
                  • 15547

                  #38
                  thanks for sharing

                  Comment

                  • TheSenator
                    Too lazy to set a custom title
                    • Feb 2003
                    • 13340

                    #39
                    Originally posted by vdbucks
                    I honestly know very little about js... I'm just good at RTFM'ing and googling... sometimes spend days working on some code til it's just right.

                    I think that one I posted above took me a good 6 hours to figure out lol
                    Same here...

                    I had to fix my broken server once because my sys admin was on vacation.
                    ISeekGirls.com since 2005

                    Comment

                    • Tube Ace
                      So Fucking Banned
                      • Nov 2008
                      • 4941

                      #40
                      looks pretty good.

                      Comment

                      • Nicky
                        Too lazy to set a custom title
                        • Mar 2003
                        • 30071

                        #41
                        Originally posted by TheSenator
                        The theme is one of my favorites in the market today.
                        WooThemes CANVAS
                        The theme has everything you want built in and it is also light on the server.
                        HTML5, Google Fonts, Widgets galore, etc.

                        The theme is also easy to style from the admin area.
                        Thanks

                        gfynicky @ gmail.com

                        Comment

                        • Danmixz
                          Confirmed User
                          • Sep 2010
                          • 649

                          #42
                          Not bad but how about auto close the ads ? Like a 10 seconds timer

                          Comment

                          • AHarper
                            Confirmed User
                            • Jul 2010
                            • 846

                            #43
                            Does it work with flowplayer, too? Need a similar solution for flowplayer.
                            Bitcoin Webcams | Send your EU traffic here | Cheap Shared & Reseller Adult Hosting

                            Comment

                            Working...