The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Entering a value in profile field across ALL users?
Hello,
I've just recently setup a new user profile field on my forum called 'Points'. This field is not editable by any registered user and isn't required on registration, but has a default value on registration. The problem is, for all current users there is no data in the field and so it looks like this; It's fine however when data is in the field as shown below; So basically I'm just trying to find a way of entering the value of '0' across ALL registered users so that this field looks fine for everyone on the forum. Thanks for any help! |
#2
|
||||
|
||||
Run this query
UPDATE userfield SET fieldX = 0 where X is that field number. |
#3
|
|||
|
|||
Thanks for the help mokujin.
Where do I need to run that query? I'm assuming its on the database, so I've tried it within phpMyAdmin but it says I need to 'choose at least one column to display'. I'm not exactly sure what I need to put in here; |
#4
|
||||
|
||||
in Phpmyadmin go to the database where your vbulletin is installed, then click to table "userfield"
then run that sql PHP Code:
|
#5
|
|||
|
|||
Thanks a lot mokujin. That's worked brilliantly.
Great help, cheers! |
#6
|
|||
|
|||
Update on this;
I just tried running this sql again and now I get an error message for some reason. Why would it work fine before and not now? Nothing has been changed. Any ideas? Thanks in advance for any help. --------------- Added [DATE]1375561645[/DATE] at [TIME]1375561645[/TIME] --------------- Managed to fix it for myself. It was because the fields already had the '0' data in them from the query I ran before. (silly me) Therefore it needed a WHERE in the sql. e.g. UPDATE userfield SET fieldX = '100' WHERE fieldX = '0' [hope this helps anyone else who's as silly as me] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|