Admun's NUDN

admun

  • San Francisco, CA

Navigation

Navigation

Categories

Search

Notify Me

Feeds

rss2
atom
subscribers to this blog

NP_TechnoratiTags v0.6

New releae fixed the disappearred + when adding new item

click here to download

10:20:48 on 11/30/05 by Admun - My Work - tags: - #

NP_Smiley v0.7

This new release add alt='mad', instead of always showing "emoticon"

click here to download

14:41:41 on 11/29/05 by Admun - My Work - tags: none - #

Getting the post, the right way

In the other post, I come up with a trick to call PreItem event to allow other installed plugins to process any skinvar might be in the data. There is still one problem that internal skinvar like <%image%>, <%popup%>, and etc are not resolve.

Here's the trick to do that, in a one stone for 2 birds fashion. The trick used PHP output buffer control function redirect the output mean for the broswer and capture it into a variable for our use.

example: getting contents of a post:

...
... (get blogid)
...
$b =& $manager->getBlog($blogid);
...
...
$extraQuery = ' and inumber=' . intval($itemid);
$template = 'default';

ob_start();
$b->readLogAmount($tempalte, 1, $extraQuery, 0, 1, 0);
$outbuf = ob_get_contents();
ob_end_clean();
The contents of the post is in the $outbuf for your consumption.

10:48:46 on 11/22/05 by Admun - Developer Notes - tags: none - #

NP_MailToAFriend v1.4

I fixed the resolve problem.

NP_MailToAFriend v1.4

10:36:29 on 11/22/05 by Admun - My Work - tags: none - #

NP_MailToAFriend v1.3

I fixed the missing CSS decoration problem reported

NP_MailToAFriend v1.3

11:53:32 on 11/21/05 by Admun - My Work - tags: none - #

My private Ajaxized Nuclues Plugin

Here's my note on how to add Ajax function to a Nucleus plugin. Ajax provides interaction to your web application (in our case, a blog) without reloading the whole web page. I think it is a very good mechanism to refresh just a small portions of your blog without clicking the reload button. NP_MiniForum is a good example.

There are 3 area of changes in order to add Ajax function to a Nucleus plugin:
  1. Create function to insert XMLHttpRequest javascript
  2. Setup doSkinvar() with function to insert javascript and <div> block
  3. Add action to receive remote HTTP request

more...

16:04:07 on 11/17/05 by Admun - Developer Notes - tags: none - #

NP_NotifyMe v0.50

found some bugs with Return-path changes and URL in normal mode...

click here to download

17:15:08 on 11/14/05 by Admun - My Work - tags: none - #

NP_NotifyMe v0.41

small fix to see any different for those having problem sending email...

click here to download

10:21:31 on 10/21/05 by Admun - My Work - tags: none - #

NP_Profile v1.1

Small bug fixes: add sql_table and supportsFeature support

click here to download

16:36:20 on 10/18/05 by Admun - My Work - tags: none - #

Fighting spam the big iron way

It looks like the wp guy is brewing some new mechanism to battle spam.

All of the solutions I saw so far used one of the methods:
- special interaction ie captcha, embedded keys in form
- detection algorithm ie filters, blacklist
- manual intervention ie human approval

The widely used one for Nucleus these days are NP_Blacklist, NP_CommentControl, NP_Captcha, and a few.

This new ASS idea is very different than the current crop of methods, mostly autonomy. Spam detection in ASS is done in a centralize server, which tell the blog whether the submit comment is spam or not.

Of course this raise a lot of concerns such as on how this method scale and response to things like privacy, which is yet to see.

Currently, there is a NP_SpamCheck being worked on, which provide an infrastructure to allow customize spam detection.

14:20:46 on 10/14/05 by Admun - General - tags: none - #
«Prev | 1 | 2 | 3 | ...| 8 | 9 | 10 |...| 17 | 18 | 19 | Next»