The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
useradmin_edit_column1
I was wondeirng if this was possible.
I have values in the admincp, seprated using line breaks (or by pressing enter) e.g. Monday Tuesday in the useradmin_edit_column1 plugin I have this code PHP Code:
e.g.. I have the day "Monday" in my $user[days] field(contains the actual value "Monday"), but the above doesnt select it, it only lists all the days. thanks |
#2
|
||||
|
||||
The value needs to be 0-6
|
#3
|
|||
|
|||
Quote:
edit: if you mean in terms of days, it would be 0 to 6. But I don't have the integer value stored in the user[days] but the actual string "Monday", rather than 0 (for monday). |
#4
|
|||
|
|||
It will use the array keys as the value to store:
0->Monday 1->Tuesday etc.. The key gets stored, to display, you would need to take the key, and lookup the value in the array. |
#5
|
|||
|
|||
Quote:
when you select a value in a dropdown menu, the actual value is stored in the related userfield. e.g. for the flags hack, the actual country name is stored rather than the key for it. I hope you get what I mean? Edit: ok, I got ot to work by adding a for_each_loop, now its time to make it save |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|