Javascript Pullquotes

Description:

This plugin is a wrapper for some Javascript and CSS by Roger Johansson. It allows you to make pullquotes in your posts without duplicating any content (i.e. making them manually). This is done via Javascript and it it makes it easy to disable them later on if you wish and makes it so that duplicate content doesn’t show up in your feeds.

Example:

I’ve disabled this plugin on my blog, so this example no longer works.

While “Epsum factorial non deposit quid pro quo hic escorol.” appears twice here, it’s actually only in the post source once. It’s just wrapped in a <span> and copied and displayed via Javascript. And if this plugin is deactivated, the pullquote gracefully disappears.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.

Epsum factorial non deposit quid pro quo hic escorol. Olypian quarrels et gorilla congolium sic ad nauseum. Souvlaki ignitus carborundum e pluribus unum. Defacto lingo est igpay atinlay. Marquee selectus non provisio incongruous feline nolo contendre. Gratuitous octopus niacin, sodium glutimate. Quote meon an estimate et non interruptus stadium. Sic tempus fugit esperanto hiccup estrogen. Glorious baklava ex librus hup hey ad infinitum. Non sequitur condominium facile et geranium incognito. Epsum factorial non deposit quid pro quo hic escorol. Marquee selectus non provisio incongruous feline nolo contendre Olypian quarrels et gorilla congolium sic ad nauseum. Souvlaki ignitus carborundum e pluribus unum.

Download:

A Couple Notes / Issues:

  • This plugin does not make a button in TinyMCE (the rich text / WYSIWYG editor). You can still manually add the required <span> to your posts to get it to work, but only the plain, HTML editor will have a button to make your life easier.
  • The “Close Tags” button does not close the tag of this plugin. While I could probably get it insert the close tag when clicked, I doubt I could get it to work in the right tag order, so I just left it out and up to you to click the button again when done. ;)

Customization:

Don’t like how the pullquotes show up? Feel free to edit the CSS file located in the plugin’s folder. It’s what controls the look of them.

  • #1 written by Heather 
    about 3 years ago

    Thanks for placing this into a plugin just to make it that much easzier to use.

  • #2 written by febwa 
    about 3 years ago

    Just wanted to let you know it was simple to install and works great first time! Thanks.

  • #3 written by menj 
    about 3 years ago

    I love the pullquotes! BTW, is there a way to control the position of the pullquote, i.e. left/right or top/middle/bottom?

    - MENJ

  • #4 written by Viper007Bond 
    about 3 years ago

    menj on October 1st, 2006 at 6:45 AM2006-10-01T13:45:12ZF jS, Y \a\t g:i A wrote:

    I love the pullquotes! BTW, is there a way to control the position of the pullquote, i.e. left/right or top/middle/bottom?

    Just edit the CSS file in the plugin’s folder. It controls the pullquote. :)

  • #5 written by Paul Squires 
    about 3 years ago

    Fantastic plugin – easy install and very simple to use!

  • #6 written by htaccesselite com 
    about 3 years ago

    Heres my take on a purely (X)HTML, CSS, semantic, and XHTML 1.0 Strict Validating way to create pullquotes.

    Pullquotes Using CSS – XHTML Strict Valid – No JS

    Great article and I really like the look of your end result, and the change from the outdated innerHTML method. When you can eliminate js, doit. NOTE: Im not anti-js, just a minimalist.

  • #7 written by Viper007Bond 
    about 3 years ago

    htaccesselite com on November 9th, 2006 at 7:40 AM2006-11-09T15:40:55ZF jS, Y \a\t g:i A wrote:

    Heres my take on a purely (X)HTML, CSS, semantic, and XHTML 1.0 Strict Validating way to create pullquotes.

    Yes, pure CSS pullquotes have been around forever and are very easy to do. However, you have to have duplicate markup if you want to have it actually be a quote (i.e. have it show up in both in a pullquote and the content). This is to avoid that.

  • #8 written by Sam 
    about 3 years ago

    I’m missing something here, hope you can help enlighten me: Why use the ‘blockquote’ element at all?

    I ask as it conflicts with my current blockquote properties and doesn’t seem necessary…

  • #9 written by Viper007Bond 
    about 3 years ago

    Sam on November 17th, 2006 at 6:12 AM2006-11-17T14:12:36ZF jS, Y \a\t g:i A wrote:

    I’m missing something here, hope you can help enlighten me: Why use the ‘blockquote’ element at all?

    I ask as it conflicts with my current blockquote properties and doesn’t seem necessary…

    You’re right. You could use any element you wish. I didn’t come up with the Javascript and such though, I just wrapped it into a plugin. I didn’t really give any of that any thought. ;)

  • #10 written by Sam 
    about 3 years ago

    Thanks for the reply, it may be the incentive I need to poke in the js ;’)

  • #11 written by Sam 
    about 3 years ago

    I was able to address my issue, posting here in case anyone else experiences it:

    I edited the original jspullquote.js file, and simply changed:

    oPullquote = document.createElement('blockquote');

    to:

    oPullquote = document.createElement('div');

    Changed the css to reflect div.pullquote (etc.) and it works just fine, and now it doesn’t conflict with (or inherit) any other blockquote styles…

  • #12 written by Viper007Bond 
    about 3 years ago

    I figured it’d be something that easy. Cool. :)

  • #13 written by Nadine 
    about 3 years ago

    I love the plugin, but for some strange reason, my pullquotes show up twice, one right next to the other. Did I do something wrong, or is there a conflict with another plugin that you know of?

    Thanks for any help!

  • #14 written by Viper007Bond 
    about 3 years ago

    Nadine on December 27th, 2006 at 5:40 AM2006-12-27T13:40:32ZF jS, Y \a\t g:i A wrote:

    I love the plugin, but for some strange reason, my pullquotes show up twice, one right next to the other. Did I do something wrong, or is there a conflict with another plugin that you know of?

    Disable other plugins to see if that fixes it. If it does, slowly reactivate them until it breaks again and then let me know which plugin is the culprit.

    If deactivating all of them doesn’t fix it, then… I dunno frankly. You sure you did it right?

  • #15 written by Nadine 
    about 3 years ago

    Viper007Bond on December 27th, 2006 at 7:29 AM2006-12-27T15:29:44ZF jS, Y \a\t g:i A wrote:

    Disable other plugins to see if that fixes it. If it does, slowly reactivate them until it breaks again and then let me know which plugin is the culprit.

    If deactivating all of them doesn’t fix it, then… I dunno frankly. You sure you did it right?

    Deactivating all the plugins didn’t fix the problem. As to the install, all I did was upload the folder with all the files in it, and activate the plugin. I’ve tried to put the code in this comment that I’m using, but I can’t get it to show up properly.

  • #16 written by Viper007Bond 
    about 3 years ago

    Nadine on December 27th, 2006 at 8:16 AM2006-12-27T16:16:24ZF jS, Y \a\t g:i A wrote:

    Deactivating all the plugins didn’t fix the problem.

    I just visited your site and it’s working fine for me in both FF and IE.

    Screenshot: http://img216.imageshack.us/img216/2318/pullquoterf9.png

  • #17 written by Nadine 
    about 3 years ago

    Viper007Bond on December 27th, 2006 at 4:24 PM2006-12-28T00:24:45ZF jS, Y \a\t g:i A wrote:

    I just visited your site and it’s working fine for me in both FF and IE.

    Screenshot: http://img216.imageshack.us/img216/2318/pullquoterf9.png

    Yeah, it looks fine because I’m not using the plugin, I just did it with duplicate content and css since I couldn’t make the plugin work. I think it doesn’t have anything to do with the plugin part, since I couldn’t make the other plugin that uses the original javascript work either. The other plugin did the same thing with displaying two pullquotes. Thanks for your help though, if I get really motivated (and have more time) I’ll get with Roger Johanssen and see what I can do about fixing the javascript conflict if that’s what it is. Cheers.

  • #18 written by ravianz 
    about 3 years ago

    its pretty cool and attractive plugin! thanks to you!

  • #19 written by assssssasas 
    about 1 year ago

    probando
    lksfdlsdjfksdk

    que mono

Comments are closed.

Page generated with 10 queries in 0.28250 seconds ( 99.64% PHP, 0.36% MySQL )