Categorie: Code
Geschreven door: omeslo

After a lot of coding and some testing, I decided to release a new version of Picasagallery plugin for Nucleus CMS. Plenty of new features in this one, especially the ability to show a random picture from your (or anyone's for that matter) picasaweb gallery on your site.

I am happy with the way this plugin is maturing. As a matter of fact, the only major feature that is still missing in my opinion is the ability to view and add comments. This will be included in the next release, one way or another. (although I have no idea how to go about that yet..)

 

A last note: This plugin has only been tested on my linux server with php5, so feedback from users with other configurations is very welcome.

 

Installation, screenshots and info:

see here.

 

Download:

>>HERE<< 

 

 

Changelog:

 

0.90   [06-04-2008]   

initial version

 

0.90a [07-04-2008]   

(bugfix) album content not displayed when it contains only 1 picture
(compatibility) works with either cURL or allow_url_fopen enabled, defaults to cURL
(bugfix) a few minor bugfixes and enhancements

0.90b [07-04-2008]   

(bugfix) no albums displayed when only one album present
(bugfix) albums not displayed when renamed in picasaweb

0.91   [09-04-2008]   

(feature) pagination: number of thumbnails per page can be configured
(feature) picture search through the API

0.92   [14-05-2008]   

(feature) Show/hide restricted albums by userlevel
(feature) Image preloading
(feature) Added some extra configuration options
(general) Major code cleanup/rewrite
(compatibility) allow_url_fopen no longer supported, cURL libraries required

0.93   [15-06-2008]   

(feature) Show a random picture (e.g. in sidebar) from any public album
(feature) Added option to horizontally align thumbnails left or right
(feature) Admin area
(performance) Only load javascripts on gallery pages
(request) Added option to center all highslide popups in the viewport
(bugfix) No comments or info was shown for restricted albums
(bugfix) Search results show restricted pictures
(security) Refused deeplinking to restricted albums 

Categorie: Code
Geschreven door: omeslo

Friends,

 

 I just released version 0.92 of the Picasagallery plugin. This is a major update and if anyone is actually using this plugin, you are strongly encouraged to upgrade to this new version.

I did a serious code-cleanup and also added one very cool feature in particular, if I may say so: the ability to show albums that are marked as 'restricted' in picasaweb to a usergroup of your liking only (all visitors/logged in visitors/admins/none). Obviously you can only do this if you are the owner of this album (or at least know the Picasaweb login credentials). This option can be switched off in the plugin-options, so you can still show any picasaweb gallery, even if you are not the owner.

 

Here's the changelog:

 

0.90 [06-04-2008]

  • initial version

 

0.90a [07-04-2008]

  • (bugfix) album content not displayed when it contains only 1 picture
  • (compatibility) works with either cURL or allow_url_fopen enabled, defaults to cURL
  • (bugfix) a few minor bugfixes and enhancements

 

0.90b [07-04-2008]

  • (bugfix) no albums displayed when only one album present
  • (bugfix) albums not displayed when renamed in picasaweb

 

0.91 [09-04-2008]

  • (feature) pagination: number of thumbnails per page can be configured
  • (feature) picture search through the API

 

0.92 [14-05-2008]

  • (feature) Show/hide restricted albums by userlevel
  • (feature) Image preloading
  • (feature) Added some extra configuration options
  • (general) Major code cleanup/rewrite
  • (compatibility) allow_url_fopen no longer supported, cURL libraries required

 

 

 

Anyway, enough talking. Go get it >>HERE<<, and enjoy.

 

omeslo 

 

 

Categorie: Code
Geschreven door: omeslo

Been down with the flu for a few days, so that gave me the time to do some work on this new plugin.

Two new major features: Picturesearch through the picasagallery API, and pagination of thumbnails.

 

Here's what changed since the initial release: 

 

0.90 [06-04-2008]

  • initial version

0.90a [07-04-2008]

  • (bugfix) album content not displayed when it contains only 1 picture
  • (compatibility) works with either cURL or allow_url_fopen enabled, defaults to cURL
  • (bugfix) a few minor bugfixes and enhancements


0.90b [07-04-2008]

  • (bugfix) no albums displayed when only one album present
  • (bugfix) albums not displayed when renamed in picasaweb


0.91 [09-04-2008]

  • (feature) pagination: number of thumbnails per page can be configured
  • (feature) picture search through the API

Get your copy >>here<<
Categorie: Code
Geschreven door: omeslo

Here's another approach to a picturegallery: picasagallery. This one pulls all public albums and pics from any given picasaweb account, thanks to google's new api, and presents them in a nice way on your webpage!

 

  • images are served by picasaweb, so you get >1 gb webspace for free
  • uses the excellent Highslide script for displaying images
  • low overhead <25k including javascript (no javascript frameworks to download)
  • NOT using Zend libraries, but rather implemented my own PHP4 compatible engine!

 

This is an alpha release so expect to find bugs here and there.

 

Todo list:

  • pagination of thumbnails
  • Implement user rights so that logged in users can see restricted albums
  • write comments through the google api

 

Installation instructions are included in the >>download<<.

 

[edit]

Version 0.91 is available here.

 

Enjoy smile

 

 

Categorie: Code
Geschreven door: omeslo

Counterfriends,

After a few weeks of running this plugin, I noticed that my database got cluttered with tens of thousands of bot- and spiderhits, in spite of the botdetection present in the previous versions. Sometimes as many as 5000 a day! So I decided to do things differently:

Bot hits (or non-human hits) are no longer registered as hits, but only aggregated on a per-rule basis.

The list with strings that identify useragents used by bots, crawlers and spiders is no longer hardcoded, but can be edited as rules in the admin panel and saved in te database. Per rule, the number of blocked hits is visible, so you can see how effective certain rules are. The plugin comes with a prefilled database of bots and spiders that have been bothering me the most in the past few weeks, and can be easily modified and extended.

Besides that, DBUCounter is now using the excellent browscap class and php_browscap.ini from http://garetjax.info/projects/browscap/ for better browser and os detection.

 

 

DBUCounter has been running pretty smoothly on my site, and the statistics are fairly clean, so I guess it's time to release this to the community.

 

A quick update:

NP_DBUCounter 0.94 [09-03-2008]

  • (feature) bothits are no longer registered per hit, but aggregated per rule
  • (feature) User-maintainable botlist
  • (feature) Better browser and os detection (through browscap.ini, http://browsers.garykeith.com)

  

Get your copy >>>here<<< 

Upgrade instructions are available in the 'dbucounter' folder.

A last note: If you run into any permissions problem, chmod the folder 'Browscap/cache' to 777. 

As always,

enjoy!

 

omeslo 

 

edit: Patched to 0.94a

Categorie: Code
Geschreven door: omeslo

And again an update for the DBUCounter plugin for Nucleus CMS. I was forced to release this version earlier than planned due to a serious bug that was brought to my attention recently.

Here's the update:

  • (feature) Country flags
  • (feature) Exclude a specific IP from the stats
  • (feature) Option to show either images or text for overall hits
  • (bugfix) Database table not created correctly on install
  • (bugfix) Error when selecting max 'show how many' statistics


I implemented the second feature, exclude a specific IP from the stats, because I do a lot of live-testing on this server and my own ip-address tends to 'pollute' the stats. So, I exclude the ip-address from the PC I am mostly working at from the statistics.

Only so you know smile

 

To the right, under 'HitCounter', you can see a live demo of this plugin. Please note that this is a development version, and as such, not nessesarily similar to the latest released version.

 

download NP_DBUCounter version 0.93  >>here<<

Categorie: Code
Geschreven door: omeslo

I just managed to squeeze out a new version of the DBUCounter plugin for Nucleus today.  Version 0.92 includes a database change, so upgrades from previous versions require a manual database alteration in case you want to keep your previously recorded statistics.

I am planning on including an upgrade wizard if there will be any demand for it. Until then, I have provided basic upgrade instructions. You will find them in the 'dbucounter' folder.

 

DBUCounter 0.92 is running on this site. Click 'HitCounter' in the menu to the right to view an example.

 

Changelog:

 

0.92    [22-01-2008]

  • (feature)    Option whether or not to delete the stats on uninstall.
  • (feature)    Admin area                                               
  • (feature)    Operating system detection.
  • (feature)    Text headers for statistics are configurable           
  • (feature)    Color Picker                                           
  • (docs)        Added upgrade manual

To do:

  • fancy icons for the statistics
  • images for graphs
  • Upgrade wizard

 

Get your copy here!

Categorie: Code
Geschreven door: omeslo
I just finished the new version of the nucleus plugin NP_DBUCounter. We're at version 0.91 now.

changes in this version are:

New features:
- date format configurable through admin panel
- per blog counter
- included latest ip-to-country.csv

Bugfixes:
- counter offset not working

Get your copy here
Categorie: Code
Geschreven door: omeslo
Couln't find exactly what I was looking for, so I decided to write my own Nucleus plugin. And here it is.
This plugin records all unique visitors (based on time/ip) to the database. It shows a graphical display of the number of visitors, and some simple statistics. This is a first release (0.9) and any feedback is welcome.

features:
  • bot/crawler detection
  • country detection
  • configurable colors
  • up to 14 different imagesets

to do:
  • color picker
  • fancy icons for the statistics
  • images for graphs
  • per-blog statistics
  • date format configurable through admin panel

installation:
upload, and insert in your skin where you want the counter to be displayed (typically in the sidemenu)

download here:

NP_DBUCounter.zip (0.9)

Navigatie