منتدى دعم PBBoard الرسمي
(نسخة قابلة للطباعة من الموضوع)
https://pbboard.info/forums/t15551
أنقر هنا لمشاهدة الموضوع بهيئته الأصلية

طلب تعديل بسيط على قالب sections_list
سيف السلطاني 10-02-2014 05:23 مساءً
سلام عليكم ورحمة الله وبركاتة

لدي طلب من الاخوان جزاكم الله خيرا اذا ساعتموني

لدي مشكلة وهي ان قالب ستايلي توجد في قائمة منسدلة للاقسام وهذا القائمة تظهر سواء كأنت الاقسام موجوده او غير موجوده

اضفه الى ذلك توجد مشلكة اخر بطول عنوان الموضوع حيث تتشوة اذا طال العنوان

كما في الصورة

HchWG

المطلوب تعديل بحيث العنوان لا ينزل الى الاسفل والاقسام الفرعية تكون فقط بالمنتديات التي تحوي قسم فرعي

كود القالب

CODE
    <div align="center" dir="{$_CONF['info_row']['content_dir']}">
	    {if {$SHOW_SUB_SECTIONS}}
	<!-- START_TABLE_SUB_SECTIONS -->
	
	<div class="forums_box" dir="rtl">
	<!--forums Head-->
	<div class="forums_head">
	<div class="left_head_forums">
	
	<a href="javascript:switchMenuNone('id_{$forum['id']}')" title="اخفاء/اظهار المنتدى">
	<img src="{$image_path}/collapse_b.gif" style="margin-left:100px;" alt="" id="collapseimg_forumbit_{$forum['id']}" /></a>
	
	</div>
	<div class="right_head_forums">
	{if {$_CONF['info_row']['rewriterule']} == '1'}
	                    <span class="icon_head_forums"></span><a href="f{$forum['id']}.html">{$forum['title']}</a>
	                    {else}
	<span class="icon_head_forums"></span><a href="index.php?page=forum&show=1&id={$forum['id']}">{$forum['title']}</a>
	                    {/if}
	
	</div>
	</div>
	<!--/forums Head-->
	<!--forums table start-->
	
	<table width="98%" border="0" class="border" cellpadding="0" cellspacing="1">
	
	
	{/if}
	{Des::foreach}{forums_list}{forum}
	    {if {$forum['parent']} == 0}
	        {if {$forum['sort']} != 1}
	          </tbody>
	    </table>
	<div class="forums_foter"></div>
	</div>
	<div class="forums_shadow" dir="rtl">
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
	<td class="forums_shadow_right"></td>
	<td class="forums_shadow_center">.</td>
	<td class="forums_shadow_left"></td>
	</tr>
	</table>
	</div>
	<!-- END_TABLE_SUB_SECTIONS -->
	        
	        {/if}
	<!-- START_TABLE_SECTIONS -->
	<!--forums box-->
	<div class="forums_box" dir="rtl">
	<!--forums Head-->
	<div class="forums_head">
	<div class="left_head_forums">
	
	<a href="javascript:switchMenuNone('id_{$forum['id']}')" title="اخفاء/اظهار المنتدى">
	<img src="{$image_path}/collapse_b.gif" style="margin-left:100px;" alt="" id="collapseimg_forumbit_{$forum['id']}" /></a>
	
	</div>
	<div class="right_head_forums">
	{if {$_CONF['info_row']['rewriterule']} == '1'}
	                    <span class="icon_head_forums"></span><a href="f{$forum['id']}.html">{$forum['title']}</a>
	                    {else}
	<span class="icon_head_forums"></span><a href="index.php?page=forum&show=1&id={$forum['id']}">{$forum['title']}</a>
	                    {/if}
	
	</div>
	</div>
	<!--/forums Head-->
	<!--forums table start-->
	
	
	
	
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tbody id="id_{$forum['id']}" class="border_forums" style="">
	
	
	    {/if}
	    {if {$forum['parent']} != 0}
	    {if {$forum['linksection']} != '1'}
	 <!--forums tr Start-->
	<tr>
	
	<td class="forums_alt1">
	{if {$forum['use_section_picture']} == '1' and{$forum['sectionpicture_type']} == '1'}
	    <img src="{$forum['section_picture']}"
	    alt="{$lang['section_picture']}" />
	    {elseif {$_CONF['group_info']['write_subject']} == 0}
	    <img src="{$image_path}/f_pass_unread.png"
	    alt="{$lang['no_write_subject']}"  id="forum_statusicon_{$forum['id']}" />
	    {elseif {$forum['last_post_date']} > {$_CONF['member_row']['lastvisit']}}
	    <img src="{$image_path}/f_unread.png"
	    alt="{$lang['new_posts']}" id="forum_statusicon_{$forum['id']}" />
	    {else}
	    <img src="{$image_path}/f_read.png"
	    alt="{$lang['no_new_posts']}"  id="forum_statusicon_{$forum['id']}" />
	    {/if}
	</td>
	
	<td class="forums_alt2">
	<!--title_dec-->
	<span class="forums_title"><a href="index.php?page=forum&show=1&id={$forum['id']}" title="{$forum['title']}" style="font-family:'droid Arabic Kufi';font-size:14px;font-weight:bold;">
	    <span class="title_n"><font class="title_font">{$forum['title']}</font></span>
	
	</a><span class="title_icon"></span></span>
	
	
	<span class="forums_dec"><span class="dec_icon"></span>{$forum['section_describe']}</span>
	<!--/title_dec-->
	<!--subs-->
	
	<span class="sub_botton">الاقسام الفرعيه<span style="font-family:'fnon-full-option-style',fnon-full-option-style,tahoma;font-size:12px;
	top:-0px;float:left;left:7px;position:relative"></span>
	<span class="sub_list">
	{if {$forum['use_section_picture']} == 1}
	    {if {$forum['sectionpicture_type']} == 2}
	    <img src="{$forum['section_picture']}" alt="{$forum['section_picture']}" />
	    
	    {/if}
	    {/if}
	    {if {$forum['is_sub']}}
	    {if {$_CONF['info_row']['no_sub']}}
	    {$forum['sub']}
	    {/if}
	    {/if}
	<br>
	
	</span>
	</span>
	
	
	<!--/subs-->
	
	<!--last post info div-->
	<div class="forums_last_info" dir="rtl">
	
	
	
	
	
	 <?php if ($forum['hide_subject']  AND !$PowerBB->functions->ModeratorCheck($forum['id'])){
	  ?>
	      <div align="center">{$lang['speciality']}</div>
	      {else}
	 <?php if ($forum['section_password'] !=""  AND !$PowerBB->functions->ModeratorCheck($forum['id'])){
	  ?>
	      <div align="center">{$lang['speciality']}</div>
	      {else}
	
	    {if {$forum['last_subject']} != ''}
	<span class="last_post"><span class="last_post_icon"></span>
	<a href="index.php?page=topic&show=1&id={$forum['last_subjectid']}" title="{$forum['last_subject']}">
	{$forum['last_subject']}</a></span>
	
	<span class="last_post_by"><span class="last_post_by_icon"></span>
	<span class="post_by_member">
	{$lang['last_writer']}  {$forum['last_writer']}
	</span></span>
	
	<span class="last_post_time"><span class="last_post_time_icon"></span> <span class="last_post_time2">{$forum['last_date']}</span></span>
	
	{if {$forum['last_berpage_nm']} != ''}
	<a title="{$lang['Go_to_last_post']}" href="index.php?page=topic&show=1&id={$forum['last_subjectid']}&count={$forum['last_berpage_nm']}#{$forum['last_reply']}">
	<span class="go_to_last_post"></span></a>
	<!--last post info-->
	
	{/if}
	
	
	<!--last post info div-->
	
	</div>
	
	{else}
	    {$lang['no_post']}
	    {/if}
	    {/if}
	    {/if}
	
	</td>
	
	<td class="forums_alt3">
	<span class="count_topics"><span class="count_topics_icon"> </span>{$lang['subject_num']} : {$forum['subject_num']}</span>
	<span class="count_posts"><span class="count_posts_icon"> </span>{$lang['reply_num']} : {$forum['reply_num']}</span>
	<span class="count_her_now"><span class="count_her_now_icon"> </span>
	المتواجدون : {$forum['forum_online']}</span>
	</td>
	</tr>
	<!--forums tr End-->
	<!--forums tr Start-->
	
	
	
	
	    {else}
	    <tr class="radiusContent">
	    <td width="5%" align="center" class="row5">
	    {if {$forum['use_section_picture']} == 1}
	    {if {$forum['sectionpicture_type']} == 1}
	    <img src="{$forum['section_picture']}" alt="" />
	    {else}
	    <img src="{$image_path}/f_redirect.png" alt="" />
	    {/if}
	    {else}
	    <img src="{$image_path}/f_redirect.png" alt="" />
	    {/if}
	    </td>
	    <td width="50%" align="right" class="row2" onclick="switchBlock('moderators_{$forum['id']}');">
	
	    <a href="index.php?page=forum&show=1&
	    id={$forum['id']}"><img src="{$image_path}/all-cat.gif" border="0"> {$forum['title']}</a>
	    
	    {if {$forum['use_section_picture']} == 1}
	    {if {$forum['sectionpicture_type']} == 2}
	    <img src="{$forum['section_picture']}" alt="" />
	    
	    {/if}
	    {/if}
	    {if {$_CONF['info_row']['no_describe']}}
	    {$forum['describe']}
	    
	    {/if}
	    </td>
	    <td width="43%" align="center" class="row2">
	    {$lang['linkvisitor']} {$forum['linkvisitor']}
	    </td>
	    {if {$_CONF['info_row']['no_moderators']}}
	    <td class="row1" align="center" width="10%">
	    <a href="javascript:switchMenuNone('moderators_{$forum['id']}')" title="{$lang['moderators']}">
	    <img border="0" alt="{$lang['moderators']}" src="{$image_path}/moderators.gif" /></a>
	    <div style="display:none; left:20px;" class="drop_menu" id="moderators_{$forum['id']}">
	        <div class="thead1" style="width:150px;">
	        {$lang['moderators_list']}
	        </div>
	        <div class="row1" style="width:150px;">
	        <font class="smallfont">
	        {if {$forum['moderators_list']}}
	        {$forum['moderators_list']}
	        {else}
	        {$lang['NO_MODERATOR']}
	        {/if}
	        </font>
	        </div>
	    </div>
	    </td>
	    {/if}
	    </tr>
	    {/if}
	    {/if}
	    {/Des::foreach}
	    </tbody>
	    </table>
	
	    <!-- END_TABLE_SECTIONS -->
	<div class="forums_foter"></div>
	</div>
	<div class="forums_shadow" dir="rtl">
	<table cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
	<td class="forums_shadow_right"></td>
	<td class="forums_shadow_center">.</td>
	<td class="forums_shadow_left"></td>
	</tr>
	</table>
	</div>
	
منتدى دعم PBBoard الرسمي

Copyright © 2009-2024 PBBoard® Solutions. All Rights Reserved