08 Sep |
|
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) {
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) {
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) { 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!
|















Legitcode.com : All Rights Reserved