6
Hey there,
Does anyone know the answer to this one: when you want to
send a PM, you can select the user from a dropdown menu.
When there are a lot of users this gets pretty annoying.
Is there a way to just type the name in order to send it?
I messed around -a bit- already and when changed to a
textinput field I am able to send to a 'uid' - so when
I type the membership# it delivers. The big question is:
how to convert the value 'uname' which users will have
to type to a 'uid' to send it.
What I have is:
echo "<form action='pmlite.php' method='post' name='coolsus'>n";
echo "<table width='300' align='center' class='outer'><tr><td class='head' width='25%'>"._PM_TO."</td>";
if ( $reply == 1 ) {
echo "<td class='even'><input type='hidden' name='to_userid' value='".$pm->getVar("from_userid")."' />".$pm_uname."</td>";
} elseif ( $send2 == 1 ) {
$to_username = XoopsUser::getUnameFromId($to_userid);
echo "<td class='even'><input type='hidden' name='to_userid' value='".$to_userid."' />".$to_username."</td>";
} else {
echo "<td class='even'><input type='text' name='to_userid' value='' /></td>";
}