[nukeviet] Bỏ captcha trong mobule contact
![[nukeviet] Bỏ captcha trong mobule contact](https://lh5.googleusercontent.com/-C8fiQzAjzpU/U3dODGFdIDI/AAAAAAAABds/8-flHtnvZc4/s250/captcha-selection1%5B1%5D.jpg)
![[nukeviet] Bỏ captcha trong mobule contact](https://lh5.googleusercontent.com/-C8fiQzAjzpU/U3dODGFdIDI/AAAAAAAABds/8-flHtnvZc4/s0/captcha-selection1%5B1%5D.jpg)
Phần đông mọi người luôn muốn sử dụng capcha để hạn chế spam, nhưng cũng có số ít người coi đây là sự bất tiện và không muốn dùng kiểu chông spam này.<br />
Sau đây là cách bỏ capcha bằng cách can thiệp vào code nukeviet .
Mở themes/{theme}/modules/contact
Xóa
<div class="capcha1">
<label for="fcode_iavim">
{LANG.captcha}:
</label>
<input type="text" maxlength="6" value="" id="fcode_iavim" name="fcode" class="txtCaptcha" />
<img height="22" src="{NV_BASE_SITEURL}index.php?scaptcha=captcha" title="{LANG.captcha}" alt="{LANG.captcha}" id="vimg" />
<img alt="{CAPTCHA_REFRESH}" src="{CAPTCHA_REFR_SRC}" width="16" height="16" class="refresh" onclick="nv_change_captcha('vimg','fcode_iavim');" />
</div>
Mở modules/contact/funcs/main.php
Xóa
$fcode = filter_text_input( 'fcode', 'post', '' );
Xóa
elseif( ! nv_capcha_txt( $fcode ) )
{
$error = $lang_module['error_captcha'];
}
Mở modules/contact/theme.php
Xóa
$xtpl->assign( 'GFX_WIDTH', NV_GFX_WIDTH );
$xtpl->assign( 'GFX_HEIGHT', NV_GFX_HEIGHT );
$xtpl->assign( 'NV_BASE_SITEURL', NV_BASE_SITEURL );
$xtpl->assign( 'CAPTCHA_REFRESH', $lang_global['captcharefresh'] );
$xtpl->assign( 'CAPTCHA_REFR_SRC', NV_BASE_SITEURL . "images/refresh.png" );
$xtpl->assign( 'NV_GFX_NUM', NV_GFX_NUM );
Cộng đồng nukeviet!
capcha nukeviet, capcha contact nukeviet. Hủy capcha nukeviet. Bỏ capcha nukeviet. Bỏ chức năng chống spam trong modul contact của nukeviet.
Chủ đề: w. Web w.Nukeviet w.Nukeviet practice