The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi
I have created a 'User Profile Field' as a Single-Selection Menu. Is it possible to get the option list from a query/table and not as an static list in the 'User Profile Field Manager'? I am using ver. 3.6.8. |
|
#2
|
|||
|
|||
|
I'd like to know how to do this as well, anybody know the answer? I'm using 3.8.3.
|
|
#3
|
|||
|
|||
|
I'm interested in this as well. I'm somewhat savy in PHP but I'm not sure which file or template I would need to add the select statement to to populate the dropdown on the registration page.
For reference, I saw the code below posted elsewhere. Code:
// Get Members
$members = $db->query_read("
SELECT user.email, user.userid, user.username " . iif((!empty($vbulletin->options['c_news_letter_field'])),",userfield." . $vbulletin->options['c_news_letter_field'] . "") . "
FROM " . TABLE_PREFIX . "user AS user
" . iif((!empty($vbulletin->options['c_news_letter_field'])),"LEFT JOIN " . TABLE_PREFIX . "userfield AS userfield ON (userfield.userid = user.userid)") . "
WHERE user.userid >= " . $vbulletin->GPC['startat'] . "
" . iif((!empty($vbulletin->options['c_news_letter_field']))," AND (userfield." . $vbulletin->options[c_news_letter_field] . " = '" . $vbulletin->options[c_news_letter_field_yes] . "' OR userfield." . $vbulletin->options[c_news_letter_field] . " = '')") . "
" . iif((!empty($vbulletin->GPC['usergroups'])), "AND user.usergroupid IN ('" . implode("','",$c_news_letter_filter_usergroups) . "')") . "
ORDER BY user.userid ASC
LIMIT " . $vbulletin->GPC['perpage']
);
while ($member = $db->fetch_array($members))
Code:
<div class="desc">[php]<br />
$myvar = 'Hello World!';<br />
for ($<i></i>i = 0; \$i < 10; \$i++)<br />
{<br />
echo $myvar . "\n";<br />
}<br />
[ /php]</div>
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|