Archive for the 'WP-Plugins' Category

Ajax Spell Checks

Now even though that having QuickTag toggled FCKeditor (ChenPress) allows wp-spellcheck to work, I have some recent findings on the net that make DHTML/XMLHttpRequest/AJAX spellcheck thats makes me excited.

At first, Purely dhtml spell check would be ispell (for IE) and those integration of spellcheck plugins for WYSIWYG Editors (MudBomb, HTMLArea, FCKeditor…), but now…

1. See this very cool DHTML spellcheck which check your spelling while u type (like word, something i wanted in the first few posts in my blog)

http://me.eae.net/archive/2005/05/27/dhtml-spell-checker/ and its demo

Its code is implemented via js and cgi perl and aspell. (shouldnt be a problem if you want to port it to php)

2. This implementation done using some ajax library (CPAINT or SAJAX) and php (and pspell [with aspell wrappers])
http://www.broken-notebook.com/spell_checker/index.php

Usage: click spell check to start the spelling check (like gmail’s)

3. Of this AJAX SpellChecker mention in 2, a wordpress plugin was then packaged by m0n5t3r (http://exotic4.nipne.ro/~iacobs/work/wordpress-plugins/ajax-spell-checker/)

4. A nice working implementation of a Ajax spell check that should not be forgotten is the Spell check included in Gmail.

5. I modified the ajax spellcheck mentioned in 3 and 2 and then packaged and place it here. Download it here. :)
Current features

  • Just copy, activate and you get your spell check activated for writing posts and comments

More info here.

Asides

  1. The nick m0n5t3r is a form of 1337(leet) jargon
  2. Using eAccelerator (improved of mmCache) and free/better alternative to Zend Accelerator does seems to speed up my php pages alot (each page is served ~1s compared to 4s) by caching compiled php.

Note: Click on Check Spelling to do the spell check.

Whose Online (fixes), and intersting Stats

I kinda like McMike’s Who is Online plugin.
http://www.mcmike.nl/english/?p=16

Its really small and simple, however there needs some (maybe small) fixes, so a little poke into the code. Its quite fun because the variables are named in Dutch which however is still programming and to a extend I should be able to understand it.

Here’s the link to the modified plugin.
http://www.lab4games.net/zz85/blog/wp-content/wieonline.phps

Then to remind me, I found wp-shortstat  about 4 days ago and installed it.
http://jrm.cc/archives/blog/wp-shortstat/

Its really cool, but as I gave a comment, would be cool with stats of users too.

No matter what, here is some stats that interest and impress me.

Browsers:
Firefox 1.0 is top of my list (34%), followed by crawlers(spiders!?!) 21% then IE 16%

Referers:
Lots of them from google (and their localised domains), other blogs I visit  and ping sites.

Search strings:
This is very cute. I didnt know these would be what people use to come to here. eg. "kepo can", "ajax 554", "installation package debian knoppix feather".

Countries:
In Decending order,  SINGAPORE (SG), UNITED STATES (US), SPAIN (ES), UNITED KINGDOM (UK), GERMANY (DE), NEW ZEALAND (NZ), AUSTRALIA (AU) ,Indeterminable, CHINA (CN), JAPAN (JP), NETHERLANDS (NL),ITALY (IT), LEBANON (LB), SWEDEN (SE), CANADA (CA), HUNGARY (HU),EUROPEAN UNION (EU), BULGARIA (BG), QATAR (QA), ICELAND (I,S), FRANCE (FR),TURKEY (TR)    BELGIUM (BE),RUSSIAN FEDERATION (RU),MALAYSIA (MY),ESTONIA (EE),GREECE (GR),EGYPT (EG),PORTUGAL (PT)    ,DENMARK (DK),LITHUANIA (LT)    ,TAIWAN (TW),AFGHANISTAN (AF).
Wow, I didnt know a little fly like me can get so much attention. (And a friend now in China even mentions this site get blocks there!?)

Languages:
Most of them relating to their countries listed above but here are some of the more interesting ones.
Latvian, Serbian, Korean, Turkish and the funny ones!? nl-NL, hu-hu, el-gr!

I sure other would have much more interesting stats, and its suprising so much without me publicise my blog (and many of my friends still dun know i have a blog i think)

And ya, here’s a installation guide and comparision for awstats and level10 hit counter (both quite nice, picks of the crops) and wrote sometime last week.
http://www.lab4games.net/zz85/blog/wp-content/awstats.txt

And come to think of it, my blog is going to be 1month old! I wonder how much is its lifespan.

Smart Unread Comments “patch”

Another "must have" cool plugin. It has just been updated to v1.3
http://inner.geek.nz/archives/2005/02/11/wordpress-plugin-smart-unread-comments/

2 Issues I faced.

  1. Doesnt work with pages
  2. Almost destroy the layout of the "almost spring" theme.

Issue 1.
After diggin the source, Line 59,   I removed the comments of /* is_page() */
It does seems to work (for now).

Issue 2.
Make me feel like pulling my hair. Trace the problem to style.css

#sidebar ul ul li a {
    display: block;

Now display:block is the problem. It is used so the href can fill up the whole list on hover. This means clicking in the list, but not necessary over the link will enable the hyperlink which looks pretty cool.

I struggle with myself to either a)hack the css or b)modify the plugin.
If (a), (i) I need to sacrifice entire li for click. li could still be used for a mouseover effect (ii)something to do with the span tag of the comments list? i couldnt think how

So I took the easier option: (b) and changed line 175
$output .= "\n\t<li".$style."><a href='".get_permalink($post['post_id'])."’ title=’".$post['comment_date'].", ".$post['comment_author']."’>".$post['post_title']."</a>&nbsp;(<a href=’".get_permalink($post['post_id'])."#comment-".$post['comment_id']."’ title=’Oldest unread recent comment for this post’>".$post['comment_count']."</a>)</li>";
to this.
$output .= "\n\t<li".$style."><a href='".get_permalink($post['post_id'])."#comment-".$post['comment_id']."’ title=’Oldest unread recent comment for this post-".$post['comment_date'].", ".$post['comment_author']."’>".$post['post_title']."&nbsp;(".$post['comment_count'].")</a></li>";

This was a single <a> in the list make the style look better.

[update]
Seems… if i  add is_page(), smart commennts dont detect new comments. So maybe i’ll just have to wait for a new version to be loaded?

Registered Users only

I’ve been looking for this. Post Levels does its job, but something as simple as restricting your site to users only should have been done ages ago.

http://wordpress.org/support/topic/8560#post-52169

After some searching, I finally found this. If a good plugin like this are hidden, am I missing out on lots of other stuff?

Update on Another AJAX idea

Another AJAX idea.

So I named it Live Sidebars. As in my later post. I started using SAJAX and after 2 days I gave it up (using it as a plugin), although I made some progress showing/hidding using ajax. Then I went on to do “Live ‘Posts’”using sack.

Now for some sites which have codings for expanding/contracting or showing/hidding items here are some.

http://www.scriptygoddess.com/archives/2002/10/04/show-hide-sidebar-gadgets/
A show hide (sidebar) gadget. Works using cookies and server side programming.

http://cjbehm.dyndns.org/wingingit/collapseit/
CollapseIt WP plugin. Uses javascript with divs.

http://www.thisisennis.com/scripts.php
More Info tabs. Which was inspired by

http://www.lucky-33.com/
Look at the cool sliding “more infos”

So, already so many implementations out there using show/hide. But no ajax yet, does that means there’s no need for it?

Continue reading ‘Update on Another AJAX idea’