This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Vokativ

Description

This plugin users currently logged user’s display name if any, otherwise it’ll use comment author name stored in cookie (if any), transforms it in form of Vokativ, and greets user in natural way in Serbian language, so if you have user named “Filip”, instead of greeting him with “Zdravo Filip!” (“Hello Filip!”), this plugin would greet him with “Zdravo Filipe!”

Only for ex-Yugoslavian bloggers 😉

Customization

Following optional parameters may be provided when calling wp_vokativ() function:

  1. $greeting (str) – Greeting text, preferably in Serbian cyrillic (utf-8). %s will be replaced with Vokativ name. Default: “Здраво %s!”
  2. $force (bool) – Force user name. If no name is found in logged in user display name or in browser’s cookie, a input request will pop up asking user for his name. Default: false
  3. $force_title (str) – If $force is true, this will be used for input request title. Preferably in Serbian cyrillic (utf-8). Default “Добродошли”
  4. $cirilica (bool) – True will force Serbian cyrillic, false will force Serbian latin script, and null value will let Vokativ decide which script to use. Default: null
  5. $css (str) – Absolute URL of CSS file to apply to Vokativ suggest dialog. Default: “predlog.css”
  6. $rel (str) – rel value of Vokativ suggest link. Default: “shadowbox;width=350;height=300”

Screenshots

  • Greeting for logged in user
  • (Malformed) greeting for returning users (who left at least one comment previously)
  • Vokativ suggest dialog

Installation

Upload contents of zip archive to your wp-content/plugins/ folder and activate plugin from WP admin area.

Then, open up your template file (any of them, where you want your greeting to appear, I use comments.php) and insert following code:

<?php
if (function_exists('wp_vokativ')) :
?>
<p class="vokativ"><?php wp_vokativ(); ?></p>
<?php
endif;
?>

This basically checks if wp_vokativ() function is defined (plugin is loaded) and if so, it calls the function.

FAQ

How to update Vokativ dictionary?

Currently you have to update Vokativ dictionary manually, but I hope in some of next releases I’ll provide interface for this.

Contributors & Developers

“Vokativ” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Vokativ” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

0.1

  • Initial release

0.2

  • Fixed bug which caused html validation break. This is minor update, more things to come (hopefully) soon!