Another New Site

I am putting together a quick site for the Halloween party we just had. This site is for people to upload their photos and see all the photos from everyone else at the party. Sure beats tracking photos down across all the social media sites

HALLOWEEN '09

Site Features:

  • Quick User System
  • Upload of multiple photos with descriptions
  • Ability to see everyone else's photos
  • Ability to comment on photos
  • Coming Soon:
    • Tag Other People in Photos
    • Search photos by tagged people

This is going to be an example of using my own simple framework to build a quick site. I may use a POG DB conn or my own, haven't decided, but this is very much my own simple from scratch mvc(page controller) framework.
This is looking to be a much simpler and quicker way to develop so far. I will want to create a good class to abstract the HTML Form stuff so CRUD doesn't have to be rewritten, but that is template stuff anyway.

This "non"-framework has its own template system for the view object, which is easy because PHP is a template language. I am going to implement some minor caching for menus into the framework to cap it off.
This framework is being derived from my work on Eaters, which I will mention soon in another post.
Thank you Rasmus.

Tags · · · · ·

Comments (0) November 02, 2009 3:39 am

SJDGC Forum - Completed ... Finally

So after a nice length of time (20+hours) I have finally finished the migration of the SJDGC vanilla forum to SilverStripe forum. It took a lot of hours for something so small.

The beauty of these types of projects for me is I get to use what ever method I would like to get things done. I get to use my old DB classes I have used for years and some straight no framework PHP coding.

things i missed when first planning
  • html -> bbcode
  • db collation issues
things overlooked
  • posts last edited field when not a topic starter
  • Members in the Community Member Status

After doing some test imports of the topics for the forum I realized a bunch of things I had missed when planning the migration. I forgot the fact that one database was using latin_swedish_ci for collation and one was using utf8-general-ci which led to some funky characters. This was fixed by the following.

  1. if text field change to blob in db table
  2. change back to your previous text field type
  3. set collation to utf8 ... general_ci

The end result of all of this is the complete migration of the old forum into the new system. The users are linked to their respective posts. All the topics and comments are in place and the text is all correct.
A nice bundle of scripts for a Vanilla->SS Forum migration. Also some nice utility scripts for fixing text strings I had to make after some DB corruption/errors/mistakes. And the cherry on top is some nice snippets for my PHP editor for silverstripe and my libraries... gedit :-)

// a super simple to strip non-ascii characters from a string
preg_replace('/[^(x20-x7F)]*/',''$text_to_clean);

Tags · · · · · · · ·

Comments (0) October 17, 2009 5:28 am

the smell of websites in the morning

After a long night of coding/hacking/browsing/?designing? I have some changes to the network:

  1. ultrastuff dot net
    • New Site Design
    • Very happy with this one
    • Will continue to add content to it and get it more professional looking
    • This new layout will be getting serious JS added to it for some nice interaction
  2. SJDGC
    • Fixed some things in the CMS
    • New Site Design Idea. Picture at bottom.

New Layout

Tags · · · · ·

Comments (0) September 24, 2009 7:22 am

adding to silverstripe

definitely will be using silverstripe/sapphire a lot more now. best cms and framework i have seen yet.

i am going to modify the calendar module as well as write a custom calendar widget for the sjdgc. after the forum import is finished, that is. this new code will make the event calendar function better and look much nicer. also the site needs a calendar widget in the sidebar, blogs and forum aren't cutting it by themselves.

Tags · · ·

Comments (0) September 18, 2009 6:14 am