Tag Archive for 'wordpress-plugins'

WordPress Plugin: Thumbnail Viewer 1.2

I’ve released version 1.2 of the Thumbnail Viewer plugin for WordPress (actually released like 2 weeks ago, just now announcing). Not many changes were made in 1.2 except the fixed paths to the css and javascript files. The incorrect paths totally prevented the 1.1 from working for people who downloaded from the WordPress Plugin Directory.

Go Download Thumbnail Viewer Plugin 1.2

Shortly after the release of 1.1, I started hosting thumbnail viewer at the WordPress.org Plugin Directory. Hosting there gives me access to a Subversion repository, which I had never used before. Hosting at the WordPress Plugin Directory gives the plugin greater exposure and provides me with a central place to store all the code.

Version 1.2 was prompted when I started getting a bunch of people contacting me saying the plugin was not working. I got right down to it and realized the plugin was looking in the wrong directory for thumbnailviewer.css and thumbnailviewer.js. I renamed some directories before moving the project to the WordPress Plugin Directory and forgot to update the directory names in the PHP code.

So, version 1.2 was basically just a fix for the incorrect directory names. Until I can get a dedicated page setup here for thumbnail viewer, please see the announcement post for version 1.1 for installation directions and examples. There’s also some pretty helpful comments in there.

Go Download Thumbnail Viewer Plugin 1.2

If you’re still running version 1.1, there’s nothing your missing in 1.2. However, the directory format in 1.2 is how it’s gonna be from now on, so you might as well upgrade. You can download from the WordPress Plugin Directory. The latest, most up-to-date version will always be on that page.

UPDATE: Finally!!! I’ve taken the time to create an official page for my Thumbnail Viewer plugin. Please try to keep all the support related questions centered on that page. The announcement post for version 1.1 still has some pretty helpful comments though, I may decide to move them to the new page at some point.

Popularity: 17% [?]

WordPress Plugin: Thumbnail Viewer 1.1

1.1 is now old, go get the newest.

I’ve released version 1.1 of my Thumbnail Viewer plugin, which still needs an official homepage. This release was prompted by a problem with showing the quicktag when authoring a new post or page. The quicktag wasn’t showing on WordPress 2.1 installations. So, as a result, WordPress 2.0.x is no longer supported by the Thumbnail Viewer plugin. If you want to use this plugin you’ll need WordPress 2.1 or later. Really, the plugin should still work with WordPress 2.0.x, however the quicktag won’t be available when writing a new post.

The issues in Internet Explorer 7 I spoke about earlier haven’t been resolved, quite. I’d say the plugin works fine in 98% or more of all Internet Explorer 7 installations. I’ve only had problems on one installation of IE7. I’m pretty sure this problem isn’t even directly related to this plugin. I say that because the demo page for the code this plugin is based on won’t work either in that same IE7 install. So, it’s apparently a problem in the javascript this plugin is based on. I guess as of right now, I’m considering the div display problem in IE7 to be out of my control.

Anyway, click the images below for a demo.
Some CornSome Cracker JacksSome Peas

The above example was achieved with the following HTML:

<a href="http://www.longren.org/images/corn.jpg" rel="thumbnail" title="Some Corn"><img src="http://www.longren.org/images/cornThumbnail.jpg" width="129" height="96" alt="Some Corn" /></a>
<a href="http://www.longren.org/images/crackerJacks.jpg" rel="thumbnail" title="Some Cracker Jacks!"><img src="http://www.longren.org/images/crackerJacksThumbnail.jpg" width="98" height="123" alt="Some Cracker Jacks" /></a>
<a href="http://www.longren.org/images/peas.jpg" rel="thumbnail" title="Some Peas In A Pod"><img src="http://www.longren.org/images/peasThumbnail.jpg" width="145" height="96" alt="Some Peas" /></a>

1.1 is now old, go get the newest.

Installation

  1. Extract wp-thumbnailviewer folder from .zip to wp-contents/plugins/.
  2. Go to Plugins in WordPress dashboard and activate Thumbnail Viewer.
  3. That’s it! Write a new post to use the quicktag button or simply add rel=thumbnail to any link tag.

Upgrading

  1. Simply overwrite everything in wp-contents/plugins/wp-thumbnailviewer/ with everything in the wp-thumbnailviewer folder from the zip file.
  2. That’s it! You should now be using the latest Thumbnail Viewer WordPress plugin.

Popularity: 27% [?]

WordPress Plugin: Digg This Reloaded

I’ve been using the Digg Integrator plugin for easy Digging of my posts. The Digg Integrator plugin has had it’s share of problems lately, mostly due to changes the folks at Digg have implemented. WildBil has managed to fix the plugin up quite nicely though, I haven’t been having any issues with the newest version.

If you’re having problems with the Digg Integrator plugin, you might wanna check out the Digg This Reloaded plugin. It’s got a bunch of nice features similar to features found in the Digg Integrator plugin. Looks like a very promising plugin, I am going to install it and give it a try sometime this week.

Popularity: 7% [?]

Send Your Tag Archives To Google Sitemaps

Do you use Ultimate Tag Warrior WordPress plugin to tag your posts? What about the Google Sitemaps plugin for sending google a copy of your sitemap?

If you use Ultimate Tag Warrior, as I do, you can get archive pages based off tags. For example, my wordpress tag page shows all posts tagged with “wordpress”. Simple enough.

Now, the Google Sitemaps plugin generates a sitemap of your site for submission to Google Sitemaps. The plugin will include categories, individual posts, static pages, and archives in the sitemap file it creates. However, it leaves out tag archives. This is simply due to the fact that the Google Sitemaps plugin author probably doesn’t use Ultimate Tag Warrior.

There’s some good information contained within tag archive pages, so we should probably be letting google know about them. We basically need to make the Google Sitemaps plugin recognize and make use of the tag archives. To do this, we need the Google Sitemaps - UltimateTagWarrior Tag Addon, a plugin for WordPress. Here’s the plugin description:

This plugin is a WordPress 2.0.4 plugin that automatically adds the UltimateTagWarrior tags onto the end of the google sitemap XML file as produced by the Google Sitemap plugin.

The plugin does exactly that, and nothing more. It simply generates a sitemap for your tag pages and appends that data to the end of the sitemap file created by the Google Sitemaps plugin. That’s all that’s required to include your tag pages in your sitemap file for sending to Google.

Please note that the Google Sitemaps - UltimateTagWarrior Tag Addon plugin requires version 2.0.4 of WordPress. Hopefully the author will update the plugin to support the upcoming WordPress 2.0.5.

Popularity: 6% [?]

Wrapping Text Inside Pre Tags

I sometimes display little snippets of code on this site. For example, here, here, and here. To do this, I use the Code Markup wordpress plugin.

If you’re using Firefox, you may notice the long lines in my Digg Integrator fix post. It’s not really a problem for me having those really long lines in Firefox. Why? Because Firefox still displays my sidebar correctly. Internet Explorer is a totally different story though. When there’s long lines like that, my sidebar will appear at the very bottom of the page in IE.

The long lines are caused by use of the pre html tag. The pre tag preserves spaces and line breaks in a chunk of text. Perfect for displaying snippets of code. However, some lines of code are quite long and will run off the page. This is exactly why my sidebar was getting pushed to the bottom of the page in IE.

So, I set out looking for a method to wrap text contained within pre tags. Google found exactly what I was looking for. Wrapping text inside pre tags is quite easy, all that’s required is a simple addition to your css:

pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

Quite simple. After adding that CSS, the text in pre tags still doesn’t wrap in Firefox, but I don’t care because Firefox displays the rest of my page as it should. Now, when you view a page in IE with a long line, the text is wrapped and my sidebar content appears at the top of the page instead of the bottom.

For consistency sake, let’s make these long lines wrap in Firefox too. This is extremely simple. It only requires adding a few characters to the CSS shown above. For text wrapping in Firefox, use this CSS:

pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}


Notice the only difference between the first and second examples is the addition of “!important” to the third line in example 2. After adding that little bit, your text between your pre tags should wrap well in basically every browser that’s currently in use.

UPDATE 3/10/2007

If you can’t seem to get the css above to work, give the css below a shot. I just set a width on the pre tag. When the width is set to 100%, you’ll get a horizontal scrollbar when viewing in IE7. That’s why I’ve set the width to 99%. The code will display just fine in IE6, IE6, and FireFox when width is set to 99%. I have not tested Opera. Try this updated CSS if you’re having issues with the original CSS from above.

pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap !important;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
 width: 99%;
}

UPDATE 6/4/2008

Markku Laine posted some css in a comment that seems to work better than the original css I posted. It works in IE, Safari, and FireFox. Try using Markku’s css below if the previous examples don’t work for you.

pre {
 overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2, not needed in Firefox 3 */
 white-space: pre-wrap; /* css-3 */
 white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
 white-space: -pre-wrap; /* Opera 4-6 */
 white-space: -o-pre-wrap; /* Opera 7 */
 /* width: 99%; */
 word-wrap: break-word; /* Internet Explorer 5.5+ */
}

Popularity: 26% [?]

Digg Integrator Plugin Fix

The Digg Integrator plugin v1.1 for WordPress hasn’t been working correctly. The author, WildBil, has been working on a fix for the last week or so. I got tired of waiting for a fix lastnight and took it upon myself to create one.

In addition to the referring Digg URL not being detected, I think there’s also a problem when submitting a site to Digg that has a “Preferred Digg Topic” set. The preferred topic is never sent along to Digg because the variable containing the preferred topic isn’t being called correctly in diggIntegrator.php.

All of the fixes I mention here are to be made within the wjt_diggThisPost function inside diggIntegrator.php. That function starts on line 225.

Now, moving on. The problem with the referring digg URL not being captured is extremely simple, I think. The function that captures the referring digg URL is simply not being called correctly. Basically, it’s not being run when it needs to. Look at line 278 in diggIntegrator.php:
Continue reading ‘Digg Integrator Plugin Fix’

Popularity: 6% [?]



cheap xbox 360 games - buy from zavvi
cheap xbox 360 games - zavvi

mobile phones - Web Design - Homeowner Loan - Renegade motorhomes - Car Insurance - Debt Help
Mobile Phone - Bike Insurance - Landlords Insurance - Search Engine Marketing - Mobile Phone



people-charming