vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Modify the standard error vBulletin Message (https://vborg.vbsupport.ru/showthread.php?t=248099)

eJM 08-23-2012 12:39 AM

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

doob 08-25-2012 03:47 AM

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.

eJM 08-25-2012 04:55 AM

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

doob 08-25-2012 05:24 AM

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.

eJM 08-25-2012 06:00 AM

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

doob 08-25-2012 06:28 AM

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.

eJM 08-25-2012 06:59 AM

I appreciate you making an effort on this.

Jim

doob 08-25-2012 09:10 AM

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.


All times are GMT. The time now is 10:18 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.01038 seconds
  • Memory Usage 1,741KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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