News:

Wondering if this will always be free?  See why free is better.

Main Menu

Ajax Registration Feedback

Started by Hambil, March 19, 2007, 06:55:27 PM

Previous topic - Next topic

GodOfWonders

Hambil I don't know if this is possible, haven't worked much in coding javascript.  But if you could set an option in admin, for people who use the joomla bridge, allowing the user to change the ItemId that might make for a good realse of this mod to work in the integrated SMF.  I think that if the menu is changed or moved the ItemId is changed, this would cause problems for people that don't know how to code.  So adding a simple ItemId value to admin would be a good idea IMHO.  Like I said, don't know if it's possible.

Alpay

#61
Tr install
Theme > lightning-01
>



Full image : http://img353.imageshack.us/img353/9982/62856166fv0.jpg

+

document.forms.creator.RegSumbit',null

Elmacik

Congrats, its very nice and usefull ;)
Home of Elmacik

Jaden-Korr

Nice hack.

If possible, you may want to make the install more intelligent. It writes to the default theme folder. Could it check to determine the path of the installed theme, then write files to that path? Just a thought.

I installed it. But only got it working after copying things over to the theme I am using (not default). I edited the feedback messages; you had some minor typos.

Again, thanks for the mod. This is good functionality.

Elmacik

#64
@Jadenn-Korr, SMF 2.0 will have this feature AFAIK.
Because I had requested this as a feature before, DEVs replied to say its already been developing :)

Edit: Ah yes! I knew ;)

Quote from: Grudge on April 08, 2007, 10:47:45 AM
...features for this upcoming version the ones currently implemented include:

  • ....
  • Automatic installation of packages into themes other than just the default.
  • ...
Home of Elmacik

Shadow Queen

Dont work for me at all.  Install went fine all that.

I testing the mod out and I didn't see nothing.  I type in my username Shadow and the same email address and still the mod didnt saw me nothing.

Hambil

Copy the AjaxRegFed.js and AjaxRegFed.template.php files to the directory of your default theme.

www.catnine.net/smf

Shadow Queen


sanfordw

#68
This is indeed a very useful mod, all the feedbacks work except for the 'Username' feedback, which when using firefox gave me an error stating:

Error: document.getElementById(field.firstChild.nodeValue) has no properties
Source: ../AjaxRegFed.js
Line:42

Shadow Queen

That good this mod is working for you great

sanfordw

#70
I fixed my own problem, i missed copying one line of the code to the Register.template.php while manually applying the mod.

I couldn't get it to work at first, but eventually got it to work. These are the steps I took:

1. Install the Patch via the admin control panel
2. Checked to see 'AjaxRegFed.js' and 'AjaxRegFed.template.php' are in the current themes folder with proper read write attribute (i have them as 644)
3. Checked 'AjaxRegFed.php' is in the sources directory with proper read write attribute(i have it as 644)

4. In 'AjaxRegFed.php', replaced
http.open('GET', 'index.php?action=ajaxreg_checkusername&xml=true&username=' + document.creator.user.value);
with
http.open('GET', 'index.php?option=com_smf&Itemid=26&action=ajaxreg_checkusername&xml=true&username=' + document.creator.user.value);
as suggested by GodOfWonders in Reply #55

5. I also added a semicolon to the end of line 42 in AjaxRegFed.js
LINE 42: document.getElementById(field.firstChild.nodeValue).style.cssText = css.firstChild.nodeValue

*If manually applying the mod, make sure copied and pasted everything right.. <-- mistake I made

Hope this helps

marinelife


preddy25

joomla itemid dynamic and different on every joomla installation , but it is the typical id given to the joomla bridge that is installed into joomla as a component.

Cristan

I don't know if I should post it here, but for the lazy Dutch people: here is a translation.

Hambil

Quote from: Cristan on May 12, 2007, 03:01:16 PM
I don't know if I should post it here, but for the lazy Dutch people: here is a translation.
I added it to the mod page - thanks :)

www.catnine.net/smf

nitins60

Nice one! I would like to check username is available or not during registration!

ShadowStriker

All I see when I try to register are green and red boxes, but there are no text in them

Robi052

In error log I see this

http://www.mojportal.com.hr/forum/index.php?action=ajaxreg_checkpasswrd1&amp;xml=true&amp;passwrd1=USER_PASSWORD&amp;username=USERNAME
2: implode() [<a href='function.implode'>function.implode</a>]: Bad arguments.
Datoteka: /home/mojporta/public_html/forum/Sources/Subs-Auth.php
Linija: 639

vosje505

Great mod  ;D

but just missing one thing  :-X it doesn't check the reserved names/words.

do you know how i can solve that?


topiQ

#79
great mod. thanks a lot!!!
i have some question though:
1. how is the email-check supposed to work?! should it just check if the entered address has the right form such as [email protected] or should it check if the email is already used or something else???
2. somehow the password match check does not work for me...
3. i'm using a custom theme. where should the AjaxRegFed.template.php be? in the default theme or in the custom theme directory?!

Advertisement: