Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default script/text from flashplayer showing up in product desctiption, category pages

    I am using Zen V1.5.0. I put JW player in a folder in the root of my server, and it seems to be working great (except in Firefox, but I'll save that for another day).. When I put the player code in my product description html text, the player comes out exactly where I want it and looks great, and the product description text looks good.. EXCEPT...,,, on the category page, or if you do a search, the text from the code shows up instead of my product description (or at the beginning of my product description I should say). I don't want to move the code lower to hide it because the player is showing up exactly where I want it. I switched templates to default green, same thing.... Here is a link to my test product, which looks fine http://stageandtheaterlighting.com/i...products_id=65 , but when you go to the LED Lights > LED Special Effects category http://stageandtheaterlighting.com/i...ex&cPath=10_12 , that's where the text is goofy.

    I don't know how to fix this. I tried moving the html tags aound, google, etc before posting. I would be thankful for any help, as usual....

    Here is the entire code (minus some of the middle description fields) for the 'can can' product description as entered in my admin product description box.

    <script type="text/javascript"src="/jwplayer/jwplayer.js"></script>
    <div id="container">Loading the player ...</div>
    <script type="text/javascript">
    jwplayer("container").setup
    ({
    autostart: true,
    file: "/videos/can_can.mp4",
    flashplayer: "/jwplayer/player.swf",
    volume: 80,
    height: 270,
    width: 360
    });
    </script>

    <html>
    <body>
    &bull; Product Model: Can Can<br>
    &bull; <br>
    &bull; POWER:<br>
    &bull; 110V/60Hz<br>
    &bull; POWER CONSUMPTION:<br>
    &bull; 40W<br>
    &bull; LED COUNT:<br>
    &bull; 120 x 5mm LEDs (40 RED, 40 GREEN, 40 BLUE)<br>
    &bull; AVERAGE RATED LED LIFE:<br>
    &bull; 22 Lbs (Single Pack)
    <p>&bull; SHIPPING DIMENSIONS:<br>
    &bull; 39In x 17In x 17In (Single Pack)</p>
    </body></html>

  2. #2
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: script/text from flashplayer showing up in product desctiption, category pages

    It's in the HTML I believe.. I thought I had it fixed and I posted my fix, but the script text just moved down a little. so I'm editing my post.. I'll post back after I fix it completely... sorry for the false alarm but Zen Cart wouldn't let me delete this post completely once I hit save the first time..
    Last edited by Johnnycopilot; 1 May 2012 at 01:41 AM.

  3. #3
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: script/text from flashplayer showing up in product desctiption, category pages

    After trying various things, I don't believe that I can fix this by myself...

  4. #4
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: script/text from flashplayer showing up in product desctiption, category pages

    Well, let me ask this.. does the code for the player look normal?

    <script type="text/javascript"src="/jwplayer/jwplayer.js"></script>
    <div id="container">Loading the player ...</div>
    <script type="text/javascript">
    jwplayer("container").setup
    ({
    autostart: true,
    file: "/videos/can_can.mp4",
    flashplayer: "/jwplayer/player.swf",
    volume: 80,
    height: 270,
    width: 360
    });
    </script>

    Below is the text that is showing up, it's not the entire code. Is there something in the code that may be making the text show up in my category pages but not the product showbook page? Is there some kind of a tag or something that I can put in this code that will keep it from showing up in my "display product description", but allow the code to keep working?

    Loading the player ...
    jwplayer("container").setup
    ({ autostart: false, file: "/videos/can_can.mp4",
    flashplayer: "/jwplayer/player.swf",
    volume: 80,
    height: 270,
    width: 360 });

    Any advice would be greatly appreciated.. Thanks!!

  5. #5
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: script/text from flashplayer showing up in product desctiption, category pages

    Could try making the DIV positioning of the video absolute instead of relative, putting the code to the bottom of the description, and then using margins to push the video back to the top of the page.

  6. #6
    Join Date
    Mar 2012
    Posts
    315
    Plugin Contributions
    0

    Default Re: script/text from flashplayer showing up in product desctiption, category pages

    Thanks for the suggestion. I have been reading CSS positioning tips, tried moving thing around, and I just can't get it. I actually need two lines of text between the $price and the top of the video, with no spaces. I am at the point of diminishing returns with this issue, so I will have to quit trying to fix it for now. I will just limit the characters in my text description, and move the video down a little. When I DO get around to trying to fix this (so my video is exactly where I want it and I can display more product description characters), can you tell me something?... so that I don't potentially spend hours in the wrong direction,,, is this something that I should fix in the product description text, or is this something I should try to fix in the php code? In either scenario I'm sure that I will need council. haha... Thanks!!

 

 

Similar Threads

  1. prevent the same homepage text from showing on category pages?
    By JHouse in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 6 Aug 2009, 09:01 PM
  2. text from main page showing up on category description
    By signs in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 27 Nov 2008, 09:42 PM
  3. Removing Images From Product Pages without removing them from Category Pages
    By googlepasta in forum Templates, Stylesheets, Page Layout
    Replies: 23
    Last Post: 5 Jan 2008, 04:06 PM
  4. remove script from product info pages?
    By doodlebee in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Apr 2007, 03:55 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR