Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Hambil on March 19, 2007, 06:55:27 PM

Title: Ajax Registration Feedback
Post by: Hambil on March 19, 2007, 06:55:27 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=725)

Provides instant feedback during registration for valid username, email, and passwords. See attached screen shots.
Title: Re: Ajax Registration Feedback
Post by: RoarinRow on March 19, 2007, 07:39:54 PM
It installed ok, without any failures, but there was an error on the log in regards to the Subs-Package.php file and index.php.  Sorry I didn't copy the exact message.

When I tried to register, the ajax thingy didn't take or come up even though the mod was enabled via the Registration / Settings page.
Title: Re: Ajax Registration Feedback
Post by: Hambil on March 19, 2007, 07:49:16 PM
I need the exact message to help much...
Title: Re: Ajax Registration Feedback
Post by: RoarinRow on March 19, 2007, 09:32:01 PM
Quote from: Hambil on March 19, 2007, 07:49:16 PM
I need the exact message to help much...

here ya go:

512: parseModification(): The filename 'index.php' is not a full path!
File: /forum/Sources/Subs-Package.php
Line: 1339

i checked my index.php file and the mod lines are there:

                          'ajaxreg_checkemail' => array('AjaxRegFed.php', 'CheckEmail'),
      'ajaxreg_checkpasswrd1' => array('AjaxRegFed.php', 'CheckPasswrd1'),
      'ajaxreg_checkpasswrd2' => array('AjaxRegFed.php', 'CheckPasswrd2'),

it just doesn't show up like in your screenshots when i enter an existing user name or incorrect password 2x.
Title: Re: Ajax Registration Feedback
Post by: Hambil on March 19, 2007, 09:55:09 PM
Make sure the AjaxRegFed.js file made it to whatever themes directory you have set as the default...
Title: Re: Ajax Registration Feedback
Post by: RoarinRow on March 19, 2007, 11:51:43 PM
Quote from: Hambil on March 19, 2007, 09:55:09 PM
Make sure the AjaxRegFed.js file made it to whatever themes directory you have set as the default...

ah that was the missing piece    8)  works!
Title: Re: Ajax Registration Feedback
Post by: qtime on March 20, 2007, 08:29:07 AM
Not yet tested, but I think this should be a standard future!!!
Many thanks for your work!
Title: Re: Ajax Registration Feedback
Post by: Harro on March 20, 2007, 08:42:25 AM
Nice!
Definatly something that should be a default feature in the future!
Title: Re: Ajax Registration Feedback
Post by: miseryshining on March 20, 2007, 08:44:17 AM
What about giving feedback about the thing that causes many annoyances to people: Visual verification (captcha). Would make sense to add that to this module as well.  
Title: Re: Ajax Registration Feedback
Post by: Hambil on March 20, 2007, 08:47:00 AM
Quote from: miseryshining on March 20, 2007, 08:44:17 AM
What about giving feedback about the thing that causes many annoyances to people: Visual verification (captcha). Would make sense to add that to this module as well. 
Hmmm. How would that work? And how could it be done without creating a security hole? Captcha is designed to require human input - feedback could help a bot.
Title: Re: Ajax Registration Feedback
Post by: KGIII on March 20, 2007, 08:53:06 AM
This made mod #80 I believe and did the trick just nicely. ;)
Title: Re: Ajax Registration Feedback
Post by: miseryshining on March 20, 2007, 09:12:57 AM
Quote from: Hambil on March 20, 2007, 08:47:00 AM
Quote from: miseryshining on March 20, 2007, 08:44:17 AM
What about giving feedback about the thing that causes many annoyances to people: Visual verification (captcha). Would make sense to add that to this module as well. 
Hmmm. How would that work? And how could it be done without creating a security hole? Captcha is designed to require human input - feedback could help a bot.

Thats a good point, i don't know how secure it is to pass the code to javascript. 

It could help a bot, but bots will still have to guess the combination before they can register. That would be scriptable, but it would still take effort to find the code (because of the delay at the client side javascript, telling everytime if the code is correct). I think you could fix this problem by adding a counter to the js, which checks how many tries have been made, and to disable the verification after +- 20 times. For bots, this would make it quite impossible to find the code.  
Title: Re: Ajax Registration Feedback
Post by: LGLDSR on March 21, 2007, 06:20:36 PM
Please disregard the below - I got that Mod the heck out of there and rolled back. Egads.....

-------

I received the below error after testing with a test account. Occurs sporadically. SMF v1.1.2.

Also, sometimes I will get "Password Accepted", sometimes not.

Lastly, the IP when viewing "Who's Onine" is no longer showing. See attached


   <result>
<field>emailcheck</field>
<status>false</status>
<message>Invalid email</message>

   <css>
color: white; background-color: red; width: 197px; border: thin black outset; text-align: center;
</css>
</result>

Lyman
Admin
http://www.thetrainforum.com (http://www.thetrainforum.com)

ADDENDUM: This is happening virtually all the time now. I am going to have to bring my board offline. PLEASE ASSIST!
Title: Re: Ajax Registration Feedback
Post by: Hambil on March 21, 2007, 06:40:26 PM
First, I'd uninstall the mod rather than take down your forums - no need to panic.

I've look at the site and I've noticed this error:

Error: junk after document element
Source File: http://thetrainforum.com/index.php?action=ajaxreg_checkusername&xml=true&username=Hambilus
Line: 4, Column: 3
Source Code:
      <form action="http://thetrainforum.com/index.php?action=login2" method="post" accept-charset="ISO-8859-1" name="frmLogin" id="frmLogin" onsubmit="hashLoginPassword(this, '02800cbc04b96201fdcaa25fb4d61319');">----------------^

A common cause of this kind of thing is not using binary mode when uploading files to your ftp. I'd check that tranfers are set to binary, not ascii or auto, and reupload the files for a start.
Title: Re: Ajax Registration Feedback
Post by: LGLDSR on March 21, 2007, 07:43:01 PM
Default is set to Binary.

- Lyman
(In IT >24 years)
Title: Re: Ajax Registration Feedback
Post by: Hambil on March 21, 2007, 08:13:22 PM
Okay, well, then you can see you have a corrupted file. Either an edit went bad on the install, or there was some previous problem that is not coming to light. Without being able to examine the file there's not much more I can say at the moment. Is your forum working again?

The nature of HTML is that if some previous mod or problem caused HTML that is not well formed, it just might work fine until something else is added - for example some onchange attributes to the form tags.

I think that the problem is likely related to this error that I posted, and  I'd track it down and see where it leads. If you need you can PM me a temp admin account and I'll see what I can do. I'd probably need FTP access to examine the files in question.
Title: Re: Ajax Registration Feedback
Post by: Hambil on March 23, 2007, 05:06:39 AM
Quote from: LGLDSR on March 21, 2007, 06:20:36 PM
Please disregard the below - I got that Mod the heck out of there and rolled back. Egads.....
I guess the 400 other people who installed it so far just aren't complainers when it crashed their boards.  ::)
Title: Re: Ajax Registration Feedback
Post by: Coldfx on March 26, 2007, 06:13:12 PM
Quote from: Hambil on March 23, 2007, 05:06:39 AM
Quote from: LGLDSR on March 21, 2007, 06:20:36 PM
Please disregard the below - I got that Mod the heck out of there and rolled back. Egads.....
I guess the 400 other people who installed it so far just aren't complainers when it crashed their boards.  ::)

Just verifying it runs smoothly w/o any side-effects the other user mentioned :)

Oh, if it helps, I can post a list of my mods.  I have a little over 30, including a custom theme.
Title: Re: Ajax Registration Feedback
Post by: ckgb on March 26, 2007, 07:41:07 PM
Hi,

Installed with no errors. default theme.

For some weird reason it works ... sometimes. Sometimes it works sometimes it behaves like it's not vene there. Sometimes it would work for the "Tab" key, sometimes for mouse cursor.

It's a very nice feature but for me it's not working the way it should.
Title: Re: Ajax Registration Feedback
Post by: Hambil on March 26, 2007, 07:46:00 PM
Well, it's asynchronous. There can be a delay between tabbing off a field and seeing the result. That's the nature of AJAX. Also, I've noticed that when you have a browser that remembers and auto-fills from a dropdown it doesn't fire the on-change event. I'm not sure how to fix that at the moment. It's really a browser bug IMHO.
Title: Re: Ajax Registration Feedback
Post by: ckgb on March 26, 2007, 11:06:00 PM
Well may be. But it works for me on your site.

May be it's conflicting with some js...
Title: Re: Ajax Registration Feedback
Post by: Hambil on March 26, 2007, 11:12:26 PM
What else do you have running? It's fairly straight forward js...

My site is also very small, so the load times are quick.
Title: Re: Ajax Registration Feedback
Post by: ckgb on March 27, 2007, 12:37:18 AM
1. SMF Arcade 1.3.1-MOD-E1.5.2 
2. Location Mod 1.2   
3. Location Mod - Additional Maps 1.2   
4. Enhanced Calendar 1.1   
5. Karma Buttons 1.02 
6. Users Online Today Mod 1.4.0 Beta 2 - RE   
7. SMF Gallery Pro 1.2   
8. SMF Gallery Pro Profile Link 1.0   
9. VisualWarning 1.32   
10. Ad Managment 2.3 
11. TinyPortal 0.971 
12. Global Headers Footers 1.3   
13. SMF Staff Page 1.5.1   
14. YouTube BBC Tag (XHTML Compliant) 1.0   
15. Gender On Registration 1.0   
16. Max Subject Length 1.1   
17. SMF Gallery Pro Upgrade 1.2.2   
18. Custom Profile Field Mod 3.16   
19. Custom Profile - Р СѓcРёС,,икация 1.0 
20. SMF Gallery Pro SSI 1.1   
21. SMF Gallery Pro Recent Comments Board Index 1.0   
22. Merge Double Posts 1.0.6     
23. DoublePostMerge-Rusification 1.0   
24. Virtual Keyboard 1.1   
25. Automatic Avatar for New Users 2 
26. Bookmark Mod By Leipe Po 1.2   
27. Favicon 1.0   
28. Buddy List 0.2 Beta   
29. Country Flags 1.0.1   
30. TinyPortal 0.983     
31. Media Center 1.0   
32. Free Smileys 0.9.1 
33. RSS Feed Icon 1.1     
34. Transliterate 0.1   
35. Top First Post 1.0.0   
36. Custom Edit Times 1.1   
37. FlashChat Integration 0.1 Beta   
38. GoogleVideo BBCode by Yakuza
Title: Re: Ajax Registration Feedback
Post by: drazprod on March 29, 2007, 12:07:14 PM
Hello i'm french and i don't understand this line "Password is too week"
What is the traduction in french or german ???

Thank you, i have installed this mod on 3 themes with this modifications.
I took the liberty to translate this mod.
he/it functions safe very well for the capital and minuscule in the same pseudo.

Sorry for my english.  :-\
Title: Re: Ajax Registration Feedback
Post by: kingking on March 29, 2007, 03:54:40 PM
I have traied it ,
The mod does not work in this SMF 1.1.2

Try it in this version then give me the result :)
Title: Re: Ajax Registration Feedback
Post by: TrueSatan on March 29, 2007, 06:36:16 PM
 Sometimes I wonder why developers bother to submit mods when they get treated as Hambil has been by a few of you here...

The mod does work in SMF 1.1.2

I've tested it, the developer has tested it extensively and the SMF team have tested it prior to approving the mod for inclusion in the official list.

Those of you with umpteen other mods installed must expect mod conflicts...many mods won't work properly in such an environment...not the fault of an individual mod or its developer.

KingKing's claim that it doesn't work for him/her may well be correct but that could be due to some peculiarity on the server he/she uses or that the forum he/she has tried it on wasn't a fresh install with no other mods in place...testing it on a forum that has other mods in place merely says if it will or won't work in that configuration...nothing more.

Please give the developer a break.
Title: Re: Ajax Registration Feedback
Post by: Hambil on March 29, 2007, 06:59:31 PM
Quote from: drazprod on March 29, 2007, 12:07:14 PM
Hello i'm french and i don't understand this line "Password is too week"
What is the traduction in french or german ???

Thank you, i have installed this mod on 3 themes with this modifications.
I took the liberty to translate this mod.
he/it functions safe very well for the capital and minuscule in the same pseudo.

Sorry for my english.  :-\
I'm not sure what the translation would be. The password is not complex enough. This is based off of how you have your settings in SMF. You can set the strength required for a password to several levels, each one more secure than the next.
Title: Re: Ajax Registration Feedback
Post by: Hambil on March 29, 2007, 07:01:50 PM
Quote from: TrueSatan on March 29, 2007, 06:36:16 PM
Please give the developer a break.
Yeah, give me a break! ;)

Thanks TrueSatan. This mod has actually gotten a lot of installs - so I expect some trouble. I don't mind supporting and helping people. However, if they can remember that "doesn't work for them" is different that "doesn't work", as you pointed out, thats nice.
Title: Re: Ajax Registration Feedback
Post by: Hambil on March 30, 2007, 10:36:57 PM
Files temporarily removed, and support suspended.
Title: Re: Ajax Registration Feedback
Post by: kingking on March 31, 2007, 05:13:50 AM
can you give any fourm
the mod works with it ?
Title: Re: Ajax Registration Feedback
Post by: TrueSatan on March 31, 2007, 05:34:41 AM
Quote from: kingking on March 31, 2007, 05:13:50 AM
can you give any fourm
the mod works with it ?

Your question doesn't make much sense but I'll answer it as best I can...the mod has had 792 downloads at the point at which I'm typing this posting...a tiny minority of users have had difficulties and most of those that have been reported have been resolved thanks to the efforts of the developer, Hambil...who has posted in the posting directly above your own stating that support is temporarily suspended for this mod...yet you have posted asking for support.

The developer has at least one (probably several) forums on which the mod works as do I, as did the SMF team when they tested and approved the mod...as I indicated to you in an earlier reply. As stated on the mod download page it is a mod that is compatible with SMF 1.1.2...your querying of that is lacking in proper checking for the compatibility details yourself.

I don't propose to provide you with an example forum...I doubt that the developer will wish to do so either...there is no need or reason to do so. The testing has been done by him, by me, by the SMF team...and even by the vast majority of the 792 other users who have downloaded the mod. It is compatible with SMF1.1.2.

As the developer and I have both told you the mod, like any mod, may not work for all users...these users may have an odd server configuration, may have other, conflicting, mods, may have hacked their own SMF files, may have corrupt SMF files, may have had errors if ftp when uploading their SMF files to their server(s)...we can't know all the possibilities. This is not the fault of this mod, or any other mod.
Title: Re: Ajax Registration Feedback
Post by: KGIII on March 31, 2007, 06:11:54 AM
Nor is it the fault of the mod author. I can personally vouch for it not only installing BUT installing cleanly on a forum that has something insane like 80 other modifications installed.
Title: Re: Ajax Registration Feedback
Post by: Lane on March 31, 2007, 08:32:25 AM
I'm not seeing a link to download since the last update.
Title: Re: Ajax Registration Feedback
Post by: TrueSatan on March 31, 2007, 08:41:25 AM
@Lane

As Hambil already posted:

Quote
Re: Ajax Registration Feedback
« Reply #28 on: Yesterday at 09:36:57 PM »
Files temporarily removed, and support suspended.
Title: Re: Ajax Registration Feedback
Post by: diegolyanky on March 31, 2007, 09:17:06 PM
Great mod ... BUt is not working for me.

I'm using Helios_multi theme as the default theme. no errors during the install and I not analized it. Enabled from Admin Panel ... and ... all is OK

But, not work.
Title: Re: Ajax Registration Feedback
Post by: Hambil on March 31, 2007, 10:29:31 PM
Copy the AjaxRegFed.js to your Helios_multi directory.
Title: Re: Ajax Registration Feedback
Post by: GodOfWonders on April 01, 2007, 01:18:48 AM
Yea Hambil this looks like an awesome mod but I'm in the same boat.  I installed it and enabled it fine with no errors but I went to try it out on the registration page and it's not working.

I'm using the classic theme modified on SMF 1.1.2
Title: Re: Ajax Registration Feedback
Post by: Hambil on April 01, 2007, 01:21:19 AM
Again make sure whatever you have set as your default theme has a copy of AjaxRegFed.js in it. If it does, let me know and we'll see what the next step might be. If it doesn't, then copy it there.
Title: Re: Ajax Registration Feedback
Post by: GodOfWonders on April 01, 2007, 01:25:02 AM
Sorry meant to mention that I copied the AjaxRegFed.js into the classic folder.  I thought it might have been some missing code, as some of the mods don't install into custom themes correctly but all the code seems to be there.  And I placed the file in the classic folder but I'm not seeing any javascript errors like it's missing the file to start with.  I don't mean to be a bother I usually can figure the stuff out. I'm just stumped on this one. :/
Title: Re: Ajax Registration Feedback
Post by: Hambil on April 01, 2007, 01:26:56 AM
What browser?
Title: Re: Ajax Registration Feedback
Post by: GodOfWonders on April 01, 2007, 01:27:26 AM
Tested in both Mozilla and IE 6.
Title: Re: Ajax Registration Feedback
Post by: Hambil on April 01, 2007, 01:28:47 AM
Can I get a link to the site?
Title: Re: Ajax Registration Feedback
Post by: GodOfWonders on April 01, 2007, 01:29:44 AM
http://www.sofakinggamers.com
Title: Re: Ajax Registration Feedback
Post by: Hambil on April 01, 2007, 01:37:32 AM
Error: response has no properties
Source File: http://www.sofakinggamers.com/forums/Themes/classic/AjaxRegFed.js
Line: 37

So the ajax is working fine. However, xml isn't being returned correctly. Is there anything in the admin error log?
Title: Re: Ajax Registration Feedback
Post by: GodOfWonders on April 01, 2007, 01:43:51 AM
Nothing pertaining to the mod that I see....a few errors from some stray code left behind by mods I hadn't noticed but that's about it.
Title: Re: Ajax Registration Feedback
Post by: Hambil on April 01, 2007, 01:50:23 AM
I'll need an admin login/ftp access to do much more I'm afraid :( If you are willing I'll be happy to help though.
Title: Re: Ajax Registration Feedback
Post by: GodOfWonders on April 01, 2007, 01:53:25 AM
Ok I'll PM you the info.
Title: Re: Ajax Registration Feedback
Post by: Hambil on April 01, 2007, 02:40:09 AM
It looks like a joomla issue. If you go to your forum page, and click on register from there, instead of using the link in the joomla/portal registration box, it works great.
Title: Re: Ajax Registration Feedback
Post by: GodOfWonders on April 01, 2007, 02:42:03 AM
hmmm so looks like I might have to alter an option or some code in Joomla then?
Title: Re: Ajax Registration Feedback
Post by: Hambil on April 01, 2007, 02:44:41 AM
That's my guess. I don't know how joolma works though. However, it is definitely not an issue with the mod. Still, that said, if we can figure this out it could help others with similar portal issues.
Title: Re: Ajax Registration Feedback
Post by: GodOfWonders on April 01, 2007, 02:47:19 AM
Well I'll take a look at the smf bridge, the mod, and joomla to see if I can see where the conflict lies.  More hours of staring at code. Oh well you want something to work you gotta stare at it for awhile.  ;D
Title: Re: Ajax Registration Feedback
Post by: Hambil on April 01, 2007, 02:54:19 AM
What I can tell you, is that it looks like a url issue. The ajax code just uses a relative path, e.g. index.php?action=ajaxreg_checkusername&xml=true&username=Hambil

It would appear that joomla, or the portal/bridge, is doing some redirection (embedding the forum inside itself in a frame or something) and that is causing the problem.
Title: Re: Ajax Registration Feedback
Post by: GodOfWonders on April 01, 2007, 03:00:57 AM
So would it be possible to make the AJAX code do the same thing or no?
Title: Re: Ajax Registration Feedback
Post by: Hambil on April 01, 2007, 03:04:00 AM
javascript does not have access to your php vars like $forumdir. In addition, I'm not sure how it would know where it is being called from. I don't think this is a problem that can be fixed from the mod, but, I'm still looking into it and thinking about it.
Title: Re: Ajax Registration Feedback
Post by: Niteblade on April 01, 2007, 03:05:30 AM
Quote from: Harro on March 20, 2007, 08:42:25 AM
Nice!
Definatly something that should be a default feature in the future!

Yes, it should.
Title: Re: Ajax Registration Feedback
Post by: GodOfWonders on April 01, 2007, 03:09:14 AM
ok I fixed the problem. It works fine now. Basically I just edited the AjaxRegFed.js file.  As you can see the SMF bridge is a component adding com_smf to the link so if I take:

http.open('GET', 'index.php?action=ajaxreg_checkusername&xml=true&username=' + document.creator.user.value);

and change it to:

http.open('GET', 'index.php?option=com_smf&Itemid=26&action=ajaxreg_checkusername&xml=true&username=' + document.creator.user.value);

it calls from the right url.  Thus working for SMF integrated into Joomla. :)
Title: Re: Ajax Registration Feedback
Post by: Hambil on April 01, 2007, 03:12:53 AM
Nice, thanks :)

What is Itemid? Is there a significance to 26? If I wanted to make a joomla fix for this, how would I know the proper Itemid to use?
Title: Re: Ajax Registration Feedback
Post by: GodOfWonders on April 01, 2007, 03:18:08 AM
hmmm not really sure what the Itemid is. I'll look into it but apparently it's important cause when I removed it from the url the ajax stopped working. :/
Title: Re: Ajax Registration Feedback
Post by: GodOfWonders on April 01, 2007, 03:27:40 AM
This should answer your question:  http://www.simplemachines.org/community/index.php?topic=48869.0
Title: Re: Ajax Registration Feedback
Post by: diegolyanky on April 01, 2007, 12:31:21 PM
Quote from: Hambil on March 31, 2007, 10:29:31 PM
Copy the AjaxRegFed.js to your Helios_multi directory.

Thanks ... Solved.

I see the code and I think: this archive, could be on my theme folder ... Then, I  see this reply and I copied the file .

Now is working.

Thanks !!
Title: Re: Ajax Registration Feedback
Post by: GodOfWonders on April 01, 2007, 05:33:47 PM
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.
Title: Re: Ajax Registration Feedback
Post by: Alpay on April 06, 2007, 03:33:01 PM
Tr install
Theme > lightning-01
>

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg353.imageshack.us%2Fimg353%2F9982%2F62856166fv0.jpg&hash=c1bf94627d9355c00b5925b2bc136c1325564214)

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

+

document.forms.creator.RegSumbit',null
Title: Re: Ajax Registration Feedback
Post by: Elmacik on April 07, 2007, 05:18:24 AM
Congrats, its very nice and usefull ;)
Title: Re: Ajax Registration Feedback
Post by: Jaden-Korr on April 07, 2007, 03:24:59 PM
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.
Title: Re: Ajax Registration Feedback
Post by: Elmacik on April 09, 2007, 04:50:36 AM
@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.
  • ...
Title: Re: Ajax Registration Feedback
Post by: Shadow Queen on April 14, 2007, 02:36:43 AM
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.
Title: Re: Ajax Registration Feedback
Post by: Hambil on April 14, 2007, 02:40:36 AM
Copy the AjaxRegFed.js and AjaxRegFed.template.php files to the directory of your default theme.
Title: Re: Ajax Registration Feedback
Post by: Shadow Queen on April 14, 2007, 03:30:09 PM
I was using the default theme
Title: Re: Ajax Registration Feedback
Post by: sanfordw on April 16, 2007, 06:59:27 AM
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
Title: Re: Ajax Registration Feedback
Post by: Shadow Queen on April 16, 2007, 02:17:02 PM
That good this mod is working for you great
Title: Re: Ajax Registration Feedback
Post by: sanfordw on April 16, 2007, 10:32:22 PM
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
Title: Re: Ajax Registration Feedback
Post by: marinelife on April 27, 2007, 03:52:22 PM
What one is the latest file
Title: Re: Ajax Registration Feedback
Post by: preddy25 on May 08, 2007, 12:29:39 AM
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.
Title: Dutch Ajax Registration Feedback file
Post by: 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.
Title: Re: Ajax Registration Feedback
Post by: Hambil on May 12, 2007, 03:13:09 PM
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 :)
Title: Re: Ajax Registration Feedback
Post by: nitins60 on May 13, 2007, 06:33:40 AM
Nice one! I would like to check username is available or not during registration!
Title: Re: Ajax Registration Feedback
Post by: ShadowStriker on June 13, 2007, 09:53:35 AM
All I see when I try to register are green and red boxes, but there are no text in them
Title: Re: Ajax Registration Feedback
Post by: Robi052 on June 17, 2007, 10:40:01 AM
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
Title: Re: Ajax Registration Feedback
Post by: vosje505 on June 17, 2007, 07:23:50 PM
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?

Title: Re: Ajax Registration Feedback
Post by: topiQ on June 23, 2007, 09:01:57 AM
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?!
Title: Re: Ajax Registration Feedback
Post by: SoftDux on June 23, 2007, 11:55:22 AM
Does anyone use this on SMF 1.1.2, with the default theme? When I try and install it, I get the following error:

Quote
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Sources/ManageRegistration.php    Test successful
2.    Execute Modification    ./index.php    Test successful
3.    Execute Modification    ./Themes/default/Register.template.php    Test failed
4.    Execute Modification    ./Themes/default/languages/Login.english.php    Test successful
5.    Execute Code    AjaxRegFed_Install.php    
6.    Extract File    ./Sources/AjaxRegFed.php    
7.    Extract File    ./Themes/default/AjaxRegFed.js    
8.    Extract File    ./Themes/default/AjaxRegFed.template.php    
9.    Extract File    ./Themes/default/languages/AjaxRegFed.english.php

From previous experience, I don't like installing anything if there's an error.
Title: Re: Ajax Registration Feedback
Post by: TrueSatan on June 23, 2007, 05:51:22 PM
The errors in package installations occur because other mods have already altered the code the current mod seeks to alter. Please refer to:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

...to manually install a mod following such errors and to:

http://server.daniel15.com/smf/package.php (http://server.daniel15.com/smf/package.php)

...for details of what needs to be done to add any particular mod.

This mod does work properly in the default theme on SMF 1.1.2 as attested by the enormous number of members who have downloaded and used it without issues of any kind.
Title: Re: Ajax Registration Feedback
Post by: Ryan on June 28, 2007, 11:20:02 AM
Mod seems to be working fine, although i checked my php log and it seems whenever the register page is being viewed this gets logged as an error.
[28-Jun-2007 14:19:42] PHP Fatal error:  Call to undefined function getmxrr() in C:\hd3\www\forum\Sources\AjaxRegFed.php on line 49

So might wanna fix that one.
Thanks for great mod
Title: Re: Ajax Registration Feedback
Post by: John S on July 03, 2007, 12:40:08 AM
doesn't work after i installed SEO4SMF?!
Title: Re: Ajax Registration Feedback
Post by: dbrown on August 07, 2007, 02:51:31 AM
Any plans for 1.1.3?
Title: Re: Ajax Registration Feedback
Post by: BryanS on August 19, 2007, 10:09:14 PM
Quote from: MojPortal on June 17, 2007, 10:40:01 AM
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

I'm getting the exact same error.  I'm running Tiny Portal so I don't know if this might be causing a problem but I can't figure out how to fix this. :(
Title: Re: Ajax Registration Feedback
Post by: ihsanutku on August 27, 2007, 09:29:29 AM
thx for lot
Title: Re: Ajax Registration Feedback
Post by: Kalandor on October 03, 2007, 06:35:07 AM
Well there is something.. it's not exactly a bug, but I think it's a miss. When user tries to select one of the restricted usernames it still says that the username is available. I whink this should be fixed
Title: Re: Ajax Registration Feedback
Post by: Alpay on October 03, 2007, 05:05:30 PM
Quote from: BryanS on August 19, 2007, 10:09:14 PM
Quote from: MojPortal on June 17, 2007, 10:40:01 AM
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

I'm getting the exact same error.  I'm running Tiny Portal so I don't know if this might be causing a problem but I can't figure out how to fix this. :(

up =)
Title: Re: Ajax Registration Feedback
Post by: rsw686 on October 17, 2007, 12:10:32 PM
Two things I noticed. One I have fixed, the other doesn't really bother me, but I thought I would put it out there.

1) The "Enable AJAX Registration Feedback" check box has not affect. The ajax registration feedback is always enabled. I looked through the code and nothing utilizes the value. This could be easily fixed in the AjaxRegFed.php file. I opted to just remove it from the registration settings page as I don't care about disabling it.

2) The username check does not check for reserved names. This one I did fix. Heres the updated function for AjaxRegFed.php

EDIT: Removed the code as my latest post has an updated version.
Title: Re: Ajax Registration Feedback
Post by: rsw686 on October 17, 2007, 05:22:36 PM
Hmm there are more things not checked for. The user name isn't checked for invalid characters and the email isn't checked to see if it is already registered. I have corrected this.

AjaxRegFed.php

function CheckUsername()
{
global $context, $txt, $modSettings, $db_prefix, $sourcedir;

// Needed for isReservedName()
require_once($sourcedir . '/Subs-Members.php');

$context['ajaxreg']['field'] = 'usercheck';

// Is the username already taken?
$request = db_query("
SELECT ID_MEMBER
FROM {$db_prefix}members
WHERE memberName = '$_REQUEST[username]'
LIMIT 1", __FILE__, __LINE__);

if (mysql_num_rows($request) != 0)
{
$context['ajaxreg']['status'] = false;
$context['ajaxreg']['message'] = $txt['ajaxreg_username_taken'];
}
// Does it contain a reserved name?
elseif (isReservedName($_REQUEST['username'], 0, true, false))
{
$context['ajaxreg']['status'] = false;
$context['ajaxreg']['message'] = $txt['ajaxreg_username_reserved'];
}
// Only these characters are permitted.
elseif (preg_match('~[<>&"\'=\\\]~', $_REQUEST['username']) != 0 || $_REQUEST['username'] == '_' || $_REQUEST['username'] == '|' || strpos($_REQUEST['username'], '[code') !== false || strpos($_REQUEST['username'], '[/code') !== false)
{
$context['ajaxreg']['status'] = false;
$context['ajaxreg']['message'] = $txt['ajaxreg_username_invalid'];
}
else
{
$context['ajaxreg']['status'] = true;
$context['ajaxreg']['message'] = $txt['ajaxreg_username_available'];
}
mysql_free_result($request);

// Determine CSS based on status.
$context['ajaxreg']['css'] = $context['ajaxreg']['status'] ? $modSettings['ajaxregSuccessCSS'] : $modSettings['ajaxregFailureCSS'];

$context['sub_template'] = 'xml';
loadTemplate('AjaxRegFed');
}

function CheckEmail()
{
global $context, $txt, $modSettings, $db_prefix;

$valid = false;

$context['ajaxreg']['field'] = 'emailcheck';

// Tests for a valid email address and optionally tests for valid MX records, too.
if(eregi("^([_a-z0-9-]+)(\.[_a-z0-9-]+)*@([a-z0-9-]+)(\.[a-z0-9-]+)*(\.[a-z]{2,4})$", $_REQUEST['email']))
{
list($username, $domain) = split("@", $_REQUEST['email']);
$valid = getmxrr($domain, $mxrecords);
}

if ($valid == false)
{
$context['ajaxreg']['status'] = false;
$context['ajaxreg']['message'] = $txt['ajaxreg_email_invalid'];
}
else
{
// Is the email already registered
$request = db_query("
SELECT ID_MEMBER
FROM {$db_prefix}members
WHERE emailAddress = '$_REQUEST[email]'
LIMIT 1", __FILE__, __LINE__);

// No results if unique.
if (mysql_num_rows($request) != 0)
{
$context['ajaxreg']['status'] = false;
$context['ajaxreg']['message'] = $txt['ajaxreg_email_registered'];
}
else
{
$context['ajaxreg']['status'] = true;
$context['ajaxreg']['message'] = $txt['ajaxreg_email_verified'];
}
mysql_free_result($request);
}

// Determine CSS based on status.
$context['ajaxreg']['css'] = $context['ajaxreg']['status'] ? $modSettings['ajaxregSuccessCSS'] : $modSettings['ajaxregFailureCSS'];

$context['sub_template'] = 'xml';
loadTemplate('AjaxRegFed');
}


AjaxRegFed.english.php

$txt['ajaxreg_username_available'] = 'Username available';
$txt['ajaxreg_username_taken'] = 'Username is taken';
$txt['ajaxreg_username_reserved'] = 'Username is reserved';
$txt['ajaxreg_username_invalid'] = 'Username is invalid';
$txt['ajaxreg_email_verified'] = 'Email verified';
$txt['ajaxreg_email_registered'] = 'Email is already registered';
$txt['ajaxreg_email_invalid'] = 'Email is invalid';
Title: Re: Ajax Registration Feedback
Post by: locomotion182 on October 20, 2007, 09:32:10 PM
hey do you think this will work with 1.1.4?
Title: Re: Ajax Registration Feedback
Post by: L'AltroWeb on November 25, 2007, 05:10:58 PM
Hi!
Good mod  ;)
I have successfully installed your mod with smf 1.1.4 (babylon theme) with no error, all work fine except enable or disable option
http://custom.simplemachines.org/mods/index.php?action=download;mod=725;id=29164;image (http://custom.simplemachines.org/mods/index.php?action=download;mod=725;id=29164;image)
if i enable or disable never change (isn't very important) :)
PS for w3c:
use onchange instead of onChange
<div id="usercheck"> instead of <div id="usercheck" name="usercheck">
<div id="emailcheck"> instead of <div id="emailcheck" name="emailcheck">
<div id="passwrd1check"> instead of <div id="passwrd1check" name="passwrd1check">
<div id="passwrd2check"> instead of <div id="passwrd2check" name="passwrd2check">
And all is validate and working fine  ;)
-
PS i have found a small bug only with Iexplore7.
If i use (for italian language) this code:
$txt['ajaxreg_password_short'] = 'La Password è troppo corta';
Internet explore dont work fine
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg102.imageshack.us%2Fimg102%2F2475%2Ferrorhu6.th.gif&hash=23a0f19900364e05a19b6925f2fd24646e1278c5) (http://img102.imageshack.us/my.php?image=errorhu6.gif)
instead if i use:
$txt['ajaxreg_password_short'] = 'La Password e troppo corta';
All work fine also with Internet Explorer  ::)
Title: Re: Ajax Registration Feedback
Post by: goldenboy48 on December 07, 2007, 12:53:13 AM
works great.....good job...
Title: Re: Ajax Registration Feedback
Post by: BryanS on December 07, 2007, 02:48:32 PM
Quote from: BryanS on August 19, 2007, 10:09:14 PM
Quote from: MojPortal on June 17, 2007, 10:40:01 AM
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

I'm getting the exact same error.  I'm running Tiny Portal so I don't know if this might be causing a problem but I can't figure out how to fix this. :(

Anyone?

This mod is working well for me other than this message appearing in my error log. 

I'm using the following mods with it:

1.     Gender On Registration      1.0      
2.    ShowTopics    1.1    
3.    MySpace Field    2.4    
4.    Ignore user    1.3    
5.    Select Admin for Notifications    1.1    
6.    Profil Moderator Managment    1.0.0    
7.    TinyPortal    0.983    
8.    SMF Ajax Registration Feedback    1.0.0    
9.    Moderator Activity Report for SMF1.1.2    1.2    
10.    SMF 1.0.11 / 1.1.3 Update    1.1    
11.    FlashChat Integration    1.0    
12.    SMF 1.0.12 / 1.1.4 / 2.0 b1.1 Update    1.0    
13.    RSS Feed Icon    1.1    
14.    Auto Embed Video Clips    1.3    
15.    Easy Edit Meta Data    1.0    
16.    Enhanced Calendar    1.1    
17.    Fix Message Empty Error For Embed Video Mods    1.0    
Title: Re: Ajax Registration Feedback
Post by: moviespot on December 11, 2007, 10:06:19 AM
Is there update for 1.1.4
Title: Re: Ajax Registration Feedback
Post by: Fallen Angel on December 11, 2007, 11:10:02 AM
Just installed it on my SMF v 1.1.1.4 with Dilber MC theme, and it works like a charm..

Here is the danish translation to; AjaxRegFed.danish-utf8.php

<?php// Version: 1.0.0; Ajax Registration Mod// General$txt['ajaxreg_username_taken'] = 'Brugernavn er taget';$txt['ajaxreg_username_available'] = 'Brugernavn er ledigt';$txt['ajaxreg_invalid_email'] = 'Invalid email';$txt['ajaxreg_email_verified'] = 'Email godkendt';$txt['ajaxreg_password_short'] = 'Kodeord er for kort';$txt['ajaxreg_password_chars'] = 'Kodeord er for svag';$txt['ajaxreg_password_valid'] = 'Kodeord er accepteret';$txt['ajaxreg_password_nomatch'] = 'Kodeordet matcher ikke';$txt['ajaxreg_password_match'] = 'Kodeord matcher';$txt['ajaxreg_password_restricted_words'] = 'Kodeord indeholder ikke godkendt ord';?>


And the danish translation to Login.danish-utf8.php

// Ajax Registration Feedback
$txt['ajaxreg_enabled_label'] = 'Slå AJAX Registrering Feedback Til';
$txt['ajaxreg_successCSS_label'] = 'Stil til brug for succesfuld feedback';
$txt['ajaxreg_failureCSS_label'] = 'Stil til brug for fejlet feedback';
Title: Re: Ajax Registration Feedback
Post by: Cristan on December 24, 2007, 07:30:37 AM
Quote from: BryanS on December 07, 2007, 02:48:32 PM
I'm getting the exact same error.  I'm running Tiny Portal so I don't know if this might be causing a problem but I can't figure out how to fix this. :(

Same here. I also get the implode() error quite often, but I also run TinyPortal..
Title: Re: Ajax Registration Feedback
Post by: TEOC2 on December 24, 2007, 09:46:22 AM
Works fine on my SMF1.1.4 & TinyPortal v0.9.8 install.
Title: Re: Ajax Registration Feedback
Post by: BryanS on December 24, 2007, 11:30:16 PM
well, I "solved" my problem.  I looked at the exact error I was getting and it was caused by the system checking to see if the user's password met the medium password strength.  I changed the registration requirements so passwords need only be of low level security and I don't get the error anymore
Title: Re: Ajax Registration Feedback
Post by: dxyy on January 01, 2008, 10:05:02 AM
Here's the Chinese translation. :)

Oh, and there's a small spelling mistake - "Password is too week" should be "Password is too weak" ;)

Very nice mod though, really should be a default feature.
Title: Re: Ajax Registration Feedback
Post by: Minare on January 05, 2008, 07:02:12 PM
Hi

I really would love to use this mod for smf 1.1.4

I installed, it did without any error.

But I can not see any ajax panel to activate in my admin panel, and nor can I  see that it is already activated.

I dunno what to do now. I use dilbermc theme

Now the mod is installed. here is the forum if you want to check : http://www.minare.net/forum

Thanks in advance
Title: Re: Ajax Registration Feedback
Post by: TrueSatan on January 05, 2008, 07:21:35 PM
@ Minare

Please see posting #96...it would be appreciated if you would read the topic before asking queries.

As per usual  custom themes will need manual installs into them...this is true of almost all kods not just this one:

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: Ajax Registration Feedback
Post by: Minare on January 06, 2008, 06:19:43 AM
Quote from: TrueSatan on January 05, 2008, 07:21:35 PM
@ Minare

Please see posting #96...it would be appreciated if you would read the topic before asking queries.

As per usual  custom themes will need manual installs into them...this is true of almost all kods not just this one:

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)


Yes I know that custom themes need manuel applications and I also tried to see a control panel in default theme and checked from default theme as well but it was the same. That s why I think my problem is related with some other thing. Thanks for help.
Title: Re: Ajax Registration Feedback
Post by: vlindertje on January 07, 2008, 06:08:57 AM
I read the the topic and all the links that are added. But...

I used 1.1.4 smf

I install the mod with no problem. First i try to get working in english before i get it in dutch. But when i go to the admin-->registration...

I see the new option, without text, and its already enable.
I used the classic template. i copy the AjaxRegFed.js in the directory of classic.

What i also do, no errors, but it doesn't work.

What do i wrong. I'm a not a expert. Please help me :D
Title: Re: Ajax Registration Feedback
Post by: FireFreezer on January 28, 2008, 02:16:26 AM
works fine with 1.1.4

here is the german translation
Title: Re: Ajax Registration Feedback
Post by: vlindertje on January 28, 2008, 03:38:08 AM
Quote from: vlindertje on January 07, 2008, 06:08:57 AM
I read the the topic and all the links that are added. But...

I used 1.1.4 smf

I install the mod with no problem. First i try to get working in english before i get it in dutch. But when i go to the admin-->registration...

I see the new option, without text, and its already enable.
I used the classic template. i copy the AjaxRegFed.js in the directory of classic.

What i also do, no errors, but it doesn't work.

What do i wrong. I'm a not a expert. Please help me :D


No one, can help me?
Title: Re: Ajax Registration Feedback
Post by: FireFreezer on January 30, 2008, 08:33:05 AM
ah! now i see what you're talking about...

it's blank at me too...

i guess the checker at the top is to enable/disable the ajax feedback stuff, below there are two text fields... from the content i guess it's to set the colors for the feedback messages. just leave it as is, it's fine ;)
Title: Re: Ajax Registration Feedback
Post by: vlindertje on January 30, 2008, 01:01:08 PM
Quote from: FireFreezer on January 30, 2008, 08:33:05 AM
ah! now i see what you're talking about...

it's blank at me too...

i guess the checker at the top is to enable/disable the ajax feedback stuff, below there are two text fields... from the content i guess it's to set the colors for the feedback messages. just leave it as is, it's fine ;)


If the text is not visable at the admin pannel. Doesn't matter.

But the function also not working. And thats a problem i don't like ;)
Title: Re: Ajax Registration Feedback
Post by: digit on February 03, 2008, 03:45:34 PM
Quote from: BryanS on December 24, 2007, 11:30:16 PM
well, I "solved" my problem.  I looked at the exact error I was getting and it was caused by the system checking to see if the user's password met the medium password strength.  I changed the registration requirements so passwords need only be of low level security and I don't get the error anymore

BUMMER!  Any fix for this?
Title: Re: Ajax Registration Feedback
Post by: naveda on February 03, 2008, 05:47:50 PM
Hi Guys!
I added this to my code:


global $context, $txt, $modSettings, $db_prefix;

// is the email address already taken?
$result = db_query("
SELECT emailAddress
FROM {$db_prefix}members
WHERE emailAddress = '" . $_REQUEST['email'] . "'", __FILE__, __LINE__);

//checking
elseif (mysql_num_rows($result) != 0)
{
$context['ajaxreg']['status'] = false;
$context['ajaxreg']['message'] = $txt['ajaxreg_email_already_exists'];
$context['ajaxreg']['css'] = $modSettings['ajaxregFailureCSS'];
}

Obviously is just an idea...
I hope help u!

If my english is poor its because I'm spanish, sorry!
Title: Re: Ajax Registration Feedback
Post by: digit on February 04, 2008, 10:14:13 AM
I am getting 2 errors when validating my code at http://validator.w3.org/

Line 495, Column 85: there is no attribute "onChange".
tabindex="1" maxlength="25" onChange="checkUsername();" />

Line 496, Column 32: there is no attribute "name".
<div id="usercheck" name="usercheck">&nbsp;</div>

Any idea why?

Title: Re: Ajax Registration Feedback
Post by: Iron IC on February 04, 2008, 07:42:42 PM
Hello :)

I added this mod manually to default theme. I finally got it working, but unfortunately there is no color showing for the success/failure- messages, even though I specified it to be green and red with Hex-code inside admin panel. Isn`t this the correct way to do this?

What could be wrong? Thanks.
Title: Re: Ajax Registration Feedback
Post by: S3NTYN3L on February 04, 2008, 08:25:45 PM
Quote from: Iron IC on February 04, 2008, 07:42:42 PM
I specified it to be green and red with Hex-code inside admin panel. Isn`t this the correct way to do this?

If using hex:

color: #BBBBBB;

If using words:

color: green;
Title: Re: Ajax Registration Feedback
Post by: vlindertje on February 05, 2008, 12:21:13 PM
Quote from: vlindertje on January 30, 2008, 01:01:08 PM
Quote from: FireFreezer on January 30, 2008, 08:33:05 AM
ah! now i see what you're talking about...

it's blank at me too...

i guess the checker at the top is to enable/disable the ajax feedback stuff, below there are two text fields... from the content i guess it's to set the colors for the feedback messages. just leave it as is, it's fine ;)


If the text is not visable at the admin pannel. Doesn't matter.

But the function also not working. And thats a problem i don't like ;)

Noboby can help me?
Title: Re: Ajax Registration Feedback
Post by: sunnyslp on February 09, 2008, 06:12:51 AM
works great thnq :)
Title: Re: Ajax Registration Feedback
Post by: eline on February 14, 2008, 02:47:27 PM
dont works in IE 7.0, does any one have this issue ?
Its fine with opera FF i Safari

in IE i have "null its not a objects or is empty '

;)
Title: Re: Ajax Registration Feedback
Post by: vlindertje on February 15, 2008, 11:20:46 AM
Quote from: eline on February 14, 2008, 02:47:27 PM
dont works in IE 7.0, does any one have this issue ?
Its fine with opera FF i Safari

in IE i have "null its not a objects or is empty '

;)

Maybe this why it doesn't work here. I've also IE7
And try all the time to get help here in this topic.
But no reply for help still now.
Title: Re: Ajax Registration Feedback
Post by: FiFtHeLeMeNt on March 06, 2008, 05:15:47 AM
thx for this great mod , I put here the Persian translation for this mod.
Regards
Title: Re: Ajax Registration Feedback
Post by: Sabre™ on March 22, 2008, 04:14:54 AM
Hello..
Could someone please post the manual edits to the templates please.
It all installed fine, but I cannot see any change in the reg page.
I have read this thread 3 times, and have checked if the js file etc  are in the default theme. Which they are.

Every Package Parser I have tried, has for some weird reason, displayed the install info for different mods!!??

Maybe just the manual install info for the registration template will be all I need.

Thank You very much in advance :)
Title: Re: Ajax Registration Feedback
Post by: Nibogo on March 24, 2008, 06:41:48 PM
this mod work with smf 1.1.4?
Title: Re: Ajax Registration Feedback
Post by: p.goepfert on March 25, 2008, 07:30:07 PM
Thank you for the usefull mod. I wrote a german translation file for it. Maybe someone can use it.

Regards, Pago
Title: Re: Ajax Registration Feedback
Post by: L'AltroWeb on April 26, 2008, 02:02:53 PM
Quote from: BryanS on August 19, 2007, 10:09:14 PM
Quote from: MojPortal on June 17, 2007, 10:40:01 AM
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

I'm getting the exact same error.  I'm running Tiny Portal so I don't know if this might be causing a problem but I can't figure out how to fix this. :(
I am the same error.
SMF 1.1.4 and MKportal
I can see user password and this is not good  :(
Title: Re: Ajax Registration Feedback
Post by: MissyNL on May 03, 2008, 07:38:02 AM
Quote from: NIBOGO on March 24, 2008, 06:41:48 PM
this mod work with smf 1.1.4?

Well?? does it work with 1.1.4? I want to use the mod :D
Title: Re: Ajax Registration Feedback
Post by: L'AltroWeb on May 03, 2008, 07:41:42 AM
Yes! See my site, now i'm use smf 1.1.5 and this mod work!
Title: Re: Ajax Registration Feedback
Post by: MissyNL on May 03, 2008, 07:45:27 AM
oke, great.. thanks for the reply
Title: Re: Ajax Registration Feedback
Post by: vlindertje on May 13, 2008, 05:42:12 AM
We're now a few months further and it still doesn't work.
I'm further then a few months ago.

But....

I install it in default theme. I see options in the admin pannel, also in dutch.

Then i go registration an account. check name is okay.
But when it will check the email, it gives a yellow triangle left under with a message fault on the page.
But i don't get errors.....

So it don't check email.

And my second question is. I saw this on a http://www.thereptilefile.com/forum/index.php?action=register

This site is from also a member from smf.

Its about that small icones/buttons next of the registration lines. I saw this on more sites.

I don't see them either in install ajax registration feedback mod.

Who can help me to fix both problems?
Title: Re: Ajax Registration Feedback
Post by: vlindertje on May 17, 2008, 04:18:37 AM
Quote from: vlindertje on May 13, 2008, 05:42:12 AM
We're now a few months further and it still doesn't work.
I'm further then a few months ago.

But....

I install it in default theme. I see options in the admin pannel, also in dutch.

Then i go registration an account. check name is okay.
But when it will check the email, it gives a yellow triangle left under with a message fault on the page.
But i don't get errors.....

So it don't check email.

And my second question is. I saw this on a http://www.thereptilefile.com/forum/index.php?action=register

This site is from also a member from smf.

Its about that small icones/buttons next of the registration lines. I saw this on more sites.

I don't see them either in install ajax registration feedback mod.

Who can help me to fix both problems?

Nobody can help me?
Title: Re: Ajax Registration Feedback
Post by: Nibogo on May 18, 2008, 06:54:31 PM
Quote from: Dark-Wolf on May 03, 2008, 07:41:42 AM
Yes! See my site, now i'm use smf 1.1.5 and this mod work!

yeah i also have this mod in smf 1.1.5 and works great :)
Title: Re: Ajax Registration Feedback
Post by: samurai-lupin on May 19, 2008, 07:01:56 PM
Hello,

this mod works great with all of my website but one (thunting.com)

There I'm getting this error:

message.firstChild has no properties
[Break on this error] document.getElementById(field.firstChild.nodeValue).innerHTML = '&nbsp;' + mes...

Basically the mods works - that is it checks the content and gives the appropriate results - but unfortunately does not display any text!?!

Just blank green or red fields (as defined as default colors).

Any thoughts what might be the reason?!

Thank you!
Title: Re: Ajax Registration Feedback
Post by: taurean on June 07, 2008, 10:26:20 AM
nice mod. working on default theme with ver 1.1.5
Title: Re: Ajax Registration Feedback
Post by: L'AltroWeb on June 13, 2008, 10:49:56 AM
A fix for this error?
http://www.simplemachines.org/community/index.php?topic=158931.msg1521096#msg1521096
IMHO is a big security issue for my user(i can see their password) and for me (if i register to a site that use this mod)  :(
Title: Re: Ajax Registration Feedback
Post by: kai920 on June 14, 2008, 05:18:35 AM
Quote from: GodOfWonders on April 01, 2007, 03:09:14 AM
ok I fixed the problem. It works fine now. Basically I just edited the AjaxRegFed.js file.  As you can see the SMF bridge is a component adding com_smf to the link so if I take:

http.open('GET', 'index.php?action=ajaxreg_checkusername&xml=true&username=' + document.creator.user.value);

and change it to:

http.open('GET', 'index.php?option=com_smf&Itemid=26&action=ajaxreg_checkusername&xml=true&username=' + document.creator.user.value);

it calls from the right url.  Thus working for SMF integrated into Joomla. :)

I'm trying to make the edits to the js file as well.

1. Could you use smf_scripturl instead of starting with index.php?.....

1a. Do you know how to check for presence of Joomla to dynamically select which URLs to use?

2. My email check doesn't seem to work for some reason?
Title: Re: Ajax Registration Feedback
Post by: Hoochie Coochie Man on July 23, 2008, 12:57:54 PM
Hi

Thank you very much for this beautiful mod.

But I'm getting xhtml errors on Register.template.php..


Quote
Validation Output:  2 Errors

   (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fvalidator.w3.org%2Fimages%2Finfo_icons%2Ferror.png&hash=d5b4669fe1c1c9b4aa941b482d4a05f564b62f4a) Error Line 228, Column 78: there is no attribute "onChange".

      ..." tabindex="1" maxlength="25" onChange="checkUsername();" />

      You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

      This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

      How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash (http://validator.w3.org/docs/help.html#faq-flash).



   (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fvalidator.w3.org%2Fimages%2Finfo_icons%2Ferror.png&hash=d5b4669fe1c1c9b4aa941b482d4a05f564b62f4a) Error Line 229, Column 25: there is no attribute "name".

      <div id="usercheck" name="usercheck">&nbsp;</div>

      You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

      This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

      How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
Title: Re: Ajax Registration Feedback
Post by: MoreBloodWine on August 09, 2008, 10:16:53 PM
Quote from: Dark-Wolf on June 13, 2008, 10:49:56 AM
IMHO is a big security issue for my user(i can see their password) and for me (if i register to a site that use this mod)  :(
WHAT, lol, how is this mod a security issue and allowing people to see passwords ?

Also, where is the list of approved emails defined, because i did a test using [email protected] and it greened saying it was ok LOL
Title: Re: Ajax Registration Feedback
Post by: L'AltroWeb on October 29, 2008, 11:03:01 PM
Quote from: MoreBloodWine on August 09, 2008, 10:16:53 PM
Quote from: Dark-Wolf on June 13, 2008, 10:49:56 AM
IMHO is a big security issue for my user(i can see their password) and for me (if i register to a site that use this mod)  :(
WHAT, lol, how is this mod a security issue and allowing people to see passwords ?

Also, where is the list of approved emails defined, because i did a test using [email protected] and it greened saying it was ok LOL
sorry my english isn't very good.
If you register to my site i can see your password and IMHO this isn'y good.
For example: you register to mysite and you use your classic user and password (same for administer your site), i can login to your site whit your password and whit administrator privileges :(
IMHO this is a security problem (not for my site but for my users) ;)