tutoriale photoshop, brushes, patterns, gradient
Site afiliat proiectului Wtricks.com
   
   
  REGULAMENT | Search | Members | Calendar | Help  
 


Post Reply  Post Thread 
Cum se instaleaza un mod pe phpbb2
Author Message
Rila
Designer incepator
*****


Posts: 310
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Lei: 335.52
Post: #1
Cum se instaleaza un mod pe phpbb2

Aveti un forum pe platforma phpbb?Probabil ca ati auzit de "celebrele" moduri(sau hackuri) pentru phpbb.
Am incercat sa iau linie cu linie si sa va explic!
Ce sunt ele?
De sunt fisiere care "tuneaza" forumul dumneavoastra si il face invulnerabil la atacuri de
spam sau pur si simplu ii adauga alte optiuni.
Cum se instaleaza?
*Toate liniile se pun de la capat!
Pai este destul de simplu sa instalezi un mod.
Luam ca exemplu modul urmator(the humanizer,un mod foarte folositor,impotriva inregistrarii botilor de spam.):

Quote:
##############################################################
## MOD Title: The humanizer
## MOD Author: Underhill < webmaster@underhill.de > (N/A) http://www.underhill.de/?language=english
## MOD Description: Changes the register form to prevent spam bots by a simple individual question
## MOD Version: 1.2.0
##
## 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:
##
## Do not use the example question within this MOD. Only your own individual question will be save!
##
## This modification was built for use with the phpBB template "subSilver"
##
## Screenshot: http://www.underhill.de/downloads/phpbb2...anizer.png
## Download: http://www.underhill.de/downloads/phpbb2...anizer.txt
##############################################################
## MOD History:
##
##   2007-07-14 - Version 1.2.0
## - Changed to individual question
##
##   2006-12-31 - Version 1.1.1
## - Removed HTML comment
## - Successfully tested with phpBB 2.0.22
## - Changed Author Notes
##
##   2006-08-26 - Version 1.1.0
## - Added dynamic attribute to confuse spam bots
## - Changed access value to prevent spam bot guessing
##
##   2006-07-17 - Version 1.0.5
## - Added notes for a frequent install problem
## - Added forgotten history entry for version 1.0.4
## - Fixed more little spelling errors
##
##   2006-06-11 - Version 1.0.4
## - Successfully tested with phpBB 2.0.21
## - Fixed little spelling errors
##
##   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
##############################################################

#
#-----[ DIY INSTRUCTIONS ]------------------------------------------------------
#

Do not use the example question within this MOD. Only your own individual question will be save!

#
#-----[ OPEN ]------------------------------------------------------------------
#

includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------------------------------
#
# NOTE - This is a partial match, the whole line on a fresh phpBB installation looks like this:
#
# validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
#

validate_optional_fields(

#
#-----[ AFTER, ADD ]------------------------------------------------------------
#
# NOTE - Not "INLINE AFTER, ADD"! - Add this after the whole line like:
# validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
#

// The humanizer MOD
$humanizer_attribute = md5(($board_config['board_startdate'] + $board_config['board_timezone']) * $board_config['avatar_filesize']);
$ruhuman = isset($HTTP_POST_VARS[$humanizer_attribute]) ? $HTTP_POST_VARS[$humanizer_attribute] : '';
$ruhuman = trim(htmlspecialchars($ruhuman));

#
#-----[ FIND ]------------------------------------------------------------------
#

if ($board_config['enable_confirm'] && $mode == 'register')

#
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#

// The humanizer MOD
$humanizer_answers = $lang['humanizer_answers'];
if (!in_array(strtolower($ruhuman), $humanizer_answers) && $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
'HUMANIZER' => stripslashes($ruhuman),

#
#-----[ 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'],

#
#-----[ FIND ]------------------------------------------------------------------
#

'S_ALLOW_AVATAR_UPLOAD' => $board_config['allow_avatar_upload'],

#
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#

// The humanizer MOD
'S_HUMANIZER_ATTRIBUTE' => $humanizer_attribute,

#
#-----[ OPEN ]------------------------------------------------------------------
#

templates/subSilver/profile_add_body.tpl

#
#-----[ FIND ]------------------------------------------------------------------
#

<!-- END switch_confirm -->

#
#-----[ AFTER, ADD ]------------------------------------------------------------
#

<!-- 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="text" name="{S_HUMANIZER_ATTRIBUTE}" class="post" style="width: 100px" size="10" maxlength="15"

value="{HUMANIZER}" />
  </td>
</tr>
<!-- END switch_register -->

#
#-----[ OPEN ]------------------------------------------------------------------
#

language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------------------------------
#

?>

#
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#

// The humanizer MOD

Quote:
$lang['Are_u_human'] = 'Are you human?';
$lang['Are_u_human_explain'] = 'Sorry, but this stupid question shall keep away the bots from this forum. Please type your answer in the

following text field.';
$lang['Are_u_human_wrong'] = 'Sorry, but the &quot;humanizer&quot; question must be answered correctly.';
// possible humanizer answers - only use this syntax:
$lang['humanizer_answers'] = array('yes', 'jes', 'yo');

#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------------------------
#
# EoM  


Pasul 1 suna in felul urmator:

Quote:
#
#-----[ OPEN ]------------------------------------------------------------------
#

includes/usercp_register.php


Pasul 1:Deschideti fisierul usercp_register.php din folderul includes al forumului cu notepad sau alt editor de coduri.
Pasul2:

Quote:
##-----[ FIND ]------------------------------------------------------------------
# NOTE - This is a partial match, the whole line on a fresh phpBB installation looks like this:
#
# validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
#

validate_optional_fields(

#:


Pasul 2:Cautati in fisierul deschis mai devreme(usercp_register.php ) liniile urmatoare,folosind functia find(ctrl+f):

Quote:
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
validate_optional_fields(

Pasul 3:

Quote:
#-----[ AFTER, ADD ]------------------------------------------------------------
#
# NOTE - Not "INLINE AFTER, ADD"! - Add this after the whole line like:
# validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
#

// The humanizer MOD
$humanizer_attribute = md5(($board_config['board_startdate'] + $board_config['board_timezone']) * $board_config['avatar_filesize']);
$ruhuman = isset($HTTP_POST_VARS[$humanizer_attribute]) ? $HTTP_POST_VARS[$humanizer_attribute] : '';
$ruhuman = trim(htmlspecialchars($ruhuman));

Pasul 3:Dupa ce ati deschis si ati gasit liniile de la pasul 2 adaugati urmatoarele linii:

Quote:
NOTE - Not "INLINE AFTER, ADD"! - Add this after the whole line like:
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);


// The humanizer MOD
$humanizer_attribute = md5(($board_config['board_startdate'] + $board_config['board_timezone']) * $board_config['avatar_filesize']);
$ruhuman = isset($HTTP_POST_VARS[$humanizer_attribute]) ? $HTTP_POST_VARS[$humanizer_attribute] : '';
$ruhuman = trim(htmlspecialchars($ruhuman));

Pasul 4:

Quote:
#-----[ FIND ]------------------------------------------------------------------
#

if ($board_config['enable_confirm'] && $mode == 'register')

Pasul 4 :cautati in acelasi fisier (usercp_register.php) linia urmatoare:

Quote:

if ($board_config['enable_confirm'] && $mode == 'register')

Pasul 5:

Quote:
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#

// The humanizer MOD
$humanizer_answers = $lang['humanizer_answers'];
if (!in_array(strtolower($ruhuman), $humanizer_answers) && $mode == 'register')
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Are_u_human_wrong'];
}

Pasul 5:dupa ce ati gasit linia de la pasul 4  adaugati urmatoarele linii:

Quote:

// The humanizer MOD
$humanizer_answers = $lang['humanizer_answers'];
if (!in_array(strtolower($ruhuman), $humanizer_answers) && $mode == 'register')
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Are_u_human_wrong'];
}


Pasul 6:

Quote:
#-----[ FIND ]------------------------------------------------------------------
#

if ( ($mode == 'register') || ($board_config['allow_namechange']) )


Pasul 6Cauta urmatoarea linie in acelasi fisier(usercp_register.php):

Quote:
if ( ($mode == 'register') || ($board_config['allow_namechange']) )


Pasul7:

Quote:
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#

// The humanizer MOD
if ( $mode == 'register' )
{
$template->assign_block_vars('switch_register', array());
}

Pasul7:Dupa ce ai gasit linia de la pasul 6 adauga urmatoarele linii:

Quote:
// The humanizer MOD
if ( $mode == 'register' )
{
$template->assign_block_vars('switch_register', array());
}

Pasul 8:

Quote:
#-----[ FIND ]------------------------------------------------------------------
#

'SIGNATURE' => str_replace('<br />', "\n", $signature),


Pasul 8:Cauta in acelasi fisier linia:

Quote:
'SIGNATURE' => str_replace('<br />', "\n", $signature),


Pasul 9:

Quote:
#-----[ AFTER, ADD ]------------------------------------------------------------
#

// The humanizer MOD
'HUMANIZER' => stripslashes($ruhuman),


Pasul 9:Dupa ce ati gasit linia de la pasul 8 adaugati uramtoarele linii:

Quote:
// The humanizer MOD
'HUMANIZER' => stripslashes($ruhuman),


Pasul 10:

Quote:
#-----[ FIND ]------------------------------------------------------------------
#

'L_EMAIL_ADDRESS' => $lang['Email_address'],

#



Pasul 10: Cauta linia:

Quote:

'L_EMAIL_ADDRESS' => $lang['Email_address'],


Pasul 11:

Quote:
#-----[ AFTER, ADD ]------------------------------------------------------------
#

// The humanizer MOD
'L_ARE_U_HUMAN' => $lang['Are_u_human'],
'L_ARE_U_HUMAN_EXPLAIN' => $lang['Are_u_human_explain'],

#


Pasul 11: Dupa ce ati gasit linia de la pasul 10 adaugati liniile urmatoare:

Quote:

// The humanizer MOD
'L_ARE_U_HUMAN' => $lang['Are_u_human'],
'L_ARE_U_HUMAN_EXPLAIN' => $lang['Are_u_human_explain'],


Pasul 12:

Quote:
#-----[ FIND ]------------------------------------------------------------------
#

'S_ALLOW_AVATAR_UPLOAD' => $board_config['allow_avatar_upload'],


#


Pasul 12::Cautati in acelasi fisier codul urmator:

Quote:

'S_ALLOW_AVATAR_UPLOAD' => $board_config['allow_avatar_upload'],


Pasul 13:

Quote:
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#

// The humanizer MOD
'S_HUMANIZER_ATTRIBUTE' => $humanizer_attribute,


Pasul 13:Dupa ce ati gasit linia  de la pasul 12 adaugati urmatoarele linii si apoi salvati fisierul si incarcati-l pe server:

Quote:
// The humanizer MOD
'S_HUMANIZER_ATTRIBUTE' => $humanizer_attribute,


Pasul 14:

Quote:
#-----[ OPEN ]------------------------------------------------------------------
#

templates/subSilver/profile_add_body.tpl

#


Pasul 14: intrati in folderul templates/subsilver sau tema dumneavoastra actuala/profile_add_body.tpl

Pasul 15:

Quote:
#-----[ FIND ]------------------------------------------------------------------
#

<!-- END switch_confirm -->

#



Pasul 15: Cautati linia :

Quote:


<!-- END switch_confirm -->


Pasul 16:

Quote:
#-----[ AFTER, ADD ]------------------------------------------------------------
#

<!-- 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="text" name="{S_HUMANIZER_ATTRIBUTE}" class="post" style="width: 100px" size="10" maxlength="15"

value="{HUMANIZER}" />
  </td>
</tr>
<!-- END switch_register -->


Pasul 16:Dupa ce ati gasit linia de la pasul 15 adaugati urmatoarele linii,dupa ce adaugati salvati fila si incarcati-o pe host in locul celei

vechi :

Quote:

<!-- 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="text" name="{S_HUMANIZER_ATTRIBUTE}" class="post" style="width: 100px" size="10" maxlength="15"

value="{HUMANIZER}" />
  </td>
</tr>
<!-- END switch_register -->


Pasul 17:

Quote:
#-----[ OPEN ]------------------------------------------------------------------
#

language/lang_english/lang_main.php


Pasul 17:Cautati linia  :

Quote:
?>


Pasul 18:

Quote:
#-----[ BEFORE, ADD ]-----------------------------------------------------------
#

// The humanizer MOD
$lang['Are_u_human'] = 'Are you human?';
$lang['Are_u_human_explain'] = 'Sorry, but this stupid question shall keep away the bots from this forum. Please type your answer in the

following text field.';
$lang['Are_u_human_wrong'] = 'Sorry, but the &quot;humanizer&quot; question must be answered correctly.';
// possible humanizer answers - only use this syntax:
$lang['humanizer_answers'] = array('yes', 'jes', 'yo');

#


Pasul 18:Dupa ce ati gasit liniile de la pasul 17 adaugati urmatoarele linii salvati fisierul si incarcati-l pe host in locul celui vechi:

Quote:

// The humanizer MOD
$lang['Are_u_human'] = 'Are you human?';
$lang['Are_u_human_explain'] = 'Sorry, but this stupid question shall keep away the bots from this forum. Please type your answer in the

following text field.';
$lang['Are_u_human_wrong'] = 'Sorry, but the &quot;humanizer&quot; question must be answered correctly.';
// possible humanizer answers - only use this syntax:
$lang['humanizer_answers'] = array('yes', 'jes', 'yo');


<<<<--------------------------------------------------------------FINISH------------------------------------------------------------------------------------->

@admini sa moderatori: Daca vi se pare inutil tutorialul il puteti sterge.M-am chinuit 3 ore sa il facSad

This post was last modified: 03-08-2008 11:57 PM by Rila.

03-08-2008 11:49 PM
Find all posts by this user Quote this message in a reply
Sombra
Ucenic
****


Posts: 187
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Lei: 418.56
Post: #2
RE: Cum se instaleaza un mod pe phpbb2

dece am presimtireaca ai facut asaceva doar pentru lei?putei sa uploadezi pe rapid share scripturile nu sa le pui iin intregime pe forum...
orikum.Ms

03-09-2008 12:13 AM
Find all posts by this user Quote this message in a reply
Rila
Designer incepator
*****


Posts: 310
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Lei: 335.52
Post: #3
RE: Cum se instaleaza un mod pe phpbb2

Ce scripturi sa uploadez?
Nu te supara sombra dar in aceasta sectiune se scriu tutroiale nu se uploadeaza, si in plus de asta foarte multa lume nu stie sa instaleze moduri pentru phpbb si cauta pe google si atunci cand va cauta  va gasi printre rezultate si invatam.net si vor mai intra vizitatori Smile !
Si daca ar fi sa fac niste lei crezi ca i-as face pe nedrept?
Am muncit 3 ore sau poate chiar mai mult sa fac accest tutorial.Si daca il uploadam pe rapidshare era valabil decat 90 de zile linkul,si fiecare user punea pe forumul lui sau pe siteul lui tutorialul fara copyright sau altceva!

This post was last modified: 03-09-2008 01:00 AM by Rila.

03-09-2008 12:56 AM
Find all posts by this user Quote this message in a reply
FrozenDesigns
Designer
******


Posts: 477
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Lei: 1474.15
Post: #4
RE: Cum se instaleaza un mod pe phpbb2

interesant rila....chiar unii nu prea stiu cum  se instaleaza aceste moduri


My portofolio
03-09-2008 01:43 AM
Find all posts by this user Quote this message in a reply
gold21c
Designer incepator
*****


Posts: 285
Group: Registered
Joined: Oct 2007
Status: Offline
Reputation: 0
Lei: 866.08
Post: #5
RE: Cum se instaleaza un mod pe phpbb2

pai nu se face nici un upload, umbli prin fisiere si bagi liniile care ti se cer.


Play Free Online Games | Free Online Games to Play
03-09-2008 03:20 AM
Visit this users website Find all posts by this user Quote this message in a reply
FrozenDesigns
Designer
******


Posts: 477
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Lei: 1474.15
Post: #6
RE: Cum se instaleaza un mod pe phpbb2

e usor man...t.rebuie sa ai rabdare


My portofolio
03-09-2008 03:34 AM
Find all posts by this user Quote this message in a reply
Rila
Designer incepator
*****


Posts: 310
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Lei: 335.52
Post: #7
RE: Cum se instaleaza un mod pe phpbb2

gol21c,uploadul se face daca nu editezi fila de pe host din smartftp(sau alt client ftp).Decat daca ai fila care trebuie modificata in calculator si o modifici,peurma o uploadezi.La asta ma refereamWink

03-09-2008 05:26 PM
Find all posts by this user Quote this message in a reply
gold21c
Designer incepator
*****


Posts: 285
Group: Registered
Joined: Oct 2007
Status: Offline
Reputation: 0
Lei: 866.08
Post: #8
RE: Cum se instaleaza un mod pe phpbb2

Rila Wrote:
gol21c,uploadul se face daca nu editezi fila de pe host din smartftp(sau alt client ftp).Decat daca ai fila care trebuie modificata in calculator si o modifici,peurma o uploadezi.La asta ma refereamWink



nu inteleg nimi din ce zici. despre ce fila vorbesti?


Play Free Online Games | Free Online Games to Play
03-11-2008 02:09 AM
Visit this users website Find all posts by this user Quote this message in a reply
Rila
Designer incepator
*****


Posts: 310
Group: Registered
Joined: Feb 2008
Status: Offline
Reputation: 0
Lei: 335.52
Post: #9
RE: Cum se instaleaza un mod pe phpbb2

@gol21cTongueentru a instala mod-uri stii si tu ca trebuie sa modifici niste file.Acele file se poat edita din computer(daca le ai si apoi le poti uploada pe server) sau le poti edita direct de pe server din clientul tau ftp!

03-11-2008 05:26 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump:

 

 Invatam Net
Esti nou pe aici? Vorbeste-ne despre tine.
Citeste articole si tutoriale unice.
Ai un site? Iti putem oferi un review.

  Parteneri

  

  

  UNIX, Linux, Programare si Scripting pentru incepatori

  

-->