أهلا وسهلا بك زائرنا الكريم في منتدى دعم PBBoard الرسمي، لكي تتمكن من المشاركة ومشاهدة جميع أقسام المنتدى وكافة الميزات ، يجب عليك إنشاء حساب جديد بالتسجيل بالضغط هنا أو تسجيل الدخول اضغط هنا إذا كنت عضواً .

اريد طريقة تعديل address bar بحيث يتم اظهار جميع المنتديات الفرعية عند الضغط على منتدى فرعي


مشاهدة المشاركة في الموضوع بالعرض العادي
look/images/icons/i1.gif اريد طريقة تعديل address bar بحيث يتم اظهار جميع المنتديات الفرعية عند الضغط على منتدى فرعي
  16-02-2024 07:11 صباحاً  
Soliman
معلومات الكاتب
استبدل كامل محتوى قالب : forum
بهذا المحتوى

PHP

{template}address_bar_part1{/template}
<?php
$itemprop_content = 0;
?>
{if {$section_parent} == '0'}
<?php
$itemprop_content = 1;
?>
<li itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<a itemprop="item" href="index.php?page=forum&amp;show=1&amp;id={$sec_address_id}">
<span itemprop="name">
{$sec_address_title}
</span>
</a>
<meta itemprop="position" content="2" />
</li>
<div class="btn-nav"></div>
{/if}
{if {$section_parent}}
<?php
$itemprop_content = 1;
$Sec_parent = array();
$Sec_parent['where'] = array('id',$PowerBB->_CONF['template']['section_parent']);
$PowerBB->_CONF['template']['Section_parenty'] = $PowerBB->core->GetInfo($Sec_parent,'section');

if($PowerBB->_CONF['template']['Section_parenty']['parent'])
{
$Sec_parent1 = array();
$Sec_parent1['where'] = array('id',$PowerBB->_CONF['template']['Section_parenty']['parent']);
$PowerBB->_CONF['template']['Section_parent_sub'] = $PowerBB->core->GetInfo($Sec_parent1,'section');
}
if($PowerBB->_CONF['template']['Section_parent_sub']['parent'])
{
$Sec_parent2 = array();
$Sec_parent2['where'] = array('id',$PowerBB->_CONF['template']['Section_parent_sub']['parent']);
$PowerBB->_CONF['template']['Section_parent_subb'] = $PowerBB->core->GetInfo($Sec_parent2,'section');
}
?>
{if {$Section_parent_subb['id']}}
<li itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<a itemprop="item" href="index.php?page=forum&amp;show=1&amp;id={$Section_parent_subb['id']}">
<span itemprop="name">
{$Section_parent_subb['title']}
</span>
</a>
<meta itemprop="position" content="4" />
</li>
<div class="btn-nav"></div>
{/if}

{if {$Section_parent_sub['id']}}
<li itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<a itemprop="item" href="index.php?page=forum&amp;show=1&amp;id={$Section_parent_sub['id']}">
<span itemprop="name">
{$Section_parent_sub['title']}
</span>
</a>
<meta itemprop="position" content="2" />
</li>
<div class="btn-nav"></div>
{/if}

<li itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<a itemprop="item" href="index.php?page=forum&amp;show=1&amp;id={$Section_parenty['id']}">
<span itemprop="name">
{$Section_parenty['title']}
</span>
</a>
<meta itemprop="position" content="3" />
</li>
<div class="btn-nav"></div>



<li itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<a itemprop="item" href="index.php?page=forum&amp;show=1&amp;id={$section_info['parent']}">
<span itemprop="name">
{$sec_address_title}
</span>
</a>
<meta itemprop="position" content="<?php echo 4-$itemprop_content;?>" />
</li>
<div class="btn-nav"></div>
{/if}
<li itemprop="itemListElement" itemscope
itemtype="https://schema.org/ListItem">
<a itemprop="item" href="index.php?page=forum&amp;show=1&amp;id={$SECTION_ID}">
<span itemprop="name">
{$section_info['title']}
</span>
</a>
<meta itemprop="position" content="<?php echo 5-$itemprop_content;?>" />
</li>

{template}address_bar_part2{/template}<br />
<br />
<div class="h_tag">
<?php
$num = '88';
$PowerBB->_CONF['template']['section_info']['section_describe'] = $PowerBB->functions->words_count_replace_strip_tags_html2bb($PowerBB->_CONF['template']['section_info']['section_describe'],$num);
$PowerBB->_CONF['template']['section_info']['title'] = $PowerBB->Powerparse->censor_words($PowerBB->_CONF['template']['section_info']['title']);
?>
<h1>
<a href="index.php?page=forum&amp;show=1&amp;id={$SECTION_ID}"
title="{$section_info['title']}">
{$section_info['title']}</a></h1>
<h3>{$section_info['section_describe']}</h3>
</div>
<br />{if {$SHOW_SUB_SECTIONS}}
{template}sections_list{/template}
{/if} <br />
{if {$section_info['parent']} != '0'}
<br />
{if {$section_info['header']} != ''}
<table class="border wd98 brd1 clpc0 a-center">
<tr class="center_text_align">
<td class="row1">
{$section_info['header']}
</td>
</tr>
</table>
<br />
<br />
<br />
{/if}
{template}forum_subject_table{/template}
{if {$section_info['footer']} != ''}
<br />
<table class="border wd98 brd1 clpc0 a-center">
<tr class="center_text_align">
<td class="row1">
{$section_info['footer']}
</td>
</tr>
</table>
<br />
{/if}
{/if}
<br />


الساعة الآن 03:12 AM