Aug 12 2009

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.

Warning

This post is over 6 months old. This means that, despite my best intentions, it may no longer be accurate. Age, motherhood, experience, loss... these things have all changed me from when this blog was started back in the heady (ha) days of my youth.

As much as I would like to go back and edit 10 years of archives to provide an insight into the 'me' of now — to update coding snippets and revise website advice — it would probably take years to do so (by which point I'd have to start again!) This would defeat the point of keeping these archives anyway.

Please take these posts for what they are: a brief look into my past, my history, my journey.

4 Responses so far
  1. Jem says: August 12, 2009 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. Lauren says: August 12, 2009 at 7:03 pm # ·

    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. Nyx says: August 12, 2009 at 10:53 pm # ·

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

    Upgrade worked for me so far!

  4. Jem says: August 13, 2009 at 7:02 am # ·

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