The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
[Solved] print_select_row() question
im trying to use the print_select_row function, but I don't seem to be doing it correctly.
my understanding from the syntax, is that its basically the same as all other input commands, with the acception of the array parameter, and that seems to be my biggest problem. when using this command, how would I properly pass the array to the function from the results of a query? I've tried Code:
$getids = $DB_site->query("SELECT siteid FROM " . TABLE_PREFIX . "sites"); $idarray = $DB_site->fetch_array($getids); print_select_row("Siteid", 'siteid', $idarray); Code:
$getids = $DB_site->query("SELECT siteid FROM " . TABLE_PREFIX . "sites"); print_select_row("Siteid", 'siteid', $getids); Anyone have any ideas on this one? |
#2
|
||||
|
||||
still no luck getting this to work. I can do it with a static array, but not one from a query.
If anyone has any idea, please share them |
#3
|
||||
|
||||
Well, after SEVERAL hours of trying to figure it out, I FINALLY got it!
In case anyone else cares, this is the code from calandarpermission.php that will allow you to generate an array which can be passed as a variable in print_select_row(title, $name, $array, $selected = '', $htmlise = 0, $size = 0, $multiple = false) on an unmodified calendarpermission.php, youll find this around line 236 PHP Code:
Wish someone woulda told me this before I spent 1/2 the weekend figuring it out ..but I guess I learned something ... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|