Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2011
    Location
    Slovakia
    Posts
    11
    Plugin Contributions
    0

    Idea or Suggestion All banners positions support SWF

    1. code change

    file includes/functions/banner.php

    find:
    $banner_string = zen_image(DIR_WS_IMAGES . $banner->fields['banners_image'], $banner->fields['banners_title']);

    replace:

    $flash_array = explode(",",$banner->fields['banners_title']);
    if($flash_array[0] != 'sumo-flash') {
    $banner_string = zen_image(DIR_WS_IMAGES . $banner->fields['banners_image'], $banner->fields['banners_title']);
    } else {
    $banner_string = '<object codebase="(EmptyReference!)" type="application/x-shockwave-flash" data="images/' . $banner->fields['banners_image'] . '" width="' . $flash_array[1] . '" height="'. $flash_array[2] .'">';
    $banner_string .= '<param name="movie" value="images/' . $banner->fields['banners_image'] . '" /><param name="wmode" value="transparent"/></object>';
    }

    2. edit your banner - banner manager

    banner name : sumo-flash,150px,100px

    banner image format - file.swf


  2. #2
    Join Date
    Sep 2011
    Location
    Slovakia
    Posts
    11
    Plugin Contributions
    0

    Idea or Suggestion Re: All banners positions support SWF

    small adjustment to the code
    it works good
    allowed modifies the name banner
    name banner must begin with sumo-flash
    Example of banner name: sumo-flash Top,140px,120px

    file: includes/functions/banner.php

    find:
    $banner_string = zen_image(DIR_WS_IMAGES . $banner->fields['banners_image'], $banner->fields['banners_title']);

    replace:

    if(substr($banner->fields['banners_title'],0,10) != 'sumo-flash') {
    $banner_string = zen_image(DIR_WS_IMAGES . $banner->fields['banners_image'], $banner->fields['banners_title']);
    } else {
    $flash_array = explode(",",$banner->fields['banners_title']);
    $banner_string .= '<object codebase="(EmptyReference!)" type="application/x-shockwave-flash" data="images/' . $banner->fields['banners_image'] . '" width="' . $flash_array[1] . '" height="'. $flash_array[2] .'">';
    $banner_string .= '<param name="movie" value="images/' . $banner->fields['banners_image'] . '" /><param name="wmode" value="transparent"/></object>';
    }

 

 

Similar Threads

  1. Banners or positions turned on / or of on specific pages
    By Fairstickers in forum Basic Configuration
    Replies: 0
    Last Post: 24 Mar 2009, 10:05 AM
  2. swf files in banners
    By amanuensis in forum General Questions
    Replies: 1
    Last Post: 2 Oct 2007, 11:38 PM
  3. .SWF Wide-Banners not showing?
    By crankytech in forum Basic Configuration
    Replies: 2
    Last Post: 19 Jun 2007, 06:28 AM
  4. .swf banners
    By zbargain in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Feb 2007, 09:00 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR