WordPress.org

Ready to get started?Download WordPress

Forums

WP-Cycle - multiple? (18 posts)

  1. bese
    Member
    Posted 4 years ago #

    I love the WP-Cycle plugin. However, I would like to add it on several pages within my site and not just the one. How can I do that?

    Eternally grateful for any answers.

  2. SpankMarvin
    Member
    Posted 4 years ago #

    It has shortcode functionality, I believe. Using [wpcycle] in the desired pages should work?

  3. bese
    Member
    Posted 4 years ago #

    Sorry, I see now that I have to elaborate.

    I would like to add multiple cycles to different pages. Not the same cycle on multiple pages.

    Really sorry about that.

  4. bese
    Member
    Posted 4 years ago #

    Anyone?

  5. hOBOJoE
    Member
    Posted 4 years ago #

    :( I don't think so...I too need this functionality.

  6. esferapublica
    Member
    Posted 4 years ago #

    I would need this functionality too.
    Anybody an idea? Or any other plugin to recommend?
    Thanks, Ka

  7. esferapublica
    Member
    Posted 4 years ago #

    Just got an answer from the developer. This feature is not available until now. Anybody has another plugin to recommend that is able to do this?

  8. SpankMarvin
    Member
    Posted 4 years ago #

    Hi there

    This struck me as a pretty good excuse to attempt developing a plugin for my own training. So, there's a link to something I made here:

    http://john-sparrow.com/downloads/wp-plugins/jds-multiple-cycle/jds-sc-cycle.zip

    It's called JDS etc. to try to avoid conflicts. Obviously anything here can be modified. If it's not a solution, hopefully it might be a starting point to help. It's totally rough around the edges, so apologies in advance. However, it does work!

    The shortcode currently follows the following structure:

    [jdscycle]
    
    [item]
    [/item]
    
    [/jdscycle]

    You can add 2 attributes:

    id

    This is if you have more than one cycle content on one page, and/or if you want to assign unique attributes to the cycle:

    attributes

    Follows the same rules as the jQuery cycle plugin.

    Example:

    [jdscycle id="optional-id" attributes="timeout: 5000, fx: scrollUp"]
    
    [item]
    Content, code, whatever, for first cycling item
    [/item]
    
    [item]
    Second content
    [/item]
    
    [/jdscycle]
  9. wagonlips
    Member
    Posted 4 years ago #

    This is pretty cool, SpankMarvin. Couple things... the attributes don't seem to do anything. I can change them to whatever but the only effect I see is fade and the rate never changes. Also, if first item could show right away, instead of waiting for a transition, that would be very cool. And to make it work I had to do it slightly different than your example directed.

    [jdscycle id="optional-id" attributes="timeout:50, fx:shuffle"]
    <a href=""><img src="/wp-content/uploads/2010/08/slideshow-01.jpg" /></a>
    <a href=""><img src="/wp-content/uploads/2010/08/slideshow-02.jpg" /></a>
    [/jdscycle]

    The [item] tags just show up in the body of the page so I deleted them.

    Cheers!

  10. SpankMarvin
    Member
    Posted 4 years ago #

    Hey

    Sorry,posted the wrong shortcode. The items should be [jdsitem][/jdsitem] and hopefully this should sort the attributes issue too? Let me know if this works! Hope it's useful.

    I'm actually in the process of working on a more complete, much more feature-rich plugin to enable on the fly gallery addition. In the meantime I hope this provides some kind of decent starting point to help out.

    J

  11. marcycapron
    Member
    Posted 3 years ago #

    hey @SpankMarvin I'm a bit late to the game here but do you have a demo somewhere? I'm in serious need of a multi-instance cycle plugin. especially if there's an option for captions and titles etc. client is a site very similar to Time Out and other available options (given short time frame) are so very unattractive!

  12. SpankMarvin
    Member
    Posted 3 years ago #

    Hey

    There is a basic demo here:

    http://john-sparrow.com/jscomwp/?page_id=59

    As I say, this is a very rough, early stages plugin which does not have correct script enqueuing etc. in place yet, nor does it have default options via a WP control panel yet. When I get time I plan to make a proper, final version suitable for release at the Plugins directory. The plugin does work, however, and if you are comfortable working through the class file, the defaults should be easy to modify.

    Not ideal but perhaps a workable interim solution. Hope it's useful.
    J

  13. LEVI44
    Member
    Posted 3 years ago #

    Hi there,

    Sorry to add to this! I am trying to get this working without success...

    is the new new code working with [wp_cycle] or alone? does this provide a couple of galleries? soooo confused...sorry new to all this!

    do i write....

    [jdsitem id="optional-id" attributes="timeout:50, fx:shuffle"]
    <img src="/wp/wp-content/uploads/2010/10/Washroom-Antics-Tee-in-frame-150x150.jpg" />
    <img src="/wp/wp-content/uploads/2010/10/Washroom-Antics-Tee-in-frame-150x150.jpg" />
    [/jdsitem]

  14. SpankMarvin
    Member
    Posted 3 years ago #

    Hi there:

    [jdscycle id="optional-id" attributes="timeout:50, fx:shuffle"]
    [jdsitem]<img src="/wp/wp-content/uploads/2010/10/Washroom-Antics-Tee-in-frame-150x150.jpg" />[/jdsitem]
    [jdsitem]<img src="/wp/wp-content/uploads/2010/10/Washroom-Antics-Tee-in-frame-150x150.jpg" />[/jdsitem]
    [/jdscycle]

    Let me know how that goes?

    J

  15. LEVI44
    Member
    Posted 3 years ago #

    hiya, thanks for that....it doesn't really work how it should...check this out, it fades back and forth :)

    http://hairyhand.co.uk/wp/shop/t-shirts/

  16. SpankMarvin
    Member
    Posted 3 years ago #

    Could you try deleting the plugin and replacing with:

    http://john-sparrow.com/downloads/wp-plugins/jds-multiple-cycle/jds-sc-cycle-0.3.zip

    If this doesn't work, there's not a lot I can think of right now. I'm working on a full, proper plugin which is likely to be far more stable, but can only work on it as I get time.

  17. LEVI44
    Member
    Posted 3 years ago #

    I have put it in, seems to be doing the same thing :( could you let us know when you've finished :) thank you for your help.

  18. SpankMarvin
    Member
    Posted 3 years ago #

    Ok, one more try. Try that most recent link again, and swap out the plugin?

    If that doesn't work: It might also be due to large image sizes, so also try with small images?

    For now, that's all I can think of! Sorry.

    J

Topic Closed

This topic has been closed to new replies.

About this Topic