هيلبرنت | Helpernt

هيلبرنت | Helpernt (https://www.helpernt.com/vb/index.php)
-   ركن مشاكل وطلبات المنتديات (https://www.helpernt.com/vb/forumdisplay.php?f=100)
-   -   [طلب] قالب الاقسام . (https://www.helpernt.com/vb/showthread.php?t=6897)

«Max» RaioSama 01-25-2018 10:53 AM

[طلب] قالب الاقسام .
 
السلام عليكم ورحمة الله وبركاته

حياكم الله جميعا ..

عندي طلب أود أن أطبقه في الأستايل الخاص بي ولكن صراحة واجهة صعوبة فيه !

اود أن اجعل الاقسام الرئيسية مثل ذي
https://image.prntscr.com/image/z9HQ...Fhky6nVvOg.png
الاكواد الخاصة بالاقسام ..
كود:

<div class="sections">
{if {$SHOW_SUB_SECTIONS}}
<!-- start_category-in_page_forum -->
<ul class="categorys pkr">
<li class="category forum_sub">
<span>{$lang['forum_sub']} : {$Section_Title}</span>
</li>
{/if}
{Des::foreach}{forums_list}{forum}
{if {$forum['parent']} == 0}
{if {$forum['sort']} != 1}
</ul></div>
<!-- end_categorys_one_by_one -->
{/if}
<!-- start_categorys_one_by_one -->
<script type="text/javascript">
$(document).ready(function()
{
var img = "collapseimage_{$forum['id']}";
var imgChange = document.getElementById(img);
if($.cookie("pbboard_collapse_forumid_{$forum['id']}") == "{$forum['id']}") {
$("#collapseimg_forumbit_{$forum['id']}").css('display', 'none');
imgChange.className = "collapsed";
};
});
</script>
<ul class="categorys pkr">
<li class="category">
<a class="CollapseIcon" href="#collapseforum_{$forum['id']}" onclick="return collapse_toggle('{$forum['id']}')" id="collapseforum_{$forum['id']}">
<span id="collapseimage_{$forum['id']}" class="expanded"></span>
</a>
<a href="index.php?page=forum&amp;show=1&amp;id={$forum['id']}">
<span>{$forum['title']}</span></a>
</li>
</ul>
<div id="collapseimg_forumbit_{$forum['id']}">
<ul class="categorys pkr">
{elseif {$forum['parent']} != 0}
<li class="sub_forums pkr-b">
<div class="forum-icon pkr-b">
{if {$forum['use_section_picture']} and {$forum['sectionpicture_type']}== 1}
<span class="section_picture" title="{$lang['section_picture']}"><img src="{$forum['section_picture']}" alt="{$lang['section_picture']}" /></span>
{else}
<span class="{$forum['forum_icon']} pkr" title="{$forum['forum_icon_alt']}"></span>
{/if}
</div>
<div class="forum-stats">
<div class="title_n"><a href="index.php?page=forum&amp;show=1&amp;id={$forum['id']}">
{$forum['title']}</a></div>
{if {$forum['use_section_picture']} and {$forum['sectionpicture_type']} == 2}
<div class="section_picture_dn_describe">
<span class="section_picture" title="{$forum['forum_icon_alt']}"><img src="{$forum['section_picture']}" alt="{$forum['forum_icon_alt']}" /></span>

</div>
{/if}
{if {$_CONF['info_row']['no_describe']} and {$forum['section_describe']} != ''}
<div class="describe">
{$forum['section_describe']}

</div>
{/if}
<div class="numrs">

<span class="subject_num subject_num_icon pkr-b" title="{$lang['subject_num']}">
{$lang['subject_num']} :<b>{$forum['subject_num']}</b>
</span>
<span class="reply_num reply_num_icon pkr-b" title="{$lang['reply_num']}">
{$lang['reply_num']} : <b>{$forum['reply_num']}</b>
</span>
{if {$forum['forum_online']}}
<span class="forum_online online_num_icon pkr-b" title="{$lang['Whos_Online']}">
( <b>{$forum['forum_online']}</b>
{$lang['viewer']})
</span>




<!-- start_forum_sub -->
{if {$forum['is_sub']}}
{if {$_CONF['info_row']['no_sub']}}
<ul class="dropdown topmenu">
<li class="topmenu" title="{$lang['forum_sub']}">
<span class="subject_num subject_num_icon pkr-b" title="المنتديات الفرعية">
المنتديات الفرعية
</span>

<ul class="forum_sub" style="width: 200px;">
<li class="menu_dropdown">
<?php

$forum['sub'] = @preg_replace('#<a (.*?) href="(.*?)">(.*?)</a>#i', "{url=$2}$3{/url}", $forum['sub']);
$forum['sub'] = $PowerBB->functions->CleanText($forum['sub']);
$forum['sub'] = $PowerBB->Powerparse->replace($forum['sub']);
$forum['sub'] = @preg_replace('#{url=(.*?)}(.*?){/url}#i', '<a href="$1">$2</a>', $forum['sub']);

echo $forum['sub'];
?>
</li>
</ul>
</li>
</ul>
{/if}
{/if}

<!-- end_forum_sub  -->
{/if}
</div>
{if {$_CONF['info_row']['no_moderators']} and {$forum['moderators_list']}}
<div class="home-moderators-lain">
{$lang['moderators_list']} {$forum['moderators_list']}
</div>
{/if}


{if {$forum['num_subjects_awaiting_approval']} >0 and {$forum['IsModeratorCheck']}}
<div class="awaiting_approval pkr-b">{$lang['subjects_review']}: <b>{$forum['num_subjects_awaiting_approval']}</b></div>
{/if}
{if {$forum['num_replys_awaiting_approval']} >0 and {$forum['IsModeratorCheck']}}
<div class="awaiting_approval pkr-b">{$lang['replys_review_num']}: <b>{$forum['num_replys_awaiting_approval']}</b>
{if {$align} == 'right'}
<a class="appssroveposts" href="index.php?page=search&amp;option=6&amp;review_reply=1&section={$forum['id']}&amp;sort_order=DESC" title="{$lang['approveposts']}"><i class="fa fa-arrow-circle-left pkr-c" title="{$lang['approveposts']}"></i> </a>
 {else}
<a class="appssroveposts" href="index.php?page=search&amp;option=6&amp;review_reply=1&section={$forum['id']}&amp;sort_order=DESC" title="{$lang['approveposts']}"><i class="fa fa-arrow-circle-right pkr-c" title="{$lang['approveposts']}"></i> </a>
{/if}
</div>
{/if}
</div>
<div class="forum-last-post pkr pkr-b">

{if {$forum['linksection']}}

<div class="no_post">{$lang['linkvisitor']}{$forum['linkvisitor']}</div>
{elseif {$forum['hide_subject']} and {$forum['ModeratorCheck']}}
<div class="no_post">{$lang['speciality']}</div>
{elseif {$forum['section_password']} and {$forum['ModeratorCheck']}}
<div class="no_post">{$lang['speciality']}</div>
{elseif {$forum['last_subject']} != ''}
{if {$_CONF['info_row']['allow_avatar']}}
<div class="UserPhoto_tiny_RCS pkr-b" title="{$lang['Picture']} {$forum['username']} {$lang['Personal']}">
<span class="User-Picture-forum-Home" style="background-image: url({$forum['writer_photo']});"></span>
</div>
{if {$align} == 'right'}
<div class="PBB-WBS borderRightColor" style="border-right-color: #D8D8D8;"></div>
 {else}
<div class="PBB-WBS borderLeftColor" style="border-left-color: #D8D8D8;"></div>
{/if}
{/if}
<div class="Info_last_post">
<div class="Info_last_Reply">

<script type="text/javascript">
$(document).ready(function() {
var iconImg = new Image();
iconImg.src="{$ForumAdress}{$forum['icon']}";
$(iconImg).one('load',function(){
iconWidth = iconImg.width;
iconHeight = iconImg.height;
$(".last_icon_{$forum['id']}").css('height', iconHeight);
$(".last_icon_{$forum['id']}").css('width', iconWidth);
$(".last_icon_{$forum['id']}").css('float', 'right');
$(".last_icon_{$forum['id']}").css('margin', '0');
$(".last_icon_{$forum['id']}").css('background', 'transparent url('+iconImg.src+') no-repeat scroll center center');
});
});
</script>

<i class="{$forum['id']}"></i><a href="index.php?page=topic&amp;show=1&amp;id={$forum['last_subjectid']}"

title="{$forum['last_subject_title']}">{$forum['last_subject']}</a></div>


<div class="NewsUser">{$lang['last_writer']}
  {$forum['last_writer']}
</div>
<div class="NewsTime"><i class="IconNewsTime fa fa-history pkr-c"></i> {$forum['last_date_ago']} <span class="last_time_ago">{$forum['last_time_ago']}</span>
<a href="index.php?page=topic&amp;show=1&amp;id={$forum['last_subjectid']}&amp;count={$forum['last_berpage_nm']}#{$forum['last_reply']}" title="{$lang['Go_to_last_post']}">
{if {$align} == 'right'}
<i class="Iconchevron fa fa-arrow-circle-left pkr-c" title="{$lang['Go_to_last_post']}"></i>
 {else}
<i class="Iconchevron fa fa-arrow-circle-right pkr-c" title="{$lang['Go_to_last_post']}"></i>
{/if}
</a></div>
</div>
{else}
<div class="no_post">{$lang['no_post']}</div>
{/if}
</div>
</li>
{/if}
{/Des::foreach}
</ul>
{if !{$SHOW_SUB_SECTIONS}}
</div>
{/if}
<!-- End_All-categorys -->
</div>
<br />

المنتدى pbboard
طاب مسائكم جميعا .

هيلبرنت 01-25-2018 05:31 PM

رد: [طلب] قالب الاقسام .
 
للاسف الشديد نحن لاندعم منتديات pbboard نعتذر منك

اخى

«Max» RaioSama 01-25-2018 07:10 PM

رد: [طلب] قالب الاقسام .
 
اقتباس:

المشاركة الأصلية كتبت بواسطة هيلبرنت (المشاركة 17229)
للاسف الشديد نحن لاندعم منتديات pbboard نعتذر منك

اخى

اتوقع الطريقة مثل اي قسم في منتديات اخرى ولكن انا مبتدىء هل يمكنك مساعدتي emoji26

هيلبرنت 01-25-2018 09:01 PM

رد: [طلب] قالب الاقسام .
 
اقتباس:

المشاركة الأصلية كتبت بواسطة «max» raiosama (المشاركة 17233)
اتوقع الطريقة مثل اي قسم في منتديات اخرى ولكن انا مبتدىء هل يمكنك مساعدتي emoji26

للاسف الاسكريبت ده والله لا اعلم شى عنه


الساعة الآن 10:22 AM

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. TranZ By Almuhajir