RSS

Tag Archives: registration

Cancel your webhosting on time!

An American judge talking to a lawyer.
Image via Wikipedia

Dear website owner,

I’d like to take a moment to discuss a topic that’s of interest to you, as a website owner.   Your website requires some sort of hosting for it to be published, right? Right.  What kind of website you’re hosting (Joomla, WordPress, something you brewed yourself) is irrelevant; at least at this moment.  Nor do I care where you buy your hosting (although I’d prefer you buying it from the company I work for, but this is not an ad).

What I do care about, is that some of you don’t seem to read the ‘Agreement’ when buying web hosting.  You buy hosting for one, two or three years and think nothing of it.  Agreement, Agreeschment, am I right?  But many of you are caught off guard when you wanted to move to another hosting provider; assuming that “your old deal ended”, because you received a new invoice.

If you assume that it suffices not to pay that invoice, you’re wrong in 9 out of 10 cases.  If you had read the agreement, in 90% of the cases, you’d have read that your web hosting package will be automatically extended with x years at the end of your contract, unless you take some sort of action to cancel your contract in time.  Since you agreed to the agreement, and didn’t take the required action to cancel the contract; you’ve now got a problem:  you want to move; but you’ll still have to pay for your “old contract”, as well.

Things could get worse, if your hosting provider is smart / evil / benevolent enough to write in their agreement that you can’t transfer your domain name unless you’ve cancelled your hosting contract in time.  At that point, there’s not much anyone can do for you.  We can arrange a hosting package elsewhere; but your precious domain name will be unavailable to you; unless you go to a long, and painful procedure.

So, web owner, be carefull.  Are you aware of the agreement you agreed to, or did you just click “yes”? and click ok? When you want to move to another hosting provider, are you aware of the conditions of cancelling your package?  For your own sake, DO inform yourself; or moving to your new hosting company might be far more complicated than you thought; not to mention costly.

I hope this advice reaches you in time.

Yours sincerely,

A fellow website owner.

Enhanced by Zemanta
 
Leave a comment

Posted by on June 11, 2010 in Various Articles

 

Tags: , , , ,

Update on “How to Add fields to the Joomla registration form

I’ve updated my post on how to add fields to the Joomla Registration form.  I saw an incoming link to the blog post; coming from the Joomla Forums.  On that forum, someone asked “If anyone knew how to add fields to the user profile in the front end as well.

Since that user used my tutorial, I thought it’d be only fair to search for the solution myself.  I did find the solution, after some searching.

You can read the updated post here

 
3 Comments

Posted by on February 20, 2010 in Joomla

 

Tags: , , , , ,

How to: Add fields to the Joomla registration form

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.

KNOWN PROBLEMS:  There are two known problems when using the method below.  Those problems are due to the limitations of HTML forms.

1.  You can’t set a minimum required length
2.  Users can enter spaces in your new field, instead of ‘real information’.

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>

As usual, replace ‘postcode’ with your own variable!

5.  Editing the user profile in the front-end: (added: 17/02/2010)  If you want to see the extra data in the user profiles in the front end of the site, you’ll need to make changes to the following file:

/components/com_user/views/user/tmpl/form.php

Under <table cellpadding=”5″ cellspacing=”0″ border=”0″ width=”100%”>; you’ll see that the form is being defined again.  Add the following code:

<tr>
<td>
<label for=”postcode”>
<?php echo JText::_(‘Postcode’);?></label>
</td>
<td> <input class=”inputbox required” type=”text” id=”postcode” name=”postcode” size=”40″ value=”<?php echo $this->escape($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.

(last edited on 17/02/2010.  Added “Editiing the user profile in the front-end after comment on the Joomla Forum)

 
52 Comments

Posted by on February 5, 2010 in Joomla

 

Tags: , , , , ,

Coming soon: How to Add fields to the registration form

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.

 
Leave a comment

Posted by on February 4, 2010 in Various Articles

 

Tags: , , , , ,

 
Follow

Get every new post delivered to your Inbox.

Join 485 other followers