Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   06-11-2008, 10:12 PM
Send a message via Yahoo to veenuisthebest veenuisthebest will become famous soon enough Join Date: Mar 2008 Posts: 118 Location: India
iTrader: (2)
just passin' by....hi to all...
How do I implement human verification on my custom page


Hii..

I was looking for how to implement vB's default human verification on my custom page.
Then I found this in one of the pages of vB.

PHP Code:
//     human verification
        
require_once(DIR '/includes/class_humanverify.php');
        
$verify =& vB_HumanVerify::fetch_library($vbulletin);
        
$human_verify $verify->output_token(); 
and then simply adding $human_verify at the desired location in the template. This works just perfect BUT the above process just displays the human_verify and does not verify it. It bypasses it simply.

How do I check for verification and redirect to an error page on submitting of form ??
Quote   |  



#2   06-11-2008, 11:05 PM
Send a message via Yahoo to veenuisthebest veenuisthebest will become famous soon enough Join Date: Mar 2008 Posts: 118 Location: India
iTrader: (2)
just passin' by....hi to all...
Re: How do I implement human verification on my custom page


have already checked it, there is just vbulletin_md5.js (that does some password thing) and vbulletin_ajax_namesugg.js (definitely not to do anything with human_verify)

There is just one variable in register template called $human_verify. i don't understand how verification is being done.

btw I don't think it could be a JS issue, coz captcha has nothing to do on client side, but I could be wrong !!
Quote   |  



#3   06-12-2008, 02:17 AM
bdude is a jewel in the roughbdude is a jewel in the rough Join Date: Aug 2007 Posts: 623 Location: Tasmania, Australia
iTrader: (0)
Re: How do I implement human verification on my custom page


You need to use the verify_token function, try reading includes/class_humanverify.php - it can give you more help than I'll ever be able too.
--------------------
Bryce R [[ BLOG ]]
The Blogging Café - Blogging Forum
Do you run a forum? Check out my forum owners blog.
Quote   |  



#4   06-12-2008, 09:45 AM
Send a message via Yahoo to veenuisthebest veenuisthebest will become famous soon enough Join Date: Mar 2008 Posts: 118 Location: India
iTrader: (2)
just passin' by....hi to all...
Re: How do I implement human verification on my custom page


that function is already defined under class_humanverify.php and I have included that file.

Actually I found my mistake, I missed this verification line at the beginning of form submission process

if (!$verify->verify_token($vbulletin->GPC['humanverify']))
{
standard_error(fetch_error($verify->fetch_error()));
}


But now again one problem has occured. Now even the correct entered captcha is giving error saying "Incorrect String entered."

There must be some minor mistake I am making..

P.S. There is some problem in posting CODES

Last edited by veenuisthebest; 06-12-2008 at 09:48 AM..
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Tags
custom, human, page, verification

Thread Tools
Display Modes

 
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom page help megabyte366 vBulletin Questions 2 01-01-2008 08:35 AM
Can anyone recommend an easy to implement banner rotation hack? Reboot vBulletin Questions 7 12-20-2007 05:20 AM
Image Verfication Vs 'Human' Question Mod GFin vBulletin Questions 1 04-21-2007 10:37 AM
best way to implement this? harmor vBulletin Questions 0 11-20-2006 03:40 AM


All times are GMT -6. The time now is 07:00 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions
vBulletin Skins, Styles, Templates, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory