NinjaLinks Update: Version 1.1

As a distraction from working on my own site, cssbake, and all of the other projects I’m way overdue on, I’ve done a huuuuge round of bug-fixes on NinjaLinks. Version 1.1 is now available to download.

Overview of fixes

Key: ‘M’ minor changes – aesthetic or non-essential fix / ‘N’ normal changes – required bug fix / ‘I’ important changes – security fix (none this release)

  • (M) Fix typo in config.php
  • (M) Allow spaces and dashes in category names – manage_categories.php
  • (M) Fix order of updates displayed – functions.php
  • (M) Add ownername field – addlink.php / manage_links.php / updatelink.php
  • (N) Remove strtolower from URLs (affecting UC links) in addlink.php / manage_links.php / updatelink.php
  • (N) Turn off errors – functions.php (not necessary once live)
  • (N) Undeclared variable error in manage_categories.php
  • (N) Allow foreign chars in link names / owner names etc – addlink.php / functions.php / install.php / updatelink.php
  • (N) Smoother install process – functions.php / install.php / header.php
  • (N) Better install checking (if install file exists etc) – functions.php / header.php
  • (N) Better error reporting – functions.php
  • (N) Improved spam protection – config.php / functions.php / addlink.php / contact.php
  • (N) Option to disallow duplicate links – config.php / addlink.php

Installing a fresh copy

Download the script, set up database, customise config.php and run install.php as normal (as covered on the NinjaLinks page). Delete install.php and update-1-1.1.php. You do not need to run update-1-1.1.php.

Upgrading from version 1

BACK UP YOUR EXISTING FILES AND DATABASE

Download the script, copy over your existing configuration settings into the new config.php (be sure to set the new options where appropriate). Customise your layout (header/footer/stylesheet) or copy over existing data from back-up. Delete install.php from the folder. Upload all of the new files, over-writing the existing ones (or, delete the files and re-upload fresh). Once uploaded, run update-1-1.1.php in your browser (at http://your-website.com/ninjalinks/update-1-1.1.php or whatever your URL is). Once completed, delete update-1-1.1.php.

Any problems with installation or upgrading should be posted in the tutorialtastic section at codegrrl.

Important note: the NinjaLinks install/update now forces UTF-8 character sets in the database to allow foreign characters. If your NinjaLinks database is shared with another script and you aren’t sure if that uses UTF-8 or would the affect of setting it would be, be doubly-triply sure to make plenty of back-ups. That said, it’s fairly common for scripts (such as the likes of WordPress, etc) to use UTF-8 anyway.

4 Comments

  1. Jem

    12 Aug at 5:14 pm

    Because I forgot to add in the post and I'm too lazy to edit it now, thanks to Rebecca (void-flower.net) and Amelie (not-noticeably.net) for last minute testing :)

  2. You must spend loads of time on the computer…which I do, too, but at least you accomplish things ;) I love all your scripts, keep making more!

  3. It's "update-1-1.1.php", not "upgrade-1-1.1.php" :)

    Upgrade worked for me so far!

  4. Jem

    13 Aug at 7:02 am

    Oops, yep, that's what I meant *facepalm*