PDA

View Full Version : Force a user to choose a message icon?


Mr. Peepers
08-04-2003, 10:13 PM
I'd like to force users to select a message icon when creating a new thread, with a window popping up (similar to when you try to submit a thread without a subject and/or message text) if they click 'Submit New Thread' without choosing one.

Can anyone help me out? I'm still running vB 2.3.0, if that makes any difference. Thanks!

Logician
08-06-2003, 09:13 AM
Not exactly what you want but similiar:

edit newthread.php, find:


$iconid = intval($iconid);


After that add:

if ($iconid ==0 AND $bbuserinfo['usergroupid']!=6)
{
eval("standarderror(\"".gettemplate("error_nomessageicon")."\");");
exit;
}


Create a template named "error_nomessageicon" and insert your error message there. If you have more than 1 template sets create it in all sets.

Basically it will give the error message if new thread poster did not choose a message icon and he is not an admin. The difference from your request is: This is not popup.