jFlow Plus




jFlow Plus can be used to create simple image sliders with text content in a beautiful manner, it can be used within articles as well as theme files. It does not modify any other images or galleries. You can see its live demo here

Huge changes form version 1.2.2 to version 2.0.0, older users please backup current plugin before updating.

After installing the plugin just write something like:

1
2
3
[jflow]
[jflowslide imgpath="FullPathOfImage" imgalt="ImageAlt" heading="HeadingOfSlide" slidetext="SlideText" linktitle="LinkTitle"]
[/jflow]

Where [jflow] and [/jflow] are the beginning and ending of jFlow Plus slider respectively, keep on adding as many [jflowslide imgpath="FullPathOfImage" imgalt="ImageAlt" heading="HeadingOfSlide" slidetext="SlideText" linktitle="LinkTitle"] for as many slides you want.

To implement directly in theme files, use:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div id="container">
<div id="jFlow">
    <div id="slide1">    
        <img src="images/slide1.jpg" alt="Slide 1 jFlow Plus" />
        <span><h3>First Slide Heading</h3><p>First Slide Text. 
<a href="#" title="Coolness" class="readmore">Read More!</a></p></span>
    </div>      
    <div id="slide2">
        <img src="images/slide2.jpg" alt="Slide 2 jFlow Plus" />
        <span><h3>Second Slide Heading</h3><p>Second Slide Text. 
<a href="#" title="Coolness" class="readmore">Read More!</a></p></span>
    </div>   
    <div id="slide3">
        <img src="images/slide3.jpg" alt="Slide 3 jFlow Plus" />
        <span><h3>Third Slide Heading</h3><p>Third Slide Text. 
<a href="#" title="Coolness" class="readmore">Read More!</a></p></span>
    </div>
</div>

<div id="jFlowController">
   <span class="jFlowControl"></span>
   <span class="jFlowControl"></span>
   <span class="jFlowControl"></span>
</div>

<span class="jFlowPrev"><div></div></span>
<span class="jFlowNext"><div></div></span>
</div>

jFlow Plus is originally by Devin Walker with code from ktan

NOTE: This plugin also removes wpautop filter for its functionality.

You can customize these in the Settings section:

  • Width of Slider.
  • Height of Slider.
  • Time to transition one slide.
  • Enable/Disable Autoplay.
  • Display time per slide.

Installation

  • Download the latest version.
  • Extract it in the /wp-content/plugins/ directory.
  • Activate the plugin through the ‘Plugins’ menu in WordPress.
  • Customize the plugin in the Settings > jFlow Plus.

Frequently Asked Questions

For any query, ask me here or comment below.

Screenshots(Click for larger image)

The Settings menu in the admin panel for customization.

33 Responses to “jFlow Plus”

  1. Tony Thompson June 25, 2011 at 4:28 pm #

    Hi Pritesh – Nice work. But for those of us that are code illiterate, would some kind of shortcode be doable? Or a nice media gallery tool?

  2. Joe June 25, 2011 at 6:58 pm #

    very nice!
    with an additional “display time per slide” in the settings, it would be perfect

  3. Pritesh Gupta June 26, 2011 at 6:57 am #

    Hi Joe,
    Yes you can change the display time of each slide by scrolling to line 286 in the .js file, where you will see a code snippet like this:
    timer = setInterval(function() {
    $(opts.next).click();
    }, 10000);

    And you can change the 10000 your desired time in milliseconds, I will try to implement your suggestion in future versions of jFlow Plus. :-)

  4. Pritesh Gupta June 26, 2011 at 7:01 am #

    Ha, yeah, shortcodes are cool, but I didn’t feel necessity of it, in  the above html code, you just need to replace “images/slide1.jpg” with the image location, “First Slide Heading” with slide heading, “First Slide Text.” with your text, “#” with the hyperlink of slider, and so on.

    Isn’t this easy? :-/
    If you are having any difficulties, contact me via the Contact Me page.

  5. Pritesh Gupta June 26, 2011 at 6:27 pm #

    Anyways, I added this additional option to the new version(1.2.0), now you don’t need to mess up with JS code, just update. :-)

  6. Pritesh Gupta June 26, 2011 at 6:49 pm #

    Anyways, I added this additional option to the new version(1.2.0), now you don’t need to mess up with JS code, just update. :-)

  7. Joe June 27, 2011 at 7:41 am #

    wow. thx for the quick implementation!

  8. Jason Mayoff June 28, 2011 at 5:39 pm #

    Thanks for the great plugin. Looks awesome and works great.

  9. Lee June 30, 2011 at 12:45 am #

    You plugin is incorrectly loading scripts into the page causing all
    other jQuery plugins to break. This needs to be fixed immediately as it
    is causing a lot of problems.

    Please make sure you follow basic plugin guidelines when coding a plugin to prevent a lot more work for everyone else
     

  10. Pritesh Gupta June 30, 2011 at 4:21 am #

    Hey Lee, 
    Maybe something is wrong at your end, huh?
    Cause it works fine for everyone else. 

    Also, it is not recommended to have like a dozen jQuery plugins, some of them will definitely crash. And can you please expand on plugin guidelines? I know there is a “wp_enqueue_script” but that doesn’t work for it, okay? 

  11. Asiansexynine July 22, 2011 at 11:48 am #

    Doesn’t work with my WP3.2.1 all my js scripts were stop by your plugin.

  12. Wenters August 11, 2011 at 9:45 am #

    Hi Pritesh, thanks for the plugin. 

    Just have an issue with this in combination with another plugin Carousel Gallery (jQuery). When one of the plugins is activated they work fine. But with both active neither work. Probably a Jquery issue.I want to use your JFlow Plus on the home page only and the other on subpage. Is there a way to solve this. So load the jQuery for your plugin in to a header that is only used on the homepage. 

  13. Pritesh Gupta August 11, 2011 at 10:39 am #

    Umm yeah, this is a jQuery conflict. You might try removing the jQuery initialization line from the other plugin or this. 

  14. Trevor D Kincaid August 26, 2011 at 7:47 pm #

    When I installed the plugin and added the code to my page.php template the text formatting on my pages went all screwy (I’m using wordpress) and everything got scrunched together. When I deactivate the plugin everything looks normal and all the fonts on the page return to normal. I tried removing the code above from the page.php but that doesn’t seem to fix the problem. Only deactivation worked. Is there something going on in css to make my text fonts smaller? They almost look like the small fonts your using for the “read more” section. 

  15. Pritesh Gupta August 27, 2011 at 3:06 am #

    “NOTE: This plugin also removes wpautop filter for its functionality.”. But since you will be using it for page template php files directly, you can remove “remove_filter(‘the_content’, ‘wpautop’);” from the last line of the php file.  

  16. Trevor D Kincaid August 27, 2011 at 2:14 pm #

    Thanks, removing that code fixed the problem. No more scrunched up words! I almost switched to a different slider plugin but visually yours was the absolute best. Is there any way to increase the font of the two lines of text? The read more text link is a bit too small. 

  17. Pritesh Gupta August 28, 2011 at 4:07 am #

    Umm, you can do that by manipulating the CSS.

  18. Allansaro November 20, 2011 at 2:20 pm #

    Hey Pritesh, thanks so much for designing such an amazing plugin. I have inserted the code into the page file, and the slider shows, however the slides are all scrunched together at once. They aren’t sliding in and out of frame. Any idea what might be causing this? 

  19. Christian January 18, 2012 at 6:39 am #

    Hi Pritesh – Lee is perhaps a little blunt in his language, but he is essentially correct in what he says. Your plugin does not use the WordPress API correctly and can (and will) therefore conflict with other plugins and even WordPress core.

    The functions ‘wp_enqueue_script’ and ‘wp_localize_script’ are the way to go for this plugin. That way, you can make your script dependent jQuery, but without stepping on the toes of others. See the Codex for details.

    Also, ‘add_options_page’ should not be called with a user level but rather with a capability. Your plugin generates deprecated warnings at present.

  20. Christian January 18, 2012 at 6:49 am #

    It would also be courteous to add a ‘register_uninstall_hook’ method to remove your options from the database when the plugin is uninstalled.

  21. Leo April 16, 2012 at 3:24 pm #

    For some reason this doesnt seem to be working correctly. The images don’t rotate, they stack on top of one another.

  22. Imran May 21, 2012 at 7:53 pm #

    I am currently using jflow 1.1. And it doesn’t allow me to add multiple instances of jflow sliders on a single page. Will the new jflow allow this type of usage?

  23. Pritesh Gupta May 23, 2012 at 2:38 pm #

    No, only one instance per page can be done with the latest version as well, however, I can suggest you to use classes instead of ids, this will solve your problem.

  24. kelsey June 5, 2012 at 11:46 am #

    Hey,

    I’m pretty sure you didn’t leave these instructions right:
    [jflowslide imgpath="FullPathOfImage" imgalt="ImageAlt" heading="HeadingOfSlide" slidetext="SlideText" linktitle="LinkTitle"]
    because youre missing linktext

    also your php file doesn’t seem to support the fact that the link needs to be clicked – i modified it to
    ‘.$linktext.’

    lastly im not sure whats going on but your jflowcontroller is only showing three spans for me so i had to hack it and add extra spans in the page it’s embedded in to be able to get all of the images to show

  25. Greg June 6, 2012 at 7:46 pm #

    Is it possible to make the image link to something else on click for the wordpress plugin?

    Thanks!

  26. Quentin June 28, 2012 at 7:01 pm #

    Hi Pritesh.

    Do you know if your plugin is compatible with WordPress 3.4.1 as my implementation seems to have stopped working?

    Thanks.

  27. kimberly July 11, 2012 at 4:12 am #

    Hi there, I am using this dynamically, and it works brilliantly, however is there a way to code that the arrows are hidden if the user only uploads one photo? Thanks in advance.

  28. Michael Westermann October 19, 2012 at 1:42 am #

    Might I suggest an addition? I found that when I didn’t want to include prev and next buttons in my layouts, it broke the autostart fxnality. Here is my fix in jflow.plus.js

    //initialize the controller
    if ($(opts.prev).length == 0) { $(‘body’).append(”); }
    if ($(opts.next).length == 0) { $(‘body’).append(”); }

    Really only the “next” line is necessary, since that’s what autostart relies upon. I added the other for consistency. These will add innocuous spans to the end of the body for the handlers to attach to.

  29. Michael Westermann October 19, 2012 at 1:50 am #

    Better yet, this may be a better solution, does not modify the document body. Fires the fxn directly without relying on the existence of an HTML element.

    var dotimer = function (x) {
    if ((opts.auto) == true) {
    if (timer != null) clearInterval(timer);
    timer = setInterval(function () {
    dotimer();
    donext();
    }, pause);
    }
    }

  30. Michael Westermann October 19, 2012 at 2:03 am #

    Also added this to initialization block after slidesNum is calculated:
    //quit if there are no slides to rotate through
    if (slidesNum < 2) { $(opts.controller).hide(); return; }

    No sense initializing if there is nothing to rotate through.

  31. Gabriel December 5, 2012 at 8:24 pm #

    1-I’m trying to add more slides, more than the current 3 … Is there a way to do it? For example, add 2 more slides.

    2-I would like that after the last slide images continue to flow as a carousel, without going back to the first. Is it possible???

Trackbacks/Pingbacks

  1. Pritesh Gupta på "jFLow Plus" - CyberMaster - June 25, 2011

    [...] Side: jFlow Plus Plugin Hjemmeside Live Demo: jFlow Plus [...]

  2. jFlow Plus: Awesome WordPress Slider Plugin | PriteshGupta.com - June 25, 2011

    [...] jFlow Plus [...]

Leave a Reply