vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Registration form AJAX enhancements (https://vborg.vbsupport.ru/showthread.php?t=182005)

FractalizeR 06-08-2008 10:00 PM

Registration form AJAX enhancements
 
What does it do?
  • Checks for username validity as you type it in registration form
  • Checks for email validity as you type it in registration form
  • Checks for password validity as you type it in registration form
  • Suggests good passwords
  • Shows strength of your password as you type it in registration form
Points of interest:
  • No template or code changes. All is done using VBulletin Product API.
  • Only several custom phrase is used. All others are taken from VBulletin. So, product localization is VERY easy.
  • All validity checks are implemented using VBulletin API

How to install?
  • Unpack archive into forum root
  • Install *.xml file via Admin Control Panel (Product management)

What is NOT done:
  • No checks implemented for entering captchas as it may seriously lower forum anti-spam security


How to update to latest version?
Overwrite all files by new ones from latest zip and reimport product XML file via Admin Control Panel with "Allow Overwrite" option checked.

Version history:
Code:


1.1.7 (24-07-08)
  • Situation where password = login is now classified as error. New string added for this case (localizers, note).


1.1.6 (22-07-08)
  • Minified version of ajaxreg.js included in the pack. 1Kb savings :)


1.1.5 (01-07-08)
  • Fix for checking usernames, containing space character (only fractalizer_ajaxreg_ajax.php file is changed since 1.1.4)


1.1.4 (17-06-08)
  • Small fix to a bug with username checking on some forums.


1.1.3 (16-06-08)
  • A fix provided to prevent some browsers from refreshing page after clicking on Password Suggestor button


1.1.2 (16-06-08)
  • Another attempt to fix checking usernames containing non-latin chars. Should work this time ;)

  • Icons rearranged to prevent problems with custom styles


1.1.1 (11-06-08)
  • Template issue fixed (password suggestor is now correctly shown) (skariko)


1.1 (11-06-08)
  • New feature - password suggestor. New phrases were added for it also to product XML.

  • New images for password strength added to distro for easy customization.

  • Functionality of password strength calculation fixed (Quantnet.org, Arbit3r)

  • non-latin characters problem hopefully fixed (requires iconv PHP extension, autodetected). (ecihanuysal)

  • Border in IE is now correctly cleared (Jeordie015)

1.0.1 (10-06-08)
  • Text sanitizing added (AlexanderT).

  • Password strength images are now shown everywhere (HTML was broken) (TheInsaneManiac, uantnet.org, Lionel)

  • jQuery is now about 45% less in size (Milad)



Darkstarproject 06-09-2008 03:07 PM

*Installed* - Thanks for this!

logicuk 06-09-2008 03:08 PM

amazing thank you so much mate love this :D

FractalizeR 06-09-2008 03:12 PM

You are welcome!

NoPretender 06-09-2008 03:12 PM

Installed, thanks

dannykilla 06-09-2008 03:16 PM

where do I put fractalizer_ajaxreg.php ?

FractalizeR 06-09-2008 03:19 PM

Into forum root. Near search.php, newthread.php etc.

dannykilla 06-09-2008 03:22 PM

Awesome thanks, great hack

KURTZ 06-09-2008 03:24 PM

Quote:

Unpack archive into forum root (you may delete *.xml afterwards)
what .xml? :S

FractalizeR 06-09-2008 03:25 PM

product-fractalizer_ajaxreg.xml is not needed in forum root ;) It should be installed via Admin CP

iBlazee 06-09-2008 03:30 PM

thank you.

KURTZ 06-09-2008 03:42 PM

Quote:

Originally Posted by FractalizeR (Post 1545098)
product-fractalizer_ajaxreg.xml is not needed in forum root ;) It should be installed via Admin CP

ah, that's obvious mate ... :)

Davey 06-09-2008 03:50 PM

I'm not getting the password strength coming up visually (the stars).
I just upgraded to 3.7.1 (latest patch also).

Any tips on this? Thanks.

FractalizeR 06-09-2008 04:00 PM

They should come when any of password controls looses focus. Press Tab or click somewhere outside that control. My forum is running 3.7.1 just fine.
Please ensure this folder: \images\rating\ is not empty on your forum installation. You must have rating_0.gif, rating_1.gif, rating_2.gif, rating_3.gif, rating_4.gif, rating_5.gif files there.

Also you may be testing too short password (with zero strength :) ).

Legende 06-09-2008 04:17 PM

I've got the same problem with the stars images ;) Using custom skin


Nice mod, waiting for this since Ajax Reg disappeared

taxick 06-09-2008 05:01 PM

Nice - Thx for this nice hack!

AlexanderT 06-09-2008 05:21 PM

Nice hack. I only had a quick glance at the code. One note: It's recommended that you sanitize the $_POST variables before using them (following vB's guidelines):

$vbulletin->input->clean_array_gpc('r', array(
'field' => TYPE_NOHTML,
'value' => TYPE_NOHTML,
'value2' => TYPE_NOHTML,
));

And then use the appropriate sanitized variables (e.g. $vbulletin->GPC['field']).

Skavenger 06-09-2008 05:39 PM

edited.

FractalizeR 06-09-2008 05:54 PM

If you are using custom skin, just replace /images/rating filenames in ajaxreg.js with the images you like.

FractalizeR 06-09-2008 05:55 PM

2Skavenger:
Please execute REPAIR TABLE vb_post on your MySQL server. It is not caused by my mod. Just MySQL crashed on your server on some reason.

FractalizeR 06-09-2008 05:57 PM

2AlexanderT:
Thank you for suggestion. I will do as you say.

redraider 06-09-2008 06:01 PM

Quote:

Originally Posted by AlexanderT (Post 1545197)
Nice hack. I only had a quick glance at the code. One note: It's recommended that you sanitize the $_POST variables before using them (following vB's guidelines):

$vbulletin->input->clean_array_gpc('r', array(
'field' => TYPE_NOHTML,
'value' => TYPE_NOHTML,
'value2' => TYPE_NOHTML,
));

And then use the appropriate sanitized variables (e.g. $vbulletin->GPC['field']).

Great hack ... but I second the above advice. Could you please upgrade your code with the above?

Thanks

avsunforum 06-09-2008 06:02 PM

thanks

Legende 06-09-2008 06:05 PM

Quote:

Originally Posted by FractalizeR (Post 1545217)
If you are using custom skin, just replace /images/rating filenames in ajaxreg.js with the images you like.

Won't show up either? Seems something wrong with folder.

Greets

AdrianH 06-09-2008 06:22 PM

Quote:

Originally Posted by Legende (Post 1545225)
Won't show up either? Seems something wrong with folder.

Greets


Likewise , I tried this edit to give the correct path but the images do not show.

DJTREX 06-09-2008 07:15 PM

nice ...

tafreeh 06-09-2008 07:52 PM

Before installation i n gotta ask some question... i m already using a similar hack,
i think its this one: https://vborg.vbsupport.ru/showthread.php?t=144869

or here is the live demo for my hack: www.tafreehmela.com/register.php

so i want to know, if u want your hack, do i need to upgrade or uninstall my current one and install urs...

Thanks

TheInsaneManiac 06-09-2008 09:08 PM

FractalizeR, the rating images show up only in FireFox, but not in internet explorer. That may be why others do not see the ratings.

Doctor Death 06-09-2008 09:28 PM

Same issue here. Custom Skin, no stars. Good looking mod tho.

ecihanuysal 06-09-2008 10:51 PM

installed the mod, but i am using a turkish character system on my vB. so some letters became a problem at the registration. when i typed an existing user name, here your hack couldnt find any error about it. i tried it with the letter "ç".

some possible related letters(special characters) are: Ç,Ş,İ,Ü,Ğ,Ö,ü,ş,ç,ö,ğ,ı

so can we solve it?

Skavenger 06-09-2008 11:07 PM

Quote:

Originally Posted by FractalizeR (Post 1545218)
2Skavenger:
Please execute REPAIR TABLE vb_post on your MySQL server. It is not caused by my mod. Just MySQL crashed on your server on some reason.

Sorry, I posted in the wrong thread xD. I don't even use this mod =P

Milad 06-09-2008 11:21 PM

Can you include some a compressed version of the jquery file?

Quantnet 06-10-2008 12:20 AM

instead of showing the password strength images, I have this text
Password quality: <img src="images/rating/rating_2.gif />

Lionel 06-10-2008 02:33 AM

Quote:

Originally Posted by Quantnet.org (Post 1545487)
instead of showing the password strength images, I have this text
Password quality: <img src="images/rating/rating_2.gif />

try putting the missing quote <img src="images/rating/rating_2.gif" />

citroenar 06-10-2008 05:33 AM

Quote:

Originally Posted by ecihanuysal (Post 1545440)
installed the mod, but i am using a turkish character system on my vB. so some letters became a problem at the registration. when i typed an existing user name, here your hack couldnt find any error about it. i tried it with the letter "?".

some possible related letters(special characters) are: ?,Ş,İ,?,Ğ,?,?,ş,?,?,ğ,ı

so can we solve it?

The same problem is with Slovenian characters (??Č??č).

Doctor Death 06-10-2008 08:56 AM

Hopefully the author will post a small fix to the rating...

Barakat 06-10-2008 10:08 AM

great ,,,, installed

FractalizeR 06-10-2008 10:16 AM

1.0.1 is out. Reported bugs fixed.

FractalizeR 06-10-2008 10:18 AM

Quote:

Originally Posted by tafreeh (Post 1545316)
Before installation i n gotta ask some question... i m already using a similar hack,
i think its this one: https://vborg.vbsupport.ru/showthread.php?t=144869

or here is the live demo for my hack: www.tafreehmela.com/register.php

so i want to know, if u want your hack, do i need to upgrade or uninstall my current one and install urs...

Thanks

That hack was reported to contain security vulnerabilities. Author didn't provide any patch and that hack is now unavailable for download (moved to graveyard).

OcR Envy 06-10-2008 10:39 AM

I actually have my registration hacked so that it requires new members to match(confirm) their user name with a custom profile field, is there a way to have this hack do the ajax to make sure the two inputs match?


All times are GMT. The time now is 05:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01550 seconds
  • Memory Usage 1,818KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete