60 دقيقه انلاين باشيد ( معرفي هك phpbb )
با سلام
60 Minute Time Online
بوسيله اين هك مي توانيد ، مدت زمان انلاين بودن و خروج اتوماتيك كاربران را از 5 دقيقه به 60 دقيقه افزايش دهيد .
کد:
##############################################################
## MOD Title: 60 Minute Time Online
## MOD Author: Rambo4104 < Admin@thesaltinez.com > (Ryan Smith) http://www.thesaltinez.com/
## MOD Description: Extends the ammount of time users are listed
## online from 5 minutes to 60 minutes.
## MOD Version: 1.0.1
##
## Installation Level: (Easy)
## Installation Time: 1 Minutes
## Files To Edit:
## 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:
## Nothing special, but helpful nontheless.
##
##############################################################
## MOD History:
## 01-21-2007 - Version 1.0.1
## - Initial release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]----------------------------------
#
viewonline.php
#
#-----[ FIND ]----------------------------------
#
AND s.session_time >= ".( time() - 300 ) . "
#
#-----[ REPLACE WITH ]--------------------------
#
AND s.session_time >= ".( time() - 3600 ) . "
#
#-----[ OPEN ]----------------------------------
#
includes/page_header.php
#
#-----[ FIND ]----------------------------------
#
AND s.session_time >= ".( time() - 300 ) . "
#
#-----[ REPLACE WITH ]--------------------------
#
AND s.session_time >= ".( time() - 3600 ) . "
#
#-----[ OPEN ]----------------------------------
#
admin/index.php
#
#-----[ FIND ]----------------------------------
#
AND s.session_time >= " . ( time() - 300 ) . "
##-----[ REPLACE WITH ]--------------------------
#
AND s.session_time >= " . ( time() - 3600 ) . "
#
#-----[ FIND ]----------------------------------
#
AND session_time >= " . ( time() - 300 ) . "
#
#-----[ REPLACE WITH ]--------------------------
#
AND session_time >= " . ( time() - 3600 ) . "
#
#-----[ OPEN ]----------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]----------------------------------
#
$lang['Online_explain'] = 'This data is based on users active over the past five minutes';
#
#-----[ IN-LINE FIND ]----------------------------------
#
five
#
#-----[ IN-LINE REPLACE WITH ]--------------------------
#
sixty
#
#-----[ SAVE/CLOSE ALL FILES ]------------------
#
# EoM
موفق باشيد
محسن
اضافه كردن عكس به كنار هر يك از انجمنها( معرفي هك phpbb )
با سلام
A picture to illustrate each one of your forums
با استفاده از اين هك ، مي توانيد يك عكس كوچك متناسب با موضوع انجمن مورد نظر در كنار آن اضافه كنيد .
مثلايك عكس براي انجمن موبايل ، يك عكس براي انجمن متفرقه و .....
کد:
#################################################################
## Mod Title: a picture to illustrate each one of your forum
## Mod Version: 1.0.0
## Author: Alain Brégeon <alainbregeon@hotmail.com> - www.bregeon.org
##
## Description: This MOD adds a picture on each of your forums.
##
##
## Installation Level: (easy)
## Installation Time: 5 Minutes
## Files To Edit: viewforum.php, viewforum_body.tpl
## Included Files: no
##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## For Security Purposes, Please Check: http://www.phpbbhacks.com for the
## latest version of this MOD.
##
#################################################################
##
## Author Note: english version
## you must know the identifier of each one of your forums!
##
## here how I proceeded
##
## approach the mouse of the link of your forum and you must see in bottom something which ## resembles that:
##
## http://www.yoururl/yourforum/viewforum.php?f=x
##
## where x is a number. Please note this number.
##
## the name of the picture of this fourm will be called imx.gif, where X is the number of the ## ## forum which you noted.
## ie im1.gif for the forum number 1
## im22.gif for the forum number 22
##
## version française
##
## Pour que ça fonctionne vous devez connaître l'identifiant de votre forum (id)!
##
## voici comment j'ai procédé
##
## vous approchez la souris du lien du forum concerné et en bas dans la barre d'état vous lisez quelque chose qui
## ressemble à ça:
##
## http://www.votre_url/votre_forum/viewforum.php?f=x
##
## ou x est un nombre. Notez ce nombre.
##
## Le nom de l'image qui se trouvera sur la page de ce forum se nommera imx.gif, où X est le numéro du
## forum noté tout à l'heure
##
## par exemple im1.gif pour le forum numéro 1
## im22.gif pour le forum numéro 22
##
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
'FORUM_ID' => $forum_id,
'FORUM_NAME' => $forum_row['forum_name'],
'MODERATORS' => $forum_moderators,
'POST_IMG' => ( $forum_row['forum_status'] == FORUM_LOCKED ) ? $images['post_locked'] : $images['post_new'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'mon_image' => 'http://yoururl/yourpath/im'.$forum_id.'.gif',
#
#-----[ OPEN ]------------------------------------------
#
templates/your_theme/viewforum_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br />
<span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br />
<br />
{LOGGED_IN_USER_LIST}</b></span></td>
<td align="right" valign="bottom" nowrap width="191">
#
#-----[ AFTER, ADD ]------------------------------------------
#
<p><span class="gensmall"><img src="{mon_image}"></span></p>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
ترجمه شده توسط : Mohsen khan
منبع :
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
اجازه دادن به كاربران عادي براي پاك كردن نام كاربري خود( معرفي هك phpbb )
با سلام
Account Self Delete
با استفاده از اين هك ، مي توانيد اين امكان را به كاربران بدهيد تا بتوانند نام كاربري خود را پاك كنند.
کد:
##############################################################
## MOD Title : Account Self-Delete
## MOD Author: Poupoune < poupoune@phpbb-fr.com > (N/A) http://php-tools.org/poupoune/
##
## MOD Description : This MOD allows users to delete their own account on your board.
## This feature can be desactivated in the ACP.
##
## MOD Version : 1.0.0
##
## Installation Level : Easy
## Installation Time : 5 minute(s)
## Files To Edit : 5
## admin/admin_board.php
## includes/usercp_register.php
## language/lang_english/lang_main.php
## language/lang_english/lang_admin.php
## templates/subSilver/admin/board_config_body.tpl
## templates/subSilver/profile_add_body.tpl
## Included Files : 0
##
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes :
##
##############################################################
## MOD History :
##
## 10-08-2004 - Version 1.0.0
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]----------------------------------------------
#
INSERT INTO `phpbb_config` VALUES ('account_delete', '1');
#
#-----[ OPEN ]----------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]----------------------------------------------
#
$disable_board_yes = ( $new['board_disable'] ) ? "checked=\"checked\"" : "";
$disable_board_no = ( !$new['board_disable'] ) ? "checked=\"checked\"" : "";
#
#-----[ AFTER, ADD ]----------------------------------------------
#
// Begin Account Self-Delete MOD
$account_delete_yes = ( $new['account_delete'] ) ? "checked=\"checked\"" : "";
$account_delete_no = ( !$new['account_delete'] ) ? "checked=\"checked\"" : "";
// End Account Self-Delete MOD
#
#-----[ FIND ]----------------------------------------------
#
"L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'],
#
#-----[ AFTER, ADD ]----------------------------------------------
#
// Begin Account Self-Delete MOD
"L_ACCOUNT_DELETE" => $lang['account_delete'],
// End Account Self-Delete MOD
#
#-----[ FIND ]----------------------------------------------
#
"S_DISABLE_BOARD_NO" => $disable_board_no,
#
#-----[ AFTER, ADD ]----------------------------------------------
#
// Begin Account Self-Delete MOD
"S_ACCOUNT_DELETE_YES" => $account_delete_yes,
"S_ACCOUNT_DELETE_NO" => $account_delete_no,
// End Account Self-Delete MOD
#
#-----[ OPEN ]----------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]----------------------------------------------
#
$strip_var_list = array(
#
#-----[ BEFORE, ADD ]----------------------------------------------
#
// Begin Account Self-Delete MOD
if( $HTTP_POST_VARS['deleteuser'] )
{
$message = "<form action=\"". append_sid("profile.$phpEx?mode=editprofile") ."\" method=\"post\">". $lang['Delete_account_question'] ."<br /><br /><input type=\"submit\" name=\"delete_confirm\" value=\"". $lang['Yes'] ."\" class=\"mainoption\" /> <input type=\"submit\" name=\"delete_cancel\" value=\"". $lang['No'] ."\" class=\"liteoption\" /><input type=\"hidden\" name=\"user_id\" value=\"$user_id\" /></form>";
message_die(GENERAL_MESSAGE, $message);
}
// End Account Self-Delete MOD
#
#-----[ FIND ]----------------------------------------------
#
//
// Let's make sure the user isn't logged in while registering,
// and ensure that they were trying to register a second time
// (Prevents double registrations)
//
#
#-----[ BEFORE, ADD ]----------------------------------------------
#
// Begin Account Self-Delete MOD ** Code from admin/admin_users.php
if( isset($HTTP_POST_VARS['delete_confirm']) )
{
$user_id = intval( $HTTP_POST_VARS['user_id'] );
$sql = "SELECT g.group_id
FROM " . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g
WHERE ug.user_id = $user_id
AND g.group_id = ug.group_id
AND g.group_single_user = 1";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain group information for this user', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$sql = "UPDATE " . POSTS_TABLE . "
SET poster_id = " . DELETED . ", post_username = '$username'
WHERE poster_id = $user_id";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update posts for this user', '', __LINE__, __FILE__, $sql);
}
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_poster = " . DELETED . "
WHERE topic_poster = $user_id";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update topics for this user', '', __LINE__, __FILE__, $sql);
}
$sql = "UPDATE " . VOTE_USERS_TABLE . "
SET vote_user_id = " . DELETED . "
WHERE vote_user_id = $user_id";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update votes for this user', '', __LINE__, __FILE__, $sql);
}
$sql = "SELECT group_id
FROM " . GROUPS_TABLE . "
WHERE group_moderator = $user_id";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select groups where user was moderator', '', __LINE__, __FILE__, $sql);
}
while ( $row_group = $db->sql_fetchrow($result) )
{
$group_moderator[] = $row_group['group_id'];
}
if ( count($group_moderator) )
{
$update_moderator_id = implode(', ', $group_moderator);
$sql = "UPDATE " . GROUPS_TABLE . "
SET group_moderator = " . $userdata['user_id'] . "
WHERE group_moderator IN ($update_moderator_id)";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update group moderators', '', __LINE__, __FILE__, $sql);
}
}
$sql = "DELETE FROM " . USERS_TABLE . "
WHERE user_id = $user_id";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete user', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . USER_GROUP_TABLE . "
WHERE user_id = $user_id";
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete user from user_group table', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . GROUPS_TABLE . "
WHERE group_id = " . $row['group_id'];
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . AUTH_ACCESS_TABLE . "
WHERE group_id = " . $row['group_id'];
if( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete group for this user', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . TOPICS_WATCH_TABLE . "
WHERE user_id = $user_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete user from topic watch table', '', __LINE__, __FILE__, $sql);
}
$sql = "DELETE FROM " . BANLIST_TABLE . "
WHERE ban_userid = $user_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not delete user from banlist table', '', __LINE__, __FILE__, $sql);
}
$sql = "SELECT privmsgs_id
FROM " . PRIVMSGS_TABLE . "
WHERE privmsgs_from_userid = $user_id
OR privmsgs_to_userid = $user_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not select all users private messages', '', __LINE__, __FILE__, $sql);
}
// This little bit of code directly from the private messaging section.
while ( $row_privmsgs = $db->sql_fetchrow($result) )
{
$mark_list[] = $row_privmsgs['privmsgs_id'];
}
if ( count($mark_list) )
{
$delete_sql_id = implode(', ', $mark_list);
$delete_text_sql = "DELETE FROM " . PRIVMSGS_TEXT_TABLE . "
WHERE privmsgs_text_id IN ($delete_sql_id)";
$delete_sql = "DELETE FROM " . PRIVMSGS_TABLE . "
WHERE privmsgs_id IN ($delete_sql_id)";
if ( !$db->sql_query($delete_sql) )
{
message_die(GENERAL_ERROR, 'Could not delete private message info', '', __LINE__, __FILE__, $delete_sql);
}
if ( !$db->sql_query($delete_text_sql) )
{
message_die(GENERAL_ERROR, 'Could not delete private message text', '', __LINE__, __FILE__, $delete_text_sql);
}
}
$message = $lang['User_deleted'] . '<br /><br />' . sprintf($lang['Click_return_userprofile'], '<a href="' . append_sid("profile.$phpEx?mode=editprofile") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
// End Account Self-Delete MOD
#
#-----[ FIND ]----------------------------------------------
#
'L_ALWAYS_ADD_SIGNATURE' => $lang['Always_add_sig'],
#
#-----[ AFTER, ADD ]----------------------------------------------
#
// Begin Account Self-Delete MOD
'L_ACCOUNT_DELETE' => $lang['Account_delete'],
'L_DELETE_ACCOUNT_EXPLAIN' => $lang['Account_delete_explain'],
// End Account Self-Delete MOD
#
#-----[ FIND ]----------------------------------------------
#
if ( $mode != 'register' )
{
#
#-----[ AFTER, ADD ]----------------------------------------------
#
// Begin Account Self-Delete MOD
if( $board_config['account_delete'] )
{
$template->assign_block_vars('account_delete_block', array() );
}
// End Account Self-Delete MOD
#
#-----[ OPEN ]----------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]----------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]----------------------------------------------
#
// Begin Account Self-Delete MOD
$lang['account_delete'] = 'Allows users to delete their own accounts';
// End Account Self-Delete MOD
#
#-----[ OPEN ]----------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]----------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]----------------------------------------------
#
// Begin Account Self-Delete MOD
$lang['Account_delete'] = 'Do you want to delete your account on this board?';
$lang['Account_delete_explain'] = 'Deletion of your account cannot be undone';
$lang['User_deleted'] = 'Your account has been sucessfully deleted.';
$lang['Delete_account_question'] = 'Deletion of your account will delete all personnal informations that concerns you in your profile, inside the database of this board. The messages you wrote in this board will have as post author a guest. <b>Attention !</b> all deletion can not be undone.<br /><br />Do you want to delete your account in this board?';
// End Account Self-Delete MOD
#
#-----[ OPEN ]----------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND ]----------------------------------------------
#
<tr>
<td class="row1">{L_ALLOW_NAME_CHANGE}</td>
<td class="row2"><input type="radio" name="allow_namechange" value="1" {NAMECHANGE_YES} /> {L_YES} <input type="radio" name="allow_namechange" value="0" {NAMECHANGE_NO} /> {L_NO}</td>
</tr>
#
#-----[ AFTER, ADD ]----------------------------------------------
#
<tr>
<td class="row1">{L_ACCOUNT_DELETE}</td>
<td class="row2"><input type="radio" name="account_delete" value="1" {S_ACCOUNT_DELETE_YES} /> {L_YES} <input type="radio" name="account_delete" value="0" {S_ACCOUNT_DELETE_NO} /> {L_NO}</td>
</tr>
#
#-----[ OPEN ]----------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]----------------------------------------------
#
<!-- Visual Confirmation -->
#
#-----[ BEFORE, ADD ]----------------------------------------------
#
<!-- BEGIN account_delete_block -->
<tr>
<td class="row1"><span class="gen">{L_ACCOUNT_DELETE}</span></td>
<td class="row2">
<input type="checkbox" name="deleteuser">
<span class="gensmall">{L_DELETE_ACCOUNT_EXPLAIN}</span></td>
</tr>
<!-- END account_delete_block -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
ترجمه شده توسط : Mohsen khan
منبع :
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
فعال يا غير عال كردن امكان تعويض كلمه عبور و ايميل براي كاربران( معرفي هك phpbb )
با سلام
Activate/Deactivate Changing of E-Mail and Password
با استفاده از اين هك ، مي توانيد اين امكان را به كاربران بدهيد تا بتوانند آدرس ايميل خود و كلمه عبور خود را تعويض نمايند . اين كار با تغيير در كنترل پنل ادمين صورت مي گيرد .
کد:
######################################################################
## MOD Title: Allowed - Disallowed Mail / pass / in profil membre
## MOD Author: sjpphpbb < http:/sjpphpbb.net >
## MOD Description: Permet d'activer ou de desactiver dans l'admin
## la possibilité aux membres de changer de mail
## ou de passe dans leurs profil
## MOD Version: 1.0.0
## Installation Level: moderate.
## Installation Time: 10 Minutes
## Files To Edit : 6
## admin/admin_board.php
## includes/usercp_register.php
## language/lang_french/lang_admin.php
## language/lang_french/lang_main.php
## templates/votre template/profile_add_body.tpl
## templates/votre template/admin/board_config_body.tpl
##
## Included Files : No
######################################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
#######################################################################
## Author Notes:
## Compatible 2.0.6 > 2.0.10
## SQL / Query database:
## ---------------------
INSERT INTO phpbb_config VALUES ('allow_mailchange', '0');
INSERT INTO phpbb_config VALUES ('allow_passchange', '0');
#######################################################################
## MOD History: No
#######################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
########################################################################
##-------------- OPEN admin/admin_board.php -----------
##-------------[ FIND ]-------------
$namechange_no = ( !$new['allow_namechange'] ) ? "checked=\"checked\"" : "";
##-------------[ AFTER, ADD ]------------------------------------------
//mail change by sjpphpbb
$mailchange_yes = ( $new['allow_mailchange'] ) ? "checked=\"checked\"" : "";
$mailchange_no = ( !$new['allow_mailchange'] ) ? "checked=\"checked\"" : "";
//fin mail change by sjpphpbb
//pass change by sjpphpbb
$passchange_yes = ( $new['allow_passchange'] ) ? "checked=\"checked\"" : "";
$passchange_no = ( !$new['allow_passchange'] ) ? "checked=\"checked\"" : "";
//fin pass change by sjpphpbb
##-------------[ FIND ]-------------
"L_ALLOW_NAME_CHANGE" => $lang['Allow_name_change'],
##-------------[ AFTER, ADD ]------------------------------------------
//mail change by sjpphpbb
"L_ALLOW_MAIL_CHANGE" => $lang['Allow_mail_change'],
//fin mail change by sjpphpbb
//pass change by sjpphpbb
"L_ALLOW_PASS_CHANGE" => $lang['Allow_pass_change'],
//fin pass change by sjpphpbb
##-------------[ FIND ]-------------
"NAMECHANGE_NO" => $namechange_no,
##-------------[ AFTER, ADD ]------------------------------------------
//mail change by sjpphpbb
"MAILCHANGE_YES" => $mailchange_yes,
"MAILCHANGE_NO" => $mailchange_no,
//fin mail change by sjpphpbb
//pass change by sjpphpbb
"PASSCHANGE_YES" => $passchange_yes,
"PASSCHANGE_NO" => $passchange_no,
//fin pass change by sjpphpbb
##-------------- OPEN includes/usercp_register.php -----------
##-------------[ FIND DELETE ]-------------
if ( $mode == 'editprofile' )
{
$template->assign_block_vars('switch_edit_profile', array());
}
##-------------[ FIND ]-------------
$template->assign_block_vars('switch_namechange_disallowed', array());
}
##-------------[ AFTER, ADD ]------
//mail change by sjpphpbb
if ( ($mode == 'register') || ($board_config['allow_mailchange']) )
{
$template->assign_block_vars('switch_mailchange_allowed', array());
if ( $mode == 'editprofile' )
{
$template->assign_block_vars('switch_edit_profile', array());
}
}
else
{
$template->assign_block_vars('switch_mailchange_disallowed', array());
}
//fin mail change by sjpphpbb
//pass change by sjpphpbb
if ( ($mode == 'register') || ($board_config['allow_passchange']) )
{
$template->assign_block_vars('switch_passchange_allowed', array());
}
else
{
$template->assign_block_vars('switch_passchange_disallowed', array());
}
//fin pass change by sjpphpbb
##-------------[ FIND ]-------------
'L_INTERESTS' => $lang['Interests'],
##-------------[ AFTER, ADD ]------------------------------------------
//mail-pass change by sjpphpbb
'L_EMAIL_EXPLAIN' => $lang['mail_explain'],
'L_PASS_EXPLAIN' => $lang['pass_explain'],
//fin mail-pass change by sjpphpbb
##-------------- OPEN language/lang_french/lang_admin.php -----------
##-------------[ FIND ]-------------
$lang['Allow_name_change'] = 'Autoriser les changements de Nom d\'utilisateur';
##-------------[ AFTER, ADD ]------------------------------------------
//mail - pass change by sjpphpbb
$lang['Allow_mail_change'] = 'Autoriser les changements d\'adresse email';
$lang['Allow_pass_change'] = 'Autoriser les changements de mot de passe';
//fin mail - pass change by sjpphpbb
##-------------- OPEN language/lang_french/lang_main.php -----------
##-------------[ FIND ]-------------
$lang['Email'] = 'E-mail';
##-------------[ AFTER, ADD ]------------------------------------------
//mail change by sjpphpbb
$lang['mail_explain'] = 'Si vous désirez changer d\'email<br>faite en la demande par MP a l\'administrateur.';
$lang['pass_explain'] = 'Si vous désirez changer de passe <br>faite en la demande par MP a l\'administrateur.';
//fin mail change by sjpphpbb
##-------------- OPEN templates/votre template/profile_add_body.tpl -----------
##-------------[ FIND ]-------------
<tr>
<td class="row1"><span class="gen">{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="gen">{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="gen">{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="gen">{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>
##-------------[ REPLACE WITH ]------
<!-- pass mail change by sjpphpbb -->
<!-- BEGIN switch_mailchange_disallowed -->
<tr>
<td class="row1"><span class="gen">{L_EMAIL_ADDRESS}: * <br>
<span class="gensmall">{L_EMAIL_EXPLAIN}</span></span></td>
<td class="row2"><input type="hidden" name="email" value="{EMAIL}" /><span class="gen"><b>{EMAIL}</b></span></td>
</tr>
<!-- END switch_mailchange_disallowed -->
<!-- BEGIN switch_mailchange_allowed -->
<tr>
<td class="row1"><span class="gen">{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>
<!-- END switch_mailchange_allowed -->
<!-- BEGIN switch_edit_profile -->
<tr>
<td class="row1"><span class="gen">{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 -->
<!-- BEGIN switch_passchange_disallowed -->
<tr>
<td class="row1"><span class="gen">{L_NEW_PASSWORD}: *</td>
<td class="row2"><span class="gensmall">{L_PASS_EXPLAIN}</span></span></span></td>
</tr>
<!-- END switch_passchange_disallowed -->
<!-- BEGIN switch_passchange_allowed -->
<tr>
<td class="row1"><span class="gen">{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="gen">{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>
<!-- END switch_passchange_allowed -->
<!-- fin pass mail change by sjpphpbb -->
##-------------- OPEN templates/votre template/admin/board_config_body.tpl -----------
##-------------[ FIND ]-------------
<tr>
<td class="row1">{L_ALLOW_NAME_CHANGE}</td>
<td class="row2"><input type="radio" name="allow_namechange" value="1" {NAMECHANGE_YES} /> {L_YES} <input type="radio" name="allow_namechange" value="0" {NAMECHANGE_NO} /> {L_NO}</td>
</tr>
##-------------[ AFTER, ADD ]------------------------------------------
<!-- pass mail change by sjpphpbb -->
<tr>
<td class="row1">{L_ALLOW_MAIL_CHANGE}</td>
<td class="row2"><input type="radio" name="allow_mailchange" value="1" {MAILCHANGE_YES} /> {L_YES} <input type="radio" name="allow_mailchange" value="0" {MAILCHANGE_NO} /> {L_NO}</td>
</tr>
<tr>
<td class="row1">{L_ALLOW_PASS_CHANGE}</td>
<td class="row2"><input type="radio" name="allow_passchange" value="1" {PASSCHANGE_YES} /> {L_YES} <input type="radio" name="allow_passchange" value="0" {PASSCHANGE_NO} /> {L_NO}</td>
</tr>
<!-- fin pass mail change by sjpphpbb -->
#
#-----[ SAVE/CLOSE/UPLOAD ALL FILES ]------------------------------------------
#
# EoM
ترجمه شده توسط : Mohsen khan
منبع :
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
نشنان دادن وضعيت انلاين بودن در ياهومسنجر(معرفي هك phpbb )
با سلام
Active AIM/YIM buttons
با استفاده از اين هك مي توانيد ، وضعيت انلاين بودن ياهو مسنجر و AIM را تغيير بدهيد . بديت ترتيب كه بعد از نصب اين هك ، چراغ قرمز به معني غيرفعال بودن و انلاين نبودن ، چراغ سبز به معني آنلاين بودن و خاكستري به معني نامعين بودن وضعيت است .
براي نصب اين هك ابتدا فايل زير را دريافت كنيد . سپس محتويات پوشه template را در پوشه template انجمن خود قرار دهيد و طبق دستور عمل كدها را نصب كنيد .
دريافت فايل :
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
دستورالعمل نصب هك :
کد:
##############################################################
## MOD Title: Active AIM/YIM Icons
## MOD Author: ScarecrowPA < scarecrowpa@scarecrowsfield.com > (James Irwin) http://www.scarecrowsfield.com
## MOD Description: Changes AIM and Yahoo Messenger icons to show online/offline status
## MOD Version: 1.0.0
##
## Installation Level: (Easy)
## Installation Time: x Minutes
## Files To Edit: includes/functions.php,
## includes/usercp_viewprofile.php,
## viewtopic.php,
## privmsg.php
## Included Files: templates/subSilver/images/lang_english/icon_aim_offline.gif,
## templates/subSilver/images/lang_english/icon_aim_online.gif,
## templates/subSilver/images/lang_english/icon_aim_unknown.gif,
## templates/subSilver/images/lang_english/icon_yim_offline.gif,
## templates/subSilver/images/lang_english/icon_yim_online.gif,
## templates/subSilver/images/lang_english/icon_yim_unknown.gif,
##
## 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 is my first attempt at MOD programming, be kind.
##############################################################
## MOD History:
##
## 2006-03-28 - Version 1.0.0
## - first release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------------------------------------------
# NOTE - customize if necessary and add these files to each installed template
#
copy root/templates/subSilver/images/lang_english/icon_aim_offline.gif to templates/subSilver/images/lang_english/icon_aim_offline.gif
copy root/templates/subSilver/images/lang_english/icon_aim_online.gif to templates/subSilver/images/lang_english/icon_aim_online.gif
copy root/templates/subSilver/images/lang_english/icon_aim_unknown.gif to templates/subSilver/images/lang_english/icon_aim_unknown.gif
copy root/templates/subSilver/images/lang_english/icon_yim_offline.gif to templates/subSilver/images/lang_english/icon_yim_offline.gif
copy root/templates/subSilver/images/lang_english/icon_yim_online.gif to templates/subSilver/images/lang_english/icon_yim_online.gif
copy root/templates/subSilver/images/lang_english/icon_yim_unknown.gif to templates/subSilver/images/lang_english/icon_yim_unknown.gif
#
#-----[ OPEN ]------------------------------------------
#
functions.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE ADD ]------------------------------------------
#
//
// CHECK IM STATUS
//
function aimyim_status($id,$host)
{
switch ($host) {
case "yahoo":
if ($id !== '') {
// Open a connection Yahoo's servers.
$url = @fsockopen("opi.yahoo.com", 80, &$errno, &$errstr, 3);
if (!$url) {
$message = "unknown";
} else {
fputs($url, "GET /online?u=$id&m=t HTTP/1.0\n\n");
// Read the resultant page and close the connection.
while(!feof($url)) {
$page .= fread($url,256);
}
fclose($url);
// Determine online status.
if (strstr($page, "NOT")) {
$message = "offline";
} else {
$message = "online";
}
}
return $message;
}
break;
case "aim":
if ($id !== '') {
// Open a connection AOL's servers.
$url = @fsockopen("big.oscar.aol.com", 80, &$errno, &$errstr, 3);
if (!$url) {
$message = "unknown";
} else {
fputs($url, "GET /$id?on_url=online&off_url=offline HTTP/1.0\n\n");
// Read the resultant page and close the connection.
while(!feof($url)) {
$page .= fread($url,256);
}
fclose($url);
// determine online status
if (strstr($page, "online")) {
$message = "online";
} else {
$message = "offline";
}
}
return $message;
}
break;
}
}
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
$aim_img = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $images['icon_aim'] . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : ' ';
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// AIMCHECK
//
$aimstaticon = 'templates/' . $theme['template_name'] . '/images/lang_' . $board_config['default_lang'] . '/';
$aimstatus = aimyim_status($profiledata['user_aim'],"aim");
switch($aimstatus) {
case "offline":
$aimstaticon .= 'icon_aim_offline.gif';
break;
case "online":
$aimstaticon .= 'icon_aim_online.gif';
break;
case "unknown":
$aimstaticon .= 'icon_aim_unknown.gif';
break;
default:
$aimstaticon .= 'icon_aim_unknown.gif';
}
$aim_img = ( $profiledata['user_aim'] ) ? '<a href="aim:goim?screenname=' . $profiledata['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $aimstaticon . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : ' ';
#
#-----[ FIND ]------------------------------------------
#
$yim_img = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// YIMCHECK
//
$yimstaticon = 'templates/' . $theme['template_name'] . '/images/' . $theme['body_background'] . '/lang_' . $board_config['default_lang'] . '/';
switch(aimyim_status($profiledata['user_yim'],'yahoo')) {
case "offline":
$yimstaticon .= '/icon_yim_offline.gif';
break;
case "online":
$yimstaticon .= '/icon_yim_online.gif';
break;
case "unknown":
$yimstaticon .= '/icon_yim_unknown.gif';
break;
}
$yim_img = ( $profiledata['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $profiledata['user_yim'] . '&.src=pg"><img src="' . $yimstaticon . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$aim_img = ( $postrow[$i]['user_aim'] ) ? '<a href="aim:goim?screenname=' . $postrow[$i]['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $images['icon_aim'] . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// AIMCHECK
//
$aimstaticon = 'templates/' . $theme['template_name'] . '/images/' . $theme['body_background'] . '/lang_' . $board_config['default_lang'] . '/';
switch(aimyim_status($postrow[$i]['user_aim'],'aim')) {
case "offline":
$aimstaticon .= '/icon_aim_offline.gif';
break;
case "online":
$aimstaticon .= '/icon_aim_online.gif';
break;
case "unknown":
$aimstaticon .= '/icon_aim_unknown.gif';
break;
}
$aim_img = ( $postrow[$i]['user_aim'] ) ? '<a href="aim:goim?screenname=' . $postrow[$i]['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $aimstaticon . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : '';
#
#-----[ FIND ]------------------------------------------
#
$yim_img = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
#
#-----[ REPLACE WITH]------------------------------------------
#
//
// YIMCHECK
//
$yimstaticon = 'templates/' . $theme['template_name'] . '/images/' . $theme['body_background'] . '/lang_' . $board_config['default_lang'] . '/';
switch(aimyim_status($postrow[$i]['user_yim'],'yahoo')) {
case "offline":
$yimstaticon .= '/icon_yim_offline.gif';
break;
case "online":
$yimstaticon .= '/icon_yim_online.gif';
break;
case "unknown":
$yimstaticon .= '/icon_yim_unknown.gif';
break;
}
$yim_img = ( $postrow[$i]['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $postrow[$i]['user_yim'] . '&.src=pg"><img src="' . $yimstaticon . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
$aim_img = ( $privmsg['user_aim'] ) ? '<a href="aim:goim?screenname=' . $privmsg['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $images['icon_aim'] . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// AIMCHECK
//
$aimstaticon = 'templates/' . $theme['template_name'] . '/images/' . $theme['body_background'] . '/lang_' . $board_config['default_lang'] . '/';
switch(aimyim_status($privmsg['user_aim'],'aim')) {
case "offline":
$aimstaticon .= '/icon_aim_offline.gif';
break;
case "online":
$aimstaticon .= '/icon_aim_online.gif';
break;
case "unknown":
$aimstaticon .= '/icon_aim_unknown.gif';
break;
}
$aim_img = ( $privmsg['user_aim'] ) ? '<a href="aim:goim?screenname=' . $privmsg['user_aim'] . '&message=Hello+Are+you+there?"><img src="' . $aimstaticon . '" alt="' . $lang['AIM'] . '" title="' . $lang['AIM'] . '" border="0" /></a>' : '';
#
#-----[ FIND ]------------------------------------------
#
$yim_img = ( $privmsg['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $privmsg['user_yim'] . '&.src=pg"><img src="' . $images['icon_yim'] . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// YIMCHECK
//
$yimstaticon = 'templates/' . $theme['template_name'] . '/images/' . $theme['body_background'] . '/lang_' . $board_config['default_lang'] . '/';
switch(aimyim_status($privmsg['user_yim'],'yahoo')) {
case "offline":
$yimstaticon .= '/icon_yim_offline.gif';
break;
case "online":
$yimstaticon .= '/icon_yim_online.gif';
break;
case "unknown":
$yimstaticon .= '/icon_yim_unknown.gif';
break;
}
$yim_img = ( $privmsg['user_yim'] ) ? '<a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $privmsg['user_yim'] . '&.src=pg"><img src="' . $yimstaticon . '" alt="' . $lang['YIM'] . '" title="' . $lang['YIM'] . '" border="0" /></a>' : '';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
ترجمه :mohsen khan
منبع :
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
اضافه كردن يك متن بالاي باكس ورود به سايت(معرفي هك phpbb )
با سلام
Active AIM/YIM buttons
با استفاده از اين هك مي توانيد ، يك متندر صفحه اول خود و در بالاي قسمت ورود به سايت بگذاريد . مانند صفحه اول انجمن پي سي ورد كه كاربران را راهنمايي مي كند كه اگر ثبت نام نكرده اند از اين قسمت ثبت نام كنند و اگر رمز عبور را فراموش كرده اند ، از اين قسمت وارد شوند . يا هر متن ديگري
اين متن پس از ورود كاربر به سايت ناپديد مي شود .
براي نصب اين هك ابتدا فايل زير را دريافت كنيد . سپس محتويات پوشه images را در پوشه images در پوشه template خود كپي كنيد . .
دريافت فايل :
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
پس از نصب اين فايل ، طبق دستورالعمل زير عمل كنيد .
کد:
##############################################################
## MOD Title: MODifications Links ...
## MOD Author: vNsTEo < vnsteo@yahoo.com > (Steven Danh) http://vnsteo.4rumvn.com
## MOD Description: this mod will add 1 more table onto "login box" it's look like a links show but i did make it for MODifications links , i want my members saw it when they on login box .. and it's will be disappear when they logon .. [ how about you ! :P ]
## MOD Version: 1.0.0
## Installation Level: (Easy)
## Installation Time: 2 Minutes
## Files To Edit: ( 3 files )
includes/page_header.php
language/lang_english/lang_main.php
templates/subsilver/index_body.tpl
## Included Files: ( 6 files ) 6 banners [88x31] .. of ...
http://www.phpbbhacks.com
http://phpbb.com/
http://phpbb2.de
http://smartor.is-root.com
http://mods.db9.dk
http://www.forumimages.com
##############################################################
## For Security Purposes, Please Check: http://www.vnsteo.4rumvn.com/ for the
## latest version of this MOD.
##############################################################
## Author Notes: { just a little times }
##
##############################################################
## MOD History:
##
## 2004-03-30 - Version 1.0.0
## - this is firts mod 4 me to be come mod hacker ...
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ COPY ]------
roof/images/ [[ to ]] yourroof/images
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'L_LOGIN' => $lang['Login'],
#
#-----[ Before Add ]------------------------------------------
#
'L_LINKS_ADDS_ON' => sprintf($lang['Links_adds_on'],$board_config['sitename']),
#
#-----[ OPEN ]-----------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
// Login
//
#
#-----[ after Add ]------------------------------------------
#
$lang['Links_adds_on'] = 'The MODifications / Graphics Adds On <font face="System" color="#FF0080"><i>%s</i></font> ..';
#
#-----[ OPEN ]-----------------------------------------------
#
templates/subsilver/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<form method="post" action="{S_LOGIN_ACTION}">
#
#-----[ after Add ]------------------------------------------
#
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="catHead" height="28"><span class="cattitle">{L_LINKS_ADDS_ON}</span></td>
</tr>
<tr>
<td class="row1" align="center"><a href="http://smartor.is-root.com" target="_blank"><img src="images/smartorsite_logo.gif" width="88" height="31" alt="Smartor Site" border="0" vspace="3"></a> <a href="http://www.phpbb.com/" target="_blank"><img src="images/phpBB_88a.gif" width="88" height="31" alt="Powered by phpBB2" title="Powered by phpBB2" border="0" vspace="3"/></a> <a href="http://www.phpbbhacks.com/" target="_blank"><img src="images/88x31button.gif" width="88" height="31" alt="Powered by phpBBHacks" title="Powered by phpBBHacks" border="0" vspace="3"/></a> <a href="http://www.Forumimages.com/" target="_blank"><img src="images/forum_images_banner_88x31d.gif" width="88" height="31" alt="Powered by Forumimages" title="Powered by Forumimages" border="0" vspace="3"/></a> <a href="http://www.phpBB2.de/" target="_blank"><img src="images/phpbb_de_88x31.gif" width="88" height="31" alt="Powered by phpBB2.de" title="Powered by phpBB2.de" border="0" vspace="3"/></a> <a href="http://mods.db9.dk/" target="_blank"><img src="images/phpdb9.gif" width="88" height="31" alt="Powered by mods.db9" title="Powered by mods.db9" border="0" vspace="3"/></a></td>
</tr>
</table>
<br />
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
ترجمه :mohsen khan
منبع :
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
اضافه كردن فلد دلخواه به پروفايل كاربر ( معرفي هك phpbb )
با سلام
Add a Custom Field
بوسيله اين هك مي توانيد يك فيلد دلخواه در پروفايل كاربر اضافه كنيد كه مشخصات اين فيلد در قسمت پروفايل به ديد عموم خواهد رسيد .
كد راهنماي اين هك :
کد:
##############################################################
## MOD Title : Add a Custom Field User Data Bank and Show in VIEWTOPIC ...
##
## MOD Author : Cyber ( Hyper )
## < webmaster@pptforum.com , dornabox@yahoo.com >
## < http://www.pptforum.com >
## MOD Description : Add the Field
##
## - Mobile Set ( or any field you want ... ) to your Userprofile AND show in viewtopic .
##
## MOD Version : [ 1.0.1 ]
##
## MOD Date : 26 June 2005
##
## Installation Level : [ Intermediate ]
## Installation Time : [ 20 ] Minutes
## Files To Edit : [ 11 ] files
##
## admin/admin_users.php
## includes/usercp_avatar.php
## includes/usercp_register.php
## includes/usercp_viewprofile.php
## language/lang_english/lang_main.php
## language/lang_german/lang_main.php
## templates/subSilver/admin/user_edit_body.tpl
## templates/subSilver/profile_add_body.tpl
## templates/subSilver/profile_view_body.tpl
##
## viewtopic.php
## templates/subSilver/viewtopic_body.tpl
## Included Files: n/a
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
ALTER TABLE phpbb_users ADD user_mobile VARCHAR(255) AFTER user_interests;
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Add a Custom Field User Data Bank and Show in VIEWTOPIC ...
$lang['mobile'] = 'Mobile Set ';
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Add a Custom Field User Data Bank and Show in VIEWTOPIC ...
'mobile' => ( $profiledata['user_mobile'] ) ? $profiledata['user_mobile'] : ' ',
'L_mobile' => $lang['mobile'],
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
$strip_var_list = array('username' => 'username', 'email' => 'email', 'icq' => 'icq', 'aim' => 'aim', 'msn' => 'msn', 'yim' => 'yim', 'website' => 'website', 'location' => 'location', 'occupation' => 'occupation', 'interests' => 'interests');
#
#-----[ IN-LINE FIND ]------------------------------------------
#
'interests'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, 'mobile' => 'mobile'
#
#-----[ FIND (2 times!!)]------------------------------------------
#
$interests = stripslashes($interests);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Add a Custom Field User Data Bank and Show in VIEWTOPIC ...
$mobile = stripslashes($mobile);
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$interests) . "'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_mobile = '" . str_replace("\'", "''", $mobile) . "'
#
#-----[ FIND ]------------------------------------------
#
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website,
#
#-----[ IN-LINE FIND ]------------------------------------------
#
'" . str_replace("\'", "''", $interests) . "',
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
'" . str_replace("\'", "''", $mobile) . "',
#
#-----[ FIND ]---------------------------------------------------
#
$sql = "INSERT INTO " . USERS_TABLE . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_interests
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_mobile
#
#-----[ FIND ]------------------------------------------
#
$interests = $userdata['user_interests'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Add a Custom Field User Data Bank and Show in VIEWTOPIC ...
$mobile = $userdata['user_mobile'];
#
#-----[ FIND ]------------------------------------------
#
display_avatar_gallery($mode, $avatar_category
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$interests
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, $mobile
#
#-----[ FIND (2 times!!)]------------------------------------------
#
'INTERESTS' => $interests,
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Add a Custom Field User Data Bank and Show in VIEWTOPIC ...
'mobile' => $mobile,
'L_mobile' => $lang['mobile'],
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_avatar.php
#
#-----[ FIND ]------------------------------------------
#
function display_avatar_gallery($mode, &$category
#
#-----[ IN-LINE FIND ]------------------------------------------
#
&$interests
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, &$mobile
#
#-----[ FIND ]------------------------------------------
#
$params = array('coppa', 'user_id'
#
#-----[ IN-LINE FIND ]------------------------------------------
#
'dateformat'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, 'mobile'
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]------------------------------------------
#
$interests = ( !empty($HTTP_POST_VARS['interests']) ) ? trim(strip_tags( $HTTP_POST_VARS['interests'] ) ): '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Add a Custom Field User Data Bank and Show in VIEWTOPIC ...
$mobile = ( !empty($HTTP_POST_VARS['mobile']) ) ? trim(strip_tags( $HTTP_POST_VARS['mobile'] ) ) : '';
#
#-----[ FIND (2 Times!!)]------------------------------------------
#
$interests = htmlspecialchars(stripslashes($interests));
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Add a Custom Field User Data Bank and Show in VIEWTOPIC ...
$mobile = htmlspecialchars(stripslashes($mobile));
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$interests) . "'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_mobile = '" . str_replace("\'", "''", $mobile) . "'
#
#-----[ FIND ]------------------------------------------
#
$interests = htmlspecialchars($this_userdata['user_interests']);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Add a Custom Field User Data Bank and Show in VIEWTOPIC ...
$mobile = htmlspecialchars($this_userdata['user_mobile']);
#
#-----[ FIND ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="interests" value="' . str_replace("\"", """, $interests) . '" />';
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Add a Custom Field User Data Bank and Show in VIEWTOPIC ...
$s_hidden_fields .= '<input type="hidden" name="mobile" value="' . str_replace("\"", """, $mobile) . '" />';
#
#-----[ FIND ]------------------------------------------
#
'INTERESTS' => $interests,
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Add a Custom Field User Data Bank and Show in VIEWTOPIC ...
'mobile' => $mobile,
'L_mobile' => $lang['mobile'],
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{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>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- Add a Custom Field User Data Bank and Show in VIEWTOPIC ... -->
<tr>
<td class="row1"><span class="explaintitle">{L_mobile}:</span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="mobile" size="35" maxlength="250" value="{mobile}" onKeyDown="FKeyDown();" onkeypress="FKeyPress();" /> </td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td valign="top" align="right"><span class="gen">{L_INTERESTS}:</span></td>
<td> <b><span class="gen">{INTERESTS}</span></b></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- Add a Custom Field User Data Bank and Show in VIEWTOPIC ... -->
<tr>
<td valign="top" align="right" class="explaintitle">{L_mobile}:</td>
<td><span class="gen">{mobile}</span></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_INTERESTS}</span></td>
<td class="row2">
<input type="text" name="interests" size="35" maxlength="150" value="{INTERESTS}" />
</td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- Add a Custom Field User Data Bank and Show in VIEWTOPIC ... -->
<tr>
<td class="row1"><span class="gen">{L_mobile}</span></td>
<td class="row2"> <input class="post" type="text" name="mobile" size="35" maxlength="250" value="{mobile}" onKeyDown="FKeyDown();" onkeypress="FKeyPress();" /> </td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
//
// Go ahead and pull all data for this topic
//
$sql = "SELECT u.username, u.user_id, u.user
#
#-----[ IN-LINE FIND ]------------------------------------------
#
pt.bbcode_uid
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, u.user_mobile
#
#-----[ FIND ]------------------------------------------
#
$poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': ' . $postrow[$i]['user_from'] : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$user_mobile = ( $postrow[$i]['user_mobile'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['mobile'] . ': ' . $postrow[$i]['user_mobile'] : '';
#
#-----[ FIND ]------------------------------------------
#
'POSTER_FROM' => $poster_from,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'POSTER_MOBILE' => $user_mobile,
#
#-----[ OPEN ]------------------------------------------
#
viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<center>{postrow.POSTER_POSTS}<br />
#
#-----[ AFTER, ADD ]------------------------------------------
#
{postrow.POSTER_MOBILE}<br />
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
ترجمه شده توسط : mohsen khan
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
لينك كنترل پانل هاستينگ در كنترل پانل ادمين انجمن( معرفي هك phpbb )
با سلام
Add a Link to Your cPanel
بوسيله اين هك مي توانيد لينك مربوط به كنترل پانل هاستينگ خود را در كنترل پانل انجمن خود قرار دهيد تا در مواقع لزوم با يك كليك به كنترل پانل هاستينگ خود دسترسي داشته باشيد .
مانند عكس زير :
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
كد راهنماي اين هك :
کد:
##############################################################
# MOD Title: Add cpanel Link
# MOD Author: Griff g89rgrules@gmail.com http://www.realisationinc.co.nr
# MOD Description: Adds a link to cpanel in the Admin Control Panel
# MOD Version: Original
#
# Installation Level: Easy
# Installation Time: 5 Minutes
# Files To Edit: includes/constants.php,
# language/lang_english/lang_main.php, admin/index.php,
# templates/subSilver/admin/index_navigate.tpl
# Included Files: n/a
##############################################################
# Authors Notes:
# When making the changes to constants.php, be sure to follow the one simple
# instruction in the code you add to that file. See readme.txt for other notes.
##############################################################
# BEFORE ADDING THIS TO YOUR FORUM, YOU SHOULD BACK UP ALL RELATED FILES.
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// MOD: Add cpanel Link
//
// Replace url_to_your_cpanel with the *full* URL to your
// phpMyAdmin installation.
// Example: define('CPANEL', 'http://www.some-site.com/admin/cpanel/');
define('CPANEL', 'url_to_your_cpanel');
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// MOD: Add cpanel Link
//
$lang['cpanel'] = 'cpanel';
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
"U_ADMIN_INDEX" => append_sid("index.$phpEx?pane=right"),
#
#-----[ AFTER, ADD ]------------------------------------------
#
//
// MOD: Add cpanel Link
//
'U_CPANEL' => CPANEL,
'L_CPANEL' => $lang['cpanel'],
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/index_navigate.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN catrow -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="genmed"><a href="{U_CPANEL}" target="main" class="genmed">{L_CPANEL}</a></span></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# End
ترجمه شده توسط : mohsen khan
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
نمايش ليست تاپيك هاي فعال ( معرفي هك phpbb )
با سلام
Active Topics List
بوسيله اين هك مي توانيد ليستي از تاپيك هاي فعال انجمن خود را به نمايش در آوريد .
براي اين كار كافي است ، فايل زير را در يافت كنيد و از حالت فشرده درآوريد و دوفايل موجود در آن را در انجمن خود كپي كنيد .
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
ترجمه شده توسط : mohsen khan
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
نمايش فعال يا غير فعال بودن تاپيك ها ( معرفي هك phpbb )
با سلام
Add a Status to Topic
بوسيله اين هك مي توانيد وضعيت تاپيك هاي خود را مشخص كنيد ، مثلا اين تاپيك فعال است ، غير فعل است و يا .... جملاتي از اين قبيل .
ابتدا فايل مورد نظر را دريافت كنيد و محتويات پوشه english را در ميان فايل هاي خود كپي كنيد .
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
دستورالعمل نصب هك :
کد:
##############################################################
# MOD Title: Add cpanel Link
# MOD Author: Griff g89rgrules@gmail.com http://www.realisationinc.co.nr
# MOD Description: Adds a link to cpanel in the Admin Control Panel
# MOD Version: Original
#
# Installation Level: Easy
# Installation Time: 5 Minutes
# Files To Edit: includes/constants.php,
# language/lang_english/lang_main.php, admin/index.php,
# templates/subSilver/admin/index_navigate.tpl
# Included Files: n/a
##############################################################
# Authors Notes:
# When making the changes to constants.php, be sure to follow the one simple
# instruction in the code you add to that file. See readme.txt for other notes.
##############################################################
# BEFORE ADDING THIS TO YOUR FORUM, YOU SHOULD BACK UP ALL RELATED FILES.
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// MOD: Add cpanel Link
//
// Replace url_to_your_cpanel with the *full* URL to your
// phpMyAdmin installation.
// Example: define('CPANEL', 'http://www.some-site.com/admin/cpanel/');
define('CPANEL', 'url_to_your_cpanel');
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// MOD: Add cpanel Link
//
$lang['cpanel'] = 'cpanel';
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
"U_ADMIN_INDEX" => append_sid("index.$phpEx?pane=right"),
#
#-----[ AFTER, ADD ]------------------------------------------
#
//
// MOD: Add cpanel Link
//
'U_CPANEL' => CPANEL,
'L_CPANEL' => $lang['cpanel'],
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/index_navigate.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN catrow -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="genmed"><a href="{U_CPANEL}" target="main" class="genmed">{L_CPANEL}</a></span></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# End
ترجمه شده توسط : mohsen khan
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن