vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
New vBSEO Discount Level for Network Builders Meet vBSEO Team in New York (Nov. 3rd & 4th) vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

Reliable Variables in (registration_activate_process) hook

This is a discussion on Reliable Variables in (registration_activate_process) hook within the Off-Topic & Chit Chat forums, part of the Focus on Members category; I have an open post over a vBulletin.org about this one but was hoping I could run this past you ...

Go Back   vBulletin SEO Forums > Focus on Members > Off-Topic & Chit Chat

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-11-2008, 08:12 PM
Citricguy's Avatar
Senior Member
 
Real Name: Josh
Join Date: Nov 2006
Location: Maui, Hawaii
Posts: 143
Blog Entries: 7
Reliable Variables in (registration_activate_process) hook

I have an open post over a vBulletin.org about this one but was hoping I could run this past you guys ( registration_activate_process variables problem - vBulletin.org Forum )

The long and short of it is that I'm trying to create a plugin that runs at the registration_activate_process hook. (I'm assuming this is the best place to run "post-confirmed email/useraccount" code)

So once the user clicks the "confirm my account" link in their confirmation email, the $vbulletin->userinfo[username]; variable during the run at registration_activate_process is set to "Unregistered" instead of the actual username like the other 60% of the time.

Is there a way I can always, 100% of the time, pull the username of the user that just clicked the "email confirmation link" successfully? Another hook location, or variable?

I hope that made sense... sometimes I think I have a harder time wording a question that actually working on it..
__________________
Blog | Stumble | LinkedIn
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-11-2008, 08:43 PM
Michael Biddle's Avatar
vBSEO Staff
vBSEO Total Customer Support
 
Real Name: Michael Biddle
Join Date: Jan 2007
Location: Southern California
Posts: 2,896
Blog Entries: 5
What if you try
PHP Code:
$vbulletin->GPC['username'
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07-11-2008, 08:55 PM
Citricguy's Avatar
Senior Member
 
Real Name: Josh
Join Date: Nov 2006
Location: Maui, Hawaii
Posts: 143
Blog Entries: 7
The variables were empty when I used:
PHP Code:
$vbulletin->GPC['username'
But I think I may have pinpointed the problem (my head is so fried... lol)

So when I have cookies disabled during registration I get:

PHP Code:
$vbulletin->userinfo[username] = Unregistered 
And when cookies are enabled during registration I get:

PHP Code:
$vbulletin->userinfo[username] = Correct User Name 
tested that theory 4 times now and it seems to be accurate.

Any ideas for always being able to collect data from $vbulletin->userinfo[username] even if cookies are disabled on the userside during the registration_activate_process hook run?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 07-11-2008, 09:20 PM
Michael Biddle's Avatar
vBSEO Staff
vBSEO Total Customer Support
 
Real Name: Michael Biddle
Join Date: Jan 2007
Location: Southern California
Posts: 2,896
Blog Entries: 5
Ok try:
PHP Code:
$userinfo['username'
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 07-11-2008, 09:26 PM
Citricguy's Avatar
Senior Member
 
Real Name: Josh
Join Date: Nov 2006
Location: Maui, Hawaii
Posts: 143
Blog Entries: 7
That got it!! Thank you Michael!

So what is the difference between $vbulletin->userinfo[username]; and $userinfo['username']; ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 07-11-2008, 09:27 PM
Michael Biddle's Avatar
vBSEO Staff
vBSEO Total Customer Support
 
Real Name: Michael Biddle
Join Date: Jan 2007
Location: Southern California
Posts: 2,896
Blog Entries: 5
The second was in scope.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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
archive_global Hook used for PHP 5 as Fast CGI redlabour Feature Requests 2 05-17-2007 01:07 PM
how do you find a reliable vb coder? Rodney Off-Topic & Chit Chat 8 04-23-2007 09:11 AM
I paid, hook me up.. and.. rex_b Pre-Sales Questions 3 11-07-2005 03:34 PM


All times are GMT -4. The time now is 10:38 PM.


Powered by vBulletin Version 3.8.0 Beta 3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.