Categories
Tech

Test Article for 1.5

This is a test of the 1.5 url rerouting with sh404sef. This is the first test with the new Joomla 1.5 content editor from the front-end of the website.

I’ve had to fix quite a few things and migrate to some new components, but it really hasn’t been that bad.

The biggest issue was that mxComment has issues with sh404sef (and Joomla 1.5 URLs in general). I decided to download JomComment to see if it had any issues with 1.5 and it works like a charm. I should also note that JomComment recently added support for the import of comments from MxComment, which made the transition a breeze.

Categories
Tech

Joomla Migration Plan

I’ve finally decided to start working on a Joomla 1.5 migration plan. The main thing that has been holding me back is my search engine optimized URLs from Joomla 1.0.15 which are being generated using OpenSEF. Being that OpenSEF is no longer supported, there is not a Joomla 1.5 compatible version of the plugin.

At one point, I tried to migrate from OpenSEF to sh404sef, but quickly realized that they use the same folder structure and I couldn’t do a swing shift. When you try to install sh404sef, it will try to install it in the same folder that OpenSEF is installed in.

Swing Shift: OpenSEF active > Install sh404sef (inactive) > Deactivate OpenSEF and activate sh404sef > Uninstall OpenSEF 

That being said, I’ve realized that sh404sef is Joomla 1.5 compatible, so my plan is to set up a cloned version of my current site and migrate the URLs on the clone site to use sh404sef using a simple shift then try the migration to Joomla 1.5 on the clone site. Assuming things go well, I’ll then perform this on my production site.

Simple Shift: OpenSEF active > Uninstall OpenSEF > Install sh404sef  
Categories
Tech

Set Joomla Publishing Defaults

I got tired of having to click through the tabs in Joomla 1.0.x to change my publishing state from unpublished to published and check the show on frontpage item everytime I posted a new article. That being said, I did a little research and figured out how to change the default settings. It requires you to modify the core joomla code, so if you patch your site to a new joomla version and they replace the file you will have to reapply this patch.  All you have to do is open the /components/com_content/content.php file and look for the $row->state variable in the editItem() function. By default it is set to 0 and you will want to change it to 1.

The $row->state variable will change the default publishing status. 0 being unpublished and 1 being published.

The $row->frontpage variable will change the default status for whether or not an item will show up on the frontpage. 0 means it will not show up on the frontpage and 1 means it will show up on the frontpage.

In my content.php file, the $row->state variable was on line 1,843 – but this may vary for you depending on the version of Joomla you are running.

Categories
Tech

VPS to Shared

If you are seeing this message, then you are now seeing my website served up through my new webhost, HostMonster.  I decided to switch from a VPS back to simple shared hosting.  I realized that it didn’t really make sense for me to have my own server as I wasn’t really taking advantage of it. It was nice to have my site load a few milliseconds faster, but it really wasn’t worth the money I was spending.

For those of you who don’t know, I originally was using the Business Shared Hosting from 1and1, but the servers kept getting slower and slower. Shared hosting companies are known for overloading shared boxes with more users than is necessary and I assume that’s what happened.  I really liked 1and1 and was sad to see that they couldn’t come up with a good solution for me. Oddly enough, almost a year later I still am paying for their service as I haven’t gotten around to tranferring my brother’s and other peoples sites off of the old 1and1 servers.  On the other hand, I did move my main website off of the 1and1 servers and onto a Virtual Private Server (VPS) running on VPSLink.com hardware.

It was a learning experience with VPSLink and now that it’s all said and done, I learned a lot and enjoyed the experience – even though Laura might say otherwise. 😉 I have decided that it doesn’t make sense to pay $37 for hosting ($10 for 1and1’s hosting and $27 for VPSLink) so I am finally in the process of moving all the hosts over to the new server.  I packaged up all the databases and files last night and shipped them over the wire – around 1.1 GB (gigabytes) worth of data in just over 2 minutes. The speed of the transfer was all due to one of the core requirements I have when looking at any type of hosting: Shell Access. I’ll explain the details later, but it provides a lot of flexibility.

Anyway – the big thing is my main website (boshdirect) and all the subsites are moved over to HostMonster.  I’ll let you know how things go!

(Next up is updating my site to Joomla 1.5)

Categories
Tech

Upgrade from Joomla 1.5RC4 to Stable

Upgrading from Joomla 1.5RC4 to Stable (Production) was a breeze. There was no need to make changes to database structure or anything. Simply download the full stable release, upload to my server, and overwrite the files. Here’s how I did it from the shell.

Navigate to the proper directory:
$ cd /mysite/

Download (wget) the new compressed file:
$ wget http://joomlacode.org/gf/download/frsrelease/5078/21064/Joomla-1.5.0.tar.gz

Uncompress over old files:
$ tar -zxvf Joomla-1.5.0.tar.gz

Remove the installation directory:
$ rm -fR installation

I then visited the site to check to make sure everything was working. Sure enough, it all worked great! I would highly recommed creating a backup of your site files and database. Here are some links from my site on how to do this from the shell:

Create a MySQL Backup from Shell
Create file/website backup from Shell

Categories
Josh Lyon

Blogg-X No Keywords

I just realized that the new Blogg-X component I’m using doesn’t have a keywords area in it. If I could find a good way to automatically have these fields generated this component would really work great for me. The SEO tool I’m using has an option to mass generate keywords for articles, but it doesnt really do a good job. I could also just go in and manually mass add the keywords using the SEO tool, but I’m sure I would forget and would much rather do it while I’m posting the article.

I’m still on the search for the best blogging solution for me and hopefully I can find it. I should note that I tried making a post on Joomla 1.5 (which I forgot I installed on my server months ago) and the blogging features are MUCH better. There is no more intro text / full text. Instead you can insert a READ MORE horizontal rule if you want to split the post. Also, Joomla is not using the tabbed setup at the bottom of the page anymore. These settings are layed out one below another which makes it much easier to use.

Perhaps I’ll just upgrade my current install to J1.5?

Categories
Josh Lyon

Up To Date Blogging

I’ve been really bad about keeping my blog up to date lately. I’m not sure exactly what it is that keeps me from updating my site, but I feel like I don’t do it as much as I should. Even if I just kept my blog posts short, it would be better short than nothing.

Categories
Tech

Joomla SEO on 1and1

I had some issues using the first set of instructions I found for setting up Search Engine Optimization (SEO) on my 1and1 account.  I had renamed the htaccess.txt to .htaccess and made some small changes, but I was still having issues.  The information below got me up and going.

Setting up .htaccess file
Rename the htaccess.txt file bundled with the installation to .htaccess.

You will need to make a few changes to the .htaccess file so it is configured correctly.  The change descriptions are noted in bold below. Also, note that RewriteBase is relative to the URL of the site, not the absolute path. If you have Joomla! setup in the root directory, this shouldn't be an issue for you.

## Can be commented out if causes errors, see notes above.
Options FollowSymLinks
RewriteEngine On
# Uncomment following line if your webserver’s URL
# is not directly related to physical file paths.
# Update Your Joomla/MamboDirectory (just / for root)
# Uncomment this line
RewriteBase /

#comment all of the lines of the below section
########## Begin Standard SEF Section
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
##RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional – see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
########## End Standard SEF Section

# Uncomment all lines
########## Begin 3rd Party or Core SEF Section
RewriteCond %{REQUEST_URI} ^(/vietnam/component/option,com) [NC,OR] ##optional – see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
########## End 3rd Party or Core SEF Section

Categories
Tech

Gallery2 Joomla Bridge – Search

In case you haven't read my other posts about search engine optimization, I've been on an SEO kick lately.  I've renamed all my images in the photo gallery so they all have some context now.  Google indexes galleries, but the next step was to be able to search the images from within my own site.  I installed the gallery2 search mambot plugin for joomla, but it wasn't doing anything.  Here's what I did to get it working.

  1. Install the mambot
    -Administrator Backend: Installers > Mambots
  2. Enable the mambot
    -This is the part I was somehow forgetting, but it's critical
    1. Admin Backend: Mambots > Site Mambots
    2. Click the X icon next to the Gallery2 Search mambot to publish it
  3. Change some code that comes default with the Jan 6 release:
    -Go to the searchbot PHP file
    mambots/search/gallery2.searchbot.php

    Look for the code around line 63 like this:
       $info->created = utility::g2DateToMambo($time);

    Change it to this:
      $info->created = utility::formatdate($time);