The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Small modification to register.php help request
Alrighty, here is my scenario, which I dont quite possess enough PHP knowledge to pull off :
I have set up a custom profile field to display within the postbit templates in only a certain set of subforums at our board, which I have given mods and admins the ability to edit. I found a way, via use of a DB Query (thanks eva2000 @ vb.com) to set all currently registered users so that the custom field contains a default text value. What I would like to do is set it so that the field is automatically set up at registration with the same default text value. Simple reasoning tells me that some PHP added to the register.php file could accomplish this, but in reality I am not skilled with PHP or MySQL, though I am not the least bit bothered by hacking and sometimes managing my own custom modifications. The custom profile field ID is 6 and as I said, I just want to insert a default plain text value at registration, unbeknownst to the registering user. The field is already hidden during registration, and is not editable by the user. Could a PHP guru give a guy a hand? |
#2
|
||||
|
||||
I don't know if this is the best way to do it, but it works on my test forum. In register.php find:
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
Thank you very much for the assistance. It works just how I wanted.
|
#4
|
||||
|
||||
Cool.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|