The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#21
|
||||
|
||||
I reverted the register.php file and made the new changes.
Then I changed the code in the error_moderateuser template, as follows. PHP Code:
[color=sky blue] ================== field 5 = field 6 = username = Unregistered email = ================== field 5 = field 6 = username = test email = ================== field 5 = field 6 = username = test email = my-email@my-domain.com ================== field 5 = Jane Doe field 6 = 123 username = test email = my-email@my-domain.com ================== [/color] So, the $userdata[] array definitely works. Quick question. In post # 9, you gave me a code change that made the $bbuserinfo[] array work correctly. Why didn't you want me to stick with that? Is the $userdata[] array better or more secure than the $bbuserinfo[] array? aranoid: Thanks again! |
#22
|
||||
|
||||
Yes.... bbuserinfo only works when you're logged in, but the new array $userdata[] always works when error_moderateuser is displayed.
|
#23
|
||||
|
||||
Hi Julian ,
Do you think the variables in the $userdata[] array can be passed into html form variables? I'd like to add a FormMail script to the error_moderateuser template. The idea is that, when the user loads that template into their browser, an email containing that user's data gets sent to their group leader. BTW, in case you need to know, group leaders don't have moderator access. They're just people who help keep thread discussions on track, for their group. Thanks again for all your help! And I hope you're enjoying the holiday season. |
#24
|
||||
|
||||
you can use the $userdata array anywhere in error_moderateuser. I don't know how you're planning to use formmail to send the email to the group leader, but I'd rather use PHP to send the email.
|
#25
|
||||
|
||||
Well, I would have the FormMail script uploaded to my cgi bin. And then there would be an HTML form on error_moderateuser, which would hopefully pass the variable data to the script.
Would that work? Do I have to do anything special to make the HTML form recognize the $userdata array as variables? Thanks. |
#26
|
||||
|
||||
OK, now I get it.. but AFAIK, you need that the user press a submit button to send the information to the FormMail script.
It would be more easy if you use PHP to send the email. But if you still want to use the FormMail method, you can use those variables in error_moderateuser anywhere you want |
#27
|
||||
|
||||
Yeah, I would rather use the HTML form --- with a submit button, thank you! --- than do more php coding. At least I feel somewhat familiar with HTML, but I know nothing about php. When I have some time, I'll try this out and I'll let you know what happened.
|
#28
|
||||
|
||||
Hiya Julian,
Just wanted to follow up and let you know how it went. Everything is working great. I'm using an html form on error_moderateuser to collect the variable data, and I'm using the FormMail script to process the email. By the way, I'm using the FormMail script from the NMS Project --- http://nms-cgi.sourceforge.net/ --- so it's more secure. Thanks again for all your help! Enjoy the holidays! |
#29
|
||||
|
||||
I'm glad to hear that!
Happy holidays too! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|