1
Hello
I 'm working on a Module , am about done . there is One thing i could not find wht i'm doing wrong for this Block .
The Block is to Enable or disable Anti-spam .
this is the modversion Section
le="color: #000000"><?php $modversion['blocks'][1]['file'] = "callus_blocks.php"; $modversion['blocks'][1]['name'] = "callus"; $modvertion['blocks'][1]['description'] = "Call us Block"; $modversion['blocks'][1]['show_func'] = "b_callus_blocks_show"; $modversion['blocks'][1]['edit_func'] = "b_callus_blocks_edit"; $modversion['blocks'][1]['options'] = "1|0"; $modversion['blocks'][1]['template'] = 'callus_blocks.html';
this is my Block Content.
<?php function b_callus_blocks_show() { $block['lang_send'] = _MB_CALLUS_SENDMSG; $block['lang_name'] = _MB_CALLUS_MSGNAME; $block['lang_subject'] = _MB_CALLUS_SUBJECT; $block['lang_email'] = _MB_CALLUS_EMAIL; $block['lang_comment'] = _MB_CALLUS_MESSAGE; $block['lang_code'] = _MB_CALLUS_CODE; $captcha = $options[1]; return $block; } function b_callus_blocks_edit() { $form = "<br />active anti spam: <select size='1' name='options[1]'><option value='1'"; if ( $options[1] == 1 ) { $form .= " selected"; } $form .= " />Yes</option><option value='0'"; if ( $options[1] == 0 ) { $form .= " selected"; } $form .= " />No</option></select>"; return $form; } ?>
Now at the Block Template.
le="color: #000000"><?php <td> <{if $block.captcha == 1}></td> <td><img src="<{$xoops_url}>/modules/callus/captcha_callus.php"></td> </tr> <tr> <td><{$block.lang_code}>:</td> <td><input type="text" name="captcha_num" size="20" /></td> </tr> <{/if}>
No errors Prints out , but there is error somewhere because the captcha dose Not Show up reagrds the Value (yes , No )
Any Idea