The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
register.php
Please forgive me if this post is in the wrong place. Mods, please move to the appropriate forum. Thanks!
I want to display these variables in the error_moderateuser template. - custom user field # 5 - custom user field # 6 - the user's email address By doing a lot of searching and reading, I now understand that I must edit one of my php files. Specifically, I need to change the register.php file, according to the "vBulletin 2.0 Template Reference" in the members area. Question is... exactly what changes do I make to register.php? Thanks for any help! |
#2
|
||||
|
||||
Just clarifying... the only change I need to make to register.php is just so I can access those particular variables from within the error_moderateuser template. I'm guessing this is something really simple, like from a "php 101" class... LOL... but I'm truly a newbie. So, thanks for any help!
|
#3
|
||||
|
||||
You can edit the template and use variables like:
$bbuserinfo[email] for the email address. $bbuserinfo[field5] for the field 5 $bbuserinfo[field6] for the field 6. Is that what you want? |
#4
|
||||
|
||||
Julian, thanks for your response! I tried putting the following code into the error_moderateuser template, to see what would happen...
field 5 = $bbuserinfo[field5] < br> field 6 = $bbuserinfo[field6] < br> email = $bbuserinfo[email] < br> But, it didn't work. The following output was displayed on the screen... field 5 = field 6 = email = The variables didn't work. Anyone know how to hack the register.php file, in order to make those variables accessible in the error_moderateuser template? Thanks again for any help! |
#5
|
||||
|
||||
Oh. Now I understand.
It doesn't work with the above variables because those variables aren't created when the user signup. Instead, you must use the variables submitted by the registration form... Like this Field 5 = $field5 Field 6 = $field6 email = $email Hope this helps. |
#6
|
||||
|
||||
Nope, still didn't work.
Here's the code I put into the error_moderateuser template... Field 5 = $field5 < br> Field 6 = $field6 < br> email = $email < br> And, I'm attaching a photo of what the output looks like. Please keep the ideas coming, though! Thanks! |
#7
|
||||
|
||||
OK. Let's take a look:
Do you have email verification activated? |
#8
|
||||
|
||||
Sorry, I was out doing chores, and I have to run out again. Do you mean you want to try registering on my board? It's a private board, so I can't post the URL.
Can you try putting that code in your error_moderateuser template? Or is there another way I can help you troubleshoot? |
#9
|
||||
|
||||
No, I don't want to register on your board.
The problem is that the solution above won't work if you have email verification activated. To get the custom profile fields in error_moderateuser, you will have to hack register.php a little. Try this: Find this: PHP Code:
PHP Code:
Tell me if it works. |
#10
|
||||
|
||||
Here's the new code in the register.php file.
PHP Code:
PHP Code:
[color=sky blue] field 5 = Jane Doe field 6 = 123 username = test email = my-email-address@my-domain.com ================== field 5 = field 6 = email = ================== field 5 = field 6 = email = my-email-address@my-domain.com ================== Thank you for registering, test. [/color] In summary, these variables worked.
As long as the data is being displayed correctly, does it matter which variables I use? BTW, thanks for all your help. It's such a great feeling to be making progress! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|