Milan Dinić's Blog

The Miscellaneous Ramblings from Serbia

Follow this blog via: RSS| Twitter| Email
  • About
  • WordPress
    • Plugins
      • Gravatar Signup Encouragement
      • Cache Images
    • Blog posts
  • Contact
    • Donate

Gravatar Signup Encouragement 2.0

8 October 2010

Do you like new Gravatar Hovercards? Why don’t you prepare your visitors without Gravatar for the upcoming plugin with this feature for self-hosted WordPress installation by encouraging them to signup to Gravatar?

Almost one year after initial release, I am proud to announce second version of my plugin Gravatar Signup Encouragement.

This version improves existing and adds new features. You can check full changelog here but below I’ll highlight most important.

Now message is also shown to users who already left comment before. Also, it is much easier to show message on comment form that doesn’t follow standard WordPress markup (I added support Carrington Blog and Mystique themes though users can add support for any other too).

If you was limited with way of selecting page elements for showing of message there are good news: now you can add a message to literally any element by using any jQuery selector! Note that old custom IDs are automatically updated to new form on plugin’s upgrade.

You thought that message shown when comment is written was not visible enough? Welcome the new way to show message: in a dialog box after user posted comment as in picture below.

Message shown in a dialog over a Twenty Ten theme after comment is posted

Message shown in a dialog over a Twenty Ten theme after comment is posted

This dialog will be shown only if user doesn’t have Gravatar, not to all users who left comment. It is not popup window, it is simply a Thickbox iframe showed on top of your page that will be easily hidden after user clicks close button or click on a link to Gravatar’s signup page.

You thought that message shown on profile page was not visible enough? Welcome the new way to show message in administration area for registered users: in an administration notices as in picture below.

Message shown in administration notices

Message shown in administration notices

Since WordPress MU was merged to main WordPress branch, I added support to multisite installations so you can show a message to users who signup on your network. Also, you can setup Gravatar Signup Encouragement on per site basis.

If you had problems with Gravatar Signup Encouragement settings, now you can simply click link “example of how this looks” to see screenshot of example of usage of that feature. Also, by clicking “Help” menu in top right corner, you’ll get links to Gravatar Signup Encouragement documentation and support forums.

If you thought that message was not descriptive enough, there is a new, more descriptive one which is shown by default.

Since Gravatar Signup Encouragement uses jQuery to show message, there is now an encouragement to install plugin Use Google Libraries which enables loading of jQuery file from Google’s CDN.

For developers, there are many new hooks and functions that can be used in themes and plugins. Post that describes this features will be posted in the future.

You can easily upgrade to new version via automatic upgrade tool in WordPress or by downloading zip archive.

You like Gravatar Signup Encouragement? Show your love by blogging about it, tweeting or sharing on Facebook or any other social site you use.

Send your thoughts about Gravatar Signup Encouragement in comments of this blog, or via official support forum.

Posted in Blogging, Software, Web design | Tagged Gravatar, Gravatar Signup Encouragement, plugin, WordPress | Leave a response

Having Posts in Subdirectory While Rest in Root

2 September 2010

I have tried for some time to make following: having WordPress installed in a root of host (like example.com) and having content below root (like example.com/page, or example.com/custom-post-type/entry), while having blog posts in special directory (like example.com/blog). This is needed when blog is not main type of content on WordPress powered website, but instead is just one part of a site. Example of usage is having a company website where pages are used for usual static content while there is blog or news section where updates are posted.

At first, this seems easy to achieve. Just change permalink structure on Settings → Permalinks page to something that starts with /blog/ (or whatever subfolder we want to use) as some people (and Codex entry) already suggested.

But there is a problem with this approach: your blog posts will be in your chosen subdirectory but blog’s index and paged pages won’t. This means that you wouldn’t see latest posts by going to blog’s subdirectory (example.com/blog), but instead only by going to front page (example.com).

Solution for this is very easy and I couldn’t believe how I didn’t remember it. I found it on WarriorForum, posted by user Dan Sherman. You simply need to create two empty pages and go to Settings → Reading page and choose those two pages as “Front page” and “Posts page”. Then you go to Settings → Permalinks and choose your new permalink structure.

What is important to remember is to give a name to page that should be chosen for “Posts page” with the same name as you want to name your subdirectory. Also note that for front page you need to either create content as you would for any page, or to use special page template.

Below is a video from WordPress.tv on how to create and setup “Front page” and “Posts page”.

Posted in Blogging, Tips & Tricks | Tagged permalinks, WordPress | Leave a response

Adopted plugin: Cache Images

1 August 2010

I kind of adopted plugin Cache Images whose original author was infamous Matt Mullenweg, co-founder of WordPress. Since I needed this functionality for my own needs, and this (and all similar plugins) was outdated, I rewrote it and send my changes to Matt who in turn gave me rights to update this plugin in wordpress.org SVN repository.

You can now download it from here.

Posted in Blogging, Software, Web design | Tagged Cache Images, plugin, WordPress | Leave a response

New Zealand, the Only Undefeated Team of World Cup

11 July 2010

Congratulations to New Zealand for three great games at the World Cup. I’m sorry that they didn’t get in a second round but I expect that they’ll get over there in Brasil.

Posted in Asides | Tagged football, New Zealand, World Cup | Leave a response

How to use load_plugin_textdomain on activation of plugin

11 November 2009

With my new plugin, Gravatar Signup Encouragement, I had a problem with translation of string that is used only on activation.

That string contains default message that is saved in database. No matter what I tried, it would always save original string, not translation.

After asking question on wp-hackers mailing list and exchanging several replies with Otto, I found solution for this. In your function that is used in register_activation_hook, you need to again use function load_plugin_textdomain, even if you loaded it already in init. It should be used before any string.

So if you encounter this problem, you know how to solve it.
Don’t forget to try my plugin mentioned here, Gravatar Signup Encouragement.

Posted in Blogging, Software, Tips & Tricks, Web design | Tagged plugin, WordPress | Leave a response

« PreviousNext »

Recent Posts

  • Gravatar Signup Encouragement 3.0
  • How to Post in Cyrillic (or Any Unicode Script) in TweetDeck
  • Merging AVI Video Files With Joiner That Works: AVI Joiner
  • Cache Images 3.0
  • How I Solved issue with OpenX missing stats

Categories

  • Asides
  • Blogging
  • Business
  • Fun
  • Internet Services
  • Marketing
    • Affiliate Marketing
      • AdSense
  • Miscellaneous
  • Personal
  • Politics
  • Serbia
  • Software
  • Technology
    • Search engines
      • Google
    • Web design
  • The Internet
  • Tips & Tricks
  • Uncategorized
  • World

Me Elsewhere

  • on Gravatar
  • on Serbian blog
  • on Twitter

Recent Tweets

  • RT @nacin: I just fixed ticket 19614 with commit 19614. Boom. 1 month ago
  • OK, @delicious partly up, and yes, there is redesign, again. 1 month ago
  • @twitter down, @delicious down, coincidence or I'm missing something? 1 month ago
  • WordPress 3.3, Serbian edition, is up and ready! http://t.co/NHmpGJrJ 1 month ago
  • RT @wordpress: At long last, WordPress 3.3 has arrived. Consider it our gift to you -- Happy Holidays! http://t.co/J1hSRU1O 1 month ago

Copyright © 2006-2012 Milan Dinić's Blog.

Copyright | Disclaimer | Contact