Wednesday, May 13, 2009

Kohana mod rewrite notes

Some servers seem to be configured differently.

Anything other than request variables (in other words actual directories and files) use:
RewriteCond %{REQUEST_FILENAME} !(index\.php)

with php 5.2.8 this rule seems to work with Kohana:

RewriteRule .* index.php?kohana_uri=$0 [PT,L,QSA]

Monday, May 4, 2009

Print Website list of services and products

Digital Production Presses.
Kodak Laster Printing
Envelope Conversion
Mail Service






Western Mailing (Mass Quantity usually 1,000 or more - 500 minimum)

Business Printing
Custom Printing - Yes
Poster Printing - No
Booklet Printing - Yes
Brochure Printing - Yes
Business Cards - Can Outsource
Calendar (mass quantity only) - Yes
Catalog - Yes
Greeting Cards - No
Postcards - Yes
Door Hangers - Yes
Letterhead - Yes
Newsletter Printing - Yes
Color printing - yes
Print Menus - yes



Justin Logan (not sure about the quantity yet)

vehicle wraps
billboards
digital printing full color
Business cards
Brochures

Saturday, May 2, 2009

Possible Domain Names we can purchase

Domain Names our Company might Purchase

LVPRINTANDMEDIADESIGNS.COM

Friday, May 1, 2009

Page CMS Overview

Web Page CMS

Purpose:

To easily add pages to a website, this is primarily for pages that are topic or article-based. Once the project is advanced enough, some templates may include photo galleries or more intricate modules within the pages themselves.

What it Does:
  1. Adds Pages
  2. Modifies Pages
  3. Deletes Pages
  4. Retrieves Pages

Frameworks or Modules built by Third Parties:
These modules are used in this project.
  1. Kohana - PHP Framework using the MVC pattern
    http://kohanaphp.com/

  2. Moxiecode's TinyMCE - JavaScript Rich Text Editor

  3. Moxiecode's Image Manager - Image manager to upload images and place them in the rich text editor, allowing the administrator to place the image how they like.

  4. jQuery (JavaScript library)
Files required for the project:
Note: Some files are part of the modules being implemented as 3rd party tools, so those won't be explained in depth, such as all the utility JavaScript files associated with the rich text editor (tinyMCE).

  • Kohana PHP Framework
    • app_name (usually app_website_name like app_lvgloves)
      • controllers
        • admin.php (might be better to be pages.php later)
          This file has functions for managing the pages. The functions this file contains isn't for displaying the pages as would be viewed on the public portion of the website.

        • public.php - (might be sitename.php) This is normally the primary controller for the public view of the website.

      • models
        • pages.php
        • pages_sections.php
        • pages_links.php

      • public
        • css
          • admin
            • common_admin.css
        • js
    • models
  • TinyMCE
Summary of Files used (relative to the root):
LVGloves.com will be used for the example website that this project would be built for. The files are relative to the root directory. The listed files below covers both the admin and the way the pages are assessed from the public end as well.

app_lvgloves/controllers/admin.php
app_lvgloves/controllers/medical_store.php
app_lvgloves/models/pages.php
app_lvgloves/models/pages_links.php
app_lvgloves/models/pages_sections.php
app_lvgloves/public/css/editor.css
app_lvgloves/public/css/admin/common_admin.css
app_lvgloves/public/css/admin/pages/edit.css
app_lvgloves/public/css/admin/pages/manage.css (not finished)
app_lvgloves/public/css/medical_store/common_medical_store.css
app_lvgloves/public/js/admin/pages/edit.js
app_lvgloves/views/admin/view_pages_edit.php
app_lvgloves/views/admin/view_pages_manage.php
app_lvgloves/views/medical_store/template_medical_store.php
app_shared/public/js/jquery/form/form.populate.min.js (should be moved to the utils dir and renamed with its version)
app_shared/public/js/jquery/utils/seo/keywords.js (should be keywords.1.0.js)
app_shared/public/js/jquery/jquery-1.3.2.min.js
app_shared/public/js/tinymce/jscripts/tiny_mce/plugins/imagemanager/login_session_auth.php
app_shared/public/js/tinymce/jscripts/tiny_mce/plugins/imagemanager/config.php

Tables Used:
pages
pages_links
pages_sections





Files used in the creation or update of a page:
This is where pages are added or edited. This is essentially where the administrator sees a rich text editor to edit or create content for a page.

Files used in the management of pages:
This is where an administrator can search for pages that were created in order to edit or delete them.




Related Projects:
  1. Project Manager (concept phase)
  2. Note Manager (concept phase)
  3. Custom Blog with SEO in mind during it's inception. (concept phase)



What the CMS does

Thursday, April 30, 2009

Website Manageable Sections

Sections of a website that can be managed
  1. Pages
  2. Contacts
  3. Products
  4. Media
  5. Notifications
  6. Users / Administrators

Tables expected for the manageable sections:

Pages
  1. pages
  2. pages_sections
  3. pages_links

Contacts
  1. people
  2. contacts
  3. contacts_types

Wednesday, April 29, 2009

Client Project backup method

Project Naming Conventions

This method is used when we back up their project on our FTP
  • Projects
    • Client
      • projectname
        • assets
        • workingFiles
          • fileName
        • clientPreviews (lower quality for quick viewing)
        • archives
          • fileName_10242009A
          • fileName_10242009B
        • deliverables
          • directoryOrFileName


This method is used when we create web projects under one of our domains


http://www.domain.com/projects/projectname/