[ ! ] شرح غير واضح في هاك [ الإعلان في الرئيسية ]
المشرف: alhitary
[ ! ] ??? ??? ???? ?? ??? [ ??????? ?? ???????? ]
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
o o
o ?? ????? ??????????? ?? ?????? ????????????,?????????? ???? ???????o
o ???? ????? ????? ???????,???? ??? ?? ???? ??????? ??? ???? ???? o
o ?? ???? ?? ????? ??? ????????,????? ?? ??????? ?????? ?????????,???o
o?? ?????? ??? ???? phpBB ??????? ?? ??? ????? ?????? ???????? ?????o
o ????? ??? ????? ?????? ???????? ??????? ,?? ???? ???? ????????? ???? o o ???? ?? ?? ??????? ????????? ???? ????? ??????? ?????????,?????? ???o
o ?????? ?????? ??? ????? ???? ?? ??? ?? ?? ??????,,,????? ??????? o
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
???? ????? ??? Announcements On Index
--------------------------------------
??? ????? ?? ??? ???????? ???? ???? ??? ??? ????? ?? ????????? ?? ?????? ???????? ???????....
???? ????? ????? ?????:
[*]????
[ ]?????
[ ]???
[ ]??? ????
????? ????? ????? ???????:10 ?????
??????? ???? ????? ????????:
## index.php,
## templates/subSilver/index_body.tpl,
## language/lang_english/subSilver/lang_admin.php,
## admin/admin_board.php,
## templates/subSilver/admin/board_config_body.tpl
?????? ????:
????? ??????? ???? ?????? ????????? ?? ?????? ???????? ?? 7 ???? ?????? ??????? ?? ???? ??????
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
????? ???? ????? ???? ?? ??? ??? ???????? ??????? ??? ???????,,,
#
#-----[ ???? ]------------------------------------------
#
index.php
#
#-----[ ???? ?? ]------------------------------------------
#
//
// Okay, let's build the index
//
#
#-----[ ??? ???? ]------------------------------------------
#
//-- mod : annonces ---
//-- add
//
// dur?e d'une annonce : 7 jours par d?faut par rapport au dernier reply
$announcement_duration = 7;
if ( !isset( $board_config['announcement_duration'] ) )
{
$sqlw = "insert into ".CONFIG_TABLE." (config_name,config_value) VALUES('announcement_duration','" . $announcement_duration . "')";
if ( !($resultw = $db->sql_query($sqlw)) ) message_die(GENERAL_ERROR, 'Could not add key sub_forum in config table', '', __LINE__, __FILE__, $sql);
}
if ( isset( $board_config['announcement_duration'] ) )
{
$announcement_duration = $board_config['announcement_duration'];
}
$time_floor = time() - ( ($announcement_duration-1) * 24 * 3600 );
//-------------------------------------------
//
// aller chercher les annonces
//
//-------------------------------------------
$sql = 'select t.* '.
'from '.TOPICS_TABLE.' as t, '.POSTS_TABLE. ' as p, '. FORUMS_TABLE . ' as f ' .
'where p.post_id = t.topic_last_post_id and f.forum_id = t.forum_id and t.topic_type="'.POST_ANNOUNCE.'" '.
'and p.post_time >= '.$time_floor . ' ' .
'order by p.post_time desc';
if( !($result = $db->sql_query($sql)) )
message_die(GENERAL_ERROR, 'Could not query topic list :'. $sql, '', __LINE__, __FILE__, $sql);
while ($row = $db->sql_fetchrow($result))
{
$w_is_auth = array();
$w_is_auth = auth(AUTH_ALL, $row['forum_id'], $userdata);
if( $w_is_auth['auth_view'] && $w_is_auth['auth_read'] ) $topicrow[] = $row;
}
if ( count($topicrow) > 0 )
{
$template->assign_block_vars('switch_annonce',array(
'L_ANNONCE' => $lang['Post_Announcement'],
)
);
for ($i=0;$i<count($topicrow);$i++)
{
$topic_url = append_sid("viewtopic.$phpEx?".POST_TOPIC_URL."=".$topicrow[$i]['topic_id']);
$template->assign_block_vars('switch_annonce.topicrow',array(
'TOPIC_FOLDER_IMG' => $images['folder_announce'],
'L_TOPIC_FOLDER_ALT' => $lang['Post_Announcement'],
'U_VIEW_TOPIC' => $topic_url,
'TOPIC_TITLE' => $topicrow[$i]['topic_title']
)
);
}
}
//-- fin mod : annonces ------
#
#-----[ ???? ]------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ ???? ?? ]------------------------------------------
#
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th>
#
#-----[ ??? ???? ]------------------------------------------
#
<!-- mod : annonces -->
<!-- BEGIN switch_annonce -->
<table width="100%" cellpadding="1" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap"><span class="tableTitle">{switch_annonce.L_ANNONCE}</span></th>
</tr>
<!-- BEGIN topicrow -->
<tr>
<td class="row1" align="center" valign="middle" width="35" height="25">
<img src="{switch_annonce.topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.switch_annonce.L_TOPIC_FOLDER_ALT}" title="{switch_annonce.topicrow.L_TOPIC_FOLDER_ALT}" />
</td>
<td class="row1">
<span class="topictitle"> <a href="{switch_annonce.topicrow.U_VIEW_TOPIC}" class="topictitle">{switch_annonce.topicrow.TOPIC_TITLE}</a></span>
</td>
</tr>
<!-- END topicrow -->
</table>
<!-- END switch_annonce -->
<!-- fin mod : annonces -->
#
#-----[ ???? ]------------------------------------------
#
language/lang_arabic/lang_admin.php
#
#-----[ ???? ?? ]------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
#
#-----[ ??? ???? ]------------------------------------------
#
//-- mod : annonces -
$lang['announcement_duration'] = '??? ??? ??????? ?? ?????? ????????';
//-- fin mod : annonces
#
#-----[ ???? ]------------------------------------------
#
else if ( $searchset[$i]['topic_vote'] )
{
$folder = $images['folder_poll'];
$folder_new = $images['folder_poll_new'];
}
#
#-----[ ???? ]------------------------------------------
#
admin/admin_board.php
#
#-----[ ???? ?? ]------------------------------------------
#
$template->assign_vars(array(
#
#-----[ ??? ???? ]------------------------------------------
#
//-- mod : annonces -
//-- add
"L_ANNOUNCEMENT_DURATION" => $lang['announcement_duration'],
"ANNOUNCEMENT_DURATION" => $new['announcement_duration'],
//-- fin mod : annonces
#
#-----[ ???? ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ ???? ?? ]------------------------------------------
#
<tr>
<th class="thHead" colspan="2">{L_ABILITIES_SETTINGS}</th>
</tr>
#
#-----[ ??? ???? ]------------------------------------------
#
<!-- mod : annonces -->
<tr>
<td class="row1">{L_ANNOUNCEMENT_DURATION}</td>
<td class="row2"><input type="text" name="announcement_duration" size="4" maxlength="4" value="{ANNOUNCEMENT_DURATION}" /></td>
</tr>
<!-- fin mod : annonces -->
#
#-----[ ???? ??????? ]------------------------------------------
#
#??[/b]
?????? ???? ????? ???? ?? ?? ??? ???? !!!!
آخر تعديل بواسطة supercool في السبت يوليو 15, 2006 12:02 am، تم التعديل مرة واحدة.
شبــكة و منتديات
السراج التطويرية الشاملة
خدمات ويب - إستضافة - دومينات - برمجة - تصميم - إشهار - خدمات خاصة لمواقع الصوتيات
>> http://www.elsiraj.net
السراج التطويرية الشاملة
خدمات ويب - إستضافة - دومينات - برمجة - تصميم - إشهار - خدمات خاصة لمواقع الصوتيات
>> http://www.elsiraj.net
??? ?? ????
???? ????? ??????? ??? ????? ?????
?? ?? ????
?? ????? ?????
???? ????? ??????? ??? ????? ?????
??? ????????? ????? ?? ?? ?? ???????## index.php,
## templates/subSilver/index_body.tpl,
## language/lang_english/subSilver/lang_admin.php,
## admin/admin_board.php,
## templates/subSilver/admin/board_config_body.tpl
?? ?? ????
?? ????? ?????
8) 8) 8) 8) السيرفر المحلي 8) 8) 8) 8)
السيرفر المحلي مهم جدا في احتراف تركيب المنتديات
فهو يقوم بتركيب المنتدى على جهازك الشخصي
حيث تستطيع تركيب الهاكات والإستايلات وغيرها
وتجربتها على الجهاز وتأكد من فعاليتها
قبل وضعها في منتداك وموقعك الفعلي في الإنترنت
فإذا ارد الإحتراف فتعلم تركيب المنتدى على السيرفر المحلي
شرح تركيب المنتدى على السيرفر الأباتشي
السيرفر المحلي مهم جدا في احتراف تركيب المنتديات
فهو يقوم بتركيب المنتدى على جهازك الشخصي
حيث تستطيع تركيب الهاكات والإستايلات وغيرها
وتجربتها على الجهاز وتأكد من فعاليتها
قبل وضعها في منتداك وموقعك الفعلي في الإنترنت
فإذا ارد الإحتراف فتعلم تركيب المنتدى على السيرفر المحلي









شرح تركيب المنتدى على السيرفر الأباتشي
#-----[ ???? ]------------------------------------------
#
else if ( $searchset[$i]['topic_vote'] )
{
$folder = $images['folder_poll'];
$folder_new = $images['folder_poll_new'];
}
*****************************************
????? ???? ??????? ???? ????? ??? ???? ??? ?????

?????8)
#
else if ( $searchset[$i]['topic_vote'] )
{
$folder = $images['folder_poll'];
$folder_new = $images['folder_poll_new'];
}
*****************************************
????? ???? ??????? ???? ????? ??? ???? ??? ?????

?????8)
منتديات محمد بن راضي:
http://rady.43i.net
http://rady.43i.net
الموجودون الآن
المتصفحون للمنتدى الآن: لا يوجد أعضاء مسجلين متصلين و 31 زائرًا