admin
11-01-2013, بتوقيت غرينيتش 04:11 AM
http://www.dzbatna.com/images/icons/iconrote.gif ظƒظٹظپظٹظ‡ ط¹ظ…ظ„ ط§ظ„ظ…ظˆط§ط¶ظٹط¹ ط¨ط´ظƒظ„ ط§ظپظ‚ظٹ ظˆط§ظ„ط±ط¯ظˆط¯ ط¨ط´ظƒظ„ ط¹ظ…ظˆط¯ظٹ ظƒطھط±ط§ظٹط¯ ظ†طھ ظ„ظ…ظ†طھط¯ظٹط§طھ pbboard (http://www.dzbatna.com/t2247589/)
بسم الله الرحمن الرحيم
السلام عليكم ورحمه الله وبركاته
مثال ع تطبيق الدرس مفصل
المواضيع
http://up.egymafia.com/8/egymafia.com1363902134861.png
الردود
http://up.egymafia.com/8/egymafia.com1363902261891.png
طريقه التركيب install
http://up.egymafia.com/8/egymafia.com1363902568421.png
ثم قم بتغير هذه القوالب بالاتي
show_subject
رمز Code:
<!-- action_find_addons_1 --> {template}show_subject_information{/template} <table align="center" border="0" cellspacing="1" class="border" width="98%" onclick="switchBlock('Options_mods')"> <td class="thead" width="100%" align="right"> <div class="r-right"> <img src="{$Info['icon']}" /> <span dir="{$_CONF['info_row']['content_dir']}"> {$Info['prefix_subject']} </span> <a href="index.php?page=topic&show=1&id={$subject_id}"> {$subject_title}</a> </div> <div class="l-left"> {$Info['native_write_time']} </div> </td> </tr> <tr align="center"> <td class="tbar_writer_info" width="100%" valign="top"> {if {$Info['username']}} <!-- user info --> <div onclick="switchBlock('{$Info['id']}_menu');"> {template}writer_info{/template} </div> <!-- / user info --> {else} {template}guest_info{/template} {/if} </td> </tr> <tr align="center"> <td {if {$Info['special']} == '1'} id="layerspecial" class="td_special" width="100%" valign="top" align="right" {else} class="{$class_subject}" width="100%" valign="top" align="right" {/if} onclick="switchBlock('subject_rating');"> <div style="border-bottom:1px solid #dddddd;width:95%;padding:5px;font-weight:900;margin:5px"> {$subject_title} </div> {template}add_this{/template} {if !{$STOP_ADSENSES_TEMPLATE}} {template}adsense_topic{/template} {/if} <?php $PowerBB->functions->get_hooks_template("show_subject_text")?> <div class="text">{$Info['text']}</div> {if {$Info['close_reason']} != '' and {$Info['close']} } <br /> <br /> <br /> <br /> <i><font color="#FF0000"> {$lang['reason_for_closure']} {$Info['close_reason']}</font></i> {/if} {if {$Info['attach_subject']}} {template}attach_show{/template} {/if} {if {$_CONF['group_info']['view_action_edit']}} {if {$Info['action_by']} != ''} <br /> <br /> <div align="center"> <i> {$lang['action_by_subject']} {$Info['action_by']}<br /> {$lang['last_date']} {$Info['actiondate']} </i> </div> <br /> {/if} {/if} {if {$Info['reason_edit']} != ''} <div align="center"> <b>{$lang['reason_edit']} {$Info['reason_edit']}</b> </div> <br /> {/if} <?php $PowerBB->functions->get_hooks_template("show_subject_down_text")?> {if {$Info['user_sig']} != ''} {template}signature_show{/template} {/if} </td> </tr> <tr align="center"> <td colspan="2" class="row1" width="100%"> <table border="0" width="100%" cellpadding="0" style="border-collapse: collapse"> <tr> <td> <div class="r-right"> {if {$ReplierInfo['username']}} {if {$_CONF['member_row']['username']} != {$ReplierInfo['username']}} {if {$_CONF['info_row']['reputationallw']} == 1} <a href="javascript:switchMenuNone('{$subject_id}repu tation')" title="{$lang['add_reputation_to']} {$ReplierInfo['username']}"> <img border="0" src="{$image_path}/reputation.gif" /> </a> {template}subject_reputation{/template} {/if} {/if} {/if} <a title="{$lang['reporting_for_post']}" href="index.php?page=report&index=1&subject_id={$subject_id}"> <img alt="{$lang['reporting_for_post']}" border="0" alt="" src="{$image_path}/report.gif" /></a> </div> <div class="r-right"> <!-- like facebook --> {if {$_CONF['info_row']['active_like_facebook']} == '1'} <div class="addthis_toolbox addthis_default_style"> <a style="border-bottom:none" class="addthis_button_facebook_like" fb:like:layout="button_count"></a> <a style="border-bottom:none" class="addthis_button_tweet"></a> </div> <script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script> <script type="text/javascript" src="includes/js/addthis_widget.js#username={$_CONF['info_row']['use_list']}"></script> {/if} <!-- / like facebook --> <!-- action_find_addons_2 --> </div> <div class="l-left"> <!-- action_find_addons_3 --> <ul class="post_controls"> {if {$_CONF['member_permission']}} {if !{$mod_toolbar}} <li> <a title="{$lang['edit_subject']}" href="index.php?page=management&subject=1§ion={$Info['section']}&subject_id={$subject_id}&operator=edit" title="{$lang['edit_subject']}" class="Button_secondary"> {$lang['edit_subject']}</a> </li> <li> <a href="index.php?page=management&subject=1§ion={$Info['section']}&subject_id={$subject_id}&operator=delete" title="{$lang['delete_subject']}" class="Button_secondary"> {$lang['delete_subject']}</a> </li> {else} {if {$Info['close']} == '0'} {if {$timeout}} {if {$_CONF['member_row']['username']} == {$Info['username']}} {if {$_CONF['group_info']['edit_own_subject']}} <li> <a title="{$lang['edit_subject']}" href="index.php?page=management&subject=1§ion={$Info['section']}&subject_id={$subject_id}&operator=edit" class="Button_secondary"> {$lang['edit_subject']}</a> </li> {/if} {if {$_CONF['group_info']['del_own_subject']}} <li> <a href="index.php?page=management&subject=1§ion={$Info['section']}&subject_id={$subject_id}&operator=delete" title="{$lang['delete_subject']}" class="Button_secondary"> {$lang['delete_subject']}</a> </li> {/if} {/if} {/if} {/if} {/if} {/if} <li> <a href="index.php?page=new_reply&index=1&id={$subject_id}{$password} &qu_Subject={$subject_id}& user={$Info['username']}" title="{$lang['qu_subject']}" class="Button_secondary"> {$lang['quote']}</a> </li> <li> <?php $post_id = $PowerBB->_CONF['template']['subject_id']; ?> <a class="img-submit" id="mad_<?php echo "$post_id"; ?>" name="mad_<?php echo "$post_id"; ?>" onclick="multiquote_add(<?php echo "$post_id"; ?>); return false;" href="#">{$lang['multiquote']}</a> </li> <!-- action_find_addons_4 --> </ul> </div> </td> </tr> </table> </td> </tr> </table> {Des::while}{AdsensesList} {if {$AdsensesList['down_topic']} == '1'} <div align="center"> {$AdsensesList['adsense']} <br /> </div> {/if} {/Des::while} <!-- action_find_addons_5 --> <br />
show_post
رمز Code:
{template}address_bar_part1{/template} <a href="index.php?page=forum&show=1&id={$sec_main_id }"> {$sec_main_title} </a> {$_CONF['info_row']['adress_bar_separate']} <a href="index.php?page=forum&show=1&id={$section_info['id']}{$password}"> {$section_info['title']} </a> {$_CONF['info_row']['adress_bar_separate']} <span dir="{$_CONF['info_row']['content_dir']}"> {$lang['view_single_post']}: </span> <a title="{$lang['post']} ({$Info['reply_number']})" id="{$Info['reply_id']}" href="#{$Info['reply_id']}"> {$subject_title}</a> {template}address_bar_part2{/template} <br /> <table align="center" border="0" cellspacing="1" class="border" width="98%"> <tr align="center"> <td class="tcat"> <a target="_blank" href="index.php?page=topic&show=1&id={$SubjectInfo['id']}&count={$Info['count']}#{$Info['reply_id']}">{$lang['show_post_normal']}</a> </td> </tr> <tr align="center"> <!-- <td class="tcat" width="18%"> {$lang['information_writer']} </td> --> <td class="tcat" width="100%"> <div class="r-right"> <img src="{$Info['icon']}" /> {$subject_title} </div> <div class="l-left"> {$Info['write_time']} [<a title="{$lang['post']} ({$Info['reply_number']})" id="{$Info['reply_id']}" href="#{$Info['reply_id']}">#{$Info['reply_number']}</a>] </div> </td> </tr> <tr align="center"> <td class="tbar_writer_info" width="100%" valign="top"> <div onclick="switchBlock('{$Info['reply_id']}_menu');"> {template}writer_info{/template} </div> </td> </tr> <tr align="center"> <td class="{$class_reply}" width="82%" name="text" valign="top" align="right" onclick="switchBlock('{$Info['reply_id']}_menu');"> <div class="text">{$Info['text']}</div> {if {$Info['attach_reply']}} {template}attach_show{/template} {/if} {if {$_CONF['group_info']['view_action_edit']}} {if {$Info['action_by']} != ''} <br /> <br /> <div align="center"> <i> {$lang['action_by_reply']} {$Info['action_by']}<br /> {$lang['last_date']} {$Info['actiondate']} </i> </div> <br /> {/if} {/if} {if {$Info['reason_edit']} != ''} <div align="center"> <b>{$lang['reason_edit']} {$Info['reason_edit']}</b> </div> <br /> {/if} </td> </tr> <tr align="right"> <td class="row1" width="100%"> <table border="0" width="100%" cellpadding="0" style="border-collapse: collapse"> <tr> <td width="82%"> <div class="r-right"> {if {$ReplierInfo['username']} !=''} {if {$_CONF['member_row']['username']} != {$ReplierInfo['username']}} {if {$_CONF['info_row']['reputationallw']} == 1} <a href="javascript:switchMenuNone('{$Info['reply_number']}replyreputation')" title="{$lang['add_reputation_to']} {$ReplierInfo['username']}"> <img border="0" src="{$image_path}/reputation.gif" /> </a> {template}reply_reputation{/template} {/if} {/if} {/if} <a title="{$lang['reporting_for_post']}" href="index.php?page=report&index=1&subject_id={$I nfo['subject_id']}&reply_id={$Info['reply_id']}&count={$count_peg}"> <img alt="{$lang['reporting_for_post']}" border="0" cellspacing="1" src="{$image_path}/report.gif" /></a> </div> <div class="l-left"> <ul class="post_controls"> <li> <a href="index.php?page=new_reply&index=1&id={$subjec t_id}{$password} &qu_Reply={$Info['reply_id']}&user={$Info['username']}" class="Button_secondary" title="{$lang['qu_reply']}"> {$lang['quote']}</a> </li> </div> </tr> </table> </td> </tr> </table>
writer_info
رمز Code:
<table width="100%" border="0" cellpadding="3px"> <tr> <td width="150px" valign="top" align="center"> <div class="UserPhoto_large" align="center" style="width:120px;height:120px;padding:5px;margin :0 auto;border:1px solid #dddddd"> {if {$_CONF['info_row']['allow_avatar']} == '1'} {if {$ReplierInfo['avater_path']} != ''} <a href="{$ReplierInfo['avater_path']}" rel="facebox"> <img src="{$ReplierInfo['avater_path']}" border="0" title="{$lang['Picture']} {$ReplierInfo['username']} {$lang['Personal']}" alt="{$lang['Picture']}{$ReplierInfo['username']}{$lang['Personal']}" width="120px" height="120px" /></a> {else} <a href="{$image_path}/ {$_CONF['info_row']['default_avatar']}" rel="facebox"> <img src="{$image_path}/ {$_CONF['info_row']['default_avatar']}" border="0" alt="{$lang['no_photo']}" title="{$lang['no_photo']}" /> </a> {/if} {/if} </div> </td> <td valign="top" width="200px" align="center"> <!-- Code switch Menu start --> <ul class="writer_controls"> <li> {if {$ReplierInfo['username']} !=''} <a href="javascript:switchMenuNone('{$Info['id']}_menu')" class="Button_secondary"> <?php echo $PowerBB->functions->GetwriterGroupStyle($PowerBB->_CONF['template']['ReplierInfo']['username'],$PowerBB->_CONF['template']['ReplierInfo']['usergroup']);?> <img border="0" alt="" src="{$image_path}/menu_open.gif" /></a> {else} <b class="Button_secondary" >{$lang['Guest_']}</b> {/if} </li> </ul> <div style="display:none;" class="drop_menu" id="{$Info['id']}_menu"> <div class="thead"> {if {$ReplierInfo['username']} !=''} <a href="javascript:switchMenuNone('{$Info['id']}_menu')"> <a href="index.php?page=profile&show=1&id={$ReplierIn fo['id']}"> {$ReplierInfo['display_username']}</a> </a> {else} <b>{$lang['Guest_']}</b> {/if} </div> <div class="menu_popup"> <a href="index.php?page=profile&show=1&id={$ReplierIn fo['id']}"> {$lang['view_profile']} </a> </div> <div class="menu_popup"> <a href="index.php?page=search&option=3&username={$Re plierInfo['username']}&starteronly=0&section=all&exactname=1&sort_order =DESC"> {$lang['search_for_all_posts']} {$ReplierInfo['username']}</a> </div> <div class="menu_popup"> <a href="index.php?page=search&option=4&username={$Re plierInfo['username']}&starteronly=0&section=all&exactname=1&sort_order =DESC"> {$lang['search_for_all_replys']} {$ReplierInfo['username']}</a> </div> {if {$_CONF['member_permission']}} <div class="menu_popup"> <a href="index.php?page=pm_send&send=1&index=1&userna me={$ReplierInfo['username']}"> {$lang['send_a_private_message_to']} {$ReplierInfo['username']} </a> </div> {/if} {if {$_CONF['member_permission']}} <div class="menu_popup"> <a href="index.php?page=send&member=1&index=1&id={$Re plierInfo['id']}"> {$lang['send_a_message_to_the_mailing']} {$ReplierInfo['username']} </a> </div> {/if} {if {$mod_edit_member}} {if {$_CONF['member_permission']}} <div class="menu_popup"> <a target="_blank" href="{$admincpdir}?page=member&edit=1&main=1&id= {$ReplierInfo['id']}"> {$lang['edit_member_data']} {$ReplierInfo['username']} </a> </div> {/if} {/if} <div class="menu_popup"> {if !{$admin_mod_toolbar}} <a title="{$lang['send_warn_to_mem']} {$ReplierInfo['username']}"href="index.php?page=warn&index=1&id={$ReplierIn fo['id']}"><img title="{$lang['send_warn_to_mem']} {$ReplierInfo['username']}" border="0" src="{$image_path}/warn.png"></a> {/if} {if {$_CONF['rows']['group_info']['admincp_allow']}} {if {$ReplierInfo['member_ip']} != ''} <img title="{$lang['user_IP']}: {$ReplierInfo['member_ip']}" border="0" src="{$image_path}/ip.gif"> {/if} {/if} </div> </div> <!-- Code switch Menu End --> <!-- action_find_addons_1 --> {if {$ReplierInfo['username']} !=''} <div align="center"> <b> {if {$GroupInfo['usertitle_change']} == 1} {if {$Usertitle} != ''} {$Usertitle} {else} {$ReplierInfo['user_title']} {/if} {else} {if !{$ReplierInfo['user_title']}} {$GroupInfo['user_title']} {else} {$ReplierInfo['user_title']} {/if} {/if} </b> </div> {if {$RatingInfo['posts']} > {$ReplierInfo['posts']}} {if {$RatingInfo['rating']} != 'look/images/rating/rating_0.gif'} <div align="center" style="margin-top:10px"> <img border="0" alt="rating" src="{$RatingInfo['rating']}"> </div> {/if} {/if} {/if} <div align="center" style="margin-top:10px"> <!-- {$lang['Case']} : --> {$status} </div> {if {$_CONF['info_row']['allow_apsent']} == '1'} {if {$ReplierInfo['away']}} <br /> <fieldset> <legend><font class="smallfont">{$lang['user_Absent']}</font></legend> <font class="smallfont"> {$ReplierInfo['away_msg']} </font> </fieldset> {/if} {/if} </td> <td> </td> <td align="center" valign="top" width="180px"> {if {$Awards_nm} > '0'} <div style="width:180px;height:150px;overflow-x: hidden; overflow-y: scroll; "> {template}awards{/template} </div> {/if} </td> <td align="center" valign="top" width="200px"> {if !{$Info['reply_id']}} {if {$_CONF['info_row']['show_list_last_5_posts_member']} == 1} {template}last_subject_writer{/template} {/if} {/if} </td> <td valign="top" width="150px"> <!-- action_find_addons_2 --> <?php $PowerBB->functions->get_hooks_template("writer_info_top")?> {if {$ReplierInfo['username']} !=''} <div class="writer_info" align="right"> {$lang['user_num']} : {$ReplierInfo['id']} </div> <div class="writer_info" align="right"> {$lang['posts']} : {$ReplierInfo['posts']} </div> {if {$ReplierInfo['user_country']} != ''} <div class="writer_info" align="right"> {$lang['user_country']} : {$ReplierInfo['user_country']} </div> {/if} <div class="writer_info" align="right"> {$lang['user_gender']} : {if {$ReplierInfo['user_gender']} == m} <img title="{$lang['gender_m']}" src="{$image_path}/gender_male.gif" /> {else} <img title="{$lang['gender_f']}" src='{$image_path}/gender_female.gif'> {/if} </div> {if {$ReplierInfo['bday_year']} != ''} {if {$ReplierInfo['bday_year']} != '0'} <div class="writer_info" align="right"> {$lang['Birth_date']} : {$ReplierInfo['bday_day']}-{$ReplierInfo['bday_month']}-{$ReplierInfo['bday_year']} </div> {/if} {/if} {if {$ReplierInfo['visitor']} != ''} <div class="writer_info" align="right"> {$lang['visitor_num']} : {$ReplierInfo['visitor']} </div> {/if} {if {$ReplierInfo['invite_num']} != '0'} <div class="writer_info" align="right"> {$lang['Invites']} : {$ReplierInfo['invite_num']} </div> {/if} {if {$ReplierInfo['warnings']} > 0} <div class="writer_info" align="right"> {$lang['user_warnings']} : {$ReplierInfo['warnings']} </div> {/if} {if {$ReplierInfo['reputation']} != ''} <div class="writer_info" align="right"> {$lang['user_reputation']} : {$ReplierInfo['reputation']} </div> <!-- action_find_addons_3 --> {/if} {if !empty({$ReplierInfo['user_website']}) and {$ReplierInfo['user_website']} != 'http://'} <div class="writer_info" align="right"> {$lang['UserWebsite']} : <?php if (strstr($PowerBB->_CONF['template']['ReplierInfo']['user_website'],'http://')) { ?> <a target="_blank" href="{$ReplierInfo['user_website']}">{$lang['Visit_my_website']}</a> <?php }else{ ?> <a target="_blank" href="http://{$ReplierInfo['user_website']}">{$lang['Visit_my_website']}</a> {/if} </div> {/if} {if is_array({$while['extrafield']})==true } {Des::while}{extrafield} <?php if( $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ]!='' ){ ?> <div class="writer_info" align="right"> {$extrafield['name']} : <?php $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ] = $PowerBB->functions->CleanVariable($PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ],'html'); ?> <?php echo $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ] ?> </div> <?php }else{ ?> <?php } ?> {/Des::while} {/if} <!-- action_find_addons_4 --> <?php $PowerBB->functions->get_hooks_template("writer_info_down")?> </td> {/if} </tr> </table>
ثم نقوم بانشاء قالب template جديد كما موضح باسم egyreply ونضع فيه هذا الكود code
رمز Code:
<!-- Code switch Menu start --> <ul class="writer_controls"> <li> {if {$ReplierInfo['username']} !=''} <a href="javascript:switchMenuNone('{$Info['id']}_menu')" class="Button_secondary"> <?php echo $PowerBB->functions->GetwriterGroupStyle($PowerBB->_CONF['template']['ReplierInfo']['username'],$PowerBB->_CONF['template']['ReplierInfo']['usergroup']);?> <img border="0" alt="" src="{$image_path}/menu_open.gif" /></a> {else} <b class="Button_secondary" >{$lang['Guest_']}</b> {/if} </li> </ul> <div style="display:none;" class="drop_menu" id="{$Info['id']}_menu"> <div class="thead"> {if {$ReplierInfo['username']} !=''} <a href="javascript:switchMenuNone('{$Info['id']}_menu')"> <a href="index.php?page=profile&show=1&id={$ReplierIn fo['id']}"> {$ReplierInfo['display_username']}</a> </a> {else} <b>{$lang['Guest_']}</b> {/if} </div> <div class="menu_popup"> <a href="index.php?page=profile&show=1&id={$ReplierIn fo['id']}"> {$lang['view_profile']} </a> </div> <div class="menu_popup"> <a href="index.php?page=search&option=3&username={$Re plierInfo['username']}&starteronly=0&section=all&exactname=1&sort_order =DESC"> {$lang['search_for_all_posts']} {$ReplierInfo['username']}</a> </div> <div class="menu_popup"> <a href="index.php?page=search&option=4&username={$Re plierInfo['username']}&starteronly=0&section=all&exactname=1&sort_order =DESC"> {$lang['search_for_all_replys']} {$ReplierInfo['username']}</a> </div> {if {$_CONF['member_permission']}} <div class="menu_popup"> <a href="index.php?page=pm_send&send=1&index=1&userna me={$ReplierInfo['username']}"> {$lang['send_a_private_message_to']} {$ReplierInfo['username']} </a> </div> {/if} {if {$_CONF['member_permission']}} <div class="menu_popup"> <a href="index.php?page=send&member=1&index=1&id={$Re plierInfo['id']}"> {$lang['send_a_message_to_the_mailing']} {$ReplierInfo['username']} </a> </div> {/if} {if {$mod_edit_member}} {if {$_CONF['member_permission']}} <div class="menu_popup"> <a target="_blank" href="{$admincpdir}?page=member&edit=1&main=1&id= {$ReplierInfo['id']}"> {$lang['edit_member_data']} {$ReplierInfo['username']} </a> </div> {/if} {/if} </div> <!-- Code switch Menu End --> <!-- action_find_addons_1 --> {if {$ReplierInfo['username']} !=''} <div class="writer_info" align="center"> {if {$GroupInfo['usertitle_change']} == 1} {if {$Usertitle} != ''} {$Usertitle} {else} {$ReplierInfo['user_title']} {/if} {else} {if !{$ReplierInfo['user_title']}} {$GroupInfo['user_title']} {else} {$ReplierInfo['user_title']} {/if} {/if} </div> {if {$RatingInfo['posts']} > {$ReplierInfo['posts']}} {if {$RatingInfo['rating']} != 'look/images/rating/rating_0.gif'} <div class="writer_info" align="center"> <img border="0" alt="rating" src="{$RatingInfo['rating']}"> </div> {/if} {/if} {/if} <div class="writer_info" align="center"> <div class="UserPhoto_large" align="center"> {if {$_CONF['info_row']['allow_avatar']} == '1'} {if {$ReplierInfo['avater_path']} != ''} <a href="{$ReplierInfo['avater_path']}" rel="facebox"> <img src="{$ReplierInfo['avater_path']}" border="0" title="{$lang['Picture']} {$ReplierInfo['username']} {$lang['Personal']}" alt="{$lang['Picture']}{$ReplierInfo['username']}{$lang['Personal']}" onload="ResizeAv(this)" /></a> {else} <a href="{$image_path}/ {$_CONF['info_row']['default_avatar']}" rel="facebox"> <img src="{$image_path}/ {$_CONF['info_row']['default_avatar']}" border="0" alt="{$lang['no_photo']}" title="{$lang['no_photo']}" onload="ResizeAv(this)" /> </a> {/if} {/if} </div> </div> <!-- action_find_addons_2 --> <?php $PowerBB->functions->get_hooks_template("writer_info_top")?> {if {$ReplierInfo['username']} !=''} <div class="writer_info" align="right"> {$lang['user_num']} : {$ReplierInfo['id']} </div> <div class="writer_info" align="right"> {$lang['Case']} : {$status} </div> <div class="writer_info" align="right"> {$lang['posts']} : {$ReplierInfo['posts']} </div> {if {$ReplierInfo['user_country']} != ''} <div class="writer_info" align="right"> {$lang['user_country']} : {$ReplierInfo['user_country']} </div> {/if} <div class="writer_info" align="right"> {$lang['user_gender']} : {if {$ReplierInfo['user_gender']} == m} <img title="{$lang['gender_m']}" src="{$image_path}/gender_male.gif" /> {else} <img title="{$lang['gender_f']}" src='{$image_path}/gender_female.gif'> {/if} </div> {if {$ReplierInfo['bday_year']} != ''} {if {$ReplierInfo['bday_year']} != '0'} <div class="writer_info" align="right"> {$lang['Birth_date']} : {$ReplierInfo['bday_day']}-{$ReplierInfo['bday_month']}-{$ReplierInfo['bday_year']} </div> {/if} {/if} {if {$ReplierInfo['visitor']} != ''} <div class="writer_info" align="right"> {$lang['visitor_num']} : {$ReplierInfo['visitor']} </div> {/if} {if {$ReplierInfo['invite_num']} != '0'} <div class="writer_info" align="right"> {$lang['Invites']} : {$ReplierInfo['invite_num']} </div> {/if} {if {$ReplierInfo['warnings']} > 0} <div class="writer_info" align="right"> {$lang['user_warnings']} : {$ReplierInfo['warnings']} </div> {/if} {if {$ReplierInfo['reputation']} != ''} <div class="writer_info" align="right"> {$lang['user_reputation']} : {$ReplierInfo['reputation']} </div> <!-- action_find_addons_3 --> {/if} {if !empty({$ReplierInfo['user_website']}) and {$ReplierInfo['user_website']} != 'http://'} <div class="writer_info" align="right"> {$lang['UserWebsite']} : <?php if (strstr($PowerBB->_CONF['template']['ReplierInfo']['user_website'],'http://')) { ?> <a target="_blank" href="{$ReplierInfo['user_website']}">{$lang['Visit_my_website']}</a> <?php }else{ ?> <a target="_blank" href="http://{$ReplierInfo['user_website']}">{$lang['Visit_my_website']}</a> {/if} </div> {/if} {if is_array({$while['extrafield']})==true } {Des::while}{extrafield} <?php if( $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ]!='' ){ ?> <div class="writer_info" align="right"> {$extrafield['name']} : <?php $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ] = $PowerBB->functions->CleanVariable($PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ],'html'); ?> <?php echo $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ] ?> </div> <?php }else{ ?> <?php } ?> {/Des::while} {/if} <br /> {if !{$admin_mod_toolbar}} <a title="{$lang['send_warn_to_mem']} {$ReplierInfo['username']}"href="index.php?page=warn&index=1&id={$ReplierIn fo['id']}"><img title="{$lang['send_warn_to_mem']} {$ReplierInfo['username']}" border="0" src="{$image_path}/warn.png"></a> {/if} {if {$_CONF['rows']['group_info']['admincp_allow']}} {if {$ReplierInfo['member_ip']} != ''} <img title="{$lang['user_IP']}: {$ReplierInfo['member_ip']}" border="0" src="{$image_path}/ip.gif"> {/if} {/if} {if {$_CONF['info_row']['allow_apsent']} == '1'} {if {$ReplierInfo['away']}} <br /> <fieldset> <legend><font class="smallfont">{$lang['user_Absent']}</font></legend> <font class="smallfont"> {$ReplierInfo['away_msg']} </font> </fieldset> {/if} {/if} <!-- action_find_addons_4 --> <?php $PowerBB->functions->get_hooks_template("writer_info_down")?> <br /> {if {$Awards_nm} > '0'} {template}awards{/template} {/if} <br /> {if !{$Info['reply_id']}} {if {$_CONF['info_row']['show_list_last_5_posts_member']} == 1} {template}last_subject_writer{/template} {/if} {/if} {/if}
ونقوم بتغير هذه القوالب بالاتي
review_reply
رمز Code:
{if !{$mod_toolbar}} <form action="index.php?page=managementreply&do_replys=1 &subject_id={$subject_id}" method="post"> <script type='text/javascript'> //<![CDATA[ function checkAll(form){ for (var i = 0; i < form.elements.length; i++){ eval("form.elements[" + i + "].checked = form.elements[0].checked"); } } //]]> </script> {/if} {Des::while}{AdsensesList} {if {$AdsensesList['between_replys']} == '1'} <div align="center"> {$AdsensesList['adsense']} <br /> </div> {/if} {/Des::while} <table align="center" border="0" cellspacing="1" class="border" width="98%"> <tr align="center"> <!-- {$lang['information_writer']} --> <td class="thead" width="100%"> <div class="r-right"> <img src="{$Info['icon']}" /> {$subject_title} </div> <div class="l-left"> {$Info['write_time']} <a title="{$lang['view_single_post']}" href="index.php?page=post&show=1&id={$Info['reply_id']}&num={$Info['reply_number']}"> <img border="0" src="{$image_path}/open.gif" alt="{$lang['view_single_post']}" /> </a> [<a title="{$lang['post']} ({$Info['reply_number']})" id="{$Info['reply_id']}" href="#{$Info['reply_id']}">{$Info['reply_number']}</a>] {if !{$mod_toolbar}} <input type="checkbox" name="check[]" value="{$Info['reply_id']}" /> {/if} </div> </td> </tr> <tr align="center"> <td class="tbar_writer_info" width="100%" valign="top"> <div onclick="switchBlock('{$Info['reply_id']}_menu');"> {template}egyreply{/template} </div> </td> <tr align="center"> <td class="tbar_review" width="100%" name="text" valign="top" align="right" onclick="switchBlock('{$Info['reply_id']}_menu');"> <div class="smallfont" style="border-bottom:1px solid #dddddd;width:95%;padding:5px;font-weight:900;margin:5px"> {$subject_title} </div> <?php $PowerBB->functions->get_hooks_template("show_reply_text")?> <div class="text">{$Info['text']}</div> {if {$Info['attach_reply']}} {template}attach_show{/template} {/if} {if {$_CONF['group_info']['view_action_edit']}} {if {$Info['action_by']} != ''} <br /> <br /> <div align="center"> <i> {$lang['action_by_reply']} {$Info['action_by']}<br /> {$lang['last_date']} {$Info['actiondate']} </i> </div> <br /> {/if} {/if} {if {$Info['reason_edit']} != ''} <div align="center"> <b>{$lang['reason_edit']} {$Info['reason_edit']}</b> </div> <br /> {/if} <?php $PowerBB->functions->get_hooks_template("show_reply_down_text")?> {if {$Info['user_sig']} != ''} {template}signature_show{/template} {/if} </td> </tr> <tr align="right"> <td class="row1" width="100%"> <table border="0" width="100%" cellpadding="0" style="border-collapse: collapse"> <tr> <td width="82%"> <div class="r-right"> {if {$ReplierInfo['username']} !=''} {if {$_CONF['member_row']['username']} != {$ReplierInfo['username']}} {if {$_CONF['info_row']['reputationallw']} == 1} <a href="javascript:switchMenuNone('{$Info['reply_number']}replyreputation')" title="{$lang['add_reputation_to']} {$ReplierInfo['username']}"> <img border="0" src="{$image_path}/reputation.gif" /> </a> {template}reply_reputation{/template} {/if} {/if} {/if} <a title="{$lang['reporting_for_post']}" href="index.php?page=report&index=1&subject_id={$I nfo['subject_id']}&reply_id={$Info['reply_id']}&count={$count_peg}"> <img alt="{$lang['reporting_for_post']}" border="0" cellspacing="1" src="{$image_path}/report.gif" /></a> </div> <div class="l-left"> <ul class="post_controls"> {if {$_CONF['member_permission']}} {if !{$mod_toolbar}} <li> <a title="{$lang['edit_reply']}" href="index.php?page=management&reply=1&section={$ Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&reply_number={$Info['reply_number']}&count={$count_peg}&operator=edit" class="Button_secondary" title="{$lang['edit_reply']}"> {$lang['edit_reply']}</a> </li> <li> <a href="index.php?page=managementreply&do_replys=1&s ection={$Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&operator=delete" class="Button_secondary" title="{$lang['delete_reply']}"> {$lang['delete_reply']}</a> </li> {else} {if {$SubjectInfo['close']} == '0'} {if {$timeout}} {if {$_CONF['member_row']['username']} == {$ReplierInfo['username']}} {if {$_CONF['group_info']['edit_own_reply']}} <li> <a title="{$lang['edit_reply']}" href="index.php?page=management&reply=1&section={$ Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&reply_number={$Info['reply_number']}&count={$count_peg}&operator=edit" class="Button_secondary" title="{$lang['edit_reply']}"> {$lang['edit_reply']}</a> </li> {/if} {if {$_CONF['group_info']['del_own_reply']}} <li> <a href="index.php?page=managementreply&do_replys=1&s ection={$Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&operator=delete" class="Button_secondary" title="{$lang['delete_reply']}"> {$lang['delete_reply']}</a> </li> {/if} {/if} {/if} {/if} {/if} {/if} <li> <a href="index.php?page=new_reply&index=1&id={$subjec t_id}{$password} &qu_Reply={$Info['reply_id']}&user={$ReplierInfo['username']}" class="Button_secondary" title="{$lang['qu_reply']}"> {$lang['quote']}</a> </li> <li> <?php $post_id = $PowerBB->_CONF['template']['Info']['reply_id']; ?> <a class="img-submit" id="mad_<?php echo "$post_id"; ?>" name="mad_<?php echo "$post_id"; ?>" onclick="multiquote_add(<?php echo "$post_id"; ?>); return false;" href="#">{$lang['multiquote']}</a> </li> </ul> </div> </td> </tr> </table> </td> </tr> </table> <br />
show_reply
رمز Code:
{if !{$mod_toolbar}} <form action="index.php?page=managementreply&do_replys=1 &subject_id={$subject_id}" method="post"> <script type='text/javascript'> //<![CDATA[ function checkAll(form){ for (var i = 0; i < form.elements.length; i++){ eval("form.elements[" + i + "].checked = form.elements[0].checked"); } } //]]> </script> {/if} {Des::while}{AdsensesList} {if {$AdsensesList['between_replys']} == '1'} <div align="center"> {$AdsensesList['adsense']} <br /> </div> {/if} {/Des::while} <table align="center" border="0" cellspacing="1" class="border" width="98%"> <tr align="center"> <!-- <td class="thead" width="18%"> {$lang['information_writer']} </td> --> <td class="thead" width="100%"> <div class="r-right"> <img src="{$Info['icon']}" /> {$subject_title} </div> <div class="l-left"> {$Info['write_time']} <a title="{$lang['view_single_post']}" href="index.php?page=post&show=1&id={$Info['reply_id']}&num={$Info['reply_number']}"> <img border="0" src="{$image_path}/open.gif" alt="{$lang['view_single_post']}" /> </a> [<a title="{$lang['post']} ({$Info['reply_number']})" id="{$Info['reply_id']}" href="#{$Info['reply_id']}">{$Info['reply_number']}</a>] {if !{$mod_toolbar}} <input type="checkbox" name="check[]" value="{$Info['reply_id']}" /> {/if} </div> </td> </tr> <tr align="center"> <td class="tbar_writer_info" width="100%" valign="top"> <div onclick="switchBlock('{$Info['reply_id']}_menu');"> {template}egyreply{/template} </div> </td> </tr> <tr> <td class="tbar_writer_info" width="100%" name="text" valign="top" align="right" onclick="switchBlock('{$Info['reply_id']}_menu');"> <div class="smallfont" style="border-bottom:1px solid #dddddd;width:95%;padding:5px;font-weight:900;margin:5px"> {$subject_title} </div> <?php $PowerBB->functions->get_hooks_template("show_reply_text")?> <div class="text">{$Info['text']}</div> {if {$Info['attach_reply']}} {template}attach_show{/template} {/if} {if {$_CONF['group_info']['view_action_edit']}} {if {$Info['action_by']} != ''} <br /> <br /> <div align="center"> <i> {$lang['action_by_reply']} {$Info['action_by']}<br /> {$lang['last_date']} {$Info['actiondate']} </i> </div> <br /> {/if} {/if} {if {$Info['reason_edit']} != ''} <div align="center"> <b>{$lang['reason_edit']} {$Info['reason_edit']}</b> </div> <br /> {/if} <?php $PowerBB->functions->get_hooks_template("show_reply_down_text")?> {if {$ReplierInfo['user_sig']} != ''} {template}signature_show{/template} {/if} </td> </tr> <tr align="right"> <td class="row1" width="100%" align="center"> <table border="0" width="100%" cellpadding="0" style="border-collapse: collapse"> <tr> <td width="100%"> <div class="r-right"> {if {$ReplierInfo['username']} !=''} {if {$_CONF['member_row']['username']} != {$ReplierInfo['username']}} {if {$_CONF['info_row']['reputationallw']} == 1} <a href="javascript:switchMenuNone('{$Info['reply_number']}replyreputation')" title="{$lang['add_reputation_to']} {$ReplierInfo['username']}"> <img border="0" src="{$image_path}/reputation.gif" /> </a> {template}reply_reputation{/template} {/if} {/if} {/if} <a title="{$lang['reporting_for_post']}" href="index.php?page=report&index=1&subject_id={$I nfo['subject_id']}&reply_id={$Info['reply_id']}&count={$count_peg}"> <img alt="{$lang['reporting_for_post']}" border="0" cellspacing="1" src="{$image_path}/report.gif" /></a> </div> <div class="l-left"> <ul class="post_controls"> {if {$_CONF['member_permission']}} {if !{$mod_toolbar}} <li> <a title="{$lang['edit_reply']}" href="index.php?page=management&reply=1&section={$ Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&reply_number={$Info['reply_number']}&count={$count_peg}&operator=edit" class="Button_secondary" title="{$lang['edit_reply']}"> {$lang['edit_reply']}</a> </li> <li> <a href="index.php?page=managementreply&do_replys=1&s ection={$Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&operator=delete" class="Button_secondary" title="{$lang['delete_reply']}"> {$lang['delete_reply']}</a> </li> {else} {if {$SubjectInfo['close']} == '0'} {if {$timeout}} {if {$_CONF['member_row']['username']} == {$ReplierInfo['username']}} {if {$_CONF['group_info']['edit_own_reply']}} <li> <a title="{$lang['edit_reply']}" href="index.php?page=management&reply=1&section={$ Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&reply_number={$Info['reply_number']}&count={$count_peg}&operator=edit" class="Button_secondary" title="{$lang['edit_reply']}"> {$lang['edit_reply']}</a> </li> {/if} {if {$_CONF['group_info']['del_own_reply']}} <li> <a href="index.php?page=managementreply&do_replys=1&s ection={$Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&operator=delete" class="Button_secondary" title="{$lang['delete_reply']}"> {$lang['delete_reply']}</a> </li> {/if} {/if} {/if} {/if} {/if} {/if} <li> <a href="index.php?page=new_reply&index=1&id={$subjec t_id}{$password} &qu_Reply={$Info['reply_id']}&user={$ReplierInfo['username']}" class="Button_secondary" title="{$lang['qu_reply']}"> {$lang['quote']}</a> </li> <li> <?php $post_id = $PowerBB->_CONF['template']['Info']['reply_id']; ?> <a class="img-submit" id="mad_<?php echo "$post_id"; ?>" name="mad_<?php echo "$post_id"; ?>" onclick="multiquote_add(<?php echo "$post_id"; ?>); return false;" href="#">{$lang['multiquote']}</a> </li> </ul> </div> </td> </tr> </table> </td> </tr> </table> <br />
بالتوفيق اي مشكله انا في الخدمهhttp://www.dzbatna.com/look/images/smiles/biggrin2.gif
:. كاتب الموضوع MiDo Elmasry (http://www.egymafia.com/forums/name-MiDo%20Elmasry) ، المصدر: كيفيه عمل المواضيع بشكل افقي والردود بشكل عمودي كديزاد باتنة لمنتديات pbboard (http://www.egymafia.com/forums/t5806) .:
ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©
بسم الله الرحمن الرحيم
السلام عليكم ورحمه الله وبركاته
مثال ع تطبيق الدرس مفصل
المواضيع
http://up.egymafia.com/8/egymafia.com1363902134861.png
الردود
http://up.egymafia.com/8/egymafia.com1363902261891.png
طريقه التركيب install
http://up.egymafia.com/8/egymafia.com1363902568421.png
ثم قم بتغير هذه القوالب بالاتي
show_subject
رمز Code:
<!-- action_find_addons_1 --> {template}show_subject_information{/template} <table align="center" border="0" cellspacing="1" class="border" width="98%" onclick="switchBlock('Options_mods')"> <td class="thead" width="100%" align="right"> <div class="r-right"> <img src="{$Info['icon']}" /> <span dir="{$_CONF['info_row']['content_dir']}"> {$Info['prefix_subject']} </span> <a href="index.php?page=topic&show=1&id={$subject_id}"> {$subject_title}</a> </div> <div class="l-left"> {$Info['native_write_time']} </div> </td> </tr> <tr align="center"> <td class="tbar_writer_info" width="100%" valign="top"> {if {$Info['username']}} <!-- user info --> <div onclick="switchBlock('{$Info['id']}_menu');"> {template}writer_info{/template} </div> <!-- / user info --> {else} {template}guest_info{/template} {/if} </td> </tr> <tr align="center"> <td {if {$Info['special']} == '1'} id="layerspecial" class="td_special" width="100%" valign="top" align="right" {else} class="{$class_subject}" width="100%" valign="top" align="right" {/if} onclick="switchBlock('subject_rating');"> <div style="border-bottom:1px solid #dddddd;width:95%;padding:5px;font-weight:900;margin:5px"> {$subject_title} </div> {template}add_this{/template} {if !{$STOP_ADSENSES_TEMPLATE}} {template}adsense_topic{/template} {/if} <?php $PowerBB->functions->get_hooks_template("show_subject_text")?> <div class="text">{$Info['text']}</div> {if {$Info['close_reason']} != '' and {$Info['close']} } <br /> <br /> <br /> <br /> <i><font color="#FF0000"> {$lang['reason_for_closure']} {$Info['close_reason']}</font></i> {/if} {if {$Info['attach_subject']}} {template}attach_show{/template} {/if} {if {$_CONF['group_info']['view_action_edit']}} {if {$Info['action_by']} != ''} <br /> <br /> <div align="center"> <i> {$lang['action_by_subject']} {$Info['action_by']}<br /> {$lang['last_date']} {$Info['actiondate']} </i> </div> <br /> {/if} {/if} {if {$Info['reason_edit']} != ''} <div align="center"> <b>{$lang['reason_edit']} {$Info['reason_edit']}</b> </div> <br /> {/if} <?php $PowerBB->functions->get_hooks_template("show_subject_down_text")?> {if {$Info['user_sig']} != ''} {template}signature_show{/template} {/if} </td> </tr> <tr align="center"> <td colspan="2" class="row1" width="100%"> <table border="0" width="100%" cellpadding="0" style="border-collapse: collapse"> <tr> <td> <div class="r-right"> {if {$ReplierInfo['username']}} {if {$_CONF['member_row']['username']} != {$ReplierInfo['username']}} {if {$_CONF['info_row']['reputationallw']} == 1} <a href="javascript:switchMenuNone('{$subject_id}repu tation')" title="{$lang['add_reputation_to']} {$ReplierInfo['username']}"> <img border="0" src="{$image_path}/reputation.gif" /> </a> {template}subject_reputation{/template} {/if} {/if} {/if} <a title="{$lang['reporting_for_post']}" href="index.php?page=report&index=1&subject_id={$subject_id}"> <img alt="{$lang['reporting_for_post']}" border="0" alt="" src="{$image_path}/report.gif" /></a> </div> <div class="r-right"> <!-- like facebook --> {if {$_CONF['info_row']['active_like_facebook']} == '1'} <div class="addthis_toolbox addthis_default_style"> <a style="border-bottom:none" class="addthis_button_facebook_like" fb:like:layout="button_count"></a> <a style="border-bottom:none" class="addthis_button_tweet"></a> </div> <script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script> <script type="text/javascript" src="includes/js/addthis_widget.js#username={$_CONF['info_row']['use_list']}"></script> {/if} <!-- / like facebook --> <!-- action_find_addons_2 --> </div> <div class="l-left"> <!-- action_find_addons_3 --> <ul class="post_controls"> {if {$_CONF['member_permission']}} {if !{$mod_toolbar}} <li> <a title="{$lang['edit_subject']}" href="index.php?page=management&subject=1§ion={$Info['section']}&subject_id={$subject_id}&operator=edit" title="{$lang['edit_subject']}" class="Button_secondary"> {$lang['edit_subject']}</a> </li> <li> <a href="index.php?page=management&subject=1§ion={$Info['section']}&subject_id={$subject_id}&operator=delete" title="{$lang['delete_subject']}" class="Button_secondary"> {$lang['delete_subject']}</a> </li> {else} {if {$Info['close']} == '0'} {if {$timeout}} {if {$_CONF['member_row']['username']} == {$Info['username']}} {if {$_CONF['group_info']['edit_own_subject']}} <li> <a title="{$lang['edit_subject']}" href="index.php?page=management&subject=1§ion={$Info['section']}&subject_id={$subject_id}&operator=edit" class="Button_secondary"> {$lang['edit_subject']}</a> </li> {/if} {if {$_CONF['group_info']['del_own_subject']}} <li> <a href="index.php?page=management&subject=1§ion={$Info['section']}&subject_id={$subject_id}&operator=delete" title="{$lang['delete_subject']}" class="Button_secondary"> {$lang['delete_subject']}</a> </li> {/if} {/if} {/if} {/if} {/if} {/if} <li> <a href="index.php?page=new_reply&index=1&id={$subject_id}{$password} &qu_Subject={$subject_id}& user={$Info['username']}" title="{$lang['qu_subject']}" class="Button_secondary"> {$lang['quote']}</a> </li> <li> <?php $post_id = $PowerBB->_CONF['template']['subject_id']; ?> <a class="img-submit" id="mad_<?php echo "$post_id"; ?>" name="mad_<?php echo "$post_id"; ?>" onclick="multiquote_add(<?php echo "$post_id"; ?>); return false;" href="#">{$lang['multiquote']}</a> </li> <!-- action_find_addons_4 --> </ul> </div> </td> </tr> </table> </td> </tr> </table> {Des::while}{AdsensesList} {if {$AdsensesList['down_topic']} == '1'} <div align="center"> {$AdsensesList['adsense']} <br /> </div> {/if} {/Des::while} <!-- action_find_addons_5 --> <br />
show_post
رمز Code:
{template}address_bar_part1{/template} <a href="index.php?page=forum&show=1&id={$sec_main_id }"> {$sec_main_title} </a> {$_CONF['info_row']['adress_bar_separate']} <a href="index.php?page=forum&show=1&id={$section_info['id']}{$password}"> {$section_info['title']} </a> {$_CONF['info_row']['adress_bar_separate']} <span dir="{$_CONF['info_row']['content_dir']}"> {$lang['view_single_post']}: </span> <a title="{$lang['post']} ({$Info['reply_number']})" id="{$Info['reply_id']}" href="#{$Info['reply_id']}"> {$subject_title}</a> {template}address_bar_part2{/template} <br /> <table align="center" border="0" cellspacing="1" class="border" width="98%"> <tr align="center"> <td class="tcat"> <a target="_blank" href="index.php?page=topic&show=1&id={$SubjectInfo['id']}&count={$Info['count']}#{$Info['reply_id']}">{$lang['show_post_normal']}</a> </td> </tr> <tr align="center"> <!-- <td class="tcat" width="18%"> {$lang['information_writer']} </td> --> <td class="tcat" width="100%"> <div class="r-right"> <img src="{$Info['icon']}" /> {$subject_title} </div> <div class="l-left"> {$Info['write_time']} [<a title="{$lang['post']} ({$Info['reply_number']})" id="{$Info['reply_id']}" href="#{$Info['reply_id']}">#{$Info['reply_number']}</a>] </div> </td> </tr> <tr align="center"> <td class="tbar_writer_info" width="100%" valign="top"> <div onclick="switchBlock('{$Info['reply_id']}_menu');"> {template}writer_info{/template} </div> </td> </tr> <tr align="center"> <td class="{$class_reply}" width="82%" name="text" valign="top" align="right" onclick="switchBlock('{$Info['reply_id']}_menu');"> <div class="text">{$Info['text']}</div> {if {$Info['attach_reply']}} {template}attach_show{/template} {/if} {if {$_CONF['group_info']['view_action_edit']}} {if {$Info['action_by']} != ''} <br /> <br /> <div align="center"> <i> {$lang['action_by_reply']} {$Info['action_by']}<br /> {$lang['last_date']} {$Info['actiondate']} </i> </div> <br /> {/if} {/if} {if {$Info['reason_edit']} != ''} <div align="center"> <b>{$lang['reason_edit']} {$Info['reason_edit']}</b> </div> <br /> {/if} </td> </tr> <tr align="right"> <td class="row1" width="100%"> <table border="0" width="100%" cellpadding="0" style="border-collapse: collapse"> <tr> <td width="82%"> <div class="r-right"> {if {$ReplierInfo['username']} !=''} {if {$_CONF['member_row']['username']} != {$ReplierInfo['username']}} {if {$_CONF['info_row']['reputationallw']} == 1} <a href="javascript:switchMenuNone('{$Info['reply_number']}replyreputation')" title="{$lang['add_reputation_to']} {$ReplierInfo['username']}"> <img border="0" src="{$image_path}/reputation.gif" /> </a> {template}reply_reputation{/template} {/if} {/if} {/if} <a title="{$lang['reporting_for_post']}" href="index.php?page=report&index=1&subject_id={$I nfo['subject_id']}&reply_id={$Info['reply_id']}&count={$count_peg}"> <img alt="{$lang['reporting_for_post']}" border="0" cellspacing="1" src="{$image_path}/report.gif" /></a> </div> <div class="l-left"> <ul class="post_controls"> <li> <a href="index.php?page=new_reply&index=1&id={$subjec t_id}{$password} &qu_Reply={$Info['reply_id']}&user={$Info['username']}" class="Button_secondary" title="{$lang['qu_reply']}"> {$lang['quote']}</a> </li> </div> </tr> </table> </td> </tr> </table>
writer_info
رمز Code:
<table width="100%" border="0" cellpadding="3px"> <tr> <td width="150px" valign="top" align="center"> <div class="UserPhoto_large" align="center" style="width:120px;height:120px;padding:5px;margin :0 auto;border:1px solid #dddddd"> {if {$_CONF['info_row']['allow_avatar']} == '1'} {if {$ReplierInfo['avater_path']} != ''} <a href="{$ReplierInfo['avater_path']}" rel="facebox"> <img src="{$ReplierInfo['avater_path']}" border="0" title="{$lang['Picture']} {$ReplierInfo['username']} {$lang['Personal']}" alt="{$lang['Picture']}{$ReplierInfo['username']}{$lang['Personal']}" width="120px" height="120px" /></a> {else} <a href="{$image_path}/ {$_CONF['info_row']['default_avatar']}" rel="facebox"> <img src="{$image_path}/ {$_CONF['info_row']['default_avatar']}" border="0" alt="{$lang['no_photo']}" title="{$lang['no_photo']}" /> </a> {/if} {/if} </div> </td> <td valign="top" width="200px" align="center"> <!-- Code switch Menu start --> <ul class="writer_controls"> <li> {if {$ReplierInfo['username']} !=''} <a href="javascript:switchMenuNone('{$Info['id']}_menu')" class="Button_secondary"> <?php echo $PowerBB->functions->GetwriterGroupStyle($PowerBB->_CONF['template']['ReplierInfo']['username'],$PowerBB->_CONF['template']['ReplierInfo']['usergroup']);?> <img border="0" alt="" src="{$image_path}/menu_open.gif" /></a> {else} <b class="Button_secondary" >{$lang['Guest_']}</b> {/if} </li> </ul> <div style="display:none;" class="drop_menu" id="{$Info['id']}_menu"> <div class="thead"> {if {$ReplierInfo['username']} !=''} <a href="javascript:switchMenuNone('{$Info['id']}_menu')"> <a href="index.php?page=profile&show=1&id={$ReplierIn fo['id']}"> {$ReplierInfo['display_username']}</a> </a> {else} <b>{$lang['Guest_']}</b> {/if} </div> <div class="menu_popup"> <a href="index.php?page=profile&show=1&id={$ReplierIn fo['id']}"> {$lang['view_profile']} </a> </div> <div class="menu_popup"> <a href="index.php?page=search&option=3&username={$Re plierInfo['username']}&starteronly=0&section=all&exactname=1&sort_order =DESC"> {$lang['search_for_all_posts']} {$ReplierInfo['username']}</a> </div> <div class="menu_popup"> <a href="index.php?page=search&option=4&username={$Re plierInfo['username']}&starteronly=0&section=all&exactname=1&sort_order =DESC"> {$lang['search_for_all_replys']} {$ReplierInfo['username']}</a> </div> {if {$_CONF['member_permission']}} <div class="menu_popup"> <a href="index.php?page=pm_send&send=1&index=1&userna me={$ReplierInfo['username']}"> {$lang['send_a_private_message_to']} {$ReplierInfo['username']} </a> </div> {/if} {if {$_CONF['member_permission']}} <div class="menu_popup"> <a href="index.php?page=send&member=1&index=1&id={$Re plierInfo['id']}"> {$lang['send_a_message_to_the_mailing']} {$ReplierInfo['username']} </a> </div> {/if} {if {$mod_edit_member}} {if {$_CONF['member_permission']}} <div class="menu_popup"> <a target="_blank" href="{$admincpdir}?page=member&edit=1&main=1&id= {$ReplierInfo['id']}"> {$lang['edit_member_data']} {$ReplierInfo['username']} </a> </div> {/if} {/if} <div class="menu_popup"> {if !{$admin_mod_toolbar}} <a title="{$lang['send_warn_to_mem']} {$ReplierInfo['username']}"href="index.php?page=warn&index=1&id={$ReplierIn fo['id']}"><img title="{$lang['send_warn_to_mem']} {$ReplierInfo['username']}" border="0" src="{$image_path}/warn.png"></a> {/if} {if {$_CONF['rows']['group_info']['admincp_allow']}} {if {$ReplierInfo['member_ip']} != ''} <img title="{$lang['user_IP']}: {$ReplierInfo['member_ip']}" border="0" src="{$image_path}/ip.gif"> {/if} {/if} </div> </div> <!-- Code switch Menu End --> <!-- action_find_addons_1 --> {if {$ReplierInfo['username']} !=''} <div align="center"> <b> {if {$GroupInfo['usertitle_change']} == 1} {if {$Usertitle} != ''} {$Usertitle} {else} {$ReplierInfo['user_title']} {/if} {else} {if !{$ReplierInfo['user_title']}} {$GroupInfo['user_title']} {else} {$ReplierInfo['user_title']} {/if} {/if} </b> </div> {if {$RatingInfo['posts']} > {$ReplierInfo['posts']}} {if {$RatingInfo['rating']} != 'look/images/rating/rating_0.gif'} <div align="center" style="margin-top:10px"> <img border="0" alt="rating" src="{$RatingInfo['rating']}"> </div> {/if} {/if} {/if} <div align="center" style="margin-top:10px"> <!-- {$lang['Case']} : --> {$status} </div> {if {$_CONF['info_row']['allow_apsent']} == '1'} {if {$ReplierInfo['away']}} <br /> <fieldset> <legend><font class="smallfont">{$lang['user_Absent']}</font></legend> <font class="smallfont"> {$ReplierInfo['away_msg']} </font> </fieldset> {/if} {/if} </td> <td> </td> <td align="center" valign="top" width="180px"> {if {$Awards_nm} > '0'} <div style="width:180px;height:150px;overflow-x: hidden; overflow-y: scroll; "> {template}awards{/template} </div> {/if} </td> <td align="center" valign="top" width="200px"> {if !{$Info['reply_id']}} {if {$_CONF['info_row']['show_list_last_5_posts_member']} == 1} {template}last_subject_writer{/template} {/if} {/if} </td> <td valign="top" width="150px"> <!-- action_find_addons_2 --> <?php $PowerBB->functions->get_hooks_template("writer_info_top")?> {if {$ReplierInfo['username']} !=''} <div class="writer_info" align="right"> {$lang['user_num']} : {$ReplierInfo['id']} </div> <div class="writer_info" align="right"> {$lang['posts']} : {$ReplierInfo['posts']} </div> {if {$ReplierInfo['user_country']} != ''} <div class="writer_info" align="right"> {$lang['user_country']} : {$ReplierInfo['user_country']} </div> {/if} <div class="writer_info" align="right"> {$lang['user_gender']} : {if {$ReplierInfo['user_gender']} == m} <img title="{$lang['gender_m']}" src="{$image_path}/gender_male.gif" /> {else} <img title="{$lang['gender_f']}" src='{$image_path}/gender_female.gif'> {/if} </div> {if {$ReplierInfo['bday_year']} != ''} {if {$ReplierInfo['bday_year']} != '0'} <div class="writer_info" align="right"> {$lang['Birth_date']} : {$ReplierInfo['bday_day']}-{$ReplierInfo['bday_month']}-{$ReplierInfo['bday_year']} </div> {/if} {/if} {if {$ReplierInfo['visitor']} != ''} <div class="writer_info" align="right"> {$lang['visitor_num']} : {$ReplierInfo['visitor']} </div> {/if} {if {$ReplierInfo['invite_num']} != '0'} <div class="writer_info" align="right"> {$lang['Invites']} : {$ReplierInfo['invite_num']} </div> {/if} {if {$ReplierInfo['warnings']} > 0} <div class="writer_info" align="right"> {$lang['user_warnings']} : {$ReplierInfo['warnings']} </div> {/if} {if {$ReplierInfo['reputation']} != ''} <div class="writer_info" align="right"> {$lang['user_reputation']} : {$ReplierInfo['reputation']} </div> <!-- action_find_addons_3 --> {/if} {if !empty({$ReplierInfo['user_website']}) and {$ReplierInfo['user_website']} != 'http://'} <div class="writer_info" align="right"> {$lang['UserWebsite']} : <?php if (strstr($PowerBB->_CONF['template']['ReplierInfo']['user_website'],'http://')) { ?> <a target="_blank" href="{$ReplierInfo['user_website']}">{$lang['Visit_my_website']}</a> <?php }else{ ?> <a target="_blank" href="http://{$ReplierInfo['user_website']}">{$lang['Visit_my_website']}</a> {/if} </div> {/if} {if is_array({$while['extrafield']})==true } {Des::while}{extrafield} <?php if( $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ]!='' ){ ?> <div class="writer_info" align="right"> {$extrafield['name']} : <?php $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ] = $PowerBB->functions->CleanVariable($PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ],'html'); ?> <?php echo $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ] ?> </div> <?php }else{ ?> <?php } ?> {/Des::while} {/if} <!-- action_find_addons_4 --> <?php $PowerBB->functions->get_hooks_template("writer_info_down")?> </td> {/if} </tr> </table>
ثم نقوم بانشاء قالب template جديد كما موضح باسم egyreply ونضع فيه هذا الكود code
رمز Code:
<!-- Code switch Menu start --> <ul class="writer_controls"> <li> {if {$ReplierInfo['username']} !=''} <a href="javascript:switchMenuNone('{$Info['id']}_menu')" class="Button_secondary"> <?php echo $PowerBB->functions->GetwriterGroupStyle($PowerBB->_CONF['template']['ReplierInfo']['username'],$PowerBB->_CONF['template']['ReplierInfo']['usergroup']);?> <img border="0" alt="" src="{$image_path}/menu_open.gif" /></a> {else} <b class="Button_secondary" >{$lang['Guest_']}</b> {/if} </li> </ul> <div style="display:none;" class="drop_menu" id="{$Info['id']}_menu"> <div class="thead"> {if {$ReplierInfo['username']} !=''} <a href="javascript:switchMenuNone('{$Info['id']}_menu')"> <a href="index.php?page=profile&show=1&id={$ReplierIn fo['id']}"> {$ReplierInfo['display_username']}</a> </a> {else} <b>{$lang['Guest_']}</b> {/if} </div> <div class="menu_popup"> <a href="index.php?page=profile&show=1&id={$ReplierIn fo['id']}"> {$lang['view_profile']} </a> </div> <div class="menu_popup"> <a href="index.php?page=search&option=3&username={$Re plierInfo['username']}&starteronly=0&section=all&exactname=1&sort_order =DESC"> {$lang['search_for_all_posts']} {$ReplierInfo['username']}</a> </div> <div class="menu_popup"> <a href="index.php?page=search&option=4&username={$Re plierInfo['username']}&starteronly=0&section=all&exactname=1&sort_order =DESC"> {$lang['search_for_all_replys']} {$ReplierInfo['username']}</a> </div> {if {$_CONF['member_permission']}} <div class="menu_popup"> <a href="index.php?page=pm_send&send=1&index=1&userna me={$ReplierInfo['username']}"> {$lang['send_a_private_message_to']} {$ReplierInfo['username']} </a> </div> {/if} {if {$_CONF['member_permission']}} <div class="menu_popup"> <a href="index.php?page=send&member=1&index=1&id={$Re plierInfo['id']}"> {$lang['send_a_message_to_the_mailing']} {$ReplierInfo['username']} </a> </div> {/if} {if {$mod_edit_member}} {if {$_CONF['member_permission']}} <div class="menu_popup"> <a target="_blank" href="{$admincpdir}?page=member&edit=1&main=1&id= {$ReplierInfo['id']}"> {$lang['edit_member_data']} {$ReplierInfo['username']} </a> </div> {/if} {/if} </div> <!-- Code switch Menu End --> <!-- action_find_addons_1 --> {if {$ReplierInfo['username']} !=''} <div class="writer_info" align="center"> {if {$GroupInfo['usertitle_change']} == 1} {if {$Usertitle} != ''} {$Usertitle} {else} {$ReplierInfo['user_title']} {/if} {else} {if !{$ReplierInfo['user_title']}} {$GroupInfo['user_title']} {else} {$ReplierInfo['user_title']} {/if} {/if} </div> {if {$RatingInfo['posts']} > {$ReplierInfo['posts']}} {if {$RatingInfo['rating']} != 'look/images/rating/rating_0.gif'} <div class="writer_info" align="center"> <img border="0" alt="rating" src="{$RatingInfo['rating']}"> </div> {/if} {/if} {/if} <div class="writer_info" align="center"> <div class="UserPhoto_large" align="center"> {if {$_CONF['info_row']['allow_avatar']} == '1'} {if {$ReplierInfo['avater_path']} != ''} <a href="{$ReplierInfo['avater_path']}" rel="facebox"> <img src="{$ReplierInfo['avater_path']}" border="0" title="{$lang['Picture']} {$ReplierInfo['username']} {$lang['Personal']}" alt="{$lang['Picture']}{$ReplierInfo['username']}{$lang['Personal']}" onload="ResizeAv(this)" /></a> {else} <a href="{$image_path}/ {$_CONF['info_row']['default_avatar']}" rel="facebox"> <img src="{$image_path}/ {$_CONF['info_row']['default_avatar']}" border="0" alt="{$lang['no_photo']}" title="{$lang['no_photo']}" onload="ResizeAv(this)" /> </a> {/if} {/if} </div> </div> <!-- action_find_addons_2 --> <?php $PowerBB->functions->get_hooks_template("writer_info_top")?> {if {$ReplierInfo['username']} !=''} <div class="writer_info" align="right"> {$lang['user_num']} : {$ReplierInfo['id']} </div> <div class="writer_info" align="right"> {$lang['Case']} : {$status} </div> <div class="writer_info" align="right"> {$lang['posts']} : {$ReplierInfo['posts']} </div> {if {$ReplierInfo['user_country']} != ''} <div class="writer_info" align="right"> {$lang['user_country']} : {$ReplierInfo['user_country']} </div> {/if} <div class="writer_info" align="right"> {$lang['user_gender']} : {if {$ReplierInfo['user_gender']} == m} <img title="{$lang['gender_m']}" src="{$image_path}/gender_male.gif" /> {else} <img title="{$lang['gender_f']}" src='{$image_path}/gender_female.gif'> {/if} </div> {if {$ReplierInfo['bday_year']} != ''} {if {$ReplierInfo['bday_year']} != '0'} <div class="writer_info" align="right"> {$lang['Birth_date']} : {$ReplierInfo['bday_day']}-{$ReplierInfo['bday_month']}-{$ReplierInfo['bday_year']} </div> {/if} {/if} {if {$ReplierInfo['visitor']} != ''} <div class="writer_info" align="right"> {$lang['visitor_num']} : {$ReplierInfo['visitor']} </div> {/if} {if {$ReplierInfo['invite_num']} != '0'} <div class="writer_info" align="right"> {$lang['Invites']} : {$ReplierInfo['invite_num']} </div> {/if} {if {$ReplierInfo['warnings']} > 0} <div class="writer_info" align="right"> {$lang['user_warnings']} : {$ReplierInfo['warnings']} </div> {/if} {if {$ReplierInfo['reputation']} != ''} <div class="writer_info" align="right"> {$lang['user_reputation']} : {$ReplierInfo['reputation']} </div> <!-- action_find_addons_3 --> {/if} {if !empty({$ReplierInfo['user_website']}) and {$ReplierInfo['user_website']} != 'http://'} <div class="writer_info" align="right"> {$lang['UserWebsite']} : <?php if (strstr($PowerBB->_CONF['template']['ReplierInfo']['user_website'],'http://')) { ?> <a target="_blank" href="{$ReplierInfo['user_website']}">{$lang['Visit_my_website']}</a> <?php }else{ ?> <a target="_blank" href="http://{$ReplierInfo['user_website']}">{$lang['Visit_my_website']}</a> {/if} </div> {/if} {if is_array({$while['extrafield']})==true } {Des::while}{extrafield} <?php if( $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ]!='' ){ ?> <div class="writer_info" align="right"> {$extrafield['name']} : <?php $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ] = $PowerBB->functions->CleanVariable($PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ],'html'); ?> <?php echo $PowerBB->_CONF['template']['ReplierInfo'][ $PowerBB->_CONF['template']['while']['extrafield'][$this->x_loop]['name_tag'] ] ?> </div> <?php }else{ ?> <?php } ?> {/Des::while} {/if} <br /> {if !{$admin_mod_toolbar}} <a title="{$lang['send_warn_to_mem']} {$ReplierInfo['username']}"href="index.php?page=warn&index=1&id={$ReplierIn fo['id']}"><img title="{$lang['send_warn_to_mem']} {$ReplierInfo['username']}" border="0" src="{$image_path}/warn.png"></a> {/if} {if {$_CONF['rows']['group_info']['admincp_allow']}} {if {$ReplierInfo['member_ip']} != ''} <img title="{$lang['user_IP']}: {$ReplierInfo['member_ip']}" border="0" src="{$image_path}/ip.gif"> {/if} {/if} {if {$_CONF['info_row']['allow_apsent']} == '1'} {if {$ReplierInfo['away']}} <br /> <fieldset> <legend><font class="smallfont">{$lang['user_Absent']}</font></legend> <font class="smallfont"> {$ReplierInfo['away_msg']} </font> </fieldset> {/if} {/if} <!-- action_find_addons_4 --> <?php $PowerBB->functions->get_hooks_template("writer_info_down")?> <br /> {if {$Awards_nm} > '0'} {template}awards{/template} {/if} <br /> {if !{$Info['reply_id']}} {if {$_CONF['info_row']['show_list_last_5_posts_member']} == 1} {template}last_subject_writer{/template} {/if} {/if} {/if}
ونقوم بتغير هذه القوالب بالاتي
review_reply
رمز Code:
{if !{$mod_toolbar}} <form action="index.php?page=managementreply&do_replys=1 &subject_id={$subject_id}" method="post"> <script type='text/javascript'> //<![CDATA[ function checkAll(form){ for (var i = 0; i < form.elements.length; i++){ eval("form.elements[" + i + "].checked = form.elements[0].checked"); } } //]]> </script> {/if} {Des::while}{AdsensesList} {if {$AdsensesList['between_replys']} == '1'} <div align="center"> {$AdsensesList['adsense']} <br /> </div> {/if} {/Des::while} <table align="center" border="0" cellspacing="1" class="border" width="98%"> <tr align="center"> <!-- {$lang['information_writer']} --> <td class="thead" width="100%"> <div class="r-right"> <img src="{$Info['icon']}" /> {$subject_title} </div> <div class="l-left"> {$Info['write_time']} <a title="{$lang['view_single_post']}" href="index.php?page=post&show=1&id={$Info['reply_id']}&num={$Info['reply_number']}"> <img border="0" src="{$image_path}/open.gif" alt="{$lang['view_single_post']}" /> </a> [<a title="{$lang['post']} ({$Info['reply_number']})" id="{$Info['reply_id']}" href="#{$Info['reply_id']}">{$Info['reply_number']}</a>] {if !{$mod_toolbar}} <input type="checkbox" name="check[]" value="{$Info['reply_id']}" /> {/if} </div> </td> </tr> <tr align="center"> <td class="tbar_writer_info" width="100%" valign="top"> <div onclick="switchBlock('{$Info['reply_id']}_menu');"> {template}egyreply{/template} </div> </td> <tr align="center"> <td class="tbar_review" width="100%" name="text" valign="top" align="right" onclick="switchBlock('{$Info['reply_id']}_menu');"> <div class="smallfont" style="border-bottom:1px solid #dddddd;width:95%;padding:5px;font-weight:900;margin:5px"> {$subject_title} </div> <?php $PowerBB->functions->get_hooks_template("show_reply_text")?> <div class="text">{$Info['text']}</div> {if {$Info['attach_reply']}} {template}attach_show{/template} {/if} {if {$_CONF['group_info']['view_action_edit']}} {if {$Info['action_by']} != ''} <br /> <br /> <div align="center"> <i> {$lang['action_by_reply']} {$Info['action_by']}<br /> {$lang['last_date']} {$Info['actiondate']} </i> </div> <br /> {/if} {/if} {if {$Info['reason_edit']} != ''} <div align="center"> <b>{$lang['reason_edit']} {$Info['reason_edit']}</b> </div> <br /> {/if} <?php $PowerBB->functions->get_hooks_template("show_reply_down_text")?> {if {$Info['user_sig']} != ''} {template}signature_show{/template} {/if} </td> </tr> <tr align="right"> <td class="row1" width="100%"> <table border="0" width="100%" cellpadding="0" style="border-collapse: collapse"> <tr> <td width="82%"> <div class="r-right"> {if {$ReplierInfo['username']} !=''} {if {$_CONF['member_row']['username']} != {$ReplierInfo['username']}} {if {$_CONF['info_row']['reputationallw']} == 1} <a href="javascript:switchMenuNone('{$Info['reply_number']}replyreputation')" title="{$lang['add_reputation_to']} {$ReplierInfo['username']}"> <img border="0" src="{$image_path}/reputation.gif" /> </a> {template}reply_reputation{/template} {/if} {/if} {/if} <a title="{$lang['reporting_for_post']}" href="index.php?page=report&index=1&subject_id={$I nfo['subject_id']}&reply_id={$Info['reply_id']}&count={$count_peg}"> <img alt="{$lang['reporting_for_post']}" border="0" cellspacing="1" src="{$image_path}/report.gif" /></a> </div> <div class="l-left"> <ul class="post_controls"> {if {$_CONF['member_permission']}} {if !{$mod_toolbar}} <li> <a title="{$lang['edit_reply']}" href="index.php?page=management&reply=1&section={$ Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&reply_number={$Info['reply_number']}&count={$count_peg}&operator=edit" class="Button_secondary" title="{$lang['edit_reply']}"> {$lang['edit_reply']}</a> </li> <li> <a href="index.php?page=managementreply&do_replys=1&s ection={$Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&operator=delete" class="Button_secondary" title="{$lang['delete_reply']}"> {$lang['delete_reply']}</a> </li> {else} {if {$SubjectInfo['close']} == '0'} {if {$timeout}} {if {$_CONF['member_row']['username']} == {$ReplierInfo['username']}} {if {$_CONF['group_info']['edit_own_reply']}} <li> <a title="{$lang['edit_reply']}" href="index.php?page=management&reply=1&section={$ Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&reply_number={$Info['reply_number']}&count={$count_peg}&operator=edit" class="Button_secondary" title="{$lang['edit_reply']}"> {$lang['edit_reply']}</a> </li> {/if} {if {$_CONF['group_info']['del_own_reply']}} <li> <a href="index.php?page=managementreply&do_replys=1&s ection={$Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&operator=delete" class="Button_secondary" title="{$lang['delete_reply']}"> {$lang['delete_reply']}</a> </li> {/if} {/if} {/if} {/if} {/if} {/if} <li> <a href="index.php?page=new_reply&index=1&id={$subjec t_id}{$password} &qu_Reply={$Info['reply_id']}&user={$ReplierInfo['username']}" class="Button_secondary" title="{$lang['qu_reply']}"> {$lang['quote']}</a> </li> <li> <?php $post_id = $PowerBB->_CONF['template']['Info']['reply_id']; ?> <a class="img-submit" id="mad_<?php echo "$post_id"; ?>" name="mad_<?php echo "$post_id"; ?>" onclick="multiquote_add(<?php echo "$post_id"; ?>); return false;" href="#">{$lang['multiquote']}</a> </li> </ul> </div> </td> </tr> </table> </td> </tr> </table> <br />
show_reply
رمز Code:
{if !{$mod_toolbar}} <form action="index.php?page=managementreply&do_replys=1 &subject_id={$subject_id}" method="post"> <script type='text/javascript'> //<![CDATA[ function checkAll(form){ for (var i = 0; i < form.elements.length; i++){ eval("form.elements[" + i + "].checked = form.elements[0].checked"); } } //]]> </script> {/if} {Des::while}{AdsensesList} {if {$AdsensesList['between_replys']} == '1'} <div align="center"> {$AdsensesList['adsense']} <br /> </div> {/if} {/Des::while} <table align="center" border="0" cellspacing="1" class="border" width="98%"> <tr align="center"> <!-- <td class="thead" width="18%"> {$lang['information_writer']} </td> --> <td class="thead" width="100%"> <div class="r-right"> <img src="{$Info['icon']}" /> {$subject_title} </div> <div class="l-left"> {$Info['write_time']} <a title="{$lang['view_single_post']}" href="index.php?page=post&show=1&id={$Info['reply_id']}&num={$Info['reply_number']}"> <img border="0" src="{$image_path}/open.gif" alt="{$lang['view_single_post']}" /> </a> [<a title="{$lang['post']} ({$Info['reply_number']})" id="{$Info['reply_id']}" href="#{$Info['reply_id']}">{$Info['reply_number']}</a>] {if !{$mod_toolbar}} <input type="checkbox" name="check[]" value="{$Info['reply_id']}" /> {/if} </div> </td> </tr> <tr align="center"> <td class="tbar_writer_info" width="100%" valign="top"> <div onclick="switchBlock('{$Info['reply_id']}_menu');"> {template}egyreply{/template} </div> </td> </tr> <tr> <td class="tbar_writer_info" width="100%" name="text" valign="top" align="right" onclick="switchBlock('{$Info['reply_id']}_menu');"> <div class="smallfont" style="border-bottom:1px solid #dddddd;width:95%;padding:5px;font-weight:900;margin:5px"> {$subject_title} </div> <?php $PowerBB->functions->get_hooks_template("show_reply_text")?> <div class="text">{$Info['text']}</div> {if {$Info['attach_reply']}} {template}attach_show{/template} {/if} {if {$_CONF['group_info']['view_action_edit']}} {if {$Info['action_by']} != ''} <br /> <br /> <div align="center"> <i> {$lang['action_by_reply']} {$Info['action_by']}<br /> {$lang['last_date']} {$Info['actiondate']} </i> </div> <br /> {/if} {/if} {if {$Info['reason_edit']} != ''} <div align="center"> <b>{$lang['reason_edit']} {$Info['reason_edit']}</b> </div> <br /> {/if} <?php $PowerBB->functions->get_hooks_template("show_reply_down_text")?> {if {$ReplierInfo['user_sig']} != ''} {template}signature_show{/template} {/if} </td> </tr> <tr align="right"> <td class="row1" width="100%" align="center"> <table border="0" width="100%" cellpadding="0" style="border-collapse: collapse"> <tr> <td width="100%"> <div class="r-right"> {if {$ReplierInfo['username']} !=''} {if {$_CONF['member_row']['username']} != {$ReplierInfo['username']}} {if {$_CONF['info_row']['reputationallw']} == 1} <a href="javascript:switchMenuNone('{$Info['reply_number']}replyreputation')" title="{$lang['add_reputation_to']} {$ReplierInfo['username']}"> <img border="0" src="{$image_path}/reputation.gif" /> </a> {template}reply_reputation{/template} {/if} {/if} {/if} <a title="{$lang['reporting_for_post']}" href="index.php?page=report&index=1&subject_id={$I nfo['subject_id']}&reply_id={$Info['reply_id']}&count={$count_peg}"> <img alt="{$lang['reporting_for_post']}" border="0" cellspacing="1" src="{$image_path}/report.gif" /></a> </div> <div class="l-left"> <ul class="post_controls"> {if {$_CONF['member_permission']}} {if !{$mod_toolbar}} <li> <a title="{$lang['edit_reply']}" href="index.php?page=management&reply=1&section={$ Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&reply_number={$Info['reply_number']}&count={$count_peg}&operator=edit" class="Button_secondary" title="{$lang['edit_reply']}"> {$lang['edit_reply']}</a> </li> <li> <a href="index.php?page=managementreply&do_replys=1&s ection={$Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&operator=delete" class="Button_secondary" title="{$lang['delete_reply']}"> {$lang['delete_reply']}</a> </li> {else} {if {$SubjectInfo['close']} == '0'} {if {$timeout}} {if {$_CONF['member_row']['username']} == {$ReplierInfo['username']}} {if {$_CONF['group_info']['edit_own_reply']}} <li> <a title="{$lang['edit_reply']}" href="index.php?page=management&reply=1&section={$ Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&reply_number={$Info['reply_number']}&count={$count_peg}&operator=edit" class="Button_secondary" title="{$lang['edit_reply']}"> {$lang['edit_reply']}</a> </li> {/if} {if {$_CONF['group_info']['del_own_reply']}} <li> <a href="index.php?page=managementreply&do_replys=1&s ection={$Info['section']}&subject_id={$Info['subject_id']}&reply_id={$Info['reply_id']}&operator=delete" class="Button_secondary" title="{$lang['delete_reply']}"> {$lang['delete_reply']}</a> </li> {/if} {/if} {/if} {/if} {/if} {/if} <li> <a href="index.php?page=new_reply&index=1&id={$subjec t_id}{$password} &qu_Reply={$Info['reply_id']}&user={$ReplierInfo['username']}" class="Button_secondary" title="{$lang['qu_reply']}"> {$lang['quote']}</a> </li> <li> <?php $post_id = $PowerBB->_CONF['template']['Info']['reply_id']; ?> <a class="img-submit" id="mad_<?php echo "$post_id"; ?>" name="mad_<?php echo "$post_id"; ?>" onclick="multiquote_add(<?php echo "$post_id"; ?>); return false;" href="#">{$lang['multiquote']}</a> </li> </ul> </div> </td> </tr> </table> </td> </tr> </table> <br />
بالتوفيق اي مشكله انا في الخدمهhttp://www.dzbatna.com/look/images/smiles/biggrin2.gif
:. كاتب الموضوع MiDo Elmasry (http://www.egymafia.com/forums/name-MiDo%20Elmasry) ، المصدر: كيفيه عمل المواضيع بشكل افقي والردود بشكل عمودي كديزاد باتنة لمنتديات pbboard (http://www.egymafia.com/forums/t5806) .:
ألعاب الأندرويد مجانا و حصريا (http://www.apotox.info/forum)
https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©