Quote:
Originally Posted by munsonfan15
I was looking to install this for members to rate classes given by other members. Before I do this I was making sure it is capable of what I want to do.
I want to be able to have a link in a certain user groups postbit where when you click that link and persons user name (the one that made that post) will become one of the variable answers. When the peson fills out the form the title of the thread that is created will be of that members name (the variable).
Example:
Im in User A's post - I click on the link, fill out the form and when the thread is created the title of the form is 'User A etec etc etc'
Can this be done and if so how?
**** I want to change this - Actually I will have the link go to a form but i would like one of the variables by a drop down list of all the members in a first and seconday user group.
|
Yes, it is possible with Easy Forms
For dropdown list of members, create a custom question with following php code:
PHP Code:
$answer .= '<select name="'.$formbit[id].'">';
$members = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "user
WHERE usergroupid = 2
ORDER BY username ASC");
while($row = $db->fetch_array($members)) {
$answer .= '<option value="'.$row[username].'"';
if ($row[username] == $thisanswer) {
$answer .= 'selected="selected"';
}
$answer .= '>'.$row[username].'</option>';
}
$answer .= '</select>';
Change 2 to the desired usergroupid