هاك لجعل القسم رابط الى موقع أخر [مميز ] مع شرح بالصور ومثال
المشرف: alhitary
??? ???? ????? ???? ??? ???? ??? [???? ] ?? ??? ?????? ?????
????? ???? ??? ??? ????? ???? ???? ?? ??????
##
## ??? ????? : ??? ????? ????? ?? ??? ??? ?? ????? ?????? ?? ??????? ????
## ????? ????? ?????? ???? ???? ????? ??? ?????? ???????
## ???? ????? ??? ??????? ?????? ???? ????? ?? ???? ??????
##
??? ????? ??
??? ??? ??
????? ???? ????? ????? ??? ?????
??? ???????
http://www.phpbbarabia.com/board
http://www.al-fager.com/bb
a_alfager@hotmail.com
??????? ?????????
??????? ?? ???? ?????? ?? ???????
?????? ?????
???? hasan213 ?? ?? ??????? ??? ?????? ???????
##
## ??? ????? : ??? ????? ????? ?? ??? ??? ?? ????? ?????? ?? ??????? ????
## ????? ????? ?????? ???? ???? ????? ??? ?????? ???????
## ???? ????? ??? ??????? ?????? ???? ????? ?? ???? ??????
##
??? ????? ??
??? ??? ??
????? ???? ????? ????? ??? ?????
??? ???????
http://www.phpbbarabia.com/board
http://www.al-fager.com/bb
a_alfager@hotmail.com
??????? ?????????
??????? ?? ???? ?????? ?? ???????
كود: تحديد الكل
################################################################################
##
## ????? ????? : ??? ????? ?????
## ???????? : 2.0.0
## ??????? : John McKernan
## ?????? : t.j <http://www.al-fager.com> <http://www.phpbbarabia.com> <a_alfager@hotmail.com
##
## ??? ????? : ??? ????? ????? ?? ??? ??? ?? ????? ?????? ?? ??????? ????
## ????? ????? ?????? ???? ???? ????? ??? ?????? ???????
## ???? ????? ??? ??????? ?????? ???? ????? ?? ???? ??????
##
##
## ???? ???? ????? ???? ???? ???? ?? ??? ??????
## ??????? ???????/??????/ ??????? ?? ?????? ???????? ???????.
##
##
## ??????? ??? ??? ????? ???? ?????? ??????? ?? ??? ??????
## ?? ?? ???? ?????? ???? /??? ??/ ??? ????? ????? ???? ??? ????
## ??? ????? ?? ???? ?????.
##
## ????? ???????? ?? ?????? ?? ??? ??????? ???? ??????? /
## ?? ????? ???? ??????, ?? ????? ?? ??????? ????.
##
##
## ?????? ?? : 2.0.4 - 2.0.6
## ????? ???? ??? :
## 2.0.19 - 2.0.20
## ???? ??????? ???? 100%
##
##
## ????? ???????: ?????- ???
## ????? ??????: 25 ?????
## ?????? ????? ??
## 15 ????? ?? ???
##
## ????? ???????: (7)
## \index.php
## \admin\admin_forums.php
## \language\lang_english\lang_admin.php
## \language\lang_english\lang_main.php
## \templates\subSilver\index_body.tpl
## \templates\subSilver\subSilver.cfg
## \templates\subSilver\admin\forum_edit_body.tpl
##
## ????? ?????: (3)
## \install_hack.php
## \view_external.php
## \templates\xxx\images\folder_external.gif
##
## Release History:
## 2.0.0 - added option to open external link in a new
## window & specify a custom folder image
## (Nov 24, 2003)
## 1.0.1 - corrected typo in 'Find' instruction for
## index.php - thanks to Rapid Dr3am (Sep 7, 2003)
## 1.0.0 - Initial release (Sep 1, 2003)
##
################################################################################
##
## FOR UPDATES/SUPPORT, please visit http://www.phpbbhacks.com/forums
##
## Stay up-to-date on the latest news involving our hacks, sign-up for
## our newsletter at http://wwww.presagemedia.com/lists/?p=subscribe
##
## This author supports phpBBHacks.com. This hack is made available
## solely through their database at http://www.phpbbhacks.com
##
## If you are new to installing hacks for phpBB, may I suggest that you take
## a look at my 'Installing phpBB Hacks' tutorial at phpBBHacks.com. You can
## find it here: http://www.phpbbhacks.com/forums/viewtopic.php?t=12211. You
## may also find my other tutorials helpful, please visit
## http://www.presagemedia.com/hacks/cms_articles.php
##
################################################################################
##
## This hack is released under the GPL License.
## All Intellectual Property Rights are retained by the hack author(s)
## shown above.
##
## This hack can be freely used, but not distributed, without permission.
##
################################################################################
## Author Notes:
##
## This hack has been tested on phpBB v 2.0.4 & 2.0.6
##
##
##
## ??????? ??????? :
## ??? ????? ???? ??? ?????
## v 2.0.4 & 2.0.6
## ??????? ??????
## ???? ????? ????? 100% ??? ?????
## v 2.0.17 & 2.0.20
##
################################################################################
##
## BEFORE ADDING THIS HACK TO YOUR FORUM, please be sure to backup ALL
## affected files.
##
################################################################################
################################################################################
##
## ?????? ?????????????????????
## ??? ????? ??? ????? ??? ???? ??? ???? ???????? ?? ??????? ??? ???????
##
################################################################################
################################################################################
##
## ?????? ?????????????????????
## ???? ???? ??????? ?????? ??
## t.j
## ??? ??????? ????
## www.phpbbarabia.com/board www.al-fager.com www.al-fager.com/bb
## ?? ???????? ???
## a_alfager@hotmail.com
##
################################################################################
################################################################################
##
## ??? ?????? ?????????????????????
## ??? ???? ???? ?????? ????? ??? ???????
## ????? ?? ??? ?????? ??????? ?? ??? ????? ???? ???? ?????
## ??? ?? ???? ??? ??????? ????? ??? ??????? ?????
##
################################################################################
################################################################################
## IMPORTANT: FULL INSTALLATION.
##
## These instructions should only be followed if you have not already
## installed the 'External Forum Redirect' hack versions 1.0.0 or 1.0.1.
##
## If you have installed an earlier version of this hack, please
## disregard these instructions and follow the instructions in the
## 'Upgrade_from_v1.txt' file instead.
##
################################################################################
################################################################################
## ?????? ????: ??????? ??????
## ??? ????? ???? ??????? ?????? ????????
## 2.0.0
## ?? ??? ?????
## ???? ?? ???? ?? ???? ????? ?? ??? ????? ?? ?????
## 1.0.0 ??
## 1.0.1
## ??? ??? ??? ?? ??? ?????? ????? ????? ??? ?????
## Upgrade_from_v1.txt
##
################################################################################
##
##----------[ ???? ]-------------------------------------
##
index.php
##
##----------[ ???? ]-------------------------------------
##
$template->assign_block_vars('catrow.forumrow', array(
##
##----------[ ????,??? ]------------------------------
##
$forum_target = '';
if ($forum_data[$j]['forum_external'])
{
$forum_url = append_sid("view_external.$phpEx?" . POST_FORUM_URL . "=$forum_id");
$member_hits = $forum_data[$j]['forum_redirects_user'];
$guest_hits = $forum_data[$j]['forum_redirects_guest'];
$all_hits = ($member_hits + $guest_hits);
$forum_details = $lang['External_text'] . '<b>' . $all_hits . '</b>';
$forum_details .= ( $all_hits == 1 ) ? $lang['External_hit'] : $lang['External_hits'];
$forum_details .= '<br />(' . $lang['External_members'] . ': <b>' . $member_hits . '</b> · ' . $lang['External_guests'] . ': <b>' . $guest_hits . '</b>)';
$folder_image = ($forum_data[$j]['forum_ext_image']) ? $forum_data[$j]['forum_ext_image'] : $images['forum_external'];
$forum_posts = '--';
$forum_topics = '--';
$forum_target = ($forum_data[$j]['forum_ext_newwin']) ? 'target="_external"' : '';
}
else
{
$forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id");
$forum_posts = $forum_data[$j]['forum_posts'];
$forum_topics = $forum_data[$j]['forum_topics'];
$forum_details = $last_post;
}
##
##----------[ ???? ]-------------------------------------
##
'POSTS' => $forum_data[$j]['forum_posts'],
'TOPICS' => $forum_data[$j]['forum_topics'],
##
##----------[ ??????? ?? ]-----------------------------
##
'POSTS' => $forum_posts,
'TOPICS' => $forum_topics,
##
##----------[ ???? ]-------------------------------------
##
'LAST_POST' => $last_post,
##
##----------[ ??????? ?? ]-----------------------------
##
'LAST_POST' => $forum_details,
'TARGET' => $forum_target,
##
##----------[ ???? ]-------------------------------------
##
'U_VIEWFORUM' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id"))
##
##----------[ ??????? ?? ]-----------------------------
##
'U_VIEWFORUM' => $forum_url)
##
##----------[ ???? ]-------------------------------------
##
\admin\admin_forums.php
##
##----------[???? ]-------------------------------------
##
$forumstatus = $row['forum_status'];
##
##----------[ ????? , ??? ]-------------------------------
##
$forum_external = $row['forum_external'];
$forum_redirect_url = $row['forum_redirect_url'];
$forum_ext_newwin = $row['forum_ext_newwin'];
$forum_ext_image = $row['forum_ext_image'];
##
##----------[ ???? ]-------------------------------------
##
$forumstatus = FORUM_UNLOCKED;
$forum_id = '';
$prune_enabled = '';
##
##----------[ ????? , ??? ]-------------------------------
##
$forum_external = '0';
$forum_redirect_url = '';
$forum_ext_newwin = '0';
$forum_ext_image = '';
##
##----------[ ???? ]-------------------------------------
##
'L_DAYS' => $lang['Days'],
##
##----------[ ?????, ??? ]-------------------------------
##
'FORUM_EXTERNAL_YES' => ($forum_external) ? 'checked="checked"' : '',
'FORUM_EXTERNAL_NO' => (!$forum_external) ? 'checked="checked"' : '',
'FORUM_REDIRECT_URL' => $forum_redirect_url,
'FORUM_EXT_NEWWIN_YES' => ($forum_ext_newwin) ? 'checked="checked"' : '',
'FORUM_EXT_NEWWIN_NO' => (!$forum_ext_newwin) ? 'checked="checked"' : '',
'FORUM_EXT_IMAGE' => $forum_ext_image,
'L_FORUM_EXT_NEWWIN' => $lang['Forum_ext_newwin'],
'L_FORUM_EXT_IMAGE' => $lang['Forum_ext_image'],
'L_FORUM_EXTERNAL' => $lang['Forum_external'],
'L_FORUM_REDIRECT_URL' => $lang['Forum_redirect_url'],
'L_NO' => $lang['No'],
'L_YES' => $lang['Yes'],
##
##----------[ ???? ]-------------------------------------
##
## There is more to this piece of code than what is
## shown here. This excerpt is shown since many hacks
## alter this code, and so yours may be different than
## the default code. This portion should remain constant.
##
##
##
##
## ???? ???????? ?????? ????? ?? ??? ?????
## ?? ????? ??? ??????? ?? ?????? ???? ?????? ???? ???? ???? ?? ?????? ?? ?????
##
##
##
// There is no problem having duplicate forum names so we won't check for it.
$sql = "INSERT INTO " . FORUMS_TABLE . " (forum_id,
##
##----------[ ?? ??? ????? ???? ?? ]------------------------------
##
forum_status
##
##----------[ ????? ??? ]-------------------------------
##
, forum_external, forum_redirect_url, forum_ext_newwin, forum_ext_image
##
##----------[ ?? ??? ????? ???? ?? ]------------------------------
##
" . intval($HTTP_POST_VARS['forumstatus']) . "
##
##----------[ ?????, ??? ]-------------------------------
##
, " . intval($HTTP_POST_VARS['forum_external']) . ", '" . $HTTP_POST_VARS['forum_redirect_url'] . "', " . intval($HTTP_POST_VARS['forum_ext_newwin']) . ", '" . $HTTP_POST_VARS['forum_ext_image'] . "'
##
##----------[ ???? ]-------------------------------------
##
## There is more to this piece of code than what is
## shown here. This excerpt is shown since many hacks
## alter this code, and so yours may be different than
## the default code. This portion should remain constant.
####
##
##
## ???? ???????? ?????? ????? ?? ??? ?????
## ?? ????? ??? ??????? ?? ?????? ???? ?????? ???? ???? ???? ?? ?????? ?? ?????
##
##
##
$sql = "UPDATE " . FORUMS_TABLE . "
##
##----------[ ?? ??? ????? ???? ?? ]------------------------------
##
forum_status = " . intval($HTTP_POST_VARS['forumstatus']) . "
##
##----------[ ????? ,??? ]-------------------------------
##
, forum_external = " . intval($HTTP_POST_VARS['forum_external']) . ", forum_redirect_url = '" . str_replace("\'", "''", $HTTP_POST_VARS['forum_redirect_url']) . "', forum_ext_newwin = " . intval($HTTP_POST_VARS['forum_ext_newwin']) . ", forum_ext_image = '" . str_replace("\'", "''", $HTTP_POST_VARS['forum_ext_image']) . "'
##
##----------[ ???? ]-------------------------------------
##
\language\lang_arabic\lang_admin.php
##
##----------[ ???? ?? ]-------------------------------------
##
//
// That's all Folks!
// -------------------------------------------------
?>
##
##----------[ ?????, ??? ]------------------------------
##
// external forum redirect
$lang['Forum_external'] = '????? ????? ?????';
$lang['Forum_redirect_url'] = '??????';
$lang['Forum_ext_newwin'] = '???? ?????? ?? ???? ???? /????? ?????/';
$lang['Forum_ext_image'] = '???? ??? ??? ????????';
##
##----------[ ???? ]-------------------------------------
##
\language\lang_arabic\lang_main.php
##
##----------[ ???? ?? ]-------------------------------------
##
//
// That's all, Folks!
// -------------------------------------------------
?>
##
##----------[ ?????, ??? ]------------------------------
##
// External forum redirection
$lang['External_text'] = '??? ??? ????? ??? ??????';
$lang['External_hit'] = ' ???.';
$lang['External_hits'] = ' ????.';
$lang['External_members'] = '?? ??? ???????';
$lang['External_guests'] = '?? ??? ??????';
##
##----------[ ???? ]-------------------------------------
##
\templates\subSilver\subSilver.cfg
##
##----------[ ???? ]-------------------------------------
##
$images['forum_locked'] = "$current_template_images/folder_locked_big.gif";
##
##----------[ ?????,??? ]-------------------------------
##
$images['forum_external'] = "$current_template_images/folder_external.gif";
##
##----------[???? ]-------------------------------------
##
\templates\subSilver\admin\forum_edit_body.tpl
##
##----------[ ???? ]-------------------------------------
##
<tr>
<td class="row1">{L_FORUM_STATUS}</td>
<td class="row2"><select name="forumstatus">{S_STATUS_LIST}</select></td>
</tr>
##
##----------[ ?????,??? ]-------------------------------
##
<tr>
<td class="row1">{L_FORUM_EXTERNAL}</td>
<td class="row2">
<input type="radio" name="forum_external" value="1" {FORUM_EXTERNAL_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="forum_external" value="0" {FORUM_EXTERNAL_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
<tr>
<td class="row1">{L_FORUM_REDIRECT_URL}</td>
<td class="row2"><input class="post" type="text" name="forum_redirect_url" value="{FORUM_REDIRECT_URL}" size="60" class="post" /></td>
</tr>
<tr>
<td class="row1">{L_FORUM_EXT_NEWWIN}</td>
<td class="row2">
<input type="radio" name="forum_ext_newwin" value="1" {FORUM_EXT_NEWWIN_YES} />
<span class="gen">{L_YES}</span>
<input type="radio" name="forum_ext_newwin" value="0" {FORUM_EXT_NEWWIN_NO} />
<span class="gen">{L_NO}</span></td>
</tr>
<tr>
<td class="row1">{L_FORUM_EXT_IMAGE}</td>
<td class="row2"><input class="post" type="text" name="forum_ext_image" value="{FORUM_EXT_IMAGE}" size="60" class="post" /></td>
</tr>
##
##----------[ ???? ]-------------------------------------
##
\templates\subSilver\index_body.tpl
##
##----------[ ???? ]-------------------------------------
##
<a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">
##
##----------[ ??????? ??? ]-----------------------------
##
<a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink" {catrow.forumrow.TARGET}>
##
##----------[ SAVE AND CLOSE ALL FILES ]-----------------
##
##----------[ ???? ????? ????? ?? ??????? ]-----------------
##
##----------[ ????? ????? ]-------------------------------
##
## ????/ ???? ??? ??????? ??? ???:
##
## SEE README.txt FILE
##
??: folder_external.gif
???: \templates\subSilver\images\folder_external.gif
??: phpbb_root\view_external.php
???: \view_external.php
??: phpbb_root\install_hack.php
??: \install_hack.php
##
##----------[ ???? ??? ?????? ]----------
##
## ?????? ??????, ???? ????? ??????. ????? ??? ??? ??? ????? ???? ????
## ?????? ????? ?? ???????, ?????? ?????? ?? ??? ???? ??? ????? ?? ????? ???????? ???????
##
##
## ????? ?? :
install_hack.php
##
##----------[ ?????? ??????? ]------------------------
##
##----------[ ?????? ????? ?? ?????? ?? ???? ]------------------------
??? ??? ?????? ??? ????? ???? ????? ????
???? ???? ??? ???? ?????? ?? ????? ?? ????? ????? ???????
?????
?? ?? ?????? ?????? ???? ???? ???? ???? ????? ?? ??? ?????? ???? ???? ??????
?? ???? ???? ???? ?????
?? ???? ??? ?????? ??? ???? ??? ??????
????? ??????? ???? ????? ????? ?????? ???
?? ????? ??? ??? ????
----[ ?? ?????? ???? ????? ?? ]----
----[ ??? ]----
?? ?? ???? ?????? ??????? ???????
http://
----[ ????? ??? ?? ???? ???? ????? ?????? ?? http:// ]----
???? :
htt://www.al-fager.com
??
http://www.al-fager.com/bb
?? ???? ??? ??? ???? ????? ?????? ?? ??? ?????? ?? ?? ???? ?????
????
(pop up )
??? ??
?? ????? ??? ??? ???? ???? ???? ??????? ?? ????? ??? ??? ????? ??????????
???? ?????
folder_external.gif
???????
\templates\subSilver\images\folder_external.gif
????? ?????? ??? ???? ??? ???? ?????????? ???? ??? ?????
?? ????
----[ ????? ???? ????? ]----
????? ???? ?? ????? ????? ?? ???? ?????? ????
?? ????? ????
???? ????????
You've completed all steps necessary to install this hack. Now go to your
Admin Control Panel and create a new forum or edit an existing forum, and set
the 'External Site', 'External URL', 'Launch in new window' and 'Custom image' settings appropriately to specify the forum as an external link.
To specify a custom image for any external forum, enter the complete url
to the desired image. If you leave this blank, the default external forum
image will be used.
##
################################################################################
##
## ?????? ?????????????????????
## ???? ???? ??????? ?????? ??
## t.j
## ??? ??????? ????
## www.phpbbarabia.com/board www.al-fager.com www.al-fager.com/bb
## ?? ???????? ???
## a_alfager@hotmail.com
##
################################################################################
################################################################################
##
## ??? ?????? ?????????????????????
## ??? ???? ???? ?????? ????? ??? ???????
## ????? ?? ??? ?????? ??????? ?? ??? ????? ???? ???? ?????
## ??? ?? ???? ??? ??????? ????? ??? ??????? ?????
##
################################################################################
#
#
#
#
# END
## ???????
?????? ?????
???? hasan213 ?? ?? ??????? ??? ?????? ???????
hasan213 كتب:????? ???t.j
??? ??? ????
????? ?? ???? ????? ???????? ??? ????? ??? ????? ??? ????? ???????? ??????? ?? ??????? ??????? ???? ?????? ?????? ??????? ??? ?? ??? ???? ???...
???????? ?? ???? ??? ????? ????? ??? ????? ??? ?????? ?????? ?????
????? ???? ???:D
hasan213 كتب:????? ??? ??? ?? t.j
???? ?? ????? ??? ???? ????? ????? ???? ???? ???????? ???? ????? ?? ???
????? ?????? ?????? ??????? ????? ??? ?? ????????
http://www.8online.net
آخر تعديل بواسطة t.j في الخميس يونيو 08, 2006 12:37 pm، تم التعديل مرتين في المجمل.
- احمد عبد الحميد
- عضو جديد
- مشاركات: 78
- اشترك في: الثلاثاء إبريل 26, 2005 2:15 am
الموجودون الآن
المتصفحون للمنتدى الآن: لا يوجد أعضاء مسجلين متصلين و 27 زائرًا