The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I want to update a hack that I used on vb3.0 that would save the old email address if a user other than usergroup 3 (awaiting email confirmation) changed it. The old hck used 2 queries in the profile, 1 to pull the email and one to update he profile field. I used a profile field to show the old emails but to admins only in the profile.
I'm not sure where to add it (the hook location) now and can I do it without 2 queries? |
#2
|
||||
|
||||
![]()
I think you can do it without any Query (untested)
userdata_presave PHP Code:
|
#3
|
||||
|
||||
![]()
Ok, I'll test this and get back to you. Thank you, sir.
![]() How would I go about adding a comma and a space between each email like the currently active users does? |
#4
|
|||
|
|||
![]()
Change:
PHP Code:
PHP Code:
|
#5
|
||||
|
||||
![]()
And then change
PHP Code:
PHP Code:
![]() |
#6
|
|||
|
|||
![]()
Lol, correct.
![]() |
#7
|
||||
|
||||
![]()
LMAO @ Kirby. You guys kill me! LOL
Thank you both, sirs. ![]() |
#8
|
||||
|
||||
![]()
4th Revision of 1 Code line (LOL):
PHP Code:
|
#9
|
||||
|
||||
![]()
Ok, that works now (after taking out one of these right parenthesis: ('fieldxx'))from the secoind variable) LOL
It is listing the emails like it should. But if you change the email back to what it once was, it relists that email again. Is that the way it should work? |
#10
|
||||
|
||||
![]()
Yes. If you want to avoid that, wrap it in if (strpos($this->fetch_field('fieldxx'), $this->fetch_field('email')) === false)
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|