هاك الاعلانات في كافة الاقسام
المشرف: alhitary
- عادل البدر
- عضو جديد
- مشاركات: 50
- اشترك في: الخميس سبتمبر 23, 2004 1:51 am
- مكان: s_a
??? ????????? ?? ???? ???????
???? ??? ????? ??? ????????? ?? ?????? ????????
???? ???? ???? ???????? ??? ??? ????? ?? ???? ??????? ???? ????????
???? ???? ???? ???????? ??? ??? ????? ?? ???? ??????? ???? ????????
كود: تحديد الكل
???? ????? ??? Announcements on forums
--------------------------------------
??? ????? ?? ??? ???????? ???? ???? ??? ??? ????? ?? ???? ???????....
???? ????? ????? ?????:
[*]????
[ ]?????
[ ]???
[ ]??? ????
????? ????? ????? ???????:10 ?????
??????? ???? ????? ????????:
## viewforum.php,
## templates/subSilver/viewforum_body.tpl,
## language/lang_english/subSilver/lang_admin.php,
## admin/admin_board.php,
## templates/subSilver/admin/board_config_body.tpl
?????? ????:
????? ??????? ???? ?????? ????????? ?? ?????? ???????? ?? 7 ???? ?????? ??????? ?? ???? ??????
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
????? ???? ????? ???? ?? ??? ??? ???????? ??????? ??? ???????,,,
#
#-----[ ???? ]------------------------------------------
#
viewforum.php
#
#-----[ ???? ?? ]------------------------------------------
#
//
// End session management
//
#
#-----[ ??? ???? ]------------------------------------------
#
//-- 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/viewforum_body.tpl
#
#-----[ ???? ?? ]------------------------------------------
#
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="right" valign="bottom" colspan="2"><a class="maintitle"
#
#-----[ ??? ???? ]------------------------------------------
#
<!-- 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
#
}
#
#-----[ ???? ]------------------------------------------
#
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 -->
#
#-----[ ???? ??????? ]------------------------------------------
#
#??
- عادل البدر
- عضو جديد
- مشاركات: 50
- اشترك في: الخميس سبتمبر 23, 2004 1:51 am
- مكان: s_a
????? ??? ???????dr.3 كتب:
???![]()
???? ???? ?? ?? ???? ????? ????? ??????? ?? ??? ????? ?????? ???? ?????? ????? ????? ???? ?? ???? ??? ?????![]()
??? ????? ??? ?? ????? ???? ???????? ???? ???? ???? ????? ?? ?????? ????????
??????? ??????? ??????? ???????? ?? ????? ????????? ???? ???? ??? ??? ?????? ??? ???????
??? ??? ???? ????? ?????? ??? ?????? ?? ???? ??? ????? ???? ??? ????? ?????????
?? ???? ?? ????????? ??? ??????? ???????? ???????? ??? ???? ???? ?? ?????? ?????
???? ?? ????? ????? ????? ????? ??????? ????? ?????
???? ????? ??????? ???? ?? ??? ???? ???????? ?????? ???? ???? ???? ????? ??? ???? ?????
??????
- iraq2u.org
- عضو جديد
- مشاركات: 45
- اشترك في: السبت سبتمبر 17, 2005 5:29 pm
الموجودون الآن
المتصفحون للمنتدى الآن: GoogleBot, Semrush [Bot] و 28 زائرًا