Story / Tip: Why a professional looking website can be important

9 02 2010

Yesterday, I was approached by an “international” company that wanted to advertise on one of my blogs.  This strike me as odd, because that particular blog is very uninteresting.   Apparently, it took them a full day to find out that my two sites they were interested in weren’t “what they were looking for”.  How they didn’t see that the first time, before they approached me, was beyond me. 

I guess that part of the explanation is that they suck at what they do.  I checked their website, and  for a company that offers “Internet Services”, such as web design, their website is a joke.  They’re using a “free template” for a CMS.  Now, don’t get me wrong.  There’s nothing wrong with using “free templates.”. 

However, when you “sell” web design services, you shouldn’t have “free template by <insert name here>” on your website.  Twice.  In plain sight..  Not that this changed a thing; their template was so crappy that I frowned anyway. 

Is this me, ranting because they didn’t chose to advertise on my site?  Nah.  I don’t really care about advertising.   I try to avoid it as much as I can (Although I do have some Google Ads on two websites, and links to a sponsor on most of my blogs that aren’t on WordPress.com.

To make this post “Joomla And More” Related, here’s a piece of advice for everyone.  If you’re planning on building a company site, keep in mind that your site is like a business card.   People’s opinion of your company can be strongly influenced by your web site.  If your website has an unprofessional look: they might think that your company is unprofessional by association. 

If you ever need some (free) advice regarding your company website, feel free to contact me, so you can avoid making an ass of yourself online. 





How to: Add fields to the Joomla registration form

5 02 2010

For the most part of this week, I was working on the i-Sana website.  If you’re interested, it’s a Dutch website that offers a free digital magazine (or e-magazine) on Health.  Anyway, this was an important project for me and  I wanted to do everything just right.  So, when the bosses requested that we collected the ZIP codes of users, I tried to find a solution. 

Since we’re going to be using AcyMailing to send our newsletters, we wanted to use the “core” Joomla registration form, which meant that we had to add a zip code field to it.  We pulled it off, of course.  I’m not being snobbish, but you know by now that I only discuss “problems” when I managed to solve them, right?

Anyway, below you can find the solution to add custom fields to the registration form yourself. 

The steps

1. Edit your Joomla database: The first step is to edit your Joomla database; because you’ll need to store the input for your new field somewhere.  So,  open your  database using phpmyadmin (or another solution; I prefer phpmyadmin myself as it’s a tool that many ISP).  Then, make a back-up of the table (something)_users 

Add a field to the table (something)_users.  The field has to be a text field.  Choose a field name that’s related to the extra field you want to create in your form; as you’ll be using this name in the next steps.  

2. Editing the registration form: To add the new field to the registration form, you’ll need to edit the following file: 

/components/com_user/views/register/tmpl/default.php

In the part of the code where the form is defined, add the following code:  
<tr>

<td height="40">

<label id="zip" for="postcode">

<?php echo JText::_( ‘postcode’);?>:

</label>

</td>

<td>

<input class="inputbox required" type="text" id="postcode" name="postcode" size="40">

</td>

In this example, a new text field is added for “Postcode”.  You’ll want to changet the references to post code to the field name you used in the previous step. 

3. Changing the registration logic: To ensure that the input is written to the Joomla database, you need to edit the following file:

libraries/joomla/database/table/user.php

Under “class JTabeUser extends Jtable”  you’ll see the declaration of variables.  Add the following code:

"var $postcode = null;"

SUPER IMPORTANT WARNING:  the code above must be typed EXACTLY as shown.  I accidentaly forgot the space after the =, and I broke the ENTIRE registration process; wondering where I made a mistake.  

Of course, you’ll want to change “postcode” to the value you gave your field in step one.

4. Editing the user profile in the back-end: The extra data are now being stored in the database, but you’ll also want them to show up in the Joomla back-end.  To achieve this, edit the following file:  

/administrator/components/com_users/views/user/tmpl/form.php

Under <form action="index.php" method="post" name="adminForm" autocomplete="off">, add the following code :

<tr> <td class="key">

<label for="postcode"> <?php echo JText::_( ‘Postcode’); ?></label>

</td>

<td> <input class="textbox" type="text" name="postcode" id="postcode" size="40" value="<?php echo $this->user->get(‘postcode’);?>"/>

</td>

</tr>

Once again, you’ll want to change “postcode”.

And bam!  You’ve added your field to the registration procedure of Joomla.   





Update

4 02 2010

It’s time for a new update, since the last one was ages ago.  What’s there to report?  Well, there’s some good news and even better news.  The domain name has been secured for another 5 years, and our hosting will remain free for quite a while.  This gives us the chance to focus on other, more important topics:  Updating the website content.

After starting Toralko.info; another site of mine, started to pick up a lot of traffic.  So, logic dictated that I invested my time in the website that had the most success.  That other website, which you can find at www.joomla-and-more.com is actually my old blog which has been adapted to suit my audience’s taste.

Unfortunately, that sites’ succes lead to me neglecting other sites, like Toralko.  To fix this problem; I’m going to "mirror" my posts on Joomla-and-more on this site once again, like I used to do back in the days. This should make the site interesting once again; and hopefully it’ll create some audience for Toralko.info.





Coming soon: How to Add fields to the registration form

4 02 2010

The past few days, I’ve been trying to write a “How to” that explains how you can add custom fields to the Joomla registration Form.  I ran into that problem this week, when someone asked me to make a mandatory “zip code” field for all users, for a project I’ve been working on. 

Unfortunately, I’ve been too busy to get to writing the article.  I’m going to do my very best to write the article tomorrow; or at least to e-mail the document I need for the article to myself.  So, now you know what you’ve got to look forward to for tomorrow.  I’m sorry if this post isn’t exactly what you were looking for.





Thunderbird 3: First Impression

2 02 2010

Inspired by my own post – and because I finally decided to install a mail client on my new PC – I decided to give Thunderbird 3 a go.  I’m not going into details here – reviewing something like a mail client isn’t my thing – but I thought that I’d share my first impression. 

  • As always; the download is small (<10 mb).  The installation was fast and painless.
  • Configuring a new account is relatively easy.  For well-known providers; like Gmail, all you have to do is provide your password and e-mail address.  Although an option to choose between POP3 and IMAP would have been nice…
  • Tabs!  You can now open stuff, like e-mails, in tabs.  I’m a fan of tabs, so I’m already loving it. 
  • A new “Preview” window shows your e-mail content; even for multiple news.  Which made it easy for me to confirm that those 1044 messages in my “Trash” folder were indeed spam.
  • Smart folders:  Smart Folders sort your e-mails differently.  For example, there’s an “Inbox” which collects all e-mails.  But you can still open inboxes for individual accounts.  The same applies for other folders, like “Trash”, Spam; etc. etc.  I’ll need some time to get used to the idea, but I can see some potential here. 

All in all, it looks like Thunderbird 3 is a solid choice for a mail client.  But don’t take my word for it, try it yourself.