NP_TechnoratiTags v0.6
NP_Smiley v0.7
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.
NP_MailToAFriend v1.4
NP_MailToAFriend v1.3
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:- Create function to insert XMLHttpRequest javascript
- Setup doSkinvar() with function to insert javascript and <div> block
- Add action to receive remote HTTP request
NP_NotifyMe v0.50
NP_NotifyMe v0.41
NP_Profile v1.1
Fighting spam the big iron way
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.
NP_NewMemberBlog v1.1
Thanks to Trent and all for the code!
click here to download
NP_NotifyMe v0.40
click here to download
NP_CommentControl v0.5
How to lose a user in less than 10 days...
Powered by BLOG:CMS? No Way
NP_Smiley v0.6
NP_MostViewed v2.2
NP_Smiley v0.5
NP_Views v1.6
click here to download
NP_CommentControl v0.40
click here to download
cheers,
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().
NP_LatestComments v1.6
NP_MailToAFriend v1.2
- 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.
NP_MailToAFriend v1.0
NP_MailToAFriend v1.0
Please try it and report whether this new version break something or helps those who were struck in the past.
NP_MiniForum v0.5.2 (beta)
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)
NP_PingPong v0.5
NP_PingPong v0.5
note: Last pre-3.22 version can be found @ here
NP_MiniForum v0.5.1 (beta)
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.....
NP_MiniForum v0.5 (beta)
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.
Admun's NUDN benchmarked
NP_NewItem v1.4
click here to download
NP_LatestComments v1.5
click here to download
NP_Smiley v0.4
New to this release:
- XHTML fix
- auto icon path
click here to download
NP_LatestComments 1.4
NP_TechnoratiTags 0.4
click here to download
Thanks goes to the original arthor zeroZ @ here
Blogger conversion tool
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
NotifyMe v0.20
NP_NewItem v1.3a
NP_LatestComments v1.3
NP_Counter v0.3b
NP_CommentControl v0.25b
LiveJournal convert tool
So, please backup before trying.
steps
1) put it in nucleus/convert
2) run the script and see
click here to download
Depending on plugin
I should have written this little post a while back.
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.
Wordpress conversion tool ported to Nucleus
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!
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)
Admun's NUDN now using NUDN2 skin
NP_PostMan 1.1a (Repost)
NucleusCMS noted by market survey
Cool to work on such exciting project.
elise.com: On the Job: Weblog Tools Market - Update February 2005
NP_Print debug print.php
Softer plugin dependancy
NP_Referer2 v0.96
NP_PingPong v0.31
NP_CommentControl v0.25a
NP_CommentControl v0.24
Note, v0.25 here now..... no major change, just merge into the CVS version
Click here to download