The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
>>>>email user input first/last name?<<<<
I am trying to add in the logic to the file that emails users to be able to say hello "first/last name" kind of how it allows $username now.
I can see kinda why it does not work as that information is stored in the userfield table where the only variables that are allowed are from the user table. Could someone please advice which file would need to be changed and how to go about adding in the ability to search another vb table "userfield" to use variables from that table as well? For our particular situation it is $field20 and $field21 from the "userfield" table inside the main vb db. |
#2
|
|||
|
|||
Hi
what file are you talking about! ( the one that contains the email code) Are you using these! Code:
$bbuserinfo['field20']; $bbuserinfo['field21']; Sonia |
#3
|
||||
|
||||
Quote:
here's what i want to do: In vb admin there is the ability to email users in the users dropdown. We use that all the time, and it works great! Some variables are allowed automatically such as $username so I can make an email like hello $username this is a test email that would output the right username for that particular email. I want to extend it to grab information from other tables like the "userfield" table from vb to be able to input the firstname lastname into the email instead of the username. obviously if vb would have stored these custom fields in the same table it would be a cakewalk and allready built in, but since the data i want resides in another table entirelly it's not built in..... I hope this makes more sense and thanks for the help. When I tried your idea it just output the $bbuserinfo['field20'] in the email that was sent and made no attempt to parse that into the field20 which is in our setup the first name of the member. I am guessing that the file I have to modify is in /admincp/email.php in order to give it the logic to look at another table.. just not sure is all, nor what to change |
#4
|
||||
|
||||
Still no go on this project, I've torn through the file but have not yet been able to figure out how to give it the logic to work on 2 sep tables when dealing with trying to bring in the other custom fields.... can anyone help with this?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|