vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - ajaxReg - Ajax Registration, with instant field checking (https://vborg.vbsupport.ru/showthread.php?t=144869)

Coders Shack 04-28-2007 03:20 PM

hmm, the only reason that would happen is if the ajax.php is blocked if you have that option set. I'm not to sure about how vb works differently when enabling forced registration.

FreshFroot 04-28-2007 08:08 PM

well I don't normally use forced registering.. I guess I hadn't changed it for a long time.. It works now, but I just thought I'd point that out... for people who have forced registeration and might encounter the issue too.

Mr Chad 04-28-2007 08:34 PM

Quote:

Originally Posted by FreshFroot (Post 1237227)
well I don't normally use forced registering.. I guess I hadn't changed it for a long time.. It works now, but I just thought I'd point that out... for people who have forced registeration and might encounter the issue too.

This might explains the other peoples issues. But what is happening is that the user is accessing the ajax.php when they click out of the username box and because their not registered its rejecting them. Which would never work unless theres a way to give the guests permission to the ajax file.

FreshFroot 04-29-2007 12:26 AM

So in other words.. in order to use this hack you have to allow guests to view forum...

I guess unless it;s fixed.. mabye CS should post it in his 1st post, so people who install know ahead of time...

Coders Shack 04-29-2007 02:31 AM

Quote:

Originally Posted by FreshFroot (Post 1237326)
So in other words.. in order to use this hack you have to allow guests to view forum...

I guess unless it;s fixed.. mabye CS should post it in his 1st post, so people who install know ahead of time...

well the issue is that the ajax.php uses the global.php and because this plug-in resides in the ajax.php you would need the unregistered user group to be set to Can View Forum. It is possible for me to make a quick fix for those users that really don't want to set the unregistered usergroup Can View Forum to YES.

Coders Shack 04-29-2007 03:00 AM

1 Attachment(s)
Quote:

Originally Posted by FreshFroot (Post 1237326)
So in other words.. in order to use this hack you have to allow guests to view forum...

I guess unless it;s fixed.. mabye CS should post it in his 1st post, so people who install know ahead of time...

ok after looking into it. It seems that even if you just include the global.php and have it shut off for unregistered people it wont work. So i first tried making the file pass off as a registration php because it somehow will bypass the prompt, ended up finding out that if you pass a do in the registration page you will get the same error. example: http://yoursite.com/forum/register.php?do=sdfsd (if you have it shut off for unregistered)

So i changed it from DO to a different name and created a different php file instead of a plugin.

So what you will have to do to get this to work on forums that have it where unregistered users cant view their forum is:

1 ) Download the attached files
2 ) Replace your register.js with this one (forum/clientscript/register.js)
3 ) place the register_ajax.php in your forum root (forum/register_ajax.php)
4 ) Disable or Delete the CheckUsername plugin.


also i have not totally tested this fix, so please respond with your results.

odie3 04-29-2007 12:03 PM

Cool MOD - thank you! Was rather easy to install!

Streicher 05-02-2007 07:03 PM

Quote:

Originally Posted by Coders Shack (Post 1236660)
no, its because of your regex I'm pretty sure.

Instead of this:
Code:

^[A-Z0-9 ]+$
Try this:
Code:

^[A-Za-z0-9]+$

Hmm, ok this works, but before with
Code:

^[A-Z0-9 ]+$
the registration of a name like Jeff was possible. So who is wrong here. A bug in vB 3.6.5?

Coders Shack 05-02-2007 08:04 PM

Quote:

Originally Posted by Streicher (Post 1239989)
Hmm, ok this works, but before with
Code:

^[A-Z0-9 ]+$
the registration of a name like Jeff was possible. So who is wrong here. A bug in vB 3.6.5?

no i think its the javascript regex vs the php one.

jw00dy 05-03-2007 09:49 PM

I read most of the pages, but didn't see any mention of support with NoSpam

I would love to use this if it will work with NoSpam, but if not, I'd rather have no spam users :)


All times are GMT. The time now is 04:31 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.01660 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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