سلام
منظورم برداشتن آرم بود.نقل قول:
Printable View
سلام
منظورم برداشتن آرم بود.نقل قول:
سلام
من از
phpBB-3.0.B5
و
EasyPHP1-8
استفاده می کنم اما توی مرحله آخر ساختن database
گیر می کنه و جلو نمیره مشکل کجاست ؟
مراحل نصب این version رو هم می ذارین؟یه خورده با قبلی فرق
داره
ممنون
سلام
چند تا سوال
1- چطوری باید قالب پیش فرض رو تغییر داد؟
2- چطوری میشه "زیر مجموعه" ساخت؟
3- چطوری سایت رو روی هاست باید قرار داد؟
یه قالب فارسی و شاد و خوش رنگ می خواستم
از کجا میشه اینا رو گیر آورد.
ممنون
سلام
1-براي تغيير قالب پيش فرض وارد كنترل پانل مديريت شويد و از انجا وارد پيكربندي سيستم شويد .
در آنجا قالب پيش فرض را عوض كنيد .
نكته : هرگاه قالب جديدي را آپلود كرديد ، ابتدا بايد در مديريت قالب ها آن را نصب كنيد.
2-براي سايخت زير مجموعه وارد قسمت مديريت انجمن ها شويد و از آنجا در قسمت مديريت زير مجموعه بسازيد.
3-بعد از اين كه هاست را خريداري كرديد ، بوسيله نرم افزار فرانت پيج و از طريق قسمت remote web site مي توانيد فايل هاي خود را آپلود كنيد
براي قالب فارسي هم به سايت زير مراجعه كنيد
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
نقل قول:
2-براي سايخت زير مجموعه وارد قسمت مديريت انجمن ها شويد و از آنجا در قسمت مديريت زير مجموعه بسازيد.
البته باید مد ساخت زیر مجموعه رو هم نصب کرده باشین
که بهتره از simple sub forum استفاده بشه جئن این مد با مدهای سئو هم خوانی داره ولی مد easy sub forum مشکل داره با مدهای سئو
فكر كنم منظور ايشون همون زير مجموعه اوليه است
نه اينكه يك زير مجموعه براي يكي از زير مجموعه هامون بسازيم
سلام
میشه لینک شو بذاریننقل قول:
ممنون
سلام
1-چطوری میشه موقع ثبت نام شرط 13 سال به بالا رو برداشت؟
2-بعد از هر بار پست دادن صفحه ای که میگه "برای مشاهده پست اینجا
کلیک کنید" رو برداشت؟
3-مد تبلیغات رو می خواستم که
هم بالای سایت هم پایین سایت باشه (هم در صفحه اصلی
و هم در انجمن ها)
وهم به صورت درصدی باشه مثل
50% یعنی از هر دوبار باز شده صفحه یک بار
تبلیغ ظاهر بشه
ممنون
به نام خدانقل قول:
با سلام
دوست عزيز شما بايد فايل agreement.tpl در قالب انجمنتان را ويرايش بكنيد
در ضمن در قسمت language\lang_farsi و فايل lang_main.php را هم ويرايش بكنيد
و كدهاي زير را هم عوض بكنيد البته فقط نوشته هايش را
سه خط
$lang['Agree_under_13'] ='...';
$lang['Agree_over_13'] ='...';
$lang['Agree_not'] = '...';
را پيدا كرده و نوشته هايشان را عوض بكنيد
با تشكر
به نام خدانقل قول:
با سلام
دوست عزيز جهت برداشتن آرم بايد فايل overall_header.tpl در داخل پوشه قالبتان را ويرايش بكنيد
البته مواظب اين فايل overall_header.tpl باشيد كدهايش را زياد تغيير ندهيد زيرا قالبتان خراب مي شود.
با تشكر
با سلام
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
محسن
با سلام
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
منبع : [ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
Account Self Delete
با استفاده از اين هك ، مي توانيد اين امكان را به كاربران بدهيد تا بتوانند نام كاربري خود را پاك كنند.
ترجمه شده توسط : Mohsen khanکد:##############################################################
## 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
منبع : [ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
Activate/Deactivate Changing of E-Mail and Password
با استفاده از اين هك ، مي توانيد اين امكان را به كاربران بدهيد تا بتوانند آدرس ايميل خود و كلمه عبور خود را تعويض نمايند . اين كار با تغيير در كنترل پنل ادمين صورت مي گيرد .
ترجمه شده توسط : Mohsen khanکد:######################################################################
## 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
منبع : [ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
Active AIM/YIM buttons
با استفاده از اين هك مي توانيد ، وضعيت انلاين بودن ياهو مسنجر و AIM را تغيير بدهيد . بديت ترتيب كه بعد از نصب اين هك ، چراغ قرمز به معني غيرفعال بودن و انلاين نبودن ، چراغ سبز به معني آنلاين بودن و خاكستري به معني نامعين بودن وضعيت است .
براي نصب اين هك ابتدا فايل زير را دريافت كنيد . سپس محتويات پوشه template را در پوشه template انجمن خود قرار دهيد و طبق دستور عمل كدها را نصب كنيد .
دريافت فايل :
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
دستورالعمل نصب هك :
ترجمه :mohsen khanکد:##############################################################
## 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
منبع : [ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
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
منبع : [ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
Add a Custom Field
بوسيله اين هك مي توانيد يك فيلد دلخواه در پروفايل كاربر اضافه كنيد كه مشخصات اين فيلد در قسمت پروفايل به ديد عموم خواهد رسيد .
كد راهنماي اين هك :
ترجمه شده توسط : mohsen khanکد:##############################################################
## 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
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
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
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
Active Topics List
بوسيله اين هك مي توانيد ليستي از تاپيك هاي فعال انجمن خود را به نمايش در آوريد .
براي اين كار كافي است ، فايل زير را در يافت كنيد و از حالت فشرده درآوريد و دوفايل موجود در آن را در انجمن خود كپي كنيد .
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
ترجمه شده توسط : mohsen khan
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
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
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
Add ACP Links
بوسيله اين هك مي توانيد هر لينكي را كه بخواهيد يه كنترل پانل ادمين خود اضافه كنيد .
ابتدا فايل مورد نظر را دريافت كنيد و محتويات را در ميان فايل هاي خود كپي كنيد .
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
دستورالعمل نصب هك :
کد:##############################################################
## MOD Title: add_ACP_links
## MOD Author: wicher <http://www.detecties.com/phpbb2018>
##
##
## MOD Description: This mod adds links into your ACP,
## you can easy define them yourself in the included file.
##
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 1 Minutes
## Files To Edit: language/lang_admin.php
## Included Files: admin_links.php
##############################################################
## For Security Purposes, Please Check: http://www.phpbbhacks.com 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.phpbbhacks.com
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ EDIT ]------------------------------------------
#
open the included file admin_links.php and add the links you want in your ACP
#
#-----[ SAVE/CLOSE ]------------------------------------------
#
admin_links.php
#
#-----[ COPY ]------------------------------------------
#
copy admin_links.php to admin/admin_links.php
#
#-----[ OPEN ]------------------------------------------
#
language/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Styles'] = 'Styles Admin';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Extra_links'] = 'Extra Links';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
ترجمه شده توسط : mohsen khan
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
بوسيله اين هك مي توانيد فيلدي را در پرفايل كاربران خود اضافه كنيد تا انها مدل اتومبيل خود را بنويسند !!!!.
دستورالعمل نصب هك :
ترجمه شده توسط : mohsen khanکد:###################################################################################
##
## ---- Title: Add info-car to profile
## ---- Version: 0.0.1
## Author: hobo < portal@hacksphpbb.ru > http://www.hacksphpbb.ru
##
## Description: Add info-car to profile (mark, model, year, engine, wheel, trans, color, url_foto)
##
## Files to edit: 8
## admin/admin_users.php
## language/lang_english/lang_main.php
## includes/usercp_viewprofile.php
## includes/usercp_register.php
## includes/usercp_avatar.php
## templates/xxx/admin/user_edit_body.tpl
## templates/xxx/profile_add_body.tpl
## templates/xxx/profile_view_body.tpl
##
###################################################################################
##
## Installation/Author Notes:
## First always backup the files that you're going to edit.
##
## This hacks adds a new column to your 'user' table.
##
###################################################################################
#
#-----[ SQL ]-------------------------------------------
#
# You may have to change your database prefix
ALTER TABLE phpbb_users ADD user_car_mark VARCHAR(255) AFTER user_interests;
ALTER TABLE phpbb_users ADD user_car_model VARCHAR(255) AFTER user_car_mark;
ALTER TABLE phpbb_users ADD user_car_year VARCHAR(255) AFTER user_car_model;
ALTER TABLE phpbb_users ADD user_car_engine VARCHAR(255) AFTER user_car_year;
ALTER TABLE phpbb_users ADD user_car_wheel VARCHAR(255) AFTER user_car_engine;
ALTER TABLE phpbb_users ADD user_car_trans VARCHAR(255) AFTER user_car_wheel;
ALTER TABLE phpbb_users ADD user_car_color VARCHAR(255) AFTER user_car_trans;
ALTER TABLE phpbb_users ADD user_car_foto VARCHAR(255) AFTER user_car_foto;
##
###################################################################################
#
#-----[ OPEN ]------------------------------------------
#
# language/lang_english/lang_main.php
#
#-----[ FIND ]---------------------------------------------------
#
$lang['Interests'] = 'Èíòåðåñû';
#
#-----[ ADD BELOW ]---------------------------------------------------
#
$lang['Car'] = 'Auto';
$lang['Car_Mark'] = 'Mark auto';
$lang['Car_Model'] = 'Model auto';
$lang['Car_Year'] = 'Year auto';
$lang['Car_Engine'] = 'Engine auto';
$lang['Car_Wheel'] = 'Wheel auto';
$lang['Car_Trans'] = 'Trans auto';
$lang['Car_Color'] = 'Color auto';
$lang['Car_Foto'] = 'URL to foto';
#
#-----[ OPEN ]------------------------------------------
#
# includes/usercp_viewprofile.php
#
#-----[ FIND ]---------------------------------------------------
#
'INTERESTS' => ( $profiledata['user_interests'] ) ? $profiledata['user_interests'] : ' ',
#
#-----[ ADD BELOW ]---------------------------------------------------
#
'CAR_MARK' => ( $profiledata['user_car_mark'] ) ? $profiledata['user_car_mark'] : ' ',
'CAR_MODEL' => ( $profiledata['user_car_model'] ) ? $profiledata['user_car_model'] : ' ',
'CAR_YEAR' => ( $profiledata['user_car_year'] ) ? $profiledata['user_car_year'] : ' ',
'CAR_ENGINE' => ( $profiledata['user_car_engine'] ) ? $profiledata['user_car_engine'] : ' ',
'CAR_WHEEL' => ( $profiledata['user_car_wheel'] ) ? $profiledata['user_car_wheel'] : ' ',
'CAR_TRANS' => ( $profiledata['user_car_trans'] ) ? $profiledata['user_car_trans'] : ' ',
'CAR_COLOR' => ( $profiledata['user_car_color'] ) ? $profiledata['user_car_color'] : ' ',
'CAR_FOTO' => ( $profiledata['user_car_foto'] ) ? $profiledata['user_car_foto'] : ' ',
'L_CAR' => $lang['Car'],
'L_CAR_MARK' => $lang['Car_Mark'],
'L_CAR_MODEL' => $lang['Car_Model'],
'L_CAR_YEAR' => $lang['Car_Year'],
'L_CAR_ENGINE' => $lang['Car_Engine'],
'L_CAR_WHEEL' => $lang['Car_Wheel'],
'L_CAR_TRANS' => $lang['Car_Trans'],
'L_CAR_COLOR' => $lang['Car_Color'],
'L_CAR_FOTO' => $lang['Car_Foto'],
#
#-----[ 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 ADD ]---------------------------------------------------
#
, 'car_mark' => 'car_mark', 'car_model' => 'car_model', 'car_year' => 'car_year', 'car_engine' => 'car_engine', 'car_wheel' => 'car_wheel', 'car_trans' => 'car_trans', 'car_color' => 'car_color', 'car_foto' => 'car_foto'
#
#-----[ FIND ]---------------------------------------------------
#
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, $car_mark, $car_model, $car_year, $car_engine, $car_wheel, $car_trans, $car_color, $car_foto
#
#-----[ FIND (1st occurence) ]---------------------------------------------------
#
$interests = stripslashes($interests);
#
#-----[ ADD BELOW ]---------------------------------------------------
#
$car_mark = stripslashes($car_mark);
$car_model = stripslashes($car_model);
$car_year = stripslashes($car_year);
$car_engine = stripslashes($car_engine);
$car_wheel = stripslashes($car_wheel);
$car_trans = stripslashes($car_trans);
$car_color = stripslashes($car_color);
$car_foto = stripslashes($car_foto);
#
#-----[ FIND ]---------------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_sig_bbcode_uid = '$signature_bbcode_uid', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_active = $user_active, user_actkey = '" . str_replace("\'", "''", $user_actkey) . "'" . $avatar_sql . "
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests) . "'
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, user_car_mark = '" . str_replace("\'", "''", $car_mark) . "', user_car_model = '" . str_replace("\'", "''", $car_model) . "', user_car_year = '" . str_replace("\'", "''", $car_year) . "', user_car_engine = '" . str_replace("\'", "''", $car_engine) . "', user_car_wheel = '" . str_replace("\'", "''", $car_wheel) . "', user_car_trans = '" . str_replace("\'", "''", $car_trans) . "', user_car_color = '" . str_replace("\'", "''", $car_color) . "', user_car_foto = '" . str_replace("\'", "''", $car_foto) . "'
#
#-----[ FIND ]---------------------------------------------------
#
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email, user_icq, user_website, user_occ, user_from, user_interests, user_sig, user_sig_bbcode_uid, user_avatar, user_avatar_type, user_viewemail, user_aim, user_yim, user_msnm, user_attachsig, user_allowsmile, user_allowhtml, user_allowbbcode, user_allow_viewonline, user_notify, user_notify_pm, user_popup_pm, user_timezone, user_dateformat, user_lang, user_style, user_level, user_allow_pm, user_active, user_actkey)
VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $password) . "', '" . str_replace("\'", "''", $email) . "', '" . str_replace("\'", "''", $icq) . "', '" . str_replace("\'", "''", $website) . "', '" . str_replace("\'", "''", $occupation) . "', '" . str_replace("\'", "''", $location) . "', '" . str_replace("\'", "''", $interests) . "', '" . str_replace("\'", "''", $signature) . "', '$signature_bbcode_uid', $avatar_sql, $viewemail, '" . str_replace("\'", "''", str_replace(' ', '+', $aim)) . "', '" . str_replace("\'", "''", $yim) . "', '" . str_replace("\'", "''", $msn) . "', $attachsig, $allowsmilies, $allowhtml, $allowbbcode, $allowviewonline, $notifyreply, $notifypm, $popuppm, $user_timezone, '" . str_replace("\'", "''", $user_dateformat) . "', '" . str_replace("\'", "''", $user_lang) . "', $user_style, 0, 1, ";
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
user_interests
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, user_car_mark, user_car_model, user_car_year, user_car_engine, user_car_wheel, user_car_trans, user_car_color, user_car_foto
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests) . "'
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, '" . str_replace("\'", "''", $car_mark) . "', '" . str_replace("\'", "''", $car_model) . "', '" . str_replace("\'", "''", $car_year) . "', '" . str_replace("\'", "''", $car_engine) . "', '" . str_replace("\'", "''", $car_wheel) . "', '" . str_replace("\'", "''", $car_trans) . "', '" . str_replace("\'", "''", $car_color) . "', '" . str_replace("\'", "''", $car_foto) . "'
#
#-----[ FIND (2nd occurence) ]---------------------------------------------------
#
$interests = stripslashes($interests);
#
#-----[ ADD BELOW ]---------------------------------------------------
#
$car_mark = stripslashes($car_mark);
$car_model = stripslashes($car_model);
$car_year = stripslashes($car_year);
$car_engine = stripslashes($car_engine);
$car_wheel = stripslashes($car_wheel);
$car_trans = stripslashes($car_trans);
$car_color = stripslashes($car_color);
$car_foto = stripslashes($car_foto);
#
#-----[ FIND ]---------------------------------------------------
#
$interests = $userdata['user_interests'];
#
#-----[ ADD BELOW ]---------------------------------------------------
#
$car_mark = $userdata['user_car_mark'];
$car_model = $userdata['user_car_model'];
$car_year = $userdata['user_car_year'];
$car_engine = $userdata['user_car_engine'];
$car_wheel = $userdata['user_car_wheel'];
$car_trans = $userdata['user_car_trans'];
$car_color = $userdata['user_car_color'];
$car_foto = $userdata['user_car_foto'];
#
#-----[ FIND ]---------------------------------------------------
#
display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email, $coppa, $username, $email, &$new_password, &$cur_password, $password_confirm, $icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature, $viewemail, $notifypm, $popuppm, $notifyreply, $attachsig, $allowhtml, $allowbbcode, $allowsmilies, $allowviewonline, $user_style, $user_lang, $user_timezone, $user_dateformat, $userdata['session_id']);
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$user_dateformat
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, $car_mark, $car_model, $car_year, $car_engine, $car_wheel, $car_trans, $car_color, $car_foto
#
#-----[ FIND (just a quote) ]--------------------------
#
$template->assign_vars(array(
.
.
.
.
'INTERESTS' => $interests,
#
#-----[ ADD BELOW ]---------------------------------------------------
#
'CAR_MARK' => $car_mark,
'L_CAR_MARK' => $lang['Car_Mark'],
'CAR_MODEL' => $car_model,
'L_CAR_MODEL' => $lang['Car_Model'],
'CAR_YEAR' => $car_year,
'L_CAR_YEAR' => $lang['Car_Year'],
'CAR_ENGINE' => $car_engine,
'L_CAR_ENGINE' => $lang['Car_Engine'],
'CAR_WHEEL' => $car_wheel,
'L_CAR_WHEEL' => $lang['Car_Wheel'],
'CAR_TRANS' => $car_trans,
'L_CAR_TRANS' => $lang['Car_Trans'],
'CAR_COLOR' => $car_color,
'L_CAR_COLOR' => $lang['Car_Color'],
'CAR_FOTO' => $car_foto,
'L_CAR_FOTO' => $lang['Car_Foto'],
#
#-----[ OPEN ]------------------------------------------
#
# includes/usercp_avatar.php
#
#-----[ FIND ]---------------------------------------------------
#
function display_avatar_gallery($mode, &$category, &$user_id, &$email, &$current_email, &$coppa, &$username, &$email, &$new_password, &$cur_password, &$password_confirm, &$icq, &$aim, &$msn, &$yim, &$website, &$location, &$occupation, &$interests, &$signature, &$viewemail, &$notifypm, &$popuppm, &$notifyreply, &$attachsig, &$allowhtml, &$allowbbcode, &$allowsmilies, &$hideonline, &$style, &$language, &$timezone, &$dateformat, &$session_id)
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
&$dateformat
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, &$car_mark, &$car_model, &$car_year, &$car_engine, &$car_wheel, &$car_trans, &$car_color, &$car_foto
#
#-----[ FIND ]---------------------------------------------------
#
$params = array('coppa', 'user_id', 'username', 'email', 'current_email', 'cur_password', 'new_password', 'password_confirm', 'icq', 'aim', 'msn', 'yim', 'website', 'location', 'occupation', 'interests', 'signature', 'viewemail', 'notifypm', 'popuppm', 'notifyreply', 'attachsig', 'allowhtml', 'allowbbcode', 'allowsmilies', 'hideonline', 'style', 'language', 'timezone', 'dateformat');
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
'dateformat'
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, 'car_mark', 'car_model', 'car_year', 'car_engine', 'car_wheel', 'car_trans', 'car_color', 'car_color'
#
#-----[ OPEN ]------------------------------------------
#
# admin/admin_users.php
#
#-----[ FIND ]---------------------------------------------------
#
$interests = ( !empty($HTTP_POST_VARS['interests']) ) ? trim(strip_tags( $HTTP_POST_VARS['interests'] ) ) : '';
#
#-----[ ADD BELOW ]---------------------------------------------------
#
$car_mark = ( !empty($HTTP_POST_VARS['car_mark']) ) ? trim(strip_tags( $HTTP_POST_VARS['car_mark'] ) ) : '';
$car_model = ( !empty($HTTP_POST_VARS['car_model']) ) ? trim(strip_tags( $HTTP_POST_VARS['car_model'] ) ) : '';
$car_year = ( !empty($HTTP_POST_VARS['car_year']) ) ? trim(strip_tags( $HTTP_POST_VARS['car_year'] ) ) : '';
$car_engine = ( !empty($HTTP_POST_VARS['car_engine']) ) ? trim(strip_tags( $HTTP_POST_VARS['car_engine'] ) ) : '';
$car_wheel= ( !empty($HTTP_POST_VARS['music']) ) ? trim(strip_tags( $HTTP_POST_VARS['car_wheel'] ) ) : '';
$car_trans = ( !empty($HTTP_POST_VARS['car_trans']) ) ? trim(strip_tags( $HTTP_POST_VARS['car_trans'] ) ) : '';
$car_color = ( !empty($HTTP_POST_VARS['car_color']) ) ? trim(strip_tags( $HTTP_POST_VARS['car_color'] ) ) : '';
$car_foto = ( !empty($HTTP_POST_VARS['car_foto']) ) ? trim(strip_tags( $HTTP_POST_VARS['car_foto'] ) ) : '';
#
#-----[ FIND ]---------------------------------------------------
#
validate_optional_fields($icq, $aim, $msn, $yim, $website, $location, $occupation, $interests, $signature);
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, $car_mark, $car_model, $car_year, $car_engine, $car_wheel, $car_trans, $car_color, $car_foto
#
#-----[ FIND (1st occurence) ]--------------------------------------------
#
$interests = htmlspecialchars(stripslashes($interests));
#
#-----[ AFTER ADD ]---------------------------------------------------
#
$car_mark = htmlspecialchars(stripslashes($car_mark));
$car_model = htmlspecialchars(stripslashes($car_model));
$car_year = htmlspecialchars(stripslashes($car_year));
$car_engine = htmlspecialchars(stripslashes($car_engine));
$car_wheel = htmlspecialchars(stripslashes($car_wheel));
$car_trans = htmlspecialchars(stripslashes($car_trans));
$car_color = htmlspecialchars(stripslashes($car_color));
$car_foto = htmlspecialchars(stripslashes($car_foto));
#
#-----[ FIND ]---------------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank" . $avatar_sql . "
#
#-----[ IN-LINE FIND ]---------------------------------------------------
#
$interests) . "'
#
#-----[ IN-LINE ADD ]---------------------------------------------------
#
, user_car_mark = '" . str_replace("\'", "''", $car_mark) . "', user_car_model = '" . str_replace("\'", "''", $car_model) . "', user_car_year = '" . str_replace("\'", "''", $car_year) . "', user_car_engine = '" . str_replace("\'", "''", $car_engine) . "', user_car_wheel = '" . str_replace("\'", "''", $car_wheel) . "', user_car_trans = '" . str_replace("\'", "''", $car_trans) . "', user_car_color = '" . str_replace("\'", "''", $car_color) . "', user_car_foto = '" . str_replace("\'", "''", $car_foto) . "'
#
#-----[ FIND (2nd occurence) ]-------------------------------------------
#
$interests = htmlspecialchars(stripslashes($interests));
#
#-----[ ADD BELOW ]---------------------------------------------------
#
$car_mark = htmlspecialchars(stripslashes($car_mark));
$car_model = htmlspecialchars(stripslashes($car_model));
$car_year = htmlspecialchars(stripslashes($car_year));
$car_engine = htmlspecialchars(stripslashes($car_engine));
$car_wheel = htmlspecialchars(stripslashes($car_wheel));
$car_trans = htmlspecialchars(stripslashes($car_trans));
$car_color = htmlspecialchars(stripslashes($car_color));
$car_foto = htmlspecialchars(stripslashes($car_foto));
#
#-----[ FIND ]---------------------------------------------------
#
$interests = htmlspecialchars($this_userdata['user_interests']);
#
#-----[ ADD BELOW ]---------------------------------------------------
#
$car_mark = htmlspecialchars($this_userdata['user_car_mark']);
$car_model = htmlspecialchars($this_userdata['user_car_model']);
$car_year = htmlspecialchars($this_userdata['user_car_year']);
$car_engine = htmlspecialchars($this_userdata['user_car_engine']);
$car_wheel = htmlspecialchars($this_userdata['user_car_wheel']);
$car_trans = htmlspecialchars($this_userdata['user_car_trans']);
$car_color = htmlspecialchars($this_userdata['user_car_color']);
$car_foto = htmlspecialchars($this_userdata['user_car_foto']);
#
#-----[ FIND ]---------------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="interests" value="' . str_replace("\"", """, $interests) . '" />';
#
#-----[ ADD BELOW ]---------------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="car_mark" value="' . str_replace("\"", """, $car_mark) . '" />';
$s_hidden_fields .= '<input type="hidden" name="car_model" value="' . str_replace("\"", """, $car_model) . '" />';
$s_hidden_fields .= '<input type="hidden" name="car_year" value="' . str_replace("\"", """, $car_year) . '" />';
$s_hidden_fields .= '<input type="hidden" name="car_engine" value="' . str_replace("\"", """, $car_engine) . '" />';
$s_hidden_fields .= '<input type="hidden" name="car_wheel" value="' . str_replace("\"", """, $car_wheel) . '" />';
$s_hidden_fields .= '<input type="hidden" name="car_trans" value="' . str_replace("\"", """, $car_trans) . '" />';
$s_hidden_fields .= '<input type="hidden" name="car_color" value="' . str_replace("\"", """, $car_color) . '" />';
$s_hidden_fields .= '<input type="hidden" name="car_foto" value="' . str_replace("\"", """, $car_foto) . '" />';
#
#-----[ FIND ]---------------------------------------------------
#
'INTERESTS' => $interests,
#
#-----[ ADD BELOW ]---------------------------------------------------
#
'CAR_MARK' => $car_mark,
'L_CAR_MARK' => $lang['Car_Mark'],
'CAR_MODEL' => $car_model,
'L_CAR_MODEL' => $lang['Car_Model'],
'CAR_YEAR' => $car_year,
'L_CAR_YEAR' => $lang['Car_Year'],
'CAR_ENGINE' => $car_engine,
'L_CAR_ENGINE' => $lang['Car_Engine'],
'CAR_WHEEL' => $car_wheel,
'L_CAR_WHEEL' => $lang['Car_Wheel'],
'CAR_TRANS' => $car_trans,
'L_CAR_TRANS' => $lang['Car_Trans'],
'CAR_COLOR' => $car_color,
'L_CAR_COLOR' => $lang['Car_Color'],
'CAR_FOTO' => $car_foto,
'L_CAR_FOTO' => $lang['Car_Foto'],
#
#-----[ OPEN ]------------------------------------------
#
# templates/xxx/profile_add_body.tpl
#
#-----[ FIND ]---------------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{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>
#
#-----[ ADD BELOW ]---------------------------------------------------
#
<tr>
<td class="catSides" colspan="2" height="28"> </td>
</tr>
<tr>
<th class="thSides" colspan="2" height="25" valign="middle">{L_CAR}</th>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_MARK}:</span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="car_mark" size="35" maxlength="150" value="{CAR_MARK}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_MODEL}:</span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="car_model" size="35" maxlength="150" value="{CAR_MODEL}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_YEAR}:</span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="car_year" size="35" maxlength="150" value="{CAR_YEAR}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_ENGINE}:</span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="car_engine" size="35" maxlength="150" value="{CAR_ENGINE}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_WHEEL}:</span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="car_wheel" size="35" maxlength="150" value="{CAR_WHEEL}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_TRANS}:</span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="car_trans" size="35" maxlength="150" value="{CAR_TRANS}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_COLOR}:</span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="car_color" size="35" maxlength="150" value="{CAR_COLOR}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_FOTO}:</span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="car_foto" size="35" maxlength="150" value="{CAR_FOTO}" /> </td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
# templates/xxx/profile_view_body.tpl
#
#-----[ FIND ]---------------------------------------------------
#
<tr>
<td valign="middle" nowrap="nowrap" align="right"><span class="gen">{L_ICQ_NUMBER}:</span></td>
<td class="row1"><script language="JavaScript" type="text/javascript"><!--
if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 )
document.write(' {ICQ_IMG}');
else
document.write('<table cellspacing="0" cellpadding="0" border="0"><tr><td nowrap="nowrap"><div style="position:relative;height:18px"><div style="position:absolute">{ICQ_IMG}</div><div style="position:absolute;left:3px;top:-1px">{ICQ_STATUS_IMG}</div></div></td></tr></table>');
//--></script><noscript>{ICQ_IMG}</noscript></td>
</tr>
</table>
</td>
</tr>
#
#-----[ ADD BELOW ]---------------------------------------------------
#
<tr>
<td class="row1" valign="top" colspan="2"><table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_CAR_MARK}:</span></td>
<td class="row1" valign="middle" width="100%"><b><span class="gen">{CAR_MARK}</span></b></td>
</tr>
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_CAR_MODEL}:</span></td>
<td class="row1" valign="middle" width="100%"><b><span class="gen">{CAR_MODEL}</span></b></td>
</tr>
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_CAR_YEAR}:</span></td>
<td class="row1" valign="middle" width="100%"><b><span class="gen">{CAR_YEAR}</span></b></td>
</tr>
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_CAR_ENGINE}:</span></td>
<td class="row1" valign="middle" width="100%"><b><span class="gen">{CAR_ENGINE}</span></b></td>
</tr>
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_CAR_WHEEL}:</span></td>
<td class="row1" valign="middle" width="100%"><b><span class="gen">{CAR_WHEEL}</span></b></td>
</tr>
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_CAR_TRANS}:</span></td>
<td class="row1" valign="middle" width="100%"><b><span class="gen">{CAR_TRANS}</span></b></td>
</tr>
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_CAR_COLOR}:</span></td>
<td class="row1" valign="middle" width="100%"><b><span class="gen">{CAR_COLOR}</span></b></td>
</tr>
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_CAR_FOTO}:</span></td>
<td class="row1" valign="middle" width="100%"><b><span class="gen">{CAR_FOTO}</span></b></td>
</tr>
</table>
</td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
# templates/xxx/admin/user_edit_body.tpl
#
#-----[ FIND ]---------------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{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 class="post" name="signature" rows="6" cols="45">{SIGNATURE}</textarea>
</td>
</tr>
#
#-----[ ADD BELOW ]---------------------------------------------------
#
<tr>
<td class="catSides" colspan="2" height="28"> </td>
</tr>
<tr>
<th class="thSides" colspan="2" height="25" valign="middle">{L_CAR}</th>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_MARK}:</span></td>
<td class="row2"> <input type="text" class="post" name="car_mark" size="35" maxlength="150" value="{CAR_MARK}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_MODEL}:</span></td>
<td class="row2"> <input type="text" class="post" name="car_model" size="35" maxlength="150" value="{CAR_MODEL}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_YEAR}:</span></td>
<td class="row2"> <input type="text" class="post" name="car_year" size="35" maxlength="150" value="{CAR_YEAR}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_ENGINE}:</span></td>
<td class="row2"> <input type="text" class="post" name="car_engine" size="35" maxlength="150" value="{CAR_ENGINE}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_WHEEL}:</span></td>
<td class="row2"> <input type="text" class="post" name="car_wheel" size="35" maxlength="150" value="{CAR_WHEEL}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_TRANS}:</span></td>
<td class="row2"> <input type="text" class="post" name="car_trans" size="35" maxlength="150" value="{CAR_TRANS}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_COLOR}:</span></td>
<td class="row2"> <input type="text" class="post" name="car_color" size="35" maxlength="150" value="{CAR_COLOR}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CAR_FOTO}:</span></td>
<td class="row2"> <input type="text" class="post" name="car_foto" size="35" maxlength="150" value="{CAR_FOTO}" /> </td>
</tr>
###################################################################################
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
با استفاده از اين هك مي توانيد ، وقتي كه مي خواهيد اختلاف زماني را تعيين كنيد براي مثال با انتخاب +3:30 اين عنوان ظاهر مي شود : ايران - تهران
كدراهنماي هك :
ترجمه شده توسط : mohsen khanکد:##############################################################
## MOD Title: Adds City/Country names to timezones.
## MOD Version: 1.0.0
## MOD Author: Brainz < mail@brainz.net > http://brainz.net
##
## MOD Description: This MOD will allow users to see city/country name in timezone
## selection.
##
## Installation Level: Easy
## Installation Time: 1 Minutes
##
## Files To Edit: 1
## language/lang_english/lang_main.php
## Included Files: n/a
##############################################################
## 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:
##
## 2005-09-18 - Version 1.0.0
## - First Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
//
// Timezones ... for display on each page
//
$lang['All_times'] = 'All times are %s'; // eg. All times are GMT - 12 Hours (times from next block)
$lang['-12'] = 'GMT - 12 Hours';
$lang['-11'] = 'GMT - 11 Hours';
$lang['-10'] = 'GMT - 10 Hours';
$lang['-9'] = 'GMT - 9 Hours';
$lang['-8'] = 'GMT - 8 Hours';
$lang['-7'] = 'GMT - 7 Hours';
$lang['-6'] = 'GMT - 6 Hours';
$lang['-5'] = 'GMT - 5 Hours';
$lang['-4'] = 'GMT - 4 Hours';
$lang['-3.5'] = 'GMT - 3.5 Hours';
$lang['-3'] = 'GMT - 3 Hours';
$lang['-2'] = 'GMT - 2 Hours';
$lang['-1'] = 'GMT - 1 Hours';
$lang['0'] = 'GMT';
$lang['1'] = 'GMT + 1 Hour';
$lang['2'] = 'GMT + 2 Hours';
$lang['3'] = 'GMT + 3 Hours';
$lang['3.5'] = 'GMT + 3.5 Hours';
$lang['4'] = 'GMT + 4 Hours';
$lang['4.5'] = 'GMT + 4.5 Hours';
$lang['5'] = 'GMT + 5 Hours';
$lang['5.5'] = 'GMT + 5.5 Hours';
$lang['6'] = 'GMT + 6 Hours';
$lang['6.5'] = 'GMT + 6.5 Hours';
$lang['7'] = 'GMT + 7 Hours';
$lang['8'] = 'GMT + 8 Hours';
$lang['9'] = 'GMT + 9 Hours';
$lang['9.5'] = 'GMT + 9.5 Hours';
$lang['10'] = 'GMT + 10 Hours';
$lang['11'] = 'GMT + 11 Hours';
$lang['12'] = 'GMT + 12 Hours';
$lang['13'] = 'GMT + 13 Hours';
// These are displayed in the timezone select box
$lang['tz']['-12'] = 'GMT - 12 Hours';
$lang['tz']['-11'] = 'GMT - 11 Hours';
$lang['tz']['-10'] = 'GMT - 10 Hours';
$lang['tz']['-9'] = 'GMT - 9 Hours';
$lang['tz']['-8'] = 'GMT - 8 Hours';
$lang['tz']['-7'] = 'GMT - 7 Hours';
$lang['tz']['-6'] = 'GMT - 6 Hours';
$lang['tz']['-5'] = 'GMT - 5 Hours';
$lang['tz']['-4'] = 'GMT - 4 Hours';
$lang['tz']['-3.5'] = 'GMT - 3.5 Hours';
$lang['tz']['-3'] = 'GMT - 3 Hours';
$lang['tz']['-2'] = 'GMT - 2 Hours';
$lang['tz']['-1'] = 'GMT - 1 Hours';
$lang['tz']['0'] = 'GMT';
$lang['tz']['1'] = 'GMT + 1 Hour';
$lang['tz']['2'] = 'GMT + 2 Hours';
$lang['tz']['3'] = 'GMT + 3 Hours';
$lang['tz']['3.5'] = 'GMT + 3.5 Hours';
$lang['tz']['4'] = 'GMT + 4 Hours';
$lang['tz']['4.5'] = 'GMT + 4.5 Hours';
$lang['tz']['5'] = 'GMT + 5 Hours';
$lang['tz']['5.5'] = 'GMT + 5.5 Hours';
$lang['tz']['6'] = 'GMT + 6 Hours';
$lang['tz']['6.5'] = 'GMT + 6.5 Hours';
$lang['tz']['7'] = 'GMT + 7 Hours';
$lang['tz']['8'] = 'GMT + 8 Hours';
$lang['tz']['9'] = 'GMT + 9 Hours';
$lang['tz']['9.5'] = 'GMT + 9.5 Hours';
$lang['tz']['10'] = 'GMT + 10 Hours';
$lang['tz']['11'] = 'GMT + 11 Hours';
$lang['tz']['12'] = 'GMT + 12 Hours';
$lang['tz']['13'] = 'GMT + 13 Hours';
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// Timezones ... for display on each page
//
$lang['All_times'] = 'All times are %s'; // eg. All times are GMT - 12 Hours (times from next block)
$lang['-12'] = '(GMT -12:00) Eniwetok, Kwajalein';
$lang['-11'] = '(GMT -11:00) Midway Island, Samoa';
$lang['-10'] = '(GMT -10:00) Hawaii';
$lang['-9'] = '(GMT -9:00) Alaska';
$lang['-8'] = '(GMT -8:00) Pacific Time (US & Canada)';
$lang['-7'] = '(GMT -7:00) Mountain Time (US & Canada)';
$lang['-6'] = '(GMT -6:00) Central Time (US & Canada), Mexico City';
$lang['-5'] = '(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima';
$lang['-4'] = '(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz';
$lang['-3.5'] = '(GMT -3:30) Newfoundland';
$lang['-3'] = '(GMT -3:00) Brazil, Buenos Aires, Georgetown';
$lang['-2'] = '(GMT -2:00) Mid-Atlantic';
$lang['-1'] = '(GMT -1:00 hour) Azores, Cape Verde Islands';
$lang['0'] = '(GMT) Western Europe Time, London, Lisbon, Casablanca';
$lang['1'] = '(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris';
$lang['2'] = '(GMT +2:00) Kaliningrad, South Africa';
$lang['3'] = '(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg';
$lang['3.5'] = '(GMT +3:30) Tehran';
$lang['4'] = '(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi';
$lang['4.5'] = '(GMT +4:30) Kabul';
$lang['5'] = '(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent';
$lang['5.5'] = '(GMT +5:30) Bangalore, Calcutta, Hyderabad, New Delhi';
$lang['6'] = '(GMT +6:00) Almaty, Dhaka, Colombo';
$lang['6.5'] = '(GMT + 6.30) Rangoon';
$lang['7'] = '(GMT +7:00) Bangkok, Hanoi, Jakarta';
$lang['8'] = '(GMT +8:00) Beijing, Perth, Singapore, Hong Kong';
$lang['9'] = '(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk';
$lang['9.5'] = '(GMT +9:30) Adelaide, Darwin';
$lang['10'] = '(GMT +10:00) Eastern Australia, Guam, Vladivostok';
$lang['11'] = '(GMT +11:00) Magadan, Solomon Islands, New Caledonia';
$lang['12'] = '(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka';
$lang['13'] = '(GMT + 13 Hours) Zulu';
// These are displayed in the timezone select box
$lang['tz']['-12'] = '(GMT -12:00) Eniwetok, Kwajalein';
$lang['tz']['-11'] = '(GMT -11:00) Midway Island, Samoa';
$lang['tz']['-10'] = '(GMT -10:00) Hawaii';
$lang['tz']['-9'] = '(GMT -9:00) Alaska';
$lang['tz']['-8'] = '(GMT -8:00) Pacific Time (US & Canada)';
$lang['tz']['-7'] = '(GMT -7:00) Mountain Time (US & Canada)';
$lang['tz']['-6'] = '(GMT -6:00) Central Time (US & Canada), Mexico City';
$lang['tz']['-5'] = '(GMT -5:00) Eastern Time (US & Canada), Bogota, Lima';
$lang['tz']['-4'] = '(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz';
$lang['tz']['-3.5'] = '(GMT -3:30) Newfoundland';
$lang['tz']['-3'] = '(GMT -3:00) Brazil, Buenos Aires, Georgetown';
$lang['tz']['-2'] = '(GMT -2:00) Mid-Atlantic';
$lang['tz']['-1'] = '(GMT -1:00 hour) Azores, Cape Verde Islands';
$lang['tz']['0'] = '(GMT) Western Europe Time, London, Lisbon, Casablanca';
$lang['tz']['1'] = '(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris';
$lang['tz']['2'] = '(GMT +2:00) Kaliningrad, South Africa';
$lang['tz']['3'] = '(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg';
$lang['tz']['3.5'] = '(GMT +3:30) Tehran';
$lang['tz']['4'] = '(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi';
$lang['tz']['4.5'] = '(GMT +4:30) Kabul';
$lang['tz']['5'] = '(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent';
$lang['tz']['5.5'] = '(GMT +5:30) Bangalore, Calcutta, Hyderabad, New Delhi';
$lang['tz']['6'] = '(GMT +6:00) Almaty, Dhaka, Colombo';
$lang['tz']['6.5'] = '(GMT + 6.30) Rangoon';
$lang['tz']['7'] = '(GMT +7:00) Bangkok, Hanoi, Jakarta';
$lang['tz']['8'] = '(GMT +8:00) Beijing, Perth, Singapore, Hong Kong';
$lang['tz']['9'] = '(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk';
$lang['tz']['9.5'] = '(GMT +9:30) Adelaide, Darwin';
$lang['tz']['10'] = '(GMT +10:00) Eastern Australia, Guam, Vladivostok';
$lang['tz']['11'] = '(GMT +11:00) Magadan, Solomon Islands, New Caledonia';
$lang['tz']['12'] = '(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka';
$lang['tz']['13'] = '(GMT + 13 Hours) Zulu';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
Add cPanel and phpMyAdmin to Admin Panel
با استفاده از اين هك مي توانيد ، لينك مربوط به cpanel و phpMyAdmin را در كنترل پانل مديريت انجمن خود قرار دهيد .
كدراهنماي هك :
ترجمه شده توسط : mohsen khanکد:##############################################################
# MOD Title: Add cpanel/phpmyadmin links
# MOD Author: Oleh dynamok@gmail.com http://www.sovietsoccer.com
# MOD Description: Adds links to cpanel & phpmyadmin to the Admin Control Panel
# MOD Version: Modified "Add cpanel link" by Griff
#
# 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
define('CPANEL', 'https://www.yoursite.com/cpanel/');
define('PHPMYADMIN', 'http://www.yoursite.com/phpmyadmin/');
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// MOD: Add cpanel Link
//
$lang['cpanel'] = 'Cpanel';
$lang['phpmyadmin'] = 'phpMyAdmin';
//
// 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'],
'U_PHPMYADMIN' => PHPMYADMIN,
'L_PHPMYADMIN' => $lang['phpmyadmin'],
//
// 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>
<tr>
<td class="row1"><span class="genmed"><a href="{U_PHPMYADMIN}" target="main" class="genmed">{L_PHPMYADMIN}</a></span></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# End
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
Add CSS Effects to Ranks
با استفاده از اين هك مي توانيد ، افكت هايي با استفاده از css را براي رتبه هاي كاربران در نظر بگيريد ومتن آنها را درخشان و سايه دار كنيد .
كدراهنماي هك :
ترجمه شده توسط : mohsen khanکد:Version 1.4.0
-Removed one code change each from viewtopic.php and usercp_viewprofile.php. It
was the first change from version 1.3.0 in each file.
-Rewrote the other code changes for those files.
-Added code change to includes/functions.php.
-Fixed a bug in display of ranks in profiles.
-Improved formatting of ----.
-Increased difficulty rating to Advanced, due to the complexities of CSS to the
unexperienced.
-Updated contact information.
Changed Files List:
viewtopic.php, includes/functions.php, includes/usercp_viewprofile.php
Version 1.3.0
Added some new files to the download as part of a restructing process.
Added instructions for "This file modified for Add CSS Effects to Ranks" labels
in each file.
Added instructions for simple_header.tpl, just for completeness.
Split the overall_header.tpl and subSilver.css instructions up into separate
sets for strict 2.0.10 compliance (no actual code changes needed!).
Edited the notes in file_edits.txt to help less experienced users more.
Changed Files List:
All files, but no real code changes needed if you're upgrading.
Version 1.2.0
To eliminate problems caused when HTML or BBCode are used in rank names, the CSS
class names will now contain only lowercase letters and numbers.
Added readme.txt, gpl.txt, auto-insert file for Hacks/Mods List, and new notes
in install.txt.
Don't forget to change the names of your classes in overall_header.tpl or
xxx.css.
See the FAQ section of readme.txt if you need help with that.
Version 1.1.1
Fixed an error that caused extra HTML code to be inserted into ranks.
Version 1.1.0
Added support for rank names in viewing profile, and expanded from only special
ranks to all ranks.
Version 1.0.1
Modified CSS examples so that a straight cut & paste from the instructions
works. Also modified the code so that spaces in the CSS name are removed instead
of replaced with an underscore. The CSS is more valid this way.
Version 1.0.0
First release. Also labeled as 0.0.1.
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
Add Database Administration Link
با استفاده از اين هك مي توانيد لينك هاي مربوط به ديتابيس خود و مديريت آن را در كنترل پانل مديريت انجمن خود درج كنيد .
لينكهاي زير :
phpMyAdmin, phpOraAdmin, phpPgAdmin, phpMsAdmin
براي استفاده از اين هك ، فايل زير را در يافت كنيد ،ان را از حالت فشرده خارج سازيد و در بين فايل هاي خود كپي كنيد
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
ترجمه توسط : mohsen khan
منبع : [ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
Add Forum Index Link to Overall Header
با استفاده از اين هك مي توانيد يك لينك در بالاي انجمن خود و در قسمت header سايت خود قرار دهيد .
براي استفاده از اين هك ، فايل زير را در يافت كنيد ،آن را از حالت فشرده خارج سازيد و در بين فايل هاي خود كپي كنيد
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
ترجمه توسط : mohsen khan
منبع : [ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
موفق باشيد
محسن
با سلام
Add Last User Post Date to Memberlist
با نصب اين هك ، يك فيلد به قسمت مشخصات اعضاي شما اضافه مي شود كه آخرين فعالين و آخرين پستي را كه كاربر نوشته است را ، نمايش مي دهد
براي نصب اين هك ، مطابق دستورالعمل زير عمل كنيد .
کد:$Id: last_post_date.txt,v 1.2 2003/07/03 12:10:25 nivisec Exp $
###############################################
## ---- Title: Add Last User Post Date to Members List
## (A phpBB2 Quickie)
## Author: Nivisec (support@nivisec.com)
## http://www.nivisec.com
## Description: Adds a new field in the members list that displays the date
## that the user last posted on. "None" will be displayed if
## the user has never posted.
##
## Compatibility: 2.0.x
##
## Support: http://www.phpbbhacks.com/forums
## Copyright: ©2003 Billy Sauls
##
###############################################
#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
'L_POSTS' => $lang['Posts'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_POST_TIME' => $lang['Last_Post'] . ' ' . $lang['Time'],
#
#-----[ FIND ]------------------------------------------
#
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$post_time_sql = "SELECT post_time
FROM " . POSTS_TABLE . "
WHERE poster_id = " . $user_id . "
ORDER BY post_time DESC
LIMIT 1";
if ( !($post_time_result = $db->sql_query($post_time_sql)) )
{
message_die(GENERAL_ERROR, 'Error getting user last post time', '', __LINE__, __FILE__, $post_time_sql);
}
$post_time_row = $db->sql_fetchrow($post_time_result);
$last_post_time = ( isset($post_time_row['post_time']) ) ? create_date($board_config['default_dateformat'], $post_time_row['post_time'], $board_config['board_timezone']) : $lang['None'];
#
#-----[ FIND ]------------------------------------------
#
'YIM' => $yim,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'LAST_POST_TIME' => $last_post_time,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/memberlist_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<th class="thTop" nowrap="nowrap">{L_JOINED}</th>
<th class="thTop" nowrap="nowrap">{L_POSTS}</th>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<th class="thTop" nowrap="nowrap">{L_POST_TIME}</th>
#
#-----[ FIND ]------------------------------------------
#
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.JOINED}</span></td>
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.POSTS}</span></td>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gen">{memberrow.LAST_POST_TIME}</span></td>
#
#-----[ FIND ]------------------------------------------
#
<td class="catbottom" colspan="8" height="28"> </td>
#
#-----[ REPLACE ]------------------------------------------
#
<td class="catbottom" colspan="9" height="28"> </td>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
#End
ترجمه شده توسط :mohsen khan
منبع : باشگاه موفقيت
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
با سلام
Add Last User Visit Date to Memberlist
با نصب اين هك ، يك فيلد به قسمت مشخصات اعضاي شما اضافه مي شود كه آخرين تاريخي را كه كاربر مورد نظر به انجمن مراجعه كرده است را ، نشان مي دهد .
براي نصب اين هك ، مطابق دستورالعمل زير عمل كنيد .
کد:$Id: last_visit_date.txt,v 1.2 2003/07/03 12:10:25 nivisec Exp $
###############################################
## ---- Title: Add Last User Visit Date to Members List
## (A phpBB2 Quickie)
## Author: Nivisec (support@nivisec.com)
## http://www.nivisec.com
## Description: Adds a new field in the members list that displays the date
## that the user last visited on. "Never" will be displayed if
## the user has never logged in.
##
## Compatibility: 2.0.x
##
## Support: http://www.phpbbhacks.com/forums
## Copyright: ©2003 Billy Sauls
##
###############################################
#
#-----[ OPEN ]------------------------------------------
#
memberlist.php
#
#-----[ FIND ]------------------------------------------
#
'L_POSTS' => $lang['Posts'],
#
#-----[ AFTER, ADD ]------------------------------------------
# Change 'Last Visited' to your desired language.
#
'L_LAST_VISITED' => 'Last Visited',
#
#-----[ FIND ]------------------------------------------
#
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
#
#-----[ AFTER, ADD ]------------------------------------------
# Change 'Never' on the end of the $last_visit_time = (!empty....
# line to your desired language.
#
$visit_time_sql = "SELECT user_lastvisit
FROM " . USERS_TABLE . "
WHERE user_id = " . $user_id . "
LIMIT 1";
if (!$visit_time_result = $db->sql_query($visit_time_sql))
{
message_die(GENERAL_ERROR, 'Error getting user last visit time', '', __LINE__, __FILE__, $visit_time_sql);
}
$visit_time_row = $db->sql_fetchrow($visit_time_result);
$last_visit_time = (!empty($visit_time_row['user_lastvisit'])) ? create_date($lang['DATE_FORMAT'], $visit_time_row['user_lastvisit'], $board_config['board_timezone']) : 'Never';
#
#-----[ FIND ]------------------------------------------
#
'YIM' => $yim,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'LAST_VISIT_TIME' => $last_visit_time,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/memberlist_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<th class="thTop" nowrap="nowrap">{L_JOINED}</th>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<th class="thTop" nowrap="nowrap">{L_LAST_VISITED}</th>
#
#-----[ FIND ]------------------------------------------
#
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.JOINED}</span></td>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<td class="{memberrow.ROW_CLASS}" align="center" valign="middle"><span class="gensmall">{memberrow.LAST_VISIT_TIME}</span></td>
#
#-----[ FIND ]------------------------------------------
# If you have added other columns to your member list, this
# will look different. Just change the colspan="#" part to
# be one greater if it isn't 8. (ie if it is 10, change it
# to 11).
#
<td class="catbottom" colspan="8" height="28"> </td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td class="catbottom" colspan="9" height="28"> </td>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
#End
ترجمه شده توسط :mohsen khan
منبع : باشگاه موفقيت
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
با سلام
Add Last User Visit Date to User Profiles
با نصب اين هك ، يك فيلد به قسمت مشخصات اعضاي شما اضافه مي شود كه آخرين تاريخي را كه كاربر مورد نظر به انجمن مراجعه كرده است را ، نشان مي دهد .
براي نصب اين هك ، مطابق دستورالعمل زير عمل كنيد .
ابتدا فايل مورد نظر را دانلود كنيد
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
سپس مطابق دستورالعمل زير ، عمل كنيد .
کد:--------------------------------------------------------------------------------
IMPORTANT READ BEFORE INSTALLING IMPORTANT
--------------------------------------------------------------------------------
If you need support or have questions during the installation process, please
check the Mini FAQ section of the readme.txt file. Many of the more common
questions have already been answered there.
--------------------------------------------------------------------------------
PRE-INSTALL INSTRUCTIONS
--------------------------------------------------------------------------------
Before continuing with the installation of this ----, you should complete this
checklist:
[ ] Do you have a previously installed version of this ---- on your forum?
- If you intend to upgrade from an older version to this version, then you
should use the upgrade instructions in upgrade.txt instead of the
instructions below, unless otherwise noted in that file.
- If you intend to downgrade from a higher level version, uninstall that
version first.
[ ] Are you installing this ---- on a phpBB package that has been modified, has
non-subSilver templates installed, or is a different version than the one
official supported?
- You may have some trouble with some of the installation instructions,
especially if code you are told to FIND has already been changed. Try
searching for partial lines using key words or characters.
[ ] Are you installing this ---- on a phpBB port, such as the one for PHP Nuke?
- The installation instructions are written for use with an unmodified
version of the original phpBB, which can be obtained from www.phpbb.com.
They may or may not work with ports of phpBB. As the author of this
----, I may not be able to provide support for it when installed on a
phpBB port.
--------------------------------------------------------------------------------
INSTALLATION INSTRUCTIONS
--------------------------------------------------------------------------------
To install this ---- on a phpBB forum, follow these steps.
1) If you have not done so already, unpack ZIP file you have downloaded. This
will create new directories and files as described the readme.txt file.
But, you've probably already done this step since you're reading this file,
right?
2) In this step, you will prepare to edit your previously existing forum files.
All of the instructions for doing this are listed in the file_edits.txt file.
Open this file in your favorite text editor, such as Notepad, Wordpad,
PHPEdit, or EditPlus. If you use Dreamweaver for this step, be CERTAIN that
you have activated the "Code" mode of that program, or you will have problems
later.
Check the file for an Author's Notes section near the top for any special
instructions that you may need to follow. If there are none, or no Author's
Notes at all, look near the top for a section labeled "Files To Edit." This
is a list of the files you'll be editing. Obvious, huh? Before you do
anything else, make certain you have two local copies of each of these files.
One copy is for editing and the other is for a backup of the unchanged file.
If there is a problem later, you can restore the backup file(s) as needed.
If you don't have two local copies, make them. When you don't have *any*
local copies, download a copy from your web site via FTP, SSH, or another
file transfer method.
Special Note on this Step:
- The local copy of the file(s) you're editing should NOT be the actual
files being used on your site. An exact copy of them, yes, but not the
real thing. Changes should not be appear on your site as you edit the
files.
3) You now need to edit your local copy of each file in the "Files to Edit"
list. The instructions for editing these files are stored in file_edits.txt.
If you do not understand the format used, check the Mini FAQ in readme.txt.
Finish this step up by uploading the edited version of the files to your web
site.
Special Note on this Step:
- If you have non-subSilver templates installed, remember that you need to
adapt the subSilver file instructions for editing those templates. The
features of this ---- will not be available on other templates until they
are edited appropriately.
4) That's it, you're officially done.
5) This is an optional step.
If the ---- has an .hl file in the docs/ directory, you may be able to use
that. If you don't know how to use it or what an .hl file is, check the
Mini FAQ in readme.txt.
ترجمه شده توسط :mohsen khan
منبع : باشگاه موفقيت
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ]
با سلام
بنا بر تقاضاي دوستان اين اموزش را تهيه كرده ام .
مي توانيد از لينك زير دريافت كنيد .
[ برای مشاهده لینک ، با نام کاربری خود وارد شوید یا ثبت نام کنید ] phpbb/phpbb.mdi
موفق باشيد
محسن
با سلام
بوسیله این مد و هک ، می توانید نام ، نام خانوادگی و آدرس اشخاص را به قسمت پروفایل اضافه کنید .
ترجمه توسط : محسنکد:##############################################################
## MOD Title: Add Name and Address to Profile (Not viewable by the Public)
## MOD Version: 1.0.0 (U.S.A. Version)
## TESTED and installed on phpBB 2.0.20 (May 2006)
## MOD Author: ~HG~ < admin@galahscorner.com > (Rod Angell) http://www.galahscorner.com
## Assistant Author: RMcGirr83 <rmcgirr83@myeastern.com> http://betraythis.com
##
##
## MOD Description: Adds the following fields
## - Given Name
## - Surname
## - Street and Number
## - City
## - Zip
## - Telephone Number
## - Cellphone Number
## - Voip Number
##
##
## This mod when installed will help prevent bots and spammers from registering as
## they will be required to enter personal information in their profile.
## Current members will have to add the information if they wish to change anything
## in their own profile.
##
##
## Installation Level: Intermediate
## Installation Time: 20 Minutes
## Files To Edit: 7
## admin/admin_users.php
## includes/usercp_avatar.php
## includes/usercp_register.php
## language/lang_english/lang_admin.php
## language/lang_english/lang_main.php
## templates/subSilver/admin/user_edit_body.tpl
## templates/subSilver/profile_add_body.tpl
##
##
##############################################################
## MOD History:
##
## 2006-05-31 - Version 1.0.0
## - First Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]------------------------------------------
#
# Remember to change the table prefix to that used on your database
#
# Authors NOTE: You can change all instances of zip to
# suit what ever your country uses.
# You can change all instances of cellphone
# to suit what ever your country users.
# Please ensure you make these changes and save them
# prior to installation and editing of any files ... make
# sure the changes you make are CASE SENSITIVE inline
# with this mod.
ALTER TABLE phpbb_users ADD user_givenname VARCHAR(255) AFTER user_email;
ALTER TABLE phpbb_users ADD user_surname VARCHAR(255) AFTER user_givenname;
ALTER TABLE phpbb_users ADD user_street VARCHAR(255) AFTER user_surname;
ALTER TABLE phpbb_users ADD user_city VARCHAR(255) AFTER user_street;
ALTER TABLE phpbb_users ADD user_zip VARCHAR(255) AFTER user_city;
ALTER TABLE phpbb_users ADD user_telephone VARCHAR(255) AFTER user_zip;
ALTER TABLE phpbb_users ADD user_cellphone VARCHAR(255) AFTER user_telephone;
ALTER TABLE phpbb_users ADD user_voip VARCHAR(255) AFTER user_cellphone;
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]------------------------------------------
#
$password_confirm = ( !empty($HTTP_POST_VARS['password_confirm']) ) ? trim(strip_tags(htmlspecialchars( $HTTP_POST_VARS['password_confirm'] ) )) : '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$givenname = ( !empty($HTTP_POST_VARS['givenname']) ) ? trim(strip_tags( $HTTP_POST_VARS['givenname'] ) ) : '';
$surname = ( !empty($HTTP_POST_VARS['surname']) ) ? trim(strip_tags( $HTTP_POST_VARS['surname'] ) ) : '';
$street = ( !empty($HTTP_POST_VARS['street']) ) ? trim(strip_tags( $HTTP_POST_VARS['street'] ) ) : '';
$city = ( !empty($HTTP_POST_VARS['city']) ) ? trim(strip_tags( $HTTP_POST_VARS['city'] ) ) : '';
$zip = ( !empty($HTTP_POST_VARS['zip']) ) ? trim(strip_tags( $HTTP_POST_VARS['zip'] ) ) : '';
$telephone = ( !empty($HTTP_POST_VARS['telephone']) ) ? trim(strip_tags( $HTTP_POST_VARS['telephone'] ) ) : '';
$cellphone = ( !empty($HTTP_POST_VARS['cellphone']) ) ? trim(strip_tags( $HTTP_POST_VARS['cellphone'] ) ) : '';
$voip = ( !empty($HTTP_POST_VARS['voip']) ) ? trim(strip_tags( $HTTP_POST_VARS['voip'] ) ) : '';
#
#-----[ FIND ]--------------------------------------------
#
$password_confirm = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$givenname = htmlspecialchars(stripslashes($givenname));
$surname = htmlspecialchars(stripslashes($surname));
$street = htmlspecialchars(stripslashes($street));
$city = htmlspecialchars(stripslashes($city));
$zip = htmlspecialchars(stripslashes($zip));
$telephone = htmlspecialchars(stripslashes($telephone));
$cellphone = htmlspecialchars(stripslashes($cellphone));
$voip = htmlspecialchars(stripslashes($voip));
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "'
#
#-----[ IN-LINE FIND ]------------------------------------------
#
"user_email = '" . str_replace("\'", "''", $email) . "'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_givenname = '" . str_replace("\'", "''", $givenname) . "', user_surname = '" . str_replace("\'", "''", $surname) . "', user_street = '" . str_replace("\'", "''", $street) . "', user_city = '" . str_replace("\'", "''", $city) . "', user_zip = '" . str_replace("\'", "''", $zip) . "', user_telephone = '" . str_replace("\'", "''", $telephone) . "',user_cellphone = '" . str_replace("\'", "''", $cellphone) . "', user_voip = '" . str_replace("\'", "''", $voip) . "'
# NOTE: Ensure you copy the complete code above including the "' on the last line:
#
#-----[ FIND (1st Instance) About Line 748]------------------------------------------
#
$password_confirm = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$givenname = htmlspecialchars(stripslashes($givenname));
$surname = htmlspecialchars(stripslashes($surname));
$street = htmlspecialchars(stripslashes($street));
$city = htmlspecialchars(stripslashes($city));
$zip = htmlspecialchars(stripslashes($zip));
$telephone = htmlspecialchars(stripslashes($telephone));
$cellphone = htmlspecialchars(stripslashes($cellphone));
$voip = htmlspecialchars(stripslashes($voip));
#
#-----[ FIND (2nd Instance) About Line 800]------------------------------------------
#
$password_confirm = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$givenname = htmlspecialchars($this_userdata['user_givenname']);
$surname = htmlspecialchars($this_userdata['user_surname']);
$street = htmlspecialchars($this_userdata['user_street']);
$city = htmlspecialchars($this_userdata['user_city']);
$zip = htmlspecialchars($this_userdata['user_zip']);
$telephone = htmlspecialchars($this_userdata['user_telephone']);
$cellphone = htmlspecialchars($this_userdata['user_cellphone']);
$voip = htmlspecialchars($this_userdata['user_voip']);
#
#-----[ FIND ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="email" value="' . str_replace("\"", """, $email) . '" />';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$s_hidden_fields .= '<input type="hidden" name="givenname" value="' . str_replace("\"", """, $givenname) . '" />';
$s_hidden_fields .= '<input type="hidden" name="surname" value="' . str_replace("\"", """, $surname) . '" />';
$s_hidden_fields .= '<input type="hidden" name="street" value="' . str_replace("\"", """, $street) . '" />';
$s_hidden_fields .= '<input type="hidden" name="city" value="' . str_replace("\"", """, $city) . '" />';
$s_hidden_fields .= '<input type="hidden" name="zip" value="' . str_replace("\"", """, $zip) . '" />';
$s_hidden_fields .= '<input type="hidden" name="telephone" value="' . str_replace("\"", """, $telephone) . '" />';
$s_hidden_fields .= '<input type="hidden" name="cellphone" value="' . str_replace("\"", """, $cellphone) . '" />';
$s_hidden_fields .= '<input type="hidden" name="voip" value="' . str_replace("\"", """, $voip) . '" />';
#
#-----[ FIND ]------------------------------------------
#
'EMAIL' => $email,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'GIVENNAME' => $givenname,
'SURNAME' => $surname,
'STREET' => $street,
'CITY' => $city,
'ZIP' => $zip,
'TELEPHONE' => $telephone,
'CELLPHONE' => $cellphone,
'VOIP' => $voip,
#
#-----[ FIND ]------------------------------------------
#
'L_PASSWORD_CONFIRM_IF_CHANGED' => $lang['password_confirm_if_changed'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_GIVENNAME' => $lang['Givenname'],
'L_SURNAME' => $lang['Surname'],
'L_STREET' => $lang['Street'],
'L_CITY' => $lang['City'],
'L_ZIP' => $lang['Zip'],
'L_TELEPHONE' => $lang['Telephone'],
'L_CELLPHONE' => $lang['Cellphone'],
'L_VOIP' => $lang['Voip'],
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_avatar.php
#
#-----[ FIND ]------------------------------------------
#
function display_avatar_gallery($mode, &$category
#
#-----[ IN-LINE FIND ]------------------------------------------
#
, &$password_confirm
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, &$givenname, &$surname, &$street, &$city, &$zip, &$telephone, &$cellphone, &$voip
#
#-----[ FIND ]------------------------------------------
#
$params = array('coppa', 'user_id'
#
#-----[ IN-LINE FIND ]------------------------------------------
#
, 'password_confirm'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, 'givenname', 'surname', 'street', 'city', 'zip', 'telephone', 'cellphone', 'voip'
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_register.php
#-----[ FIND ]------------------------------------------
#
$strip_var_list = array('email' => 'email'
#
#-----[ IN-LINE FIND ]------------------------------------------
#
'email' => 'email'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, 'givenname' => 'givenname', 'surname' => 'surname', 'street' => 'street', 'city' => 'city', 'zip' => 'zip', 'telephone' => 'telephone', 'cellphone' => 'cellphone', 'voip' => 'voip'
#
#-----[ FIND (1st instance!!) About Line 215]------------------------------------------
#
$password_confirm = htmlspecialchars(stripslashes($password_confirm));
#
#-----[ AFTER, ADD ]------------------------------------------
#
$givenname = stripslashes($givenname);
$surname = stripslashes($surname);
$street = stripslashes($street);
$city = stripslashes($city);
$zip = stripslashes($zip);
$telephone = stripslashes($telephone);
$cellphone = stripslashes($cellphone);
$voip = stripslashes($voip);
#-----[ FIND ]---------------------------------------------------
#
{
$username_sql = "username = '" . str_replace("\'", "''", $username) . "', ";
}
}
}
#
#-----[ BELOW ADD (only add this part if you want the information mandatory) ]--------
#
if( $mode == 'editprofile' || $mode == 'register' )
{
if( empty($givenname) || empty($surname) || empty($street) || empty($city) || empty($zip) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) .
$lang['Fields_empty_givenname'] . $lang['Fields_empty_surname'] . $lang['Fields_empty_street'] . $lang['Fields_empty_city'] . $lang['Fields_empty_zip'];
}
}
#
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . USERS_TABLE . "
SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) ."'
#
#-----[ IN-LINE FIND ]------------------------------------------
#
. str_replace("\'", "''", $email) ."'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_givenname = '" . str_replace("\'", "''", $givenname) . "', user_surname = '" . str_replace("\'", "''", $surname) . "', user_street = '" . str_replace("\'", "''", $street) . "', user_city = '" . str_replace("\'", "''", $city) . "', user_zip = '" . str_replace("\'", "''", $zip) . "', user_telephone = '" . str_replace("\'", "''", $telephone) . "', user_cellphone = '" . str_replace("\'", "''", $cellphone) . "', user_voip = '" . str_replace("\'", "''", $voip) . "'
#
#-----[ FIND ]---------------------------------------------------
#
$sql = "INSERT INTO " . USERS_TABLE . " (user_id, username, user_regdate, user_password, user_email
#
#-----[ IN-LINE FIND ]------------------------------------------
#
user_email
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, user_givenname, user_surname, user_street, user_city, user_zip, user_telephone, user_cellphone, user_voip
#
#-----[ FIND (partial line)]------------------------------------------
#
VALUES ($user_id, '" . str_replace("\'", "''", $username) . "', " . time() . ", '" . str_replace("\'", "''", $new_password) . "', '" . str_replace("\'", "''", $email) . "'
#
#-----[ IN-LINE FIND ]------------------------------------------
#
, '" . str_replace("\'", "''", $email) . "'
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, '" . str_replace("\'", "''", $givenname) . "', '" . str_replace("\'", "''", $surname) . "', '" . str_replace("\'", "''", $street) . "', '" . str_replace("\'", "''", $city) . "', '" . str_replace("\'", "''", $zip) . "', '" . str_replace("\'", "''", $telephone) . "', '" . str_replace("\'", "''", $cellphone) . "', '" . str_replace("\'", "''", $voip) . "'
#
#-----[ FIND (1st instance!!) About Line 794]------------------------------------------
#
$password_confirm = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$givenname = stripslashes($givenname);
$surname = stripslashes($surname);
$street = stripslashes($street);
$city = stripslashes($city);
$zip = stripslashes($zip);
$telephone = stripslashes($telephone);
$cellphone = stripslashes($cellphone);
$voip = stripslashes($voip);
#
#-----[ FIND (2nd instance!!) Around Line 827]------------------------------------------
#
$password_confirm = '';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$givenname = $userdata['user_givenname'];
$surname = $userdata['user_surname'];
$street = $userdata['user_street'];
$city = $userdata['user_city'];
$zip = $userdata['user_zip'];
$telephone = $userdata['user_telephone'];
$cellphone = $userdata['user_cellphone'];
$voip = $userdata['user_voip'];
#
#-----[ FIND ]------------------------------------------
#
display_avatar_gallery($mode, $avatar_category, $user_id, $email, $current_email
#
#-----[ IN-LINE FIND ]------------------------------------------
#
$password_confirm
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, $givenname, $surname, $street, $city, $zip, $telephone, $cellphone, $voip
#
#-----[ FIND ]------------------------------------------
#
'EMAIL' => isset($email) ? $email : '',
#
#-----[ AFTER, ADD ]------------------------------------------
#
'GIVENNAME' => $givenname,
'SURNAME' => $surname,
'STREET' => $street,
'CITY' => $city,
'ZIP' => $zip,
'TELEPHONE' => $telephone,
'CELLPHONE' => $cellphone,
'VOIP' => $voip,
#
#-----[ FIND ]------------------------------------------
#
'L_PASSWORD_CONFIRM_IF_CHANGED' => ( $mode == 'editprofile' ) ? $lang['password_confirm_if_changed'] : '',
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_GIVENNAME' => $lang['Givenname'],
'L_SURNAME' => $lang['Surname'],
'L_STREET' => $lang['Street'],
'L_CITY' => $lang['City'],
'L_ZIP' => $lang['Zip'],
'L_TELEPHONE' => $lang['Telephone'],
'L_CELLPHONE' => $lang['Cellphone'],
'L_VOIP' => $lang['Voip'],
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Email_address'] = 'E-mail address';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['Givenname'] = 'Given Name';
$lang['Surname'] = 'Surname';
$lang['Street'] = 'Nr/Street';
$lang['City'] = 'City';
$lang['Zip'] = 'Zip';
$lang['Telephone'] = 'Telephone';
$lang['Cellphone'] = 'Cellphone';
$lang['Voip'] = 'Voip';
#
#-----[ FIND ]------------------------------------------
#
//
// That's all, Folks!
//
#
#-----[ BEFORE, ADD ]--------
#
// Add Name and Address Member Profile
$lang['Required_field'] = '<b>Required Fields</b>: ';
$lang['Fields_empty_givenname'] = 'Your Given Name is Required';
$lang['Fields_empty_surname'] = 'Your Surname is Required';
$lang['Fields_empty_street'] = 'Your Nr/Street is Required';
$lang['Fields_empty_city'] = 'Your City is Required';
$lang['Fields_empty_zip'] = 'Your Zip Code is Required';
$lang['Fields_empty_telephone'] = 'Your Telephone Nr is Required';
$lang['Fields_empty_cellphone'] = 'Your Cellphone Nr is Required';
$lang['Fields_empty_voip'] = 'Your Voip is Required';
#
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<th class="thSides" colspan="2">{L_PROFILE_INFO}</th>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_GIVENNAME} * </span></td>
<td class="row2"> <input class="post" type="text" name="givenname" size="35" maxlength="100" value="{GIVENNAME}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_SURNAME} * </span></td>
<td class="row2"> <input class="post" type="text" name="surname" size="35" maxlength="100" value="{SURNAME}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_STREET} * </span></td>
<td class="row2"> <input class="post" type="text" name="street" size="35" maxlength="100" value="{STREET}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CITY} * </span></td>
<td class="row2"> <input class="post" type="text" name="city" size="35" maxlength="100" value="{CITY}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_ZIP} * </span></td>
<td class="row2"> <input class="post" type="text" name="zip" size="35" maxlength="100" value="{ZIP}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_TELEPHONE}</span></td>
<td class="row2"> <input class="post" type="text" name="telephone" size="35" maxlength="100" value="{TELEPHONE}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CELLPHONE}</span></td>
<td class="row2"> <input class="post" type="text" name="cellphone" size="35" maxlength="100" value="{CELLPHONE}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_VOIP}</span></td>
<td class="row2"> <input class="post" type="text" name="voip" size="35" maxlength="100" value="{VOIP}" /> </td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row2" colspan="2"><span class="gensmall">{L_PROFILE_INFO_NOTICE}</span></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="gen">{L_GIVENNAME}: * </span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="givenname" size="35" maxlength="250" value="{GIVENNAME}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_SURNAME}: * </span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="surname" size="35" maxlength="250" value="{SURNAME}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_STREET}: * </span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="street" size="35" maxlength="250" value="{STREET}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CITY}: * </span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="city" size="35" maxlength="250" value="{CITY}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_ZIP}: * </span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="zip" size="35" maxlength="250" value="{ZIP}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_TELEPHONE}:</span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="telephone" size="35" maxlength="250" value="{TELEPHONE}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CELLPHONE}:</span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="cellphone" size="35" maxlength="250" value="{CELLPHONE}" /> </td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_VOIP}:</span></td>
<td class="row2"> <input type="text" class="post"style="width: 200px" name="voip" size="35" maxlength="250" value="{VOIP}" /> </td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
موفق باشید
با سلام
بوسیله این مد و هک ، می توانید ورژن php و mysql خود را به کنترل پانل مدیریت خود اضافه کنید
ترجمه توسط : محسنکد:##############################################################
## MOD Title: ACP Addon
## MOD Author: Rambo4104 < Admin@thesaltinez.com > (Ryan Smith) http://www.thesaltinez.com/
## MOD Description: Adds PHP and MySQL version to your ACP Index.
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 2 Minutes
##
## Files To Edit: 3
## admin/index.php
## language/lang_english/lang_admin.php
## templates/subSilver/admin/index_body.tpl
##
##
## 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:
##
##
##############################################################
## MOD History:
##
## 2007-03-04 - Version 1.0.1
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
"L_STARTED" => $lang['Login'],
#
#-----[ AFTER, ADD ]-----------------------------------
#
"L_PHP_VERSION" => $lang['Version_of_PHP'],
"L_MYSQL_VERSION" => $lang['Version_of_MySQL'],
#
#-----[ FIND ]------------------------------------------
#
$template->assign_vars(array(
"NUMBER_OF_POSTS" => $total_posts,
#
#-----[ BEFORE, ADD ]------------------------------------
#
$sql = "SELECT VERSION() AS mysql_version";
$result = $db->sql_query($sql);
if ( !$result )
{
throw_error("Couldn't obtain MySQL Version", __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$mysql_version = $row['mysql_version'];
$db->sql_freeresult($result);
#
#-----[ FIND ]------------------------------------------
#
"DB_SIZE" => $dbsize,
#
#-----[ AFTER, ADD ]-----------------------------------
#
"PHP_VERSION" => phpversion(),
"MYSQL_VERSION" => $mysql_version,
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]----------------------------------
#
$lang['Version_of_PHP'] = 'PHP Version';
$lang['Version_of_MySQL'] = 'MySQL Version';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1" nowrap="nowrap">{L_DB_SIZE}:</td>
<td class="row2"><b>{DB_SIZE}</b></td>
<td class="row1" nowrap="nowrap">{L_GZIP_COMPRESSION}:</td>
<td class="row2"><b>{GZIP_COMPRESSION}</b></td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------
#
<tr>
<td class="row1" nowrap="nowrap">{L_PHP_VERSION}:</td>
<td class="row2"><b>{PHP_VERSION}</b></td>
<td class="row1" nowrap="nowrap">{L_MYSQL_VERSION}:</td>
<td class="row2"><b>{MYSQL_VERSION}</b></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
موفق باشید
با سلام
Add phpMyAdmin Link
بوسیله این مد و هک ، می توانید یک لینک به phpMyAdmin خود در کنترل پانل مدیریت داشته باشید .
قبل از نصب بک آپ بگیرید .
کد:##############################################################
# MOD Title: Add phpMyAdmin Link
# MOD Author: Thoul thoul@users.sourceforge.net http://darkmods.sourceforge.net
# MOD Description: Adds a link to phpMyAdmin in the Admin Control Panel
# MOD Version: 2.0.0
#
# Installation Level: Easy
# Installation Time: 5 Minutes
# Files To Edit: includes/constants.php, includes/page_tail.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 phpMyAdmin Link
//
// Replace url_to_your_phpmyadmin with the *full* URL to your
// phpMyAdmin installation.
// Example: define('PHPMYADMIN', 'http://www.some-site.com/admin/phpmyadmin/');
define('PHPMYADMIN', 'url_to_your_phpmyadmin');
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
/* Original phpBB code - commented out for Add CSS Effects to Ranks
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
*/
//
// MOD: Add phpMyAdmin Link
//
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a> | <a href="' . PHPMYADMIN . '">' . $lang['phpMyAdmin'] . '</a><br /><br />' : '';
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// MOD: Add phpMyAdmin Link
//
$lang['phpMyAdmin'] = 'phpMyAdmin';
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
admin/index.php
#
#-----[ FIND ]------------------------------------------
#
"U_ADMIN_INDEX" => append_sid("index.$phpEx?pane=right"),
#
#-----[ AFTER, ADD ]------------------------------------------
#
//
// MOD: Add phpMyAdmin Link
//
'U_PHPMYADMIN' => PHPMYADMIN,
'L_PHPMYADMIN' => $lang['phpMyAdmin'],
//
// MOD: -END-
//
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/index_navigate.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN catrow -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<tr>
<td class="row1"><span class="genmed"><a href="{U_PHPMYADMIN}" target="main" class="genmed">{L_PHPMYADMIN}</a></span></td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# End
سلام ببخشيد من موقع inestall وقتي مخوام زبان رو تغيير بدم رو فارسي بزارم اين پيغام رو ميده فكر كنم فايل زبانش مشكل داره اگه ميشه يه لينك براي دانلود بزاريد آخه از phpbb.com نميشه گرفت
يك دنيا تشكر
Warning: main(./../language/lang_persian/lang_main.php): failed to open stream: No such file or directory in c:\program files\easyphp1-8\www\local\install\install.php on line 467
Warning: main(): Failed opening './../language/lang_persian/lang_main.php' for inclusion (include_path='.;C:/Program Files/EasyPHP1-8\php\pear\') in c:\program files\easyphp1-8\www\local\install\install.php on line 467
Warning: main(./../language/lang_persian/lang_admin.php): failed to open stream: No such file or directory in c:\program files\easyphp1-8\www\local\install\install.php on line 468
Warning: main(): Failed opening './../language/lang_persian/lang_admin.php' for inclusion (include_path='.;C:/Program Files/EasyPHP1-8\php\pear\') in c:\program files\easyphp1-8\www\local\install\install.php on line 468
وقتي با زبان انگلسيس هم نصب ميكنم اين پيغام رو ميده
phpBB : Critical Error
Could not connect to the database
سلام
در مورد فايل زبان از سايت زير مي توانيد در يافت كنيد
نقل قول:
forum.irani.ch
اين ارور در موقع نصب جديد بوجود مي آيد يا در موقع تغيير زبان از انگليسي به فارسي يا بالعكس ؟نقل قول:
وقتي با زبان انگلسيس هم نصب ميكنم اين پيغام رو ميده
phpBB : Critical Error
Could not connect to the database
اگه لینک مستقیم phpBB برام بزارین خیلی ممنون میشم
به سایت اصلیش رفتم اما لینک مستقیم نمی داد می داد اما فایل های قدیمی !!!!
خیلی نیاز دارم ممنون میشم اگه بدین جبران می کنم
فكر نكنم فايل هاش قديمي باشه
همه ورژن ها رو داره
ورژن چند رو مي خواين ؟
آخرین ورژن و یا اون ورژنی که به درستی کار می کنه یعنی بتا نیست