Tag: DevBlog ¦ Atom ¦ RSS

Testing the RTE wysiwyg plugin

Test

Dit is de test

blablabla foobar lqskmjfqsmljf lqkjf qmjfmjioaj mqsdjf mqsqsk jfqsd f

  • listje
  • listjeje

some code: function foobar() { return true; }
Foobar

NP_MyNewsletter

Features in 1.2

  • DONE: use doError for errors (while (un)subscribing), and redirects when (un)subscbribing
  • DONE: Provide an admin area to manage the subscription lists
  • DONE: Choose the desired language as a plugin option
  • DONE: plugin(s) to update an installation of MyNewsletter 1.0/1.1 to 1.2

Download: http://prdownloads.sourceforge.net/nucleusplugs/NP_MyNewsletter-v1.2.zip?download

Planned features for 1.3

  • Automatically subscribe when registering
  • Subscribe to all blogs (will use blogid = 0)
  • Archive all sent mails (as plain html files)
  • Document how an unsubscribe link can be added to the newsletter

Planned features for future versions

  • Confirm subscribtion with a confirmation mail
  • the possibility of selection by user to obtain text or html mail
  • Interface to create the url to send a newsletter (and send if you want). This could be used when you are going to create the cronjob (just copy paste it) or if you only want to send newsletters manually
  • Eventually some day in the very far future: Multiple newsletters …

My favorite jEdit features

As reaction on moraes' comment at my post about the PHP Parser plugin for jEdit, I'll try to give a nice list of features and plugins (and macros) of jEdit i really like (obviously this list will change in the feature as a learn to use more features of jEdit)

Build in features

  • GPL, so free (as in free speech) and free to use
  • Written in Java, so runs everywhere, and even it is Java, it is not slow :-)
  • Syntax highlighting for 80 language (and 50+ additional available)
  • Extremely powerful keyboard shortcuts (certainly in combination with the macro's, then they just rule!)
  • Folds (explicit, implicit, ...)
  • Very easy to use Markers (stored in a seperate file so you don't loose them when closing and reopening the file!)
  • Very powerful search features: highlight next search result (in combination with the shortcut, this works exactly as Find as you Type in Firefox!), highlight all search results, or hypersearch (show results in a list). It is also possible to search in all files in …

jEdit PHP Parser Plugin

Yesterday i upgraded my jEdit installation (4.1final) to the latest development release (4.2pre), which will be the last development release before 4.2 becomes the new final and stable release.
4.2 has now nice new features, but what i really really like is the PHP Parser plugin (this plugin requires at least 4.2).
This plugin parses your php files for syntax errors etc everytime you open or save it, and shows the error in a nice list! I you are somebody like me who most of the time forgets the ; this plugin is a dream!
a screenshot:
jEdit PHP Parser plugin

NP_Counter2

With this plugin you can add a textual or graphical counter to your weblog, which count's the number of visitors, instead of the number of hits.

Plugin homepage

http://wiki.budts.be/NpCounter2

Get the plugin!

Copy the code found at http://wiki.budts.be/NpCounter2/Code into a file called 'NP_Counter2.php' and upload it to your webser

NP_InternetTime

This plugin brings the Swatch Internet Time (.beat) to Nucleus. Swatch has divided a day into 1000 eqaul beats, so every beat is the equivalent of 86.4 seconds. Also there are no timezones, so wherever you are, it is always the same Internet Time (by example: while i'm writing this it is 12:28+0200 or @478)

Plugin homepage

http://wiki.budts.be/NpInternetTime?v=2dt

Get the plugin!

Copy the code found at http://wiki.budts.be/NpInternetTime/Code in a file named 'NP_InternetTime.php' and upload it to your webserver

Considering: NP_Sheduler

Like i said, i'm thinking about writing a plugin that can be used as a tasksheduler: NP_Sheduler.
This is how i plan to do it (please comment! does it make sense at all?):

  • The plugin will execute 'task-scripts' at a certain time. These taskscripts are just php files with a name like task_foobar.php and a function start_task() to start the task. These file will be dropped in the 'tasks'-folder inside the 'sheduler'-folder, so that the plugin can 'scan' this folder to find new taskscripts. Other plugin could then 'drop-in' taskscripts when they are installed (well just unzipped ofcourse), and after that the user will be able to make a task for the new script, by selecting the task-script from the list and plan it
  • The plugin subscribes to the very last event, to check if there are tasks to be done (checks the current timestamp with the calculated 'next-run'-timestamp of every task, if current is > nextrun -> run the task), and if so includes the appropriate task_scripts and calls the …

NP_MyNewsletter: completely customizable newsletter for your blog!

My NP_MyNewsletter is ready, and I can say i'm a bit proud of it :-)

This plugin adds the possibility to Nucleus to send a daily/weekly/monthly/..., or just manually, newsletter with the latest X entries of your blog or the entries of today/yesterday. Your newsletter is completely customizable since it uses a normal Nucleus Skin to produce the newsletter!

After seeing the newsletters of websites like slashdot and newsforge i wanted to be able to send such a newsletter using Nucleus. Now it is possible

The plugin uses a normal Nucleus skin and sends the output as an e-mail, so you can give your newsletter the exact layout that you want.

When you want to plugin to automatically send the newsletter, by example everyday, just setup a cronjob at your webserver (everything is explained in the documentation). (i might write a plugin, NP_Sheduler, to do this from inside Nucleus in the feature, i'm seriously thinking about this)

The plugin can also send welcome and 'sorry to see you …

Release testing

While i was testing the Nucleus 3.1 zip file before it was released, i got the idea that it would be usefull to have a checklist with tests you should do when testing a RC zip file, instead of just installing the zip and trying things you think about. Like Karma said it would even be better to have an automated testing system, but that's probably a bit overkill for Nucleus.
After searching Google for a second, i found some PHP Unit testing tools:

I don't know if this information is somehow usefull for Nucleus...

CVS Commit

I commited some fixes/changes to CVS:

  • CHANGED: option-metadate are now key/value-pairs, and select-lists must be the first item. From the (updated) plugin api doc:

    As of Nucleus 3.1+CVS, some option types can be limited to only accept certain values using option-metadata. This metadata is stored in the $typeExtras-field, and is a semicolon-seperated list of values. Note: In a select-option, the select list must be the first value in $typeExtras.

    key explanation
    numeric If set to 'true', Nucleus will only accept numerical values for this option (available for optiontypes: 'select' and 'text')

    some examples:

    <?php
    // following code creates a text-option that only accepts numerical values
    $this->createItemOption('TestValue', 'TestOption', 'text', '0', 'numerical=true');
    // following code creates a select-option that only accepts numerical values
    $this->createItemOption('TestCase4', 'TestCaseOption:select(numerical)',
      'select', '0', '0|0|1|1|2|2;numerical=true');
    

  • FIXED: some bugs in testcase plugins
  • CHANGED: ItemOptionTestCase now tests a text-option with numeric=true, to show the usage of the client-side javascript that prevents users form …