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

Thread: Display Flash Ads before Videos

  1. #1
    trunk is offline Junior Member
    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>
    ---------------------------------------------
    admin, browniegirl and aakhan136 like this.

  2. #2
    ramius is offline Senior Member
    Join Date
    Jan 2008
    Posts
    230

    Default

    Nice, I will try it. Thanks!

  3. #3
    TerryNorris is offline Junior Member
    Join Date
    Dec 2007
    Posts
    4

    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
    trunk is offline Junior Member
    Join Date
    May 2009
    Posts
    21

    Default

    Yes You can

  5. #5
    diltube.com is offline Junior Member
    Join Date
    Oct 2010
    Posts
    3

    Default

    How We can add this ?

  6. #6
    browniegirl is offline Senior Member
    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
    hostonnet is offline Super Moderator
    Join Date
    Sep 2007
    Posts
    904

    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.
    frak and gangsterrecords like this.
    vShare Hosting, vShare Installation, Server Setup, Lighttpd streaming, vShare Templates
    install@hostonnet.com

  8. #8
    gangsterrecords is offline Junior Member
    Join Date
    Nov 2011
    Posts
    25

    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
    anth0ny is offline Member
    Join Date
    Feb 2010
    Posts
    71

    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
    browniegirl is offline Senior Member
    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
  •