The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Plugin to capitalize username on registration
Hi all:
I'm after a plugin that capitalizes the username on registration, as I require name and last name. This is what I have: Code:
$username = ucwords(strtolower($this->fetch_field('username'))); $username_raw = $username; vB_Template::preRegister('register',array('username_raw' => $username_raw)); but it does not work. I would be very grateful for some help |
#2
|
|||
|
|||
What hook location are you using (or where did you put that code)?
|
#3
|
|||
|
|||
userdata_presave
I used the first two lines succesfully with v3.6, though it stopped working with v3.7 |
#4
|
||||
|
||||
Why not (on the same hook):
PHP Code:
|
#5
|
|||
|
|||
Thanks for the help, though it does not seem to have any effect (does not give an error either).
|
#6
|
|||
|
|||
Quote:
That'll save me from having to edit a php file on every update. Thanks a bunch, Sarteck |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|