Admun's NUDN

admun

  • San Francisco, CA

Navigation

Navigation

Categories

Search

Notify Me

Feeds

rss2
atom
subscribers to this blog

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 - #
«Prev | 1 | 2 | 3 | ...| 9 | 10 | 11 |...| 17 | 18 | 19 | Next»