Results 1 to 10 of 13

Thread: Display Flash Ads before Videos

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2007
    Posts
    169

    Default

    Where in the tpl file do you add this? Does it replace something else?
    SPEED UP YOUR VSHARE SITE!
    Speed up your vshare site by "offloading" your images and video thumbs!
    Just visit http://offload.limbar.com for details.

  2. #2
    Join Date
    Sep 2007
    Posts
    906

    Default

    Edit templates/view_video.tpl and find out following

    <div>{$view.VSHARE_PLAYER}</div>

    and replace with the following code
    Code:
    <script> 
    window.setTimeout("document.getElementById('ads').style.display = 'none';document.getElementById('self').style.display= '';",6000); 
    </script> 
    <div id="ads"> 
    <div align="right"><font face="Arial" style="font-size: 10pt; font-weight: 700"><a href="#" onclick="document.getElementById('ads').style.display= 'none';document.getElementById('self').style.display = '';"> 
    <font color="#FF0000">Skip Ads»</font></a></font></div> 
    <center> 
    <font color="#FF0000"> 
    <font face="Arial" style="font-size: 9pt; font-weight: 700">Please Wait...<br> 
    </font><img border="0" src="http://img25.imageshack.us/img25/2134/ajaxloader.gif" width="128" height="15"><br> 
    
    Addd your swf file code here
    
    </font> 
    </div> 
    <div id="self" style="display:none";>
    
    <div>{$view.VSHARE_PLAYER}</div>
    
    </div>
    Last edited by vshare2; 07-23-2011 at 10:55 AM.
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    [email protected]

  3. #3

    Default

    Hello, I need help with this one I'm using vShare version: 2.8.1
    I add the code but how do i put the ads on the video or get the ads to play?

  4. #4

    Default

    Very nice ty :) i use ero for my ad so i just added a square banner before clips :)

    so you are not just limited to swf files you can add almost anything!

  5. #5
    Join Date
    Jul 2007
    Posts
    169

    Default

    IS there a way to put ads at the start AND finish of each video? (or add it to just the end)?
    Last edited by browniegirl; 04-19-2012 at 12:46 AM.
    SPEED UP YOUR VSHARE SITE!
    Speed up your vshare site by "offloading" your images and video thumbs!
    Just visit http://offload.limbar.com for details.

  6. #6

  7. #7
    Join Date
    Sep 2009
    Posts
    25

    Default

    GREAT !!! look..

    Creación de instalador de aplicación Visual Basic .NET - VB-MUNDO VIDEOS

    your code is perfect !! and works fine with Adsense

    THANKS A LOT

  8. #8
    Join Date
    Sep 2009
    Posts
    25

    Default

    Can you tell us if is possible show something when the video ends ?

    Regards

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •