Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 08-23-2012, 12:39 AM
eJM's Avatar
eJM eJM is offline
 
Join Date: Sep 2004
Location: teh Ether
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know how to help with the reCaptcha, but I wonder if the Q&A would be easier to implement. That's what I use during my registration process now and it'd be nice if that would work in this. I appreciate you working on this.

Best R'gards,

Jim
Reply With Quote
  #12  
Old 08-25-2012, 03:47 AM
doob doob is offline
 
Join Date: Dec 2009
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks like Eric pretty much solved it, but I don't know what version he's on. We're on 3.8.2

I've got the standard error looking good, but inserting the $human_verify hook doesn't do a thing. Its like that hook needs to be activated for this template, but I would have figured it was global. At least I would have thought that even if the recaptcha widget itself doesn't display, then the rest of the human_verify template would, for example the rest of the fieldset's descriptive text.

Right now I'm trying to figure out where exactly the $human_verify plugin is defined so I can see why it might not be working for use with other templates.
Reply With Quote
  #13  
Old 08-25-2012, 04:55 AM
eJM's Avatar
eJM eJM is offline
 
Join Date: Sep 2004
Location: teh Ether
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As I mentioned in my post, #3 above, I got everything working except the password verify, email verify and the reCaptcha/Q&A. Those 3 things killed it. And my code was 100% valid, no HTML or CSS errors.

So, are you saying you or Eric has password and email verifies working? Eric hasn't even replied to this thread for over 2 years. No one has supplied any actual code, except mine, which doesn't work. Unless I'm missing something.

Thanks,

Jim
Reply With Quote
  #14  
Old 08-25-2012, 05:24 AM
doob doob is offline
 
Join Date: Dec 2009
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I stripped the normal registration page (/register.php) down to just username, password, email and human verifcation and also removed the register rules page in favor of just doing what Facebook does which is has a line of text next to the submit button that states that by registering you have read and agree to the TOS.

I dumped out on email and password confirmation in favor of just a single field with no redundancy check so that's a null issue. I suppose some folks will enter a bogus email or password by accident, but again, looking at Facebooks registration model they only have a single field to make it quick to register.

With that done, the normal registration page works as intended. I've removed every other option from the page since that crap can all be set up later in the user control panel (don't get me started on redesigning that mess).

For the standard error, I'm basically inserting what's left of the register template, which isn't very much, and everything works, except the Human Verification cell isn't loading.

If I understand correctly, simply placing $human_verify should insert a fieldset into whatever template you place that hook into, yet its not.

At the moment I'm trying to find out where that plugin is defined or otherwise figure out why its not doing anything in the template. I'm guessing its not working because whatever php file is actually defining that plugin is not being included via the standard error template.

I have no idea about Eric or that code, but Eric's screenshot sure show's human verifcation working on a standard error page.

You might try removing the email/password checks and see if that solves your first problems. Hopefully Lynn or someone else can help education me/us on why $human_verify is doing nothing when used on the standard error page as that's the only stumbling block, at least for me, on finishing this up.

--------------- Added [DATE]1345875988[/DATE] at [TIME]1345875988[/TIME] ---------------

FYI, I also removed the login options from the Standard_Error template since users can login at the top of the page.
Reply With Quote
  #15  
Old 08-25-2012, 06:00 AM
eJM's Avatar
eJM eJM is offline
 
Join Date: Sep 2004
Location: teh Ether
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My screen shot (post 3 above) shows the Q&A working too, but it doesn't. I wish he would have graced us with the code he used to get the $human_verify working, if in fact he did.

Solving my problems is more than just removing the password/email verifications. The Q&A must work in order for this to be a viable mod. I don't understand PHP enough to do this on my own.

Jim
Reply With Quote
  #16  
Old 08-25-2012, 06:28 AM
doob doob is offline
 
Join Date: Dec 2009
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What's interesting is that on my standard error page, as its coded right now with the non-working $human_verify, after clicking the submit button the page refreshes to the actual register.php page.

So with that setup the user then just has to re-enter the password and the recaptcha (where its working) and click submit again.

I think I'll figure out how to get recaptcha loading up, even if I need to just do my own plugin for it. I'll let you know when/if I get it sorted.
Reply With Quote
  #17  
Old 08-25-2012, 06:59 AM
eJM's Avatar
eJM eJM is offline
 
Join Date: Sep 2004
Location: teh Ether
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I appreciate you making an effort on this.

Jim
Reply With Quote
  #18  
Old 08-25-2012, 09:10 AM
doob doob is offline
 
Join Date: Dec 2009
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Success!

Ok, got recaptcha (and also question/answer if that's your preference) working and displaying on the standard error template.

The trick was to create a new plugin using the code from the following thread. I put the plugin on the error_generic hook.

https://vborg.vbsupport.ru/showthread.php?t=182435

PHP Code:
 require_once(DIR '/includes/class_humanverify.php');
$verify =& vB_HumanVerify::fetch_library($vbulletin);
$human_verify $verify->output_token(); 
Also the sections of register.php that dealt with password and email confirmation (not the md5 check though) were commented out. In 3.8.2's register.php :
commented 297
//edited 304-306, commented 295, 310-314, line 587

---
EJM, I don't have the time to do an academic test to see if my hack would work with the password and emails confirmation fields, but what I'd say is try editing the register template, removing those redundancies, create the plugin as I've posted in this thread, paste the stripped down register template into the standard_error template and get that working. Once you've got that working, as I've done, then you can easily work backwords adding back in the redundancies to see if it works or not and go from there.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:59 AM.


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.04062 seconds
  • Memory Usage 2,258KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete