Results 1 to 7 of 7

Thread: Watermark - Transparent PNGs

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2007
    Posts
    2,202

    Default

    This can be done in admin, for that (selecting png/gif watermark by user), we need an extra database field, read it every time to see if watermark is PNG or GIF, then display it.

    Doing this process need cpu time, memory, it is not much, but for high traffic site, it will adds up. Do we need to use up extra memory for a rarely used feature ? Watermark image for most are set and forget feature, used only one time.

  2. #2
    Join Date
    Jun 2010
    Posts
    1

    Default

    include/player.inc

    Code:
    <?php
    $displayheight = $config['player_height'] - 20;
    $vshare_player = <<<EOT
    <script type="text/javascript" src="{$config['baseurl']}/player/swfobject_1.5.js"></script>
    <p id="vshare_player">
        <a href="Adobe - Adobe Flash Player">
            <img src="http://www.adobe.com/images/shared/d...ash_player.gif" alt="Get Adobe Flash player" />
        </a>
    </p>
    <script type="text/javascript">
    var so = new SWFObject("{$config['baseurl']}/player/player.swf","vshare_player","$config[player_width]","$config[player_height]","8");
    so.addParam("allowfullscreen","true");
    so.addVariable("file","{$file}");
    so.addVariable("image","{$video_thumb_url}/thumb/{$video_folder}{$video_id}.jpg");
    so.addVariable("logo","{$config['baseurl']}/templates/images/watermark.png");
    so.addVariable("link","{$config["watermark_url"]}");
    so.addVariable("linktarget","_blank");
    so.addVariable("width","{$config['player_width']}");
    so.addVariable("height","{$config['player_height']}");
    so.addVariable("displayheight","$displayheight");
    so.addVariable("overstretch", "true");
    so.addVariable("autostart", "{$config['player_autostart']}");
    so.addVariable("bufferlength", "{$config['player_bufferlength']}");
    so.write('vshare_player');
    </script>
    EOT;

Similar Threads

  1. Set Flash Player to transparent
    By porkd in forum General Discussions
    Replies: 0
    Last Post: 11-29-2007, 03:29 PM
  2. Watermark
    By igorcreed in forum Template Modifications
    Replies: 1
    Last Post: 09-27-2007, 05:28 PM
  3. Watermark
    By Alexy in forum Feature Requests
    Replies: 12
    Last Post: 08-14-2007, 09:27 PM
  4. Watermark
    By admin in forum Frequently Asked Questions
    Replies: 7
    Last Post: 08-01-2007, 02:51 AM
  5. .Swf Or .Flv as A watermark
    By zeffer in forum Feature Requests
    Replies: 2
    Last Post: 06-03-2007, 10:11 PM

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
  •