![]() |
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 |
The value needs to be 0-6
|
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). |
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. |
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 :) |
All times are GMT. The time now is 03:26 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|