Joe’s Quotes Widget

April 9th, 2006 · 27 Comments · 4,206 views

I’d previously released a Wordpress plugin called “Joe’s Quotes WordPress Plugin” (since upgraded to “JPF Quotes WordPress Plugin”) that allows you to have a quote, and the picture of the character that said the quote, in your sidebar. Since then, a new Widgets framework has become available that makes adding and organizing sidebar items much easier. So, Joe’s Quotes Widget is a ‘port’ of the Joe’s Quotes Plugin that works with the new widget plugin (the Widget plugin is required). This base package comes with the Simpsons quotes already installed (though you can delete them if you don’t want them). The JPF Quotes WordPress Plugin page contains a number of other quotes packages you can easily add. Just download the quotes package of choice, unzip, and place the contents in ‘plugins/widgets/joesquotes’. They become instantly available. The included readme file has full installation instructions, if you have any problems or comments, please leave them below. Note that the JPF Quotes WordPress Plugin is the newest in the series and offers the most configuration options.

Name: Joe's Quotes WordPress Widget [Download]
Size: 39,42 kBytes
FileType: .zip-File
Edited on 03. Mar 2007 - 16:19 h
Downloads: 361
Free for visitors

Subscribe to So Joe... Today!

27 responses so far ↓

  • craig

    Apr 10, 2006 at 12:51 pm

    The link to the quote widget leads to a 404.

  • Joseph Fieber

    Apr 10, 2006 at 1:45 pm

    Woops, not sure where it went, it’s back now, download and let me know how it goes.

  • craig

    Apr 10, 2006 at 2:56 pm

    Got it. Thanks.

  • Joseph Fieber

    Apr 12, 2006 at 10:15 pm

    Updated to version 1.1, only change is how the plugin finds its support files. If it’s already working for you, don’t bother with this upgrade. If it wasn’t showing anything, or you got an error, this may solve that. Let me know either eay here or in the forum.

  • Christopher A. Wheeler

    Apr 22, 2006 at 9:49 am

    How would I submit to you a different pack, say for “How I Met Your Mother”?

  • Christopher A. Wheeler

    Apr 22, 2006 at 10:07 am

    I have another question. How hard would it be to get the character name to appear under the picture? I see in the code WHERE it would go, but I don’t exactly know enough to figure out HOW to do it. I imagine it shouldn’t be too hard, since the character name is in the text file.

  • Joseph Fieber

    Apr 22, 2006 at 10:36 am

    You can e-mail additional packages to me at jpfieber@gmail.com
    To add the characters name, just include $pieces[0] where you would like the name to show up. If you want the name under the picture, you could change the code to this:

    
    echo "<TABLE><TR><TD VALIGN=\"TOP\"><a HREF=\"http://sojoe.info/?p=56\" rel="nofollow">$pic</A><br>$pieces[0]</TD>";
    

  • Marcus

    Jun 16, 2006 at 12:17 pm

    Very Nice little widget. I got it to align with the WordPress Connections Reloaded theme by adding a before the table and after. I think this will work with most list based sidebars.

    With respect to the name $pieces[0] returns the first item of the list in the text file. For Thomas Payne, this is ThomasPayne with no spaces. Any ideas on how to reformat?

  • Marcus

    Jun 16, 2006 at 12:19 pm

    OOps! I can’t even spell my website correctly!
    This is better. http://vorpal.us

  • Joseph Fieber

    Jun 18, 2006 at 9:32 am

    I’m guessing you want the name of the person to appear below the picture (or something similar). To do this, look for the following lines:

    
        $pieces = explode("\t", $quote);
        $pic = '<img src="'.$url.'/'.$pieces[0].'.gif" alt="" />';
    

    Between these two lines, insert the following line which will add a new variable called $name that you can use in the HTML to list the persons name:

    
        $name = $pieces[0];
    

    Then, on the next line, add the following and customize the parts in the quotes for the names you want changed, add one of these lines for each persons name that you want different from the default:

    
        if ($pieces[0] == "TPaine") { $name = "Thomas Paine"; }
    

    So, here’s how it might look when you’re done:

    
        $pieces = explode("\t", $quote);
        $name = $pieces[0];
        if ($pieces[0] == "TPaine") { $name = "Thomas Paine"; }
        $pic = '<img src="'.$url.'/'.$pieces[0].'.gif" alt="" />';
    

    An example of what the HTML might look like:

    
                <div id="JoesQuotes"><table><tr><td valign="top"><a href="http://sojoe.info/2006/04/09/joes-quotes-widget.html" rel="nofollow"><?php echo $pic; ?></br><?php echo $name; ?></a></td>
                <td><font size="1"><a href="http://sojoe.info/2006/04/09/joes-quotes-widget.html" rel="nofollow"><?php echo $pieces[1]; ?></a></font></td></tr></table></div>
    

    Is this what you were looking for?

  • ReDirEct__

    Jun 21, 2006 at 6:01 pm

    Hi joseph… your widget don’t work well with 2.0.3 version… no image is shown… i think it’s because in the new wordpress version we cannot access directly to certain wordpress dir… i testd this by putting the URL of an image that I have in the root folder of my website and an URL of an image in your widget plugin folder… the first is shown but not the second… i think you must put the quote’’s author image into another folder…

  • DG

    Aug 2, 2006 at 5:07 pm

    The download link doesn’t reveal anything except blank page.

  • DG

    Aug 2, 2006 at 5:11 pm

    Where is the plugin? The download page doesn’t reveal anything except a blank page.

  • Herrin

    Aug 19, 2006 at 10:58 pm

    I really like the quotes widget you’ve created but i want to remove the link from the quote text so itsw just text and no hyperlink, I know that goes to your site but its not useful to me . I will consider making a donation if you can fix this for me . Thanks

  • Joseph Fieber

    Aug 19, 2006 at 11:33 pm

    I include the link in the widget by default, but it’s easy to remove, and I don’t mind if you do. Open the jqw.php file and towards the bottom you’ll see a section that starts with ‘echo $before_widget’ and ends with ‘echo $after_widget’. Simply remove the anchor html from two places so it looks like this:

    
    <?php echo $before_widget; ?>
    <?php $title ? print($before_title . $title . $after_title) : null; ?>
    <div id="JoesQuotes"><table><tr><td valign="top"><?php echo $pic; ?></td>
    <td><font size="1"><?php echo $pieces[1]; ?></font></td></tr></table></div>
    <?php echo $after_widget; ?>
    

  • Herrin

    Aug 22, 2006 at 1:44 am

    hey Joseph. herrin here again. Have been trying to get some extra quotes packages to work. have put together a very cool Carl Sagan one I think you’d like. So far hasnt worked though and wondering if im missing any critical details. Would be great to get it happnin then I can share the ones I make up as well. Anyway its working great on my site. Setting up a new record label so havin fun with the customization stuff! to check it out go to Astronomy Records

    have fun.

    Herrin

  • Herrin

    Aug 22, 2006 at 1:46 am

    Hey there. Got it working just now sorry. I think it might be the spacing in the txt file at any rate its happening. so will send you the first one and when ive got some more will let you know. Where should i send them? little zip files they are.

    Cheers

  • Marcus

    Sep 4, 2006 at 7:36 pm

    Hi Joe

    I have a package available of Mark Twain quotes, now running on my site.
    I also fixed the LazarusLong.txt file which had a space instead of tab which did not parse correctly.
    Send me a note at the address in my login info and I will send you the files to add to the quotes list.

    It is really neat that I can add several quotes packages in the folder, and it just chooses quotes randomly.

    Ted

  • Xen2

    Oct 16, 2006 at 8:03 am

    Hi Joe,

    Great Widget! There are some long quotes, though. Is there anyway I can get them to wrap around the image, ie: class=articleimgleft?? If so, can you explain to me on how to do it?

    Thanx
    Xen

  • Joe

    Oct 16, 2006 at 3:32 pm

    I will be releasing an update to the plugin this week that will allow quotes to wrap under the image (as well as many other options). Not sure yet if the widget will get an equivilent update. You could hack the code in the widget to do what you want, the HTML part is pretty straight forward.

  • Xen2

    Oct 16, 2006 at 9:10 pm

    Hi Joe

    Good to hear you are updating the widget, I will certainly update mine. I have tried to hack the code, but to no avail. I am limited when it comes to this type of thing. Can you show me where I put the class=”articleimgleft”, please??

    Thanx
    Xen

  • Peng

    Jan 21, 2007 at 2:31 am

    Excellent widget! I’ve used it to replace the Witty Text plugin I used to use. I simply edited the code to not show an icon and used a default name for all my quotes.

  • whatithink

    Jan 24, 2007 at 5:56 pm

    [...] I’ve just installed Joe’s Quote Widget, which you can find in my sidebar. It displays a random quote from The Simpsons, Futuramaor Family Guy, each time you load the page. [...]

  • whatithink

    Jan 28, 2007 at 6:44 pm

    [...] Joe’s Quote Widget [...]

  • More Great Plugins

    Feb 8, 2007 at 11:47 pm

    [...] Joe’s Quote Widget [...]

  • DirtRacer

    Feb 27, 2007 at 10:34 pm

    I’ve tried this widget on 3 different blogs and 8 different themes, and so far I have not been able to get the images to show. The quotes appear just fine, but no images.

    I’ve tried looking at the code to see if I can figure out where something is going wrong, but the coding is unlike any other widget or plugin I have ever seen. I haven’t a clue what any of the coding means on this, so I can’t even begin to guess where the problem is.

    I saw in the comments above someone else had a problem with no images, but no answer was ever given. Is there some sort of trick to force the images to appear, or are there specific themes that must be used in order for them to work properly?

    Thanks for any help or suggestions.

  • Joe

    Feb 28, 2007 at 11:00 am

    I just installed it on a test blog the other day and it came up fine, so I believe it’s working properly. Do you have other widgets working?
    The steps as explained in the readme are:
    -copy the jqw.php file to the widgets folder
    -copy the jqw folder to the widgets folder
    -activate the widget
    -in the widget tab, drag the Joe’s Quotes widget to your sidebar
    -Click the options button for the Joe’s Quotes widget and give it a title

    That should do it. If this doesn’t work, perhaps you can create an account I can use to take a look in your configuration to see where the problem lies…

Leave a Comment