Possible galleries?

Want a simple photo gallery for mototrials and maybe silver-bullet, just a photo strip?

I don”t really want a full featured gallery

A hosted solution – has possibilities

logo-codrops

Local Javascript – possibly the best option? One solution has option to pull from Flickr. This site looks interesting – go back and have a browse around.

Foundations Vertical Tabs

Expectation is the mother of all frustration” – Antonio Banderas

Had an awesome amount of frustration getting the vertical tabs example to work. I probably

  • don’t yet understand how Foundation works
  • misread the documentation
  • am congenitally stupid

The only thing that stops me offing myself is that others seemed to be having similar problems.

I was missing two parts of the problem:

  1. The tabs themselves are supposed to be defined as <dd>, not <li>

<div class="large-12 columns">
<div class="tabs vertical" data-tab>
<dd class="active"><a href="#panel1a">Tab 1</a></dd>
<dd class=""><a href="#panel2a">Tab 2</a></dd>
<dd class=""><a href="#panel3a">Tab 3</a></dd>
<dd class=""><a href="#panel4a">Tab 4</a></dd>
</div>
<div class="tabs-content vertical">
<dt class="content active" id="panel1a">
<p>Panel 1 content goes here.</p>
</dt>
<dt class="content" id="panel2a">
<p>Panel 2 content goes here.</p>
</dt>
<dt class="content" id="panel3a">
<p>Panel 3 content goes here.</p>
</dt>
<dt class="content" id="panel4a">
<p>Panel 4 content goes here.</p>
</dt>
</div>
</div>
</div>
  1. I needed to explicitly include foundation.tab.js
<script src="media/scripts/vendor/jquery.js"></script>
<script src="media/scripts/foundation/foundation.js"></script>
<script src="media/scripts/foundation/foundation.tab.js"></script>
<script>
$(document).foundation();
</script>

Styles with Foundation

Style comes in all shapes and sizes. Therefore, the bigger you are, the more style you have.” – Miss Piggy

I’ve been struggling with styling websites and massive css files for ages. I’ve finally decided to get some help.

Foundation

Excellent starting video – Foundation 5 Introduction by Sam Piggott

Because I’ve put the files in different directories (media/css/foundation/*.*, media/scripts/foundation/*.*) I needed to change the paths in the index.html example file

PHPExcel & Kohana

Either write something worth reading or do something worth writing. – Benjamin Franklin

I am so glad that there are people out there who write all this wonderful code. I wanted to export a table as an excel file so did a quick search and found PHPExcel.

So many people have written great documentation about getting started with PHPExcel and I don’t want to duplicate those.

Read more ›

A long time coming

My fake plants died because I did not pretend to water them. – Mitch Hedberg

To make the whole thing (Webpoints 3.3.2) work…. months after starting…. and having forgotten the admin password…

Table roles needs a ‘login’ and an ‘admin’ role.

Then go to localhost/user/initialise and an admin user will be created, with admin as the password.

Next thing: admin menu…. copy admin.php from “modules/Admin/config" to “application/config"

Edit the navigation array and you’re away.

Auth (A1) and ACL (A2, ACL): Pt 5, Adding ACL

That which can be asserted without evidence, can be dismissed without evidence. ― Christopher Hitchens

Part 1: Introduction
Part 2: The Data Model
Part 3: The Controller
Part 4: It becomes a module
Part 5: Adding ACL

Auth (A1) and ACL (A2, ACL): Pt 4, It becomes a module

Strive for progress, not perfection

It has now become a module….
Part 1: Introduction
Part 2: The Data Model
Part 3: The Controller
Part 4: It becomes a module
Part 5: Adding ACL

Use NIMDA (Admin reversed) because so many websites have a predefined ‘Admin’ or ‘Administrator’, or whatever, path… used for site statistics, code management, etc. I bet none of these have a NIMDA though 🙂

Need pagination
https://github.com/shadowhand/pagination/tree/3.3/master

Auth (A1) and ACL (A2, ACL): Pt 3, the User Controller

Laws control the lesser man… Right conduct controls the greater one. – Mark Twain

Part 1: Introduction
Part 2: The Data Model
Part 3: The Controller
Part 4: It becomes a module
Part 5: Adding ACL

You now need a User Controller

Read more ›

Auth (A1) and ACL (A2, ACL): Pt 2, the Model

I’m no model lady. A model’s just an imitation of the real thing. – Mae West

Part 1: Introduction
Part 2: The Data Model
Part 3: The Controller
Part 4: It becomes a module
Part 5: Adding ACL

Need a Database

Read more ›

Auth (A1) and ACL (A2, ACL): Pt 1, Introduction

Whatever you do will be insignificant, but it is very important that you do it. – Mahatma Gandhi

Part 1: Introduction
Part 2: The Data Model
Part 3: The Controller
Part 4: It becomes a module
Part 5: Adding ACL

Using http://dev.kohanaframework.org/projects/acl/wiki

Other Resources:
Using Mixu’s tech blog: Kohana 3 Auth
Using Nano Documet: Kohana 3: AUTH, A2 & ACL

Read more ›

Top