Tuesday, 3rd May 2005

Chip

Work.

9:30 AM:
Caught up on my four favourite web comics Flintlocke, UserFriendly, PVP and Penny Arcade. Always good for a laugh. Redbull + Coffee in 2h, Awake at last... Sad really.

11:00 AM:
It's that time again, that"™s right! Stock take! Yaaaaaaaaaay!!!! ...not. Updated my store map just then. Ran around the store with my hi-lighter and checked all the sections that need re-labelling. Fun. Only about 30 ranges need labels. Glad I didn't remove the ranges from the last stock take!

2:30 PM:
I really haven"™t achieved that much today. Finding it difficult to get motivated, knowing there"™s over 3000 lines of stock that need counting in 20 days. I added some favourite links to the left hand side of the site as you may have noticed. Took me 30 mins to gather/make the damn 88x31 buttons. I gave up with Strongbad, ended up just putting a miniature image of him there, I reckon it looks good!

3:00 PM:

//---------------------------------------------------------------------------+</p>
<p>// | Library Includes: You shouldn't have to touch anything below here | // +---------------------------------------------------------------------------+


Dangerous times! Modifying the great "all-powerful" lib-common.php; The holder of many functions; the core of GeekLog! I feel elite now. My little modification was to include an extra parameter in the function "COM_optionList()". This function is a very elegant solution to creating a drop down menu from data contained in a database, just pass it your table, field names and it dumps the whole table in there and creates a drop down menu for you.

My little addition just allowed me to pass the SQL ordering suffix for the "ORDER BY" syntax, so now I can pass it "ASC" (there"™s no real point in this as its the default) or "DESC" for descending order.

Next I modified the "story.php" the part that controls the editing of stories on my website. I added the extra parameter where story.php draws the drop down menu that says wether or not to display the story on the front page. I change this almost every time while creating blog entries, hence the modification. More streamlining == teh win!

Following the successful modification of the drop down menu I set about making the size of the editing text boxes larger. They were only 50x15 characters! Way too small! Now they are a comfortable 80x25.

Next entry

Previous entry

Similar entries