Results 1 to 3 of 3

Thread: Integrating dynamic drive carousel with Wordpress

  1. #1
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Integrating dynamic drive carousel with Wordpress

    1) Script Title:

    dynamic drive carousel
    Wordpress


    2) Script URL (on DD):

    http://www.dynamicdrive.com/dynamici...epcarousel.htm

    3) Describe problem:

    I want to use the dynamic drive carousel on my wordpress blog and have got it working ok on a test page...

    http://www.dannymax.co.uk/blog/wp-co...Untitled-1.php

    When I try and call the js into the header.php and put the code in the page the script wont run so just the html is displayed...

    http://www.dannymax.co.uk/blog/?page_id=2

    After hours of trying to sort this myself Im out of ideas, please help!

  2. #2
    Join Date
    Feb 2009
    Location
    Victoria, BC, Canada
    Posts
    303
    Thanks
    18
    Thanked 36 Times in 36 Posts

    Default

    That's one bad thing about Wordpress - It automatically edits your HTML code, and you can't disable this function (as far as I know). It's caused me lots of grief with HTML examples...

    Look what it does to your javascript! ::
    Code:
    					<p><script type="text/javascript"></p>
    <p>stepcarousel.setup({
    	galleryid: 'mygallery', //id of carousel DIV
    	beltclass: 'belt', //class of inner "belt" DIV containing all the panel DIVs
    	panelclass: 'panel', //class of panel DIVs each holding content
    	autostep: {enable:true, moveby:1, pause:3000},
    	panelbehavior: {speed:500, wraparound:false, persist:true},
    	defaultbuttons: {enable: true, moveby: 1, leftnav: ['Untitled-2.gif', 10, 80], rightnav: ['Untitled-2_right.gif', -30, 80]},
    	statusvars: ['statusA', 'statusB', 'statusC'], //register 3 variables that contain current panel (start), current panel (last), and total panels
    	contenttype: ['inline'] //content setting ['inline'] or ['external', 'path_to_external_file']
    })</p>
    <p></script></p>
    Every line break it determines as a <P>... There have been many angry bug reports in the Wordpress Codex, and they plan to fix it in a future release...

    Not much you can do, file another report into Wordpress and maybe they'll be fed up with all the reports and fix the issue...

    // X96 \\
    Alex Blackie, X96 Design
    My Website
    I specialize in: HTML5, CSS3, PHP, Ruby on Rails, MySQL, MongoDB, Linux Server Administration

  3. #3
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for that X96 ,

    I have found a way to get rid of those <p> tags using...

    http://plugins.trac.wordpress.org/wiki/TextControl

    might help you with some of your issues. Trouble is that the carousel still wont work, any other ideas?

Tags for this Thread

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
  •