Jste člověk?
-
- Příspěvky: 9436
- Registrován: pon 24. črc 2006 0:00:00
- Bydliště: 48°43'N, 19°08'E
- Kontaktovat uživatele:
Re: Jste člověk?
Kód: Vybrat vše
##############################################################
## MOD Title: The humanizer
## MOD Author: Underhill < webmaster@underhill.de > (N/A) http://www.underhill.de/
## MOD Description: Changes the register form to prevent spam bots by a simple way
## MOD Version: 1.0.3
##
## Installation Level: easy
## Installation Time: 5 minutes
## Files To Edit:
## includes/usercp_register.php
## templates/subSilver/profile_add_body.tpl
## language/lang_english/lang_main.php
## Included Files: N/A
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## This modification was built for use with the phpBB template "subSilver"
##
## Tip: Change the name of the attribute to confuse spam bots
## Tips-Download: http://www.underhill.de/downloads/phpbb2mods/thehumanizertips.txt
##
## Screenshot: http://www.underhill.de/downloads/phpbb2mods/thehumanizer.png
## Download: http://www.underhill.de/downloads/phpbb2mods/thehumanizer.txt
##############################################################
## MOD History:
##
## 2006-04-29 - Version 1.0.3
## - MOD Syntax changes for the phpBB MOD Database
##
## 2006-04-19 - Version 1.0.2
## - Fixed bug with mode=editprofile (Markus Wandel and fanrpg)
## - Fixed some little problems with spelling and usability
##
## 2006-04-18 - Version 1.0.1
## - MOD Syntax changes for the phpBB.de MOD Database
##
## 2006-04-17 - Version 1.0.0
## - Final-Version
## - Successfully tested with EasyMOD beta (0.3.0)
##
## 2006-04-14 - Version 0.0.1
## - BETA-Version
## - Built and successfully tested with phpBB 2.0.20
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------------------------------
#
validate_optional_fields(
#
#-----[ AFTER, ADD ]------------------------------------------------------------
#
// The humanizer MOD
$ruhuman = ( isset($HTTP_POST_VARS['ruhuman']) ) ? ( ($HTTP_POST_VARS['ruhuman']) ? TRUE : 0 ) : 0;
#
#-----[ FIND ]------------------------------------------------------------------
#
if ($board_config['enable_confirm'] && $mode == 'register')
#
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#
// The humanizer MOD
if (!$ruhuman && $mode == 'register')
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Are_u_human_wrong'];
}
#
#-----[ FIND ]------------------------------------------------------------------
#
if ( ($mode == 'register') || ($board_config['allow_namechange']) )
#
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#
// The humanizer MOD
if ( $mode == 'register' )
{
$template->assign_block_vars('switch_register', array());
}
#
#-----[ FIND ]------------------------------------------------------------------
#
'SIGNATURE' => str_replace('<br />', "\n", $signature),
#
#-----[ AFTER, ADD ]------------------------------------------------------------
#
// The humanizer MOD
'ARE_U_HUMAN_YES' => ( $ruhuman ) ? 'checked="checked"' : '',
'ARE_U_HUMAN_NO' => ( !$ruhuman ) ? 'checked="checked"' : '',
#
#-----[ FIND ]------------------------------------------------------------------
#
'L_EMAIL_ADDRESS' => $lang['Email_address'],
#
#-----[ AFTER, ADD ]------------------------------------------------------------
#
// The humanizer MOD
'L_ARE_U_HUMAN' => $lang['Are_u_human'],
'L_ARE_U_HUMAN_EXPLAIN' => $lang['Are_u_human_explain'],
#
#-----[ OPEN ]------------------------------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------------------------------
#
<!-- END switch_confirm -->
#
#-----[ AFTER, ADD ]------------------------------------------------------------
#
<!-- The humanizer MOD -->
<!-- BEGIN switch_register -->
<tr>
<td class="row1"><span class="gen">{L_ARE_U_HUMAN} *</span><br /><span class="gensmall">{L_ARE_U_HUMAN_EXPLAIN}</span></td>
<td class="row2">
<input type="radio" name="ruhuman" value="1" {ARE_U_HUMAN_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="ruhuman" value="0" {ARE_U_HUMAN_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
<!-- END switch_register -->
#
#-----[ OPEN ]------------------------------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#
// The humanizer MOD
$lang['Are_u_human'] = 'Si človek?';
$lang['Are_u_human_explain'] = 'Prepáč, ale táto hlúpa otázka pomôže uchrániť toto fórum od robotov...';
$lang['Are_u_human_wrong'] = 'Prepáč, ale otázka "Si človek?" musí byť zodpovedaná.';
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------------------------
#
# EoM
WhiteWolfSix (WW6)
Nežiadajte ma o pomoc prostredníctvom icq a SS (SZ)
Nežiadajte ma o pomoc prostredníctvom icq a SS (SZ)
- seqwence
- V.I.P.
- Příspěvky: 1769
- Registrován: stř 27. pro 2006 1:00:00
- Bydliště: Brno
- Kontaktovat uživatele:
Re: Jste člověk?
'šmarjá', když jsem vyděl název tématu, tak jsem se upřímně řečeno lekl, že se tu začne diskutovat o tom, jestli jsme lidé, nebo ne... já teda jsem... 

Endure to the end.
-
- Příspěvky: 9436
- Registrován: pon 24. črc 2006 0:00:00
- Bydliště: 48°43'N, 19°08'E
- Kontaktovat uživatele:
-
- Příspěvky: 9436
- Registrován: pon 24. črc 2006 0:00:00
- Bydliště: 48°43'N, 19°08'E
- Kontaktovat uživatele:
Re: Jste člověk?
Nie je to zlé, ale sú aj lepšie spôsoby. Skús si ich tu pohľadať. Na tomto fóre sa o nich popísalo na kvantá.
WhiteWolfSix (WW6)
Nežiadajte ma o pomoc prostredníctvom icq a SS (SZ)
Nežiadajte ma o pomoc prostredníctvom icq a SS (SZ)
Re: Jste člověk?
Bohužel ve stylu Ti2000 nefunguje.Není tam ten kód co je v SubSilver 

- seqwence
- V.I.P.
- Příspěvky: 1769
- Registrován: stř 27. pro 2006 1:00:00
- Bydliště: Brno
- Kontaktovat uživatele:
Re: Jste člověk?
Kepty píše: musíš hledat ty hlavní části. Ve všech vzhledech to funkuje
...


Endure to the end.
Re: Jste člověk?
Tam je jen toto:
A mám udělat toto:
Kód: Vybrat vše
<form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post">
<table width="100%" cellspacing="2" cellpadding="3" border="0">
<tr>
<td class="maintitle">{L_PROFILE_INFO}</td>
</tr>
</table>
{ERROR_BOX}
<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
<tr>
<th colspan="2">{L_REGISTRATION_INFO}</th>
</tr>
<tr>
<td height="22" colspan="2" class="row2"><span class="gensmall">{L_ITEMS_REQUIRED}</span></td>
</tr>
<!-- BEGIN switch_namechange_disallowed -->
<tr>
<td class="row1" width="38%"><span class="explaintitle">{L_USERNAME}:</span> *</td>
<td width="62%" class="row2"><input type="hidden" name="username" value="{USERNAME}" />
<span class="name">{USERNAME}</span></td>
</tr>
<!-- END switch_namechange_disallowed -->
<!-- BEGIN switch_namechange_allowed -->
<tr>
<td class="row1" width="38%"><span class="explaintitle">{L_USERNAME}:</span> *</td>
<td class="row2" width="62%">
<input type="text" class="post" style="width:200px" name="username" size="25" maxlength="25" value="{USERNAME}" />
</td>
</tr>
<!-- END switch_namechange_allowed -->
<tr>
<td class="row1"><span class="explaintitle">{L_EMAIL_ADDRESS}:</span> *</td>
<td class="row2">
<input type="text" class="post" style="width:200px" name="email" size="25" maxlength="255" value="{EMAIL}" />
</td>
</tr>
<!-- BEGIN switch_edit_profile -->
<tr>
<td class="row1"><span class="explaintitle">{L_CURRENT_PASSWORD}:</span> *<br />
<span class="gensmall">{L_CONFIRM_PASSWORD_EXPLAIN}</span></td>
<td class="row2">
<input type="password" class="post" style="width: 200px" name="cur_password" size="25" maxlength="32" value="{CUR_PASSWORD}" />
</td>
</tr>
<!-- END switch_edit_profile -->
<tr>
<td class="row1"><span class="explaintitle">{L_NEW_PASSWORD}:</span> *<br />
<span class="gensmall">{L_PASSWORD_IF_CHANGED}</span></td>
<td class="row2">
<input type="password" class="post" style="width: 200px" name="new_password" size="25" maxlength="32" value="{NEW_PASSWORD}" />
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_CONFIRM_PASSWORD}:</span> * <br />
<span class="gensmall">{L_PASSWORD_CONFIRM_IF_CHANGED}</span></td>
<td class="row2">
<input type="password" class="post" style="width: 200px" name="password_confirm" size="25" maxlength="32" value="{PASSWORD_CONFIRM}" />
</td>
</tr>
<tr>
<td class="cat" colspan="2"> </td>
</tr>
</table>
<br />
<table width="100%" border="0" cellpadding="3" cellspacing="1" class="forumline">
<tr>
<th colspan="2">{L_PROFILE_INFO}</th>
</tr>
<tr>
<td height="22" colspan="2" class="row2"><span class="gensmall">{L_PROFILE_INFO_NOTICE}</span></td>
</tr>
<tr>
<td class="row1" width="38%"><span class="explaintitle">{L_ICQ_NUMBER}:</span></td>
<td class="row2" width="62%">
<input type="text" name="icq" class="post" style="width: 100px" size="10" maxlength="15" value="{ICQ}" />
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_AIM}:</span></td>
<td class="row2">
<input type="text" class="post" style="width: 150px" name="aim" size="20" maxlength="255" value="{AIM}" />
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_MESSENGER}:</span></td>
<td class="row2">
<input type="text" class="post" style="width: 150px" name="msn" size="20" maxlength="255" value="{MSN}" />
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_YAHOO}:</span></td>
<td class="row2">
<input type="text" class="post" style="width: 150px" name="yim" size="20" maxlength="255" value="{YIM}" />
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_WEBSITE}:</span></td>
<td class="row2">
<input type="text" class="post" style="width: 200px" name="website" size="25" maxlength="255" value="{WEBSITE}" />
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_LOCATION}:</span></td>
<td class="row2">
<input type="text" class="post" style="width: 200px" name="location" size="25" maxlength="100" value="{LOCATION}" />
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_OCCUPATION}:</span></td>
<td class="row2">
<input type="text" class="post" style="width: 200px" name="occupation" size="25" maxlength="100" value="{OCCUPATION}" />
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_INTERESTS}:</span></td>
<td class="row2">
<input type="text" class="post" style="width: 200px" name="interests" size="35" maxlength="150" value="{INTERESTS}" />
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_SIGNATURE}:</span><br />
<span class="gensmall">{L_SIGNATURE_EXPLAIN}<br />
<br />
{HTML_STATUS}<br />
{BBCODE_STATUS}<br />
{SMILIES_STATUS}</span></td>
<td class="row2">
<textarea name="signature" style="width: 300px" rows="6" cols="30" class="post">{SIGNATURE}</textarea>
</td>
</tr>
<tr>
<td class="cat" colspan="2"> </td>
</tr>
</table>
<br />
<table width="100%" border="0" cellpadding="3" cellspacing="1" class="forumline">
<tr>
<th colspan="2">{L_PREFERENCES}</th>
</tr>
<tr>
<td class="row1" width="38%"><span class="explaintitle">{L_PUBLIC_VIEW_EMAIL}:</span></td>
<td class="row2" width="62%">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="radio" name="viewemail" value="1" {VIEW_EMAIL_YES} /> </td>
<td>{L_YES} </td>
<td><input type="radio" name="viewemail" value="0" {VIEW_EMAIL_NO} /> </td>
<td>{L_NO}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_HIDE_USER}:</span></td>
<td class="row2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="radio" name="hideonline" value="1" {HIDE_USER_YES} /> </td>
<td>{L_YES} </td>
<td><input type="radio" name="hideonline" value="0" {HIDE_USER_NO} /> </td>
<td>{L_NO}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_NOTIFY_ON_REPLY}:</span><br />
<span class="gensmall">{L_NOTIFY_ON_REPLY_EXPLAIN}</span></td>
<td class="row2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="radio" name="notifyreply" value="1" {NOTIFY_REPLY_YES} /> </td>
<td>{L_YES} </td>
<td><input type="radio" name="notifyreply" value="0" {NOTIFY_REPLY_NO} /> </td>
<td>{L_NO}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_NOTIFY_ON_PRIVMSG}:</span></td>
<td class="row2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="radio" name="notifypm" value="1" {NOTIFY_PM_YES} /> </td>
<td>{L_YES} </td>
<td><input type="radio" name="notifypm" value="0" {NOTIFY_PM_NO} /> </td>
<td>{L_NO}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_POPUP_ON_PRIVMSG}:</span><br />
<span class="gensmall">{L_POPUP_ON_PRIVMSG_EXPLAIN}</span></td>
<td class="row2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="radio" name="popup_pm" value="1" {POPUP_PM_YES} /> </td>
<td>{L_YES} </td>
<td><input type="radio" name="popup_pm" value="0" {POPUP_PM_NO} /> </td>
<td>{L_NO}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_ALWAYS_ADD_SIGNATURE}:</span></td>
<td class="row2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="radio" name="attachsig" value="1" {ALWAYS_ADD_SIGNATURE_YES} /> </td>
<td>{L_YES} </td>
<td><input type="radio" name="attachsig" value="0" {ALWAYS_ADD_SIGNATURE_NO} /> </td>
<td>{L_NO}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_ALWAYS_ALLOW_BBCODE}:</span></td>
<td class="row2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="radio" name="allowbbcode" value="1" {ALWAYS_ALLOW_BBCODE_YES} /> </td>
<td>{L_YES} </td>
<td><input type="radio" name="allowbbcode" value="0" {ALWAYS_ALLOW_BBCODE_NO} /> </td>
<td>{L_NO}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_ALWAYS_ALLOW_HTML}:</span></td>
<td class="row2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="radio" name="allowhtml" value="1" {ALWAYS_ALLOW_HTML_YES} /> </td>
<td>{L_YES} </td>
<td><input type="radio" name="allowhtml" value="0" {ALWAYS_ALLOW_HTML_NO} /> </td>
<td>{L_NO}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_ALWAYS_ALLOW_SMILIES}:</span></td>
<td class="row2">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="radio" name="allowsmilies" value="1" {ALWAYS_ALLOW_SMILIES_YES} /> </td>
<td>{L_YES} </td>
<td><input type="radio" name="allowsmilies" value="0" {ALWAYS_ALLOW_SMILIES_NO} /> </td>
<td>{L_NO}</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_BOARD_LANGUAGE}:</span></td>
<td class="row2">{LANGUAGE_SELECT}</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_BOARD_STYLE}:</span></td>
<td class="row2">{STYLE_SELECT}</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_TIMEZONE}:</span></td>
<td class="row2">{TIMEZONE_SELECT}</td>
</tr>
<tr>
<td class="row1"><span class="explaintitle">{L_DATE_FORMAT}:</span><br />
<span class="gensmall">{L_DATE_FORMAT_EXPLAIN}</span></td>
<td class="row2">
<input type="text" name="dateformat" value="{DATE_FORMAT}" maxlength="14" class="post" />
</td>
</tr>
<!-- BEGIN switch_avatar_block -->
<tr>
<td class="cat" colspan="2"> </td>
</tr>
</table>
<br />
<table width="100%" border="0" cellpadding="3" cellspacing="1" class="forumline">
<tr>
<th colspan="2">{L_AVATAR_PANEL}</th>
</tr>
<tr>
<td class="row1" colspan="2">
<table width="70%" cellspacing="2" cellpadding="0" border="0" align="center">
<tr>
<td width="65%" class="gensmall">{L_AVATAR_EXPLAIN}</td>
<td align="center" class="gensmall">{L_CURRENT_IMAGE}<br />
{AVATAR}<br />
<input type="checkbox" name="avatardel" />
{L_DELETE_AVATAR}</td>
</tr>
</table>
</td>
</tr>
<!-- BEGIN switch_avatar_local_upload -->
<tr>
<td class="row1"><span class="explaintitle">{L_UPLOAD_AVATAR_FILE}:</span></td>
<td class="row2">
<input type="hidden" name="MAX_FILE_SIZE" value="{AVATAR_SIZE}" />
<input type="file" name="avatar" class="post" style="width:200px" />
</td>
</tr>
<!-- END switch_avatar_local_upload -->
<!-- BEGIN switch_avatar_remote_upload -->
<tr>
<td class="row1"><span class="explaintitle">{L_UPLOAD_AVATAR_URL}</span>:<br />
<span class="gensmall">{L_UPLOAD_AVATAR_URL_EXPLAIN}</span></td>
<td class="row2">
<input type="text" name="avatarurl" size="40" class="post" style="width:200px" />
</td>
</tr>
<!-- END switch_avatar_remote_upload -->
<!-- BEGIN switch_avatar_remote_link -->
<tr>
<td class="row1"><span class="explaintitle">{L_LINK_REMOTE_AVATAR}:</span><br />
<span class="gensmall">{L_LINK_REMOTE_AVATAR_EXPLAIN}</span></td>
<td class="row2">
<input type="text" name="avatarremoteurl" size="40" class="post" style="width:200px" />
</td>
</tr>
<!-- END switch_avatar_remote_link -->
<!-- BEGIN switch_avatar_local_gallery -->
<tr>
<td class="row1"><span class="explaintitle">{L_AVATAR_GALLERY}:</span></td>
<td class="row2">
<input type="submit" name="avatargallery" value="{L_SHOW_GALLERY}" class="button" />
</td>
</tr>
<!-- END switch_avatar_local_gallery -->
<!-- END switch_avatar_block -->
<tr>
<td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS}
<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" />
<input type="reset" value="{L_RESET}" name="reset" class="button" />
</td>
</tr>
</table>
</form>
Kód: Vybrat vše
#-----[ OPEN ]------------------------------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------------------------------
#
<!-- END switch_confirm -->
#
#-----[ AFTER, ADD ]------------------------------------------------------------
#
<!-- The humanizer MOD -->
<!-- BEGIN switch_register -->
<tr>
<td class="row1"><span class="gen">{L_ARE_U_HUMAN} *</span><br /><span class="gensmall">{L_ARE_U_HUMAN_EXPLAIN}</span></td>
<td class="row2">
<input type="radio" name="ruhuman" value="1" {ARE_U_HUMAN_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="ruhuman" value="0" {ARE_U_HUMAN_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
<!-- END switch_register -->
#
Re: Jste člověk?
Hmm , ww6 , kdyz je to zlé , tak to nemam zkouset ani instalovat ? Zabrani to aspon 1 botu z 10 ? dík za odp. 

-
- Příspěvky: 9436
- Registrován: pon 24. črc 2006 0:00:00
- Bydliště: 48°43'N, 19°08'E
- Kontaktovat uživatele:
Re: Jste člověk?
Mimochodom, GoogleMan, ty si mi nejaký povedomý. Nemáš ty náhodou 7-dňový ban na nick? ]:->
WhiteWolfSix (WW6)
Nežiadajte ma o pomoc prostredníctvom icq a SS (SZ)
Nežiadajte ma o pomoc prostredníctvom icq a SS (SZ)