The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
What exactly are you trying to do? Why are you dumping the username you just fetched?
|
#12
|
|||
|
|||
Im trying to get the members name in the "subject" line, however as they are not logged in when they verify their email address, its coming up as "Hello unregistered".
Im trying to grab their username by the email activation id thats stored in the database, and then use that to place their username in the subject line. |
#13
|
||||
|
||||
It looks like you are trying to send an email upon successful activation? If so, why not just use the built-in vBulletin feature to do so?
|
#14
|
|||
|
|||
Ive created a mod to create a thread to welcome the member when the register. It works fine when email verficiation is switched off, however the problem occurs when its switched on.
It will create the thread, but instead of saying "Welcome Username" it says "Welcome Unregistered" This is because when you click on the email verification link it dosent sign you into the forum. The only way around this would be to check the email verification ID thats assisgned to the userID and then get the members username from that - however thats where im really struggling at the moment. Hope that makes sense! |
#15
|
||||
|
||||
Have you tried using other hook locations? Maybe the one you are picking is not the best one for this.
|
#16
|
|||
|
|||
Quote:
Thanks for your reply./ The only hook location I could find to do this was register_activate_process . |
#17
|
||||
|
||||
And exactly what do you have in the plugin located at that hook location?
|
#18
|
|||
|
|||
Hi Lynne,
This is what ive currently got at the moment. Ive been trying to work with the SQL queries in this thread, but no luck. PHP Code:
|
#19
|
||||
|
||||
First off, I'm not sure if you need to include global.php again. Does that cause you any problems at all? I don't even see where you are putting the queries from this thread into that plugin. What is the result of your plugin at this point?
Also, have you looked at register.php? It looks to me like they delete the activation id a few lines above that hook. |
#20
|
|||
|
|||
Hi Lynne,
I tried replacing PHP Code:
PHP Code:
Quote:
Regarding including global.php again, would I just place "require_once('./global.php');" above the sql statement? |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|