
06-21-2010, 01:46 PM
|
|
|
Join Date: Oct 2007
Location: UK
Posts: 2,802
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by Alisa Lindsay
Hello everyone.
I use Easy Forms at both my sites and if I neglected to say it before, let me say now, what a wonderful mod!
Was wondering, however, is there a way to require the answer to one of the questions be an image?
Thanks and Warmest Regards,
Alisa
|
Form Hook: Before Submit:
PHP Code:
if (empty($postattach)) { $currentattaches = $db->query_read(" SELECT dateline, filename, attachmentid FROM " . TABLE_PREFIX . "attachment WHERE posthash = '" . $db->escape_string($posthash) . "' AND userid = " . $vbulletin->userinfo['userid'] );
while ($attach = $db->fetch_array($currentattaches)) { $postattach["$attach[attachmentid]"] = $attach; $attachcount++; $formoutput = str_replace('[attach]'.$attachcount.'[/attach]','[attach]'.$attach['attachmentid'].'[/attach]',$formoutput); } }
Then use this in Custom Form Output:
|