K2 Extension for Joomla

Yesterday I got an answer in the Joomla forums that recommended K2 as a solution for the personalized blog aspect ot my site. The demo video on the K2 site got me intrigued. It had all the kinds of things most blogs need such as socialbookmarking, tag clouds (although not as nifty looking as Joomulous), and commentary complete with CAPCHA. Overall, K2 acts like a mini-Joomla inside Joomla.

Speaking of that, it was nice that the categories I could set for my blogs could be seperate from the sections/category madness of the original in-the-box Joomla. Overall, it helped me decrypt some of the logic behind the Joomla interface that drives me crazy. Yes, Drupal spoiled me with how changes for something are always in one single place.

I am still left with a few questions and things to troubleshoot:

  • Can I promote featured K2 items to the front page? Where does the category template "blog" comes from? How do I add more? (see screenshot below)
  • Glitch: Social bookmarking symbols dont show up even if I have enabled them
  • Glitch: Clicking on a K2 item's individual page leaves me with an entry devoid of a stylesheet. This happens no matter which of the Joomla starter templates that I use. (see screenshot below)



Still want to give this extension a chance. It might be the closest to blogging Im going to get.

Choosing A CMS For My Professional Site: Decisions...decisions....

While Im not short on projects to speak of, I want to still get myself into working on something related to the website that this blog is named after. Rosettes and CSS shouldnt be stuck on Blogspot forever. Since my hosting (when I have the $$ for it) is going to have database capabilities, I want to use a CMS.

....but which one??

Wordpress seems to be the easy choice these days. For sites that are just about blogging and posting a few pages here and there, why wouldnt you use such an easy CMS? However, I am always having desire to step outside the box and go with something else.

Joomla is another CMS installed on my computer after seeing a few friends who used it for thier company website. Since Rosettes and CSS is the company/professional website (between another domain that I own), that seems perfect. On the other hand, some might say that Joomla is overkill for something as simple as a portfolio website.

Showing a big change in skillset by using Joomla or keeping a portfolio site simple with Wordpres (a simple CMS)....

Of course, I have both installed on my localhost so I suppose I could do both and find out from there. Feedback is encouraged.

Juggling/Getting Zen With It

More juggling happened in this past week but its finally over. A little Wordpress content management on one site, Joomla install on my localhost, and even a new Wordpress site which will get some content and theme work done on it within the next month.

Also been doing some 3D work for a mask design that my partner has been commissioned for. Its a bit on the fetishy side, but what do you expect with animal gasmasks? I been a bit more quiet about that here on this blog only because Rosettes and CSS is meant to be very professional overall. I debate how a web designer showcases adult or fetish website/graphic work when building an online portfolio.

...but I digress

After an important Drupal security upgrade (6.12 > 6.13) and a few module upgrades, I ran myself through this tutorial (for 6.x only) about creating a sub-theme for Zen. The result of an untouchedzen theme?....This:

Project - Drupal In Oberlin: More Than One Way To Skin A Cat

Note that as a cat owner, I really hate this expression. I need to find some cool geeky phrase to replace this. However, it is the truth of the matter when it comes to Drupal. Often times, when I find myself looking up info on how I might achieve a type of function or get one thing to interact with another, a few different projects pop up from the module project area of Drupal.org.

The same can be said for when you are just tweaking around with various things that don't necessarily have to do with choosing and installing a module. Last week is when I found myself experimenting with a migration of a site on a new install.

Migration Install Method 1

I would be importing the database from the file that Tom sent me. I had changed the first few lines of the SQL file so that it would create a db with a different name. In my case, it would be 'inoberlin', his of 'tom_inoberlin' seemed too lengthy. Of course I created a database specific user for this.

Tom also let me have his site files (images that appear on the events calendar, logo, INC files, PHP, etc..), so I copied almost all of them over to the new folder that I had set up on localhost for this install. Part of me was skeptical that by copying these files, that Drupal install might be more apt to errors and be quite a "dirty" installation. Still, sometimes you gotta try.

With the Drupal install chowned and chmodded appropriately, I ran an install. After entering in the database name, password, and username, I pressed on. That is when Drupal gave me an error:

I chose to merely run the update script and see what happened. Of course, this means I got the access denied error since my settings.php file always has $update_free_access set to FALSE (secure). Changing it to TRUE I ran the update script again.

Suddenly I found myself at the front page sans all styling information and header/logo images. The front page read "Page not found". It was quite scary and I feared the worst. My suspicions that this install method was too dirty seemed to be confirmed.

Migration Install Method 2

At Tom's suggestion via email, I tried to do this with a cleaner method this time. There was a bit of trickery thrown in since I created a fake database with a chintzy username/password, granting that dB user with just privileges specific to that database.

Using that empty database, I did a clean Drupal install, which was successful. Back in the SQL, I would end up dropping the fake database (and user). Then I imported Tom's database again, creating a database-specific user as seen before in Method 1.

Inside settings.php I would make more changes, both to the database settings and to the $update_free_access section, changing that to TRUE again. I ran the update script, changing $update_free_access back to the secure setting of FALSE when done.

The same problem came up with the missing styles, theming, and prescense of header logo image. I figured there had to be something wrong with it beyond just a "dirty install" so I did a bit of research, finding this jewel of info. I did as instructed, running this command in PHPmyadmin: UPDATE system SET status=1 WHERE name = 'garland'; then UPDATE variable SET value='s:7:"garland"' WHERE name = 'theme_default'; TRUNCATE cache; It worked so I breathed a sigh of relief.

Another thing that was tugging at my suspicions is that the cause of the "page not found" on my front page was that Tom set his front page to something different than the default "node". Since I had not installed any of the modules yet (I wasnt that ballsy), it was likely that if this was the case, it would be set to a page that was specific to one of these not-yet-installed modules. Sure enough, it was set to "upcoming_events" which I knew was tied to a calendar module that I had on my "modules to install" screencap provided.



The night was filled with an install of 15+ modules and a couple themes. It got daunting since I had a few module projects that had recently been updated. I was up for the challenge. At some point, I would periodically check the site after a bit and see how the site was coming back together, now being able to actually call up the database tables created for that module. I even installed the theme that InOberlin uses called Acquia Marina. The site was pretty much ready to go. I cant wait to finally theme some stuff. Not sure which theme set I should base mine on but people are all aflutter about Zen and Studio.

Project - Drupal In Oberlin: Unexpected

Some weeks after my last post, I got in contact with an old friend from back in my San Francisco residency days.  Now out of the real estate business, Tom would find himself back into his home state of Ohio.  In only a brief time, Tom had already begun a community-based project in Drupal.  Using his skills, he has set up a site where Oberlin residents now can find out about ANYTHING going on in town.  Other people can now post events.

While the site is looking really good and very organized, Tom still finds his "design-fu" weak and asked me if I might come up with something.  Without a deadline to this project, it was perfect timing given my current workload at the time and an upcoming convention. Who knew that a Drupal project would find me some weeks after my last post? 

With a completed WordPress site behind me, I decided to bide my time before taking on more projects or starting new ones.  Honestly, with an upcoming weekend away from home (and a performance on that weekend's Saturday night), I didnt want to get involved in any one thing since I needed to get my arse in gear.   I was still idle when I got back, slowly getting back into my pace of household chores and other mundane tasks.  However, outside of a 3D graphics project, I found myself really wanting to get a move on with this project.  My only hope was that I could still learn more about the functionality aspect to Drupal despite that I was doing more of a design makeover rather than anything else.

Tom gave me the database, the site's files and a bit of instruction on how I might do a live site > localhost migration.  First thing I did was get to know the localhost file locations for a couple of server configuration files to help me get a 4MB+ database imported.  In the case of my Ubuntu-based LAMP setup, the php.ini file was relatively easy to find (/etc/php5/apache2).  The "upload_max_filesize" and "post_max_size" were changed to 12M since my file was a little over 10MB.  In addition, I wanted my database to be a different name so I changed the first few lines of the .sql file to create a dB called "inoberlin".  Import went smoothly...at least for now.

No Drupal For the Code Cat, Back to WordPress

After things fell apart with the Drupal project that I was into, I had a week of distraction followed by starting back up on a Wordpress Template project.

While I know many Wordpress Template creators that base their template off of someone's pre-existing one, I wanted to start from scratch since I only need a very simple template anyway. Besides, I never know how to gauge how original your template is from complex one you based yours off of. After a while all Wordpress templates probably can start looking alike from one artist to another's.

Almost everything of mine is done. Now all that remains is cleaning up the CSS before getting it transfered to a live website. CSS cleanup can be like cleaning your room. You have to clean out the code you dont need as well as get some of the like objects to be placed together. I have found some useful links that discuss this very thing:

5 Steps to a More Organized Style Sheet
11 Useful Tools to Check, Clean and Optimize your CSS file
10 Best CSS Practices to Improve Your Code

Dropping Stones into the Path

Been on vacation for close to a week and a half.  Motivation to do much work has been hard with the concept of play is in a new context than what I am accustomed to in SoCal as of late.  No worries.  I did take my work with me and I got a few other unrelated projects out of the way.

So, as you know, the live site is up and so Im trying to go through processes all over again, learning them a second time and further drilling important keynotes into my repretoire.  Also am keeping the few modules updated on the live site (about 9 less modules than on my localhost version).  Admittedly part of my procrastination has been just the diverse learning experience that Drupal can afford since, well, Drupal can make all sorts of website types out there.

Im also going to use this "second time round" to get a good idea of how my workflow adapts to the Drupal environment.  There are common methods and sequences no matter if Im doing an html/css site or doing something such as wordpress.  Still, depending on your framework, it may differ.  This might be the first time that I fully write down my methods to madness.  Maybe this is a good way of taking my own advice since I tell people to write things down all the time.  Does writing something out make it more significant than being part of the trains that chug about in your head?  Hmmm.....

Step one was to make a site map on paper.  I did about 2 revisions, the first one just taking what sections/pages that this site had in its old incarnation and recreating them.  Then the elimination came, producing Version 2 which condenses defunct pages and elaborates on the section linking hierarchy will be.

Assessing your site's needs will determine modules you might need now or in the long run. Its important to work through things step by step.  You can always add, change and remove modules as needed so dont get too caught up by this.  Drupal's many options are what enhance your learning experience but can also deter you by overwhelming the part of your mind which innovates.

Now comes section-specific brainstorm time!  Focus on the main aspects of the site, starting with the most important one.  In this case, my site's number one purpose is to display products in a catalog form.  With Drupal letting one create content types with any type of field (with any kind of display type), it is probably best to brainstorm all the fields you will need. 

While most would suggest some of the ecommerce modules (Ubercart is a very popular choice), simple taxonomy is the method i am using for splitting my products into categories.  I need to get an idea of that category hierarchy and then create a product vocabulary.  Categories and subcategories will go under that vocabulary as a term.

With the brainstorm sheet(s) in hand and taxonomy created, start adding those fields.  At this point, one might want to install any further field display related modules.  ImageField is one of the most popular ones for product driven content such as mine. For me, some fields are going to be hidden to annonymous/guest users and others might be hidden to particular roles that authenticated users could be assigned. So, for "step 5b", I'll create those roles and set up permissions accordingly, including specifying fields which only certain role types  should be able to see.  Another optional step will leave me defining field groups for the product content type since I want to use fieldgroup tabs.

Once content types are set up with fields and/or respective taxonomy applied, you are nearing the end of the functionality part of things (but dont quote me on this, kiddies.).  Now you can get closer to the theming aspect of things. This includes determining layout aspects such as your menu's hierarchy and placement, colors, and overall placement of body content as well as dynamic blocks of content.  Ill leave it up in the air as I figure that part out myself.