Admun's NUDN

admun

  • San Francisco, CA

Navigation

Navigation

Categories

Search

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 - #

NP_NewMemberBlog v1.1

For those having problem cut and paste code...

Thanks to Trent and all for the code!

click here to download

09:50:44 on 10/12/05 by Admun - My Work - tags: none - #

NP_NotifyMe v0.40

This new version fixed small bug and add return-path header in mail, which some user suggest fix the no mail received probem.

click here to download

11:38:21 on 10/07/05 by Admun - My Work - tags: none - #

NP_CommentControl v0.5

This new release allows item author to approve/deny comments

click here to download

16:09:44 on 10/03/05 by Admun - My Work - tags: none - #

How to lose a user in less than 10 days...

Let this serve as a reminder how to treat your users right, at work and while working on Nucleus. cool

Powered by BLOG:CMS? No Way

17:37:20 on 09/28/05 by Admun - General - tags: none - #

NP_Smiley v0.6

This new release fixed the get_file_contents problem for older PHP.

click here to download

11:01:21 on 09/22/05 by Admun - My Work - tags: none - #

NP_MostViewed v2.2

A new version that based on TeRanEX's rewrite, with output template.

click here to download

18:16:09 on 09/21/05 by Admun - My Work - tags: none - #

NP_Smiley v0.5

This new release added emoticons panel.

click here to download

17:21:00 on 09/21/05 by Admun - My Work - tags: none - #

NP_Views v1.6

This new release built from v1.5 from gRegor and added a plugin admin menu to list and reset counts, as well as delete view counts entries on item deletion.

click here to download

14:14:25 on 09/21/05 by Admun - My Work - tags: none - #

NP_CommentControl v0.40

This new release add backward compatibile seperate email field support from Red Dalek and others.

click here to download

cheers,

17:06:23 on 09/20/05 by Admun - My Work - tags: none - #

PreItem my Item (also known as PreComment your comment)

I've been working on many plugins recently to add support to call other plugins to do pre-processing work. In many plugins that deal with items and comments, the output often not display properly with other plugin's skinvar display in raw code (ie <%Image(file.jpg|1024|768|320|240|test image)%> for NP_PopupImageNetPBM).

I think the best way to fix such a problem is to trigger PreItem (for item) and PreComment (for comment) events before proceeding with the output. The event calls all plugins registered to the event to process the data so all plugin skinvars are render properly.

For comment pre-processing, this can be done by:

$manager->notify('PreComment', array('comment' => &$comment));

For item pre-processing, calls:

$manager->notify('PreItem', array('blog' => &$blog, 
'item' => &$item));

Assumption is "global $manager, $blog;" is done earlier in the code.

Note that plugin developer should format and make sure $comment and $item are in the same format as the core pass it to notify().

17:56:29 on 09/15/05 by Admun - Developer Notes - tags: none - #

NP_LatestComments v1.6

This new release add emotions support via NP_Smiley support

click here to download

17:27:00 on 09/15/05 by Admun - My Work - tags: none - #

NP_MailToAFriend v1.2

I added some new feature to this plugin.

- better item rendering in email that works w/ other plugins (ie NP_Smiley, NP_PopupImageNetPBM)
- remove CSS from email and preview
- email and title template

NP_MailToAFriend v1.2

Please try it and report whether this new version break something or helps those who were struck in the past. cool

15:59:33 on 09/15/05 by Admun - My Work - tags: none - #

NP_MailToAFriend v1.0

A updated version that should fixed problem for those unable to get this plugin to work.

NP_MailToAFriend v1.0

Please try it and report whether this new version break something or helps those who were struck in the past. cool

22:31:09 on 09/13/05 by Admun - My Work - tags: none - #

NP_MiniForum v0.5.2 (beta)

After much coding, I'm able to make the remote script works much better. Now, I don't even need the jpg file as a hook.

Install instruction:
- replace NP_MiniForum.php (remove the jpg file in miniforum/trigger.jpg if you update from 0.5.1)
- insert <%MiniForum(script,[forumname])%> after <body> in your skin ie <%MiniForum(script,default)%>

NP_MiniForum v0.5.2 (beta)

23:05:46 on 09/11/05 by Admun - General - tags: none - #

NP_PingPong v0.5

Here's a new version that support pinging when publishing a draft. This version requires Nucleus 3.22 and later.

NP_PingPong v0.5


note: Last pre-3.22 version can be found @ here

11:46:04 on 09/11/05 by Admun - My Work - tags: none - #

NP_MiniForum v0.5.1 (beta)

Ok, I think it works for IE now. But I have not check Opera. So, please report any issue.

NP_MiniForum 0.5.1 (beta)

Install instruction:
- replace NP_MiniForum.php
- put trigger.jpg in plugins/miniforum

I still do not like the implementation since it's not XHTML complaint and it use an image as init trigger, but this is the way I can make it work for both Firefox and IE.....

15:52:43 on 08/18/05 by Admun - My Work - tags: none - #

NP_MiniForum v0.5 (beta)

Inspired by WP's AJAX Shoutbox, I Ajaxized NP_MiniForum. Technically it's not Ajax, just remote javascript since XML is not used for data transfer.

Please try it out and report any issue. Suggestion is also welcome.

Ajaxized NP_MiniFroum v0.5

Note, this is not a complete package. Please installed v0.4.1 and replace NP_MiniForum.php in the above zip file.

21:58:49 on 08/17/05 by Admun - My Work - tags: none - #

Admun's NUDN benchmarked

I was puzzled by the slowless on my NUDN and do some investigation and found the problem is coming from NP_RSSAtomAggregator. The process time is ~0.4 sec if it is turn off..... vs >4 sec.

17:17:33 on 08/08/05 by Admun - General - tags: none - #

NP_NewItem v1.4

This new release adds: 1) auto path to new.gif 2) option to check text label [NEW!!]

click here to download

23:47:03 on 06/01/05 by Admun - My Work - tags: none - #

NP_LatestComments v1.5

This new release improve flexibility of %u and %p (add %l for URL to comment)

click here to download

21:14:09 on 06/01/05 by Admun - My Work - tags: none - #

NP_Smiley v0.4

Here's the zip file for NP_Smiley v0.4.

New to this release:
- XHTML fix
- auto icon path

click here to download

19:59:16 on 06/01/05 by Admun - My Work - tags: none - #

NP_LatestComments 1.4

This new version adds template formatting function

click here to download

22:57:56 on 05/31/05 by Admun - My Work - tags: none - #

NP_TechnoratiTags 0.4

Playing around with this plugin and found a bug when a post contains both body and more part.

click here to download

Thanks goes to the original arthor zeroZ @ here

19:15:33 on 05/13/05 by Admun - My Work - tags: none - #

Blogger conversion tool

Here's the blogger conversion tool retrived from CVS. It is not fully support supported, but I dust it off and put it here. Please try it out and let me know if there is any problem.

Instruction:
1) download the zip
2) unzip the zip (only 2 files)
3) upload to nucleus/convert (migh need to create the directory)
4) run the script blogger.php in the directory, follow instruction given
5) enjoy!

click here to download

10:03:11 on 05/07/05 by Admun - My Work - tags: none - #

NotifyMe v0.20

20:30:40 on 04/30/05 by Admun - My Work - tags: none - #

NP_NewItem v1.3a

20:12:06 on 04/30/05 by Admun - My Work - tags: none - #

NP_LatestComments v1.3

19:06:59 on 04/30/05 by Admun - My Work - tags: none - #

NP_Counter v0.3b

17:39:55 on 04/30/05 by Admun - My Work - tags: none - #

NP_CommentControl v0.25b

New version that add deny all function in the admin menu.

click here to download

16:05:49 on 04/30/05 by Admun - My Work - tags: none - #

LiveJournal convert tool

Just update the livejournal tool for 3.2. This is alpha code and I have not test it (I don't have a livejournal)....

So, please backup before trying.

steps
1) put it in nucleus/convert
2) run the script and see

click here to download

10:27:47 on 04/30/05 by Admun - My Work - tags: none - #

Depending on plugin

I should have written this little post a while back. cool

In Nucleus 3.2, a new plugin mechanism is added to allow a plugin to detect whether all plugin(s) it requires are present. There are some plugins that depends on another plugin to function. NP_MostViewed and NP_View is one.

For the same reason, Nuclues now failed the plugin uninstall operation if it is required by another plugin.

For developer, they can simply put in a function in their plugin to tell Nuclues that what plugin(s) the say plugin require:

GetDepPen    function getPluginDep() {
  return array('NP_BlogWithOffset');
}

One note is this new plugin dependancy check mechanism does not break the compatibility for older version of Nucleus, the declared getPluginDep() in the plugin will becomes domrant if a plugin is installed in a older Nucleus.

19:15:27 on 04/10/05 by Admun - Developer Notes - tags: none - #

Wordpress conversion tool ported to Nucleus

Note: v1.2 is out and can be found @ http://edmondhui.homeip.net/nudn/item/1004

I spent some times ported b:cms's wp conversion tool (Thanks to Radek) from b:cms to Nucleus. Enjoy, wp users!

steps:
1 - install Nucleus
2 - put the script in nucleus/converts
3 - run the script, follow the step
4 - done!

click here to download

The latest version can be found here

Please let me know if this script works or you run into any problem (either here or from the forum)

21:32:52 on 03/14/05 by Admun - My Work - tags: - #

Admun's NUDN now using NUDN2 skin

Just update my dev blog to nudn2 skin. A nice skin, to say the least.

22:50:48 on 02/28/05 by Admun - General - tags: none - #

NP_PostMan 1.1a (Repost)

The original file is lost due to the website out of service (???)

click here to download

10:07:50 on 02/23/05 by Admun - My Work - tags: none - #

NucleusCMS noted by market survey

I guess we start to pick up by the radar, no matter how small a dot we made on the blogosphere. (ok.... still not even 1% on the market) cool

Cool to work on such exciting project.

elise.com: On the Job: Weblog Tools Market - Update February 2005

16:30:20 on 02/21/05 by Admun - General - tags: none - #

NP_Print debug print.php

Here's a print/print.php file to save input from HTTP.

click here to see the code

15:32:51 on 02/07/05 by Admun - My Work - tags: none - #

Softer plugin dependancy

Currently in CVS, there is a plugin dependancy support to allow a plugin to specify what other plugins must be installed for it to function properly.

more...

11:28:46 on 02/07/05 by Admun - Developer Notes - tags: none - #

NP_Referer2 v0.96

Here's a updated version.

Click here to download

14:43:08 on 02/04/05 by Admun - My Work - tags: none - #

NP_PingPong v0.31

Here's a new version, fix a bug when saving draft

click here to download

13:53:35 on 02/04/05 by Admun - My Work - tags: none - #

NP_CommentControl v0.25a

New version fixed missing global.

click here to download

11:27:09 on 01/31/05 by Admun - My Work - tags: none - #

NP_CommentControl v0.24

Here's a new version with banlist file function:

Note, v0.25 here now..... no major change, just merge into the CVS version

Click here to download

21:40:07 on 01/23/05 by Admun - My Work - tags: none - #

NP_Referer2 v0.95

Here's a updated version I'm using

Click here to download

11:38:51 on 01/20/05 by Admun - My Work - tags: none - #
<=   December 2004   =>
SunMonTueWedThuFriSat
   1234
567891011
12131415161718
19202122232425
262728293031