Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Display Flash Ads before Videos

  1. #1
    Join Date
    May 2009
    Posts
    21

    Default Display Flash Ads before Videos

    Show swf adverts before Your videos.
    This code displays the ad for 6 seconds = 6000 miliseconds.
    You can change this value to suit Your own settings.

    File to edit : /templates/view_video.tpl

    ---------------------------------------------
    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> 
    Advertisement-swf file code here
    </font> 
    </div> 
    <div id="self" style="display:none";>
    Video code/embed code here
    </div>
    ---------------------------------------------

  2. #2
    Join Date
    Jan 2008
    Posts
    216

    Default

    Nice, I will try it. Thanks!

  3. #3
    Join Date
    Dec 2007
    Posts
    3

    Default Custom Display ad?

    Will this allow me to make my own custom ads for my other websites that I'm trying to promote?

  4. #4
    Join Date
    May 2009
    Posts
    21

    Default

    Yes You can :)

  5. #5
    Join Date
    Oct 2010
    Posts
    3

    Default

    How We can add this ?

  6. #6
    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.

  7. #7
    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]

  8. #8

    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?

  9. #9

    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!

  10. #10
    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.

Page 1 of 2 12 LastLast

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
  •