MostViewed
Installation
- Install NP_Views
- Download
- Upload to plugin directory
- Install from plugin admin menu
Using the plugin
To use the plugin add a skinvar in your skin:
<%MostViewed%>, will show the 10 most viewed items<%MostViewed(20)%>, will show the 20 most viewed items
MostCommented
Installation
- Download
- Upload to plugin directory
- Install from plugin admin menu
Using the plugin
To use the plugin add a skinvar in your skin:
<%MostCommented%>, will show the 10 most viewed items<%MostCommented(20)%>, will show the 20 most viewed items
InternetTime
Using the plugin
This plugin brings the Swatch Internet Time (.beat) to http://nucleuscms.org 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)
more info about Swatch Internet Time at http://swatch.com/internettime/home.php
The plugin can be used as a TemplateVar to show the time at which an item or comment was posted in the Swatch Internet Time To do so simply add <%InternetTime%> somewhere in your template. (In the ‘Items’-part of your template if you want the .beat of your item and somewhere in the ‘Comments (if any)’-part of your template to show the .beat of every comment.)
The plugin can also be used as a SkinVar, to print the actual .beat time (this is the time the blogpage is parsed on the server)
Installation
To install NP_InternetTime simply copy the following code and save it in a file called NP_InternetTime.php, upload it to the plugins folder of your Nucleus installation and install.
Options
The plugin has only one option:
- Show Centibeat (yes, no): with this option you can turn on or of the centibeats which make the .beat more precise (example: on: @494.25, off: @494)
Counter2
Using the plugin
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. It does this by starting a phpsession when the visitor views the first page, and it stores the value of the counter at that moment for the visitor so that he sees the same value for the counter on every page. It also detects the most common bots and spiders, like google, to prevent them from being counted. It stores the value of the counter as a blogoption so that every blog in your Nucleus installation has its own counter.
To display the (textual) counter add the skinvar <%Counter2%> somewhere in your skin (you can also use <%Counter2(textual)%>). If you prefer a graphical counter you can use <%Counter2(graphical)%> (don’t forget to upload the images as well as decribed in the Installation) Since version 0.4 NP_Counter2 also includes a ‘feedcounter’ to count how many times your feeds where downloaded. This counter doesn’t use a phpsession. To count, add in every skin of your feeds (rss1, rss2, atom,...) somewhere <%Counter2(feeds,nodisplay)%>, this will count everytime your feed is downloaded. To show the value of this ‘feedcounter’ add somewhere in the skin of your blog <%Counter2(feeds,textual,nocount)%> (or <%Counter2(feeds,graphical,nocount)%> for a graphical version)
Installation
Due to the use of a blogoption this plugin requires Nucleus v2.20 or higher.
- Copy the Code and paste it in a file called NP_Counter2.php, upload it to the plugins folder of your Nucleus installation and install.
- Add the following line to the top of your Nucleus index.php (or your config.php). If you use NP_WIE you should have done this already. (if you only plan to use the feedcounter this is not necessary, since the feedcounter doesn’t use a phpsession)
1
session_start();
- If you want to use a graphical counter, create a folder called counter2 (lowercase!) in your plugins directory. Create 10 images (for every digit one) and call them 0.png, 1.png, 2.png, and so on and put them in the counter2 directory (or download my 10 (ugly ;-) ) digit images: counter2.tar ).
To upgrade to version 0.3 (or higher) when you are using version 0.1 or 0.2, you should first uninstall the previous version (before you do this ‘back-up’ the value of your counter, because this is also deleted!)
Once again (sorry!) when you are using version 0.3 and want to upgrade to 0.4, you should first uninstall the plugin (don’t forget to backup!)
Options
- The plugin adds one option to every blog in your Nucleus installation:
Value of your counter (0): This is the current value of your counter (of the blog you selected). - And has one plugin option:
Value of you feedcounter (0): This is the current value of your feedcounter.
SkinVar options
The skinvar has three options:
- counterType = visits|feeds : visits selects the normal counter, feeds selects the feedcounter
- counterMode = textual|graphical|nodisplay : textual show a textual counter, graphical shows a graphical counter, nodisplay permits the counter from being displayed
- counterUpdate = count|nocount : count counts the hit, nocount permits the counter from counting the hit
Some examples:
1 2 3 4 | <%Counter2(visits,textual)%> <%Counter2(visits,graphical,nocount)%> <%Counter2(feeds,textual,nocount)%> <%Counter2(feeds,nodisplay)%> |
Nucleus
MyNewsletter
MyNewsletter enables you to send a daily/weekly/monthly/..., or just manually, newsletter with the latest 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!
YAASP
This plugin tries to prevent spammers from spamming your weblog. It does this by inserting a hidden field in the post-comment-form with a value that should match when posting a comment. Spammers often post there spam directly to the page which accepts the comments, thus bypassing the comment-form. If they use this method their input will lack the value of the hidden-field, and will be blocked by YAASP.
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. It does this by starting a phpsession when the visitor views the first page, and it stores the value of the counter at that moment for the visitor so that he sees the same value for the counter on every page. It also detects the most common bots and spiders, like google, to prevent them from being counted.
InternetTime
This plugin brings the Swatch Internet Time (.beat) to Nucleus. The plugin can be used as a TemplateVar to show the time at which an item or comment was posted in the Swatch Internet Time To do so simply add <%InternetTime%> somewhere in your template.
MostCommented
Shows a list of items with the most comments
MostViewed
This plugin displays the most viewed items. Rewritten for a major speed improvement :)
Please note that there might be newer versions of this plugin at the forum. I don't actively maintain this plugin.
Convert a Nucleus blog to Wordpress
As you could read in my previous post, I converted my weblog from Nucleus CMS to Wordpress. This article illustrates how I did it.
Import Nucleus content
I started by looking for a converter for Nucleus to Wordpress. I was happy to find one for Wordpress 2.1. Because I wanted to do most of the work while being offline (on the train), I then setup a local environment. This was very easy with XAMPP. After having the Magic LAMP running, I created a local database and imported all my Nucleus tables. Then I installed Wordpress 2.1 in my local environment and started the conversion. It must have been my lucky day, everything seemed to work and my Nucleus content (items, comments, users, trackbacks etc) were imported into Wordpress. After the import i could easily update Wordpress 2.1 to 2.7.
The Theme
The next important step: convert my carefully crafted ( ;-) ) Nucleus skin to a Wordpress theme. I thought this would be rather time consuming, but actually it only took me 10 hours (on the train) to completely convert my skin. I started from the default Wordpress theme, which was very helpful to see how everything works. Other details in this step are less important, because they are specific to my theme.
Weblog op Wordpress
Zoals sommige mensen op Facebook al hebben opgemerkt heb ik m'n weblog overgezet van Nucleus CMS naar Wordpress. Eigenlijk ben ik nog volop bezig met het overzetten want er zitten nog een hoop foutjes en ruwe kantjes in. Die worden de komende dagen/weken weggewerkt.
Toen ik 6 jaar geleden met een eigen weblog begon, kwam ik al snel uit bij Nucleus. Er waren toen immers nog niet veel alternatieven. Wordpress bestond al wel, maar was nog heel erg jong. Bovendien was er een vrij levendige community rond Nucleus die het leuk maakte om het project te gebruiken en rond te hangen op de forums. Ik heb toen zelf ook mee aan de core van Nucleus geprogrammeerd. De laatste jaren ben ik echter mijn interesse in PHP verloren, en daarmee ook mijn bijdragen aan Nucleus. Ondertussen is Wordpress enorm gegroeid en heeft ondertussen veel meer features dan Nucleus. Stiekem was ik er al wel een half jaar over aan het nadenken om over te stappen op Wordpress, maar het leek me nogal veel werk.
Nu ik weer iedere dag met de trein naar Brussel spoor en ik mijn laptop een tweede jeugd heb gegeven met Ubuntu heb ik mijn tanden er uiteindelijk dan toch maar ingezet. Het overzetten op zich ging zelfs vlotter dan ik had verwacht. Over de technische kan daarvan schrijf ik later nog een post.
Nu ik Wordpress gebruik plan ik ook enkele kleinere zaken aan te passen. Zo zou ik OpenID en Gravatar willen ondersteunen. Ook plan ik om meer technische zaken in het engels te schrijven. Hierbij zal de tagging feature van Wordpress dan weer handig zijn, omdat ik posts in het nederlands met 'nl' kan taggen, en posts in het engels met 'en', en je hiervoor dan ook aparte feeds kan opvragen (betere voorstellen altijd welkom :) ).
Ondertussen staat de trein stil in het station van Berchem en geniet ik verder van 'If I Should Lose You' van Hank Mobley. Nog twee haltes, een korte autorit met tussenstop bij de bakker voor worstenbrood, en dan kan ik voor de eerste echte keer op de 'Publish'-knop van Wordpress klikken...
spambayes [Wiki:NucleusCMS]
This plugin will add Spam bayesian filtering to your weblog.
http://wakka.xiffy.nl/spambayes