Visits

[+/-]
Today:
Yesterday:
Day before yesterday:
28
389
372

+17
This week:
Last week:
Week before last week:
1514
2427
2483

-56

Last month:
Month before last month:
10692
9885
8946

+939

Visitor Data

IP ADDRESS
38.107.191.85
-
Location
United States
-
Browser
Unknown Browser
-
Operating System
Unknown Operating System

Most Downloaded


No Documents
Add to: JBookmarks Add to: Bookmarks.cc Add to: Digg Add to: Reddit Add to: Upchuckr Add to: StumbleUpon Add to: Slashdot Add to: Blogmarks Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Smarking Add to: Spurl Add to: Google Information

08

Sep

Joomla Register button not working.

Note: I will put CORRECT CODE by the snippit that you should use. There are 2 versions here. One with field limits another without. I will assume you want limits and thus the CORRECT CODE will be the one with limits

Alright. If you have found this article you have found the only place on the damn web that actually solved or put enough into the problem to get a solution.

I'm not shure how it gets created in the first place because like many other people I'm shure mine worked fine and one day just stopped working.. If you open your Error console and load the registration you will see that submitbutton_reg() is not defined error. yep! well maybe thats because its defined but is missing terminated characters or quotes.. Which is the case.

This tutorial is not how to redirect a user to a registration complete page. This is for people who have the infamous problem of clicking on Send Registration and nothing happens.

To fix this problem what you need to do:

Enter in the directory on your server components/com_registration

Open the file registration.html.php

Once open you need to first see if you even have the submitbutton_reg() function. Open find in your editor or browser whichever has the file open and type in submitbutton_reg() if nothing pops up then you need to add the function.

The function without limiting the username length pass length and all that other crap:


   function registerForm($option, $useractivation) {
// used for spoof hardening
$validate = josSpoofValue();
?>

I'll post this one to just incase people dont wan't to limit their registration fields... However if you want to use this code below and everything will work fine!

The code starts at:

      ?>

The reason that I posted the extra stuff is for you to find where you need to post everything within the .php file.

Find the above and insert the snippit of code if you do not already have it. Now if you save and load your registration and fill it out of course it will work!!


Here is the invalid version that gives the error....

    function registerForm($option, $useractivation) {
// used for spoof hardening
$validate = josSpoofValue();
?>

The problem lies between those else if's like I said. You can disect these and fix them however as an easy fix I recommend just entering in the alerts manually instead of using the php calls. Here is how I did it.

CORRECT CODE

    function registerForm($option, $useractivation) {
// used for spoof hardening
$validate = josSpoofValue();
?>

Save the file and I bet you got a working Send Registration button again! BTW, to anyone who knows anything yes.. It was a pretty simple fix. I had to use Error reporting and figure out what the crap was wrong though and hopefully this article will save the more educated people the time of doing that. Most of all the people who have no idea of whats going on, well atleast now they will actually be able to get it working!

This e-mail address is being protected from spambots. You need JavaScript enabled to view it - Send your comments this way!