Integrating the Piecemaker 3D Gallery into your WordPress Theme

Integrating the Piecemaker 3D Gallery into your WordPress Theme

This tutorial will show you how to successfully integrate the Piecemaker 3D Flash image rotator into your WordPress theme. We’ll also discuss setting up a custom admin panel which will make it super easy for your users to make customizations to the rotator.

Piecemaker is a gorgeous, open-source, 3D Flash image rotator created by Björn Crüger from Modularweb. You can preview the piecemaker in action on Sansation, the first premium WordPress theme on ThemeForest to incorporate Piecemaker.

Piecemaker

Preview


Brief Overview

All of the files included in the ZIP file are already modified for you. We’ve also included a folder which has all of the default unmodified Piecemaker files. I recommend that you go check out the Piecemaker site and familiarize yourself with it before proceeding with the tutorial.


Step 1. Modify the ActionScript

The first step is to modify the ActionScript so that it’ll play nicely with WordPress. The ActionScript that comes with Piecemaker defines three values that the Piecemaker needs in order to function properly:

  • the XML Source
  • the CSS Source
  • the path to the images folder.

The XML Source defines the Picemaker’s various settings and allows you to define images and their descriptions. The CSS file styles the Piecemaker’s description panels, and the images directory tells the Piecemaker where to pull the images from.

Open up the FLA file named “piecemakerNoShadow.fla” and open the Actions window. In frame 1 you will see the actions below. Please note that you need Flash CS4 to open the source file.

In order for the Piecemaker to work properly within our WordPress theme, we need to dynamically set these variables. To achieve this, we will be using FlashVars. FlashVars are variables the we’ll set within our WordPress page template that will get passed to the flash movie when the page loads. Go ahead and delete the default actions in frame 1 of the flash file, and replace them with the following code:

stage.scaleMode = StageScaleMode.NO_SCALE;

// Pull in the Flashvars
var allFlashVars:Object = LoaderInfo(this.root.loaderInfo).parameters;

// Set the required variables for piecemaker
piecemaker.xmlSource = String(allFlashVars.xmlSource);
piecemaker.cssSource = String(allFlashVars.cssSource);
piecemaker.imageSource = String(allFlashVars.imageSource);
piecemaker.dispatchEvent(new Event("properties"));

The above ActionScript first loads in the FlashVars, and then replaces the default Piecemaker values with these new variables. Our Flash file is now all set to go. Publish the SWF and load your FTP client of choice.


Step 2. Upload Files and Folders

The next step is to upload the required files and folders into your WordPress theme’s directory. This tutorial assumes that you will be uploading everything directly into your theme’s main directory. Here is a list of the required items:

  • piecemakerCSS.css
  • piecemakerNoShadow.swf
  • piecemakerXML.xml
  • ‘images’ folder (with your images in it)
  • ‘swfobject’ folder (plus contents)
  • piecemakerXML.php (needde for use with the custom admin panel)

Step 3. Embed the SWF and set the FlashVars

The next step is to embed the SWF movie into your WordPress page template. We’ll be using SWFObject 2 to embed the movie, and we’ll also define the three FlashVars that we referenced in step one.

You first need to reference swfobject within the head of your page. To do so, open up your theme’s “header.php” file in your code editor of choice (mine’s BBEdit), and add the following code in the head of your page:

<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/swfobject/swfobject.js"></script>

Next, open up the WordPress page template where you’d like the Piecemaker 3D Rotator to display, and paste the following code:

<div id="flashcontent">
<p>You need to <a href="http://www.adobe.com/products/flashplayer/" target="_blank">upgrade your Flash Player</a> to version 10 or newer.</p>
</div><!-- end flashcontent -->

<script type="text/javascript">
		var flashvars = {};
		flashvars.xmlSource = "<?php bloginfo('template_url'); ?>/piecemakerXML.xml";
		flashvars.cssSource = "<?php bloginfo('template_url'); ?>/piecemakerCSS.css";
		flashvars.imageSource = "<?php bloginfo('template_url'); ?>/images";
		var attributes = {};
		attributes.wmode = "transparent";
		swfobject.embedSWF("<?php bloginfo('template_url'); ?>/piecemakerNoShadow.swf", "flashcontent", "960", "610", "10", "<?php bloginfo('template_url'); ?>/swfobject/expressInstall.swf", flashvars, attributes);
</script>

Code Explaination

The bulk of the code is just your standard swfobject code used to embed a flash movie onto any webpage. The important stuff we need to be concerned with are the FlashVars:

flashvars.xmlSource = "<?php bloginfo('template_url'); ?>/piecemakerXML.xml";
flashvars.cssSource = "<?php bloginfo('template_url'); ?>/piecemakerCSS.css";
flashvars.imageSource = "<?php bloginfo('template_url'); ?>/images";

Notice that we have named our FlashVars just as we defined them in the ActionScript in step on4. We are also using WordPress’ built-in bloginfo() function to reference the exact locations of the three required files.

That’s it! Well, Sort of…

The above steps will enable you to successfully deploy the Piecemaker 3D Image Rotator into your WordPress theme, but we’re going to take it a step further. In the following steps, we will discuss how to create a custom admin panel that will allow you to customize Piecemaker’s settings right from the WordPress back-end.

If you’re not interested in setting up the admin panel, you can go over to the Piecemaker website to read the documentation and start making some really kick-awesome animations.


Step 4. Create The Admin Panel

We will not be covering how to create the entire admin panel from scratch. Instead, we’ll expand upon an already in-depth tutorial here on Nettuts: How to Create a Better WordPress Panel.

Once you have followed that tutorial and you have your admin panel setup, please proceed to the next step.


Step 5. Define Our New Options Panel

We now need to add additional options to the admin panel you just created in the tutorial. Open your theme’s “functions.php” file, and replace the first chunk of code with the following:

<?php
$themename = "Nettuts";
$shortname = "nt";

$categories = get_categories('hide_empty=0&orderby=name');
$wp_cats = array();
foreach ($categories as $category_list ) {
       $wp_cats[$category_list->cat_ID] = $category_list->cat_name;
}
array_unshift($wp_cats, "Choose a category"); 
$tween_types = array("linear","easeInSine","easeOutSine", "easeInOutSine", "easeInCubic", "easeOutCubic", "easeInOutCubic", "easeOutInCubic", "easeInQuint", "easeOutQuint", "easeInOutQuint", "easeOutInQuint", "easeInCirc", "easeOutCirc", "easeInOutCirc", "easeOutInCirc", "easeInBack", "easeOutBack", "easeInOutBack", "easeOutInBack", "easeInQuad", "easeOutQuad", "easeInOutQuad", "easeOutInQuad", "easeInQuart", "easeOutQuart", "easeInOutQuart", "easeOutInQuart", "easeInExpo", "easeOutExpo", "easeInOutExpo", "easeOutInExpo", "easeInElastic", "easeOutElastic", "easeInOutElastic", "easeOutInElastic", "easeInBounce", "easeOutBounce", "easeInOutBounce", "easeOutInBounce");

The bulk of the above code is identical to the tutorial, but we’ve added a new array named $tween_types. This array holds all of the various animation effects that are available with PieceMaker. We will use this array to generate a dropdown list of the various animation effects in our custom options panel. You can check out the Tweener Documentation to review a visual representation of the various Piecemaker animation effects.

Still within the functions.php file, add the following array below the ones you’ve already created in the tutorial.

This will create a new sliding options panel similar to the ones you created in the tutorial. It’s a long bit of code, but it follows the same exact logic as the tutorial. We are simply creating variables for all of the different settings that we’ll need to define in the Piecemaker’s XML file. An important thing to note is that we made sure to define default values for each option (the values in ‘std’ are the default values). There are a decent amount of settings for the Piecemaker and we don’t want to force our users to set up all those options if they don’t want to.

array( "name" => "3D Rotator Options",
"type" => "section"),
array( "type" => "open"),

array( "name" => "Segments",
"desc" => "Number of segments in which the image will be sliced.",
"id" => $shortname."_segments",
"type" => "text",
"std" => "9"),

array( "name" => "Tween Time",
"desc" => "Number of seconds for each element to be turned.",
"id" => $shortname."_tween_time",
"type" => "text",
"std" => "3"),

array( "name" => "Tween Delay",
"desc" => "Number of seconds from one element starting to turn to the next element starting.",
"id" => $shortname."_tween_delay",
"type" => "text",
"std" => "0.1"),

array( "name" => "Tween Type",
"desc" => "Type of animation transition.",
"id" => $shortname."_tween_type",
"type" => "select",
"options" => $tween_types,
"std" => "Choose a category"),

array( "name" => "Z Distance",
"desc" => "to which extend are the cubes moved on z axis when being tweened. Negative values bring the cube closer to the camera, positive values take it further away. A good range is roughly between -200 and 700.",
"id" => $shortname."_z_distance",
"type" => "text",
"std" => "25"),

array( "name" => "Expand",
"desc" => "To which etxend are the cubes moved away from each other when tweening.",
"id" => $shortname."_expand",
"type" => "text",
"std" => "9"),

array( "name" => "Inner Color",
"desc" => "Color of the sides of the elements in hex values (e.g. 0x000000 for black)",
"id" => $shortname."_inner_color",
"type" => "text",
"std" => "0x000000"),

array( "name" => "Text Background Color",
"desc" => "Color of the description text background in hex values (e.g. 0xFF0000 for red)",
"id" => $shortname."_text_background",
"type" => "text",
"std" => "0x666666"),

array( "name" => "Text Distance",
"desc" => "Distance of the info text to the borders of its background.",
"id" => $shortname."_text_distance",
"type" => "text",
"std" => "25"),

array( "name" => "Shadow Darkness",
"desc" => "To which extend are the sides shadowed, when the elements are tweening and the sided move towards the background. 100 is black, 0 is no darkening.",
"id" => $shortname."_shadow_darkness",
"type" => "text",
"std" => "25"),

array( "name" => "Auto Play",
"desc" => "Number of seconds to the next image when autoplay is on. Set 0, if you don't want autoplay.",
"id" => $shortname."_autoplay",
"type" => "text",
"std" => "2"),

array( "type" => "close"),

Step 6. Update Our Page Template

In this step, we need to slightly modify our WordPress page template from Step three. Instead of pointing our xmlSource to an XML file, we need to point it to a PHP file. By using a PHP file instead of an XML file, we can pull in all of the values that were set by the user in our custom options panel. It’s just the one line of code that needs to be replaced:

flashvars.xmlSource = "<?php bloginfo('template_url'); ?>/piecemakerXML.php";

Step 7. Generate our XML File with PHP

We’re almost there! In this step, we’ll create the PHP file that we just referenced in the code above. This PHP file will be used to pull in all of the values from our custom options panel and generate the XML file that the Piecemaker needs in order to function properly. The code is somewhat lengthy, so I’ll try to break it up into more digestable chunks.

Create a blank PHP file, name it “piecemakerXML.php”, and paste the following code at the start of the file:

<?php require_once( '../../../wp-load.php' );
$segments = get_option('nt_segments');
$tweentime = get_option('nt_tween_time');
$tweendelay = get_option('nt_tween_delay');
$tweentype = get_option('nt_tween_type');
$zdistance = get_option('nt_z_distance');
$expand = get_option('nt_expand');
$innercolor = get_option('nt_inner_color');
$textbackground = get_option('nt_text_background');
$textdistance = get_option('nt_text_distance');
$shadow = get_option('nt_shadow_darknent');
$autoplay = get_option('nt_autoplay');
?>
  • The first line loads WordPress into our PHP file. This allows us to have access to all of the default WordPress functions, as well as any values stored within our database.
  • The rest of the code pulls in the data from our custom options panel and stores those values into variables. We will use these variables to generate the rest of the Piecemaker’s settings.
  • Next, we need to set the content-type header so that the browser knows we are going to output XML content rather than the default text/html. We will also include some initial Piecemaker settings tags.

    <?php
    header("Content-type: text/xml");
    echo '<?xml version="1.0" encoding="utf-8" ?>
    <Piecemaker>
      <Settings>
    	<imageWidth>830</imageWidth>
    	<imageHeight>360</imageHeight>';
    

    We are now going to output the variables we stored into their correct XML tags, and close out the Piecemaker settings tag.

    echo '<segments>'. $segments . '</segments>';
    echo '<tweenTime>'. $tweentime . '</tweenTime>';
    echo '<tweenDelay>'. $tweendelay . '</tweenDelay>';
    echo '<tweenType>'. $tweentype . '</tweenType>';
    echo '<zDistance>'. $zdistance . '</zDistance>';
    echo '<expand>'. $expand . '</expand>';
    echo '<innerColor>'. $innercolor . '</innerColor>';
    echo '<textBackground>'. $textbackground . '</textBackground>';
    echo '<textDistance>'. $textdistance . '</textDistance>';
    echo '<shadowDarknent>' . $shadow . '</shadowDarknent>';
    echo '<autoplay>' . $autoplay .  '</autoplay>'; 
    echo '
    </Settings>
    

    The final step is to output the images that we want to include in the rotator along with their descriptions, and we’ll also close out the Piecemaker XML tag.

    <Image Filename="image1.jpg">
        <Text>
          <headline>Description Text</headline>
          <break>Ӂ</break>
          <paragraph>Here you can add a description text for every single slide.</paragraph>
          <break>Ӂ</break>
          <inline>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eu quam dolor, a venenatis nisl. Praesent scelerisque iaculis fringilla. Sed congue placerat eleifend.</inline>
          Ӂ<a href="http://themes.5-squared.com/sansation/?style=cool_blue" target="_blank">hyperlinks</a>
        </Text>
      </Image>
      <Image Filename="image2.jpg">
        <Text>
          <headline>Description Text</headline>
          <break>Ӂ</break>
          <paragraph>Here you can add a description text for every single slide.</paragraph>
          <break>Ӂ</break>
          <inline>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eu quam dolor, a venenatis nisl. Praesent scelerisque iaculis fringilla. Sed congue placerat eleifend.</inline>
          Ӂ<a href="http://themes.5-squared.com/sansation/?style=cool_blue" target="_blank">hyperlinks</a>
        </Text>
      </Image>
      <Image Filename="image3.jpg">
        <Text>
          <headline>Description Text</headline>
          <break>Ӂ</break>
          <paragraph>Here you can add a description text for every single slide.</paragraph>
          <break>Ӂ</break>
          <inline>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eu quam dolor, a venenatis nisl. Praesent scelerisque iaculis fringilla. Sed congue placerat eleifend.</inline>
          Ӂ<a href="http://themes.5-squared.com/sansation/?style=cool_blue" target="_blank">hyperlinks</a>
        </Text>
      </Image>
      <Image Filename="image4.jpg">
        <Text>
          <headline>Description Text</headline>
          <break>Ӂ</break>
          <paragraph>Here you can add a description text for every single slide.</paragraph>
          <break>Ӂ</break>
          <inline>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eu quam dolor, a venenatis nisl. Praesent scelerisque iaculis fringilla. Sed congue placerat eleifend.</inline>
          Ӂ<a href="http://themes.5-squared.com/sansation/?style=cool_blue" target="_blank">hyperlinks</a>
        </Text>
      </Image>
    </Piecemaker>';
    ?>
    

    Conclusion

    I hope you learned something useful in this tutorial. By combining various different technologies, we’re able to add powerful functionality to our WordPress themes. More importantly, we made it easy for the average user to make customizations to our theme.

Tags: Flash
Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://www.bencagri.com çağrı

    thanx for tutorial, i was looking for this :)

  • http://freelancer.peshev.net Mario Peshev

    That’s a great tut, thanks for that.

    Any tips on removing the annoying “Welcome” message on slider loading?

    • http://themeforest.net/user/TrueThemes?ref=TrueThemes TrueThemes

      Hi Mario,

      I’m the author of this tutorial (have a new account).

      The developers of Piecemaker have recently released “Piecemaker2″ which also has a WordPress plugin. I haven’t played around with it much but I’ve heard very good things about it. You might be interested in using Piecemaker2 instead: http://www.modularweb.net/#/en/piecemaker

      I hope this is helpful for you

      Cheers.

  • Catalin Cimpanu

    Will this be supported for WP 3.1 ?

    • http://zatori.net/zwp Frank

      I just tried to install The Piecemaker 2
      through the plugin manager on WordPress Version 3.1.3

      ( The plugin does not have a valid header. )

      To bad I would love to have it :-)

      • Sara

        Unpack it further. the zip file you need to install is within the zip file, if you get me.

  • Damyan

    Hello,
    Let me ask you for some help, please.
    I am using WordPress with the Piecekeeper theme(it includes the piecemaker 3d slider). I saw that turtorial – http://net.tutsplus.com/tutorials/wordpress/integrating-the-piecemaker-3d-gallery-into-your-wordpress-theme/comment-page-1/#comments and I have a question – how can I change the ‘LOADING’ image from the slider. The very first image in the slider when the page loads is something like “Images loading” or “Welcome” or something like that, and when all the images in the slider load, the one with the ‘loading’ sign doesn’t show.
    Can you please tell me how to change this very first ‘loading’ image, which file should I change?
    My e-mail is diki_t0@abv.bg
    Thanks in advance,
    Damyan

  • Wagdi

    I get the following error message when opening the page with the Piecemaker:

    Parse error: syntax error, unexpected ‘<' in /hermes/bosweb/web222/b2222/ipg.saintanthonynjorg/youth/wp-content/themes/Youth_Theme_6/onecolumn-page.php on line 21

    Any thoughts?

    Here is the code for that page…

    &lt?php
    /*
    Template Name: One Column
    */
    art_page_template(‘onecolumn-page’);
    get_header();

    if (have_posts())
    {
    while (have_posts())
    {
    art_post();
    comments_template();
    }
    } else {
    art_not_found_msg();
    }

    get_footer();

    &ltdiv id=”flashcontent”
    &ltp&gtYou need to &lta href=”http://www.adobe.com/products/flashplayer/” target=”_blank”&gtupgrade your Flash Player&lt/a&gt to version 10 or newer.&lt/p&gt
    &lt/div&gt&lt!– end flashcontent –&gt

    &ltscript type=”text/javascript”&gt
    var flashvars = {};
    flashvars.xmlSource = “&lt?php bloginfo(‘template_url’); ?&gt/piecemakerXML.xml”;
    flashvars.cssSource = “&lt?php bloginfo(‘template_url’); ?&gt/piecemakerCSS.css”;
    flashvars.imageSource = “&lt?php bloginfo(‘template_url’); ?&gt/images”;
    var attributes = {};
    attributes.wmode = “transparent”;
    swfobject.embedSWF(“&lt?php bloginfo(‘template_url’); ?&gt/piecemakerNoShadow.swf”, “flashcontent”, “960″, “610″, “10″, “&lt?php bloginfo(‘template_url’); ?&gt/swfobject/expressInstall.swf”, flashvars, attributes);
    &lt/script&gt

  • http://www.armeki.com Armeki

    One of the most important thing on a blog.. i’m using this now, thanks for excellent tutorial…

  • Sam

    This looks is a great tool.

    I am using it installed on a theme I purchased and now want to add it to some other sites. When I add piecemaker 2 to the plugins I get that it is missing it’s header file. Please advise… and thank you much!

  • http://zolowebdesign.com/ AzPilot

    For those of you having image size issues and rotation being cut off..
    create an id named flashcontent in your stylesheet larger than what your image is. My Images are 960px x 360px. I adjusted the image holder as follows:

    #flashcontent{
    width: 1150px;
    height: 650px;
    margin: -80px 0 0 -60px;
    background-image: url(‘../../images/piecemakerNoShadow.png’);
    background-repeat: no-repeat;
    background-position: top left;
    }

    For my Images I created a new form field in the admin section like so:

    array( “name” => “Image One URL”,
    “desc” => “Enter the link to your first image. NOTE: DO NOT ENTER THE URL (wp-content/uploads/) Enter The Image Name (Image1.jpg) (IMAGE SIZE 990px x 300px !)”,
    “id” => $shortname.”_3d1″,
    “type” => “text”,
    “std” => “”),

    Then added the following code to my piecmakerXML.php file:

    $image1 = get_option(‘zs_3d1′);

    Note: Change zs_ to whatever your $shortname is.

    Then again in piecmakerXML.php, replace:

    ;

    with:

    you can use the same method for changing the text and urls.

    Hope that helps some of you.

    Thanks for the awesome tut!!

    • AzPilot

      The bottom part that got cut off should read:

      in piecmakerXML.php replace:

      with:

      • AzPilot

        hmmm. code wont show…

        <Image Filename=”image1.jpg”>

        with

        <Image Filename=”‘;
        echo $image2;
        echo ‘”>
        </Image>

      • http://themeforest.net/user/TrueThemes?ref=TrueThemes TrueThemes

        Hi azPilot,

        I’m the author of this tutorial (have a new account).

        The developers of Piecemaker have recently released “Piecemaker2″ which also has a WordPress plugin. I haven’t played around with it much but I’ve heard very good things about it. You might be interested in using Piecemaker2 instead: http://www.modularweb.net/#/en/piecemaker

        I hope this is helpful for you

        Cheers.

  • Rafa

    Hi there!

    Anyone knows, How to allow special chars in the description or tag? like éáñ, etc?

    Thanks guys!
    R

  • http://www.fbmediaworks.com Marcello

    Hello

    i really enjoy the piecemaker2.
    I installed it on this “wordpress’s site” http://www.providence-ams.fr

    The problems i met is that
    -i can’t define a text to put on the info part, this one not appear.
    -when i put a video inside it (.swf) the piece with the video didnt work, on the list of the point under the piecemaker, this point is little and the slide jump it.

    Not sure my english is very good, then you can see this in live on the site, i let it.

    Thank you for advance to your answer

    best regards

    Marcello

  • http://codercaste.com Spyros

    I have to use piecemaker 1 for a project but i need to remove the welcome message in the beginning. I am trying to edit the fla file directly, but i can’t find the place that i need to edit.

    Has anybody done that ?

  • http://www.vale-view.co.za dean

    Tried everything from changing permissions, unzipping folders within uploaded piecemaker 2 plugin on cpanel.Please help.

    Wasted so much time already.

    Regards Dean

  • arsalan

    hi
    please lean how can i use it in drupal
    tnx

  • Rabih

    Hi!
    Thanks a lot for this tutorial, it learned a lot of stuff !
    I am trying to implement it in a dynamic way but i am having an issue :
    - Piecemaker 1 can not use absolute url (it is necessary for retrieving featured images of posts) but can use a PHP XML file.
    - Piecemaker 2 can use absolute url, but can not use a PHP XML file :(
    Do you know how to make piecemaker 2 work with a PHP XML file ? There is not .fla file included with it.
    Thank again !

  • Rabih

    Hi!
    Thanks a lot for this tutorial, it was very useful !
    I am having one issue though.

    I want the slider to be dynamically generated using sticky posts.

    - Piecemaker 1 allow to use a PHP xml file by modifying the action script, but require all files to be in the same folder.
    - Piecemaker 2 allow absolute url to files in any folder but does not provide action script (.fla) file and thus can only use xml file :(

    Any thought on how i can adapt Piecemaker 2 ?

    Thanks again !

  • niko

    Thank you very much,i want to try this~!

  • niko

    thank you !! i got it ,it is amazing~!you did a greate job!

  • pepe

    anyone know how to change “loading first image” message? piecemaker2 donot works for me and i dont know how i change this in piecemaker 1….please help

  • Vipin

    Hi,
    i want to use this on a simple html page for my college project.
    I dont knw php.
    can i still use it, just by setting the right path for the image and the xml file ??

  • rabab

    same question as above i want to remove the text that appears before first slide starts thats something like “loading my first image” i am not getting from where to adjust this thing.

    thanks

  • guy

    est ce que ce plugin fonctionne avec wordpress 3.2.1 ?
    merci
    guy

  • http://autoresponder.exoticasia.org

    Intriguing post. I’ve been wondering about this issue,thus thanks for submitting. I’ll likely be coming back in your blog. Maintain great creating.

  • Robin

    Hello. I am new at this and I have a wordpress website. The problem is that I can’t understand much from this tutorial. I published some flash galleries from http://www.flashxml.net but there is so simple and here it’s so complicated. Can you make the instructions to be more easy to publish?

  • http://betabasebuilders.nexusmkg.com Lisa

    I keep getting this error message when trying to upload an asset…help.

    Fatal error: Out of memory (allocated 30932992) (tried to allocate 5596 bytes) in /homepages/5/d356021339/htdocs/basebuilders/wp-content/plugins/piecemaker/piecemaker-main.php on line 316

  • http://amonip.com Mon IP

    Thanks for this carrousel (frensh version) !
    The XML file is completed ^^

  • http://tamiltab.com tamiltab

    nice script
    thanks

  • http://www.softcodelink.com/ Freelance web designer in kuwait

    Really nice Jquery collectins,,thanks for sharing…

  • http://software-order.com/ SOFTWARE ORDER

    It would be my personal pleasure to get together some more ideas from your website. Thanks alot and I look forward to reading more posts on your website!

  • http://vpn-enigma.com/vpn Vpn

    Hey There. I found your weblog the usage of msn. This is a very well written article.

  • Gyro

    Hi Sean,

    Really great tutorial. As you say, Piecemaker2 is out now an I have integrated this into a WP theme for a client.

    I have removed the option to add images in the admin area, and the slider now works for the latest top 5 posts of a given category. This makes it simpler for clients to change or add slider images by just creating a new post and assigning it the correct category.

    However, for some reason, I cannot get the swf to show the post image and I believe its a pathing issue.
    Where the original script sets the flashvars.imageSource variable to a path I have set it to null (ie “”) as I pass the full image url (ie “http://www.etc) in the piecemakerXML.php file for each image.

    I dont know why this fails as I cannot see what the swf files is using.

    Am I correct in making the imageSource variable null or should it be something else?

    Any ideas would be much appreciated. I noticed that the modularweb.net site is down until 20/7 for a refit otherwise I would have contacted them!

    • Gyro

      lol

      My mistake! Somehow I was using the wrong piecemaker script version – changed it to the v2 one and everything works great!

      Anyway, GREEEEAT tutorial helped me loads! Thanks!

  • mikelino

    Thw Picemaker 2 slider when putting Greek text into slide description
    fields it doesn’t appear on the website. It shows only english texts.