The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Force first Letter to be Capitilized in userfields?
Hi there,
Wondering if there is anyway to make it so that when a user inputs their Location the first letter is captilized? E.g. Location: Sydney instead of sydney or SYDNEY |
#2
|
||||
|
||||
I'm not COMPLETELY sure, since I don't do vB3 anymore, and so I can't test.... But you could try this on the profile_updateprofile hook:
PHP Code:
I've not tested this (I don't have vB3, and though it should (in theory) also work on vB4, I'm just too lazy to try it out. XP |
#3
|
|||
|
|||
Thanks mate I went to go try it but I cannot find 'profile_updateprofile' under Manage Plugs -> Plug Manager
/n00b |
#4
|
||||
|
||||
Serious? I thought it would be there... It's on line 1,885 of the vB 3.8.7 profile.php page, as ($hook = vBulletinHook::fetch_hook('profile_updateprofile') ) ? eval($hook) : false;
Sorry I couldn't have been more help. (Just to be sure we're on the same page, you are choosing to "Add New Plugin" and choosing the profile_updateprofile from the drop-down menu, ya?) |
#5
|
|||
|
|||
Ahh no we were not on the same page, thanks mate I will try this shortly I must head out now.
Thanks so much! |
#6
|
||||
|
||||
Don't thank me until it actually works. XD
Also not that it will not change whatever you have in there already, if it does work--this will only work when someone enters new data. (If it works at all.) |
#7
|
|||
|
|||
Tried it now and it doesn't seem to work, bummer!
When the plugin is activated it wont let the user proceed to save the data because it says something else in another field is invalid even though fieldid is correct in the hook it messes with my other custom fields (drop down). Ahh well! |
#8
|
||||
|
||||
There's probably just something wrong with my coding. Hopefully someone else looking at this will be able to point it out, but I just don't know right now. If I'm bored later on, I'll give it a try on my own forum.
EDIT: Even though I'm vB4, it'll probably work the same. That section of the code seems to be the same for both 3.8.7 and 4.1.4. |
#9
|
|||
|
|||
You're a good man Starteck, thanks again for your effort.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|