المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : كيفية تغيير عرض المنتديات إلى رؤوس مواضيع


MesterPerfect
05-06-2018, 12:47 AM
السَلام عليكم ورحمة الله وبركاته
لدي استفسار هام جدا
حول قوالب xenforo
انا أستخدم الجيل الثاني واستخدم الستيل الأفتراضي خاصته
أريد بئة شيء فيه أريد طريقة تعديل طريقة عرض المنتديات
أريد المنتديات تعرض على هيئة رئوس مواضيع يعني heading
بدل من روابط
أرجو أن يكون استفساري واضح لحضراتكم
ملحوظة الإقسام تعرض في الجيل الثاني على شكل heading
لكن المنتديات لا مع الأسف
على عكس الجيل الأول الذي يعرض فيه الإثنين على شكل head
بأنتظاركم
تحياتي

هيلبرنت
05-06-2018, 08:02 AM
طلبك مش واضح

حاول تضع صوره

MesterPerfect
05-06-2018, 10:08 AM
طلبك مش واضح

حاول تضع صوره

للأسف أخي حتى الصورة لن توضح ما سيوضح المثال
انا هفترض أن القالب المسئول عن عرض المنتديات في الجيل الأول هو قالب forum_list
أنظر إلى الكود خاصته
كود قالب forum list في الجيل الأول

<xen:h1>{$xenOptions.boardTitle}</xen:h1>

<xen:container var="$head.canonical"><link rel="canonical" href="{xen:link 'canonical:forums'}" /></xen:container>
<xen:if is="{$xenOptions.boardDescription}"><xen:container var="$head.description">
<meta name="description" content="{$xenOptions.boardDescription}" /></xen:container></xen:if>
<xen:container var="$head.openGraph">
<xen:include template="open_graph_meta">
<xen:set var="$url">{xen:link 'canonical:forums'}</xen:set>
<xen:set var="$title">{$xenOptions.boardTitle}</xen:set>
<xen:set var="$description">{$xenOptions.boardDescription}</xen:set>
<xen:set var="$ogType">website</xen:set>
</xen:include></xen:container>

<xen:hook name="forum_list_nodes">
<xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
</xen:hook>

<xen:sidebar>
<xen:edithint template="sidebar.css" />

<xen:hook name="forum_list_sidebar">
<xen:if is="{$canViewMemberList}">
<xen:include template="sidebar_online_users" />
</xen:if>

<xen:if is="{$threads}">
<div class="section threadList">
<div class="secondaryContent">
<h3><a href="{xen:link find-new/posts}">{xen:phrase new_posts}</a></h3>
<xen:include template="sidebar_new_posts" />
</div>
</div>
</xen:if>

<xen:if is="{$profilePosts}">
<div class="section profilePostList">
<div class="secondaryContent">
<h3><a href="{xen:link find-new/profile-posts}">{xen:phrase new_profile_posts}</a></h3>
<xen:include template="sidebar_profile_post_list" />
</div>
</div>
</xen:if>

<!-- block: forum_stats -->
<div class="section">
<div class="secondaryContent statsList" id="boardStats">
<h3>{xen:phrase forum_statistics}</h3>
<div class="pairsJustified">
<dl class="discussionCount"><dt>{xen:phrase discussions}:</dt>
<dd>{xen:number $boardTotals.discussions}</dd></dl>
<dl class="messageCount"><dt>{xen:phrase messages}:</dt>
<dd>{xen:number $boardTotals.messages}</dd></dl>
<dl class="memberCount"><dt>{xen:phrase members_count}:</dt>
<dd>{xen:number $boardTotals.users}</dd></dl>
<dl><dt>{xen:phrase latest_member}:</dt>
<dd><xen:username user="$boardTotals.latestUser" /></dd></dl>
<!-- slot: forum_stats_extra -->
</div>
</div>
</div>
<!-- end block: forum_stats -->

<xen:include template="sidebar_share_page">
<xen:set var="$url">{xen:link canonical:forums}</xen:set>
</xen:include>

</xen:hook>
</xen:sidebar>

أنظر هنا أخي تجد عبارات مثل هذه في القالب

<h3><a href="{xen:link find-new/profile-posts}">{xen:phrase new_profile_posts}</a></h3>

h3 هذه تعني رأس الموضوع رقم 3 وهي طريقة العرض
نيجي بقة للجيل الثاني
كود قالب forum list في الجيل الثاني

<xf:h1>{$xf.options.boardTitle}</xf:h1>
<xf:if is="{$xf.options.forumsDefaultPage} != 'forums'">
<xf:title>{{ phrase('forum_list') }}</xf:title>
</xf:if>

<xf:macro template="metadata_macros" name="metadata"
arg-description="{$xf.options.boardDescription}"
arg-canonicalUrl="{{ link('canonical:' . $selfRoute) }}" />


<xf:wrap template="forum_overview_wrapper">
<xf:set var="$pageSelected">forums</xf:set>
</xf:wrap>

<xf:widgetpos id="forum_list_sidebar" position="sidebar" />

<xf:widgetpos id="forum_list_above_nodes" />
<xf:macro name="node_list" arg-children="{$nodeTree}" arg-extras="{$nodeExtras}" />
<xf:widgetpos id="forum_list_below_nodes" />

<xf:head option="rss_forum"><link rel="alternate" type="application/rss+xml" title="{{ phrase('rss_feed_for_x', {'title': $xf.options.boardTitle})|for_attr }}" href="{{ link('forums/index.rss', '-') }}" /></xf:head>

<xf:macro name="node_list_entry" arg-node="!" arg-extras="!" arg-children="!" arg-childExtras="!" arg-depth="1">
<xf:css src="node_list.less" />
<xf:set var="$nodeTemplate" value="{{ $node.getNodeTemplateRenderer($depth) }}" />
<xf:if is="$nodeTemplate.macro">
<xf:macro template="{$nodeTemplate.template}" name="{$nodeTemplate.macro}"
arg-node="{$node}"
arg-extras="{$extras}"
arg-children="{$children}"
arg-childExtras="{$childExtras}"
arg-depth="{$depth}" />
<xf:elseif is="{$nodeTemplate.template}" />
<xf:include template="{$nodeTemplate.template}" />
</xf:if>
</xf:macro>

<xf:macro name="node_list" arg-children="!" arg-extras="!" arg-depth="1">
<xf:css src="node_list.less" />
<xf:foreach loop="$children" key="$id" value="$child">
<xf:macro name="node_list_entry"
arg-node="{$child.record}"
arg-extras="{$extras.{$id}}"
arg-children="{$child.children}"
arg-childExtras="{$extras}"
arg-depth="{$depth}" />
</xf:foreach>
</xf:macro>

<xf:macro name="sub_node_list" arg-children="!" arg-childExtras="!" arg-depth="3">
<xf:if contentcheck="true">
<ol>
<xf:contentcheck>
<xf:macro template="forum_list" name="node_list"
arg-children="{$children}"
arg-extras="{$childExtras}"
arg-depth="{{ $depth + 1 }}" />
</xf:contentcheck>
</ol>
</xf:if>
</xf:macro>

<xf:macro name="sub_nodes_flat" arg-children="!" arg-childExtras="!" arg-depth="3">
<xf:css src="node_list.less" />
<xf:if contentcheck="true">
<div class="node-subNodesFlat">
<span class="node-subNodesLabel">{{ phrase('sub_forums:') }}</span>
<ol class="node-subNodeFlatList">
<xf:contentcheck>
<xf:macro template="forum_list" name="node_list"
arg-children="{$children}"
arg-extras="{$childExtras}"
arg-depth="{{ $depth + 1 }}" />
</xf:contentcheck>
</ol>
</div>
</xf:if>
</xf:macro>

<xf:macro name="sub_nodes_menu" arg-children="!" arg-childExtras="!" arg-depth="3">
<xf:css src="node_list.less" />
<xf:if contentcheck="true">
<div class="node-subNodeMenu">
<a class="menuTrigger" data-xf-click="menu" role="button" tabindex="0" aria-expanded="false" aria-haspopup="true">{{ phrase('sub_forums') }}</a>
<div class="menu" data-menu="menu" aria-hidden="true">
<div class="menu-content">
<h4 class="menu-header">{{ phrase('sub_forums') }}</h4>
<ol class="subNodeMenu">
<xf:contentcheck>
<xf:macro template="forum_list" name="node_list"
arg-children="{$children}"
arg-extras="{$childExtras}"
arg-depth="{{ $depth + 1 }}" />
</xf:contentcheck>
</ol>
</div>
</div>
</div>
</xf:if>
</xf:macro>


هنا طريقة العرض تختلف ليست head كما في الجيل الأول

فالجيل الأول تكون فيه المنتديات عبارة عن رؤوس موضوعات

أما الثاني فلا

وللتوضيح أيضا رؤوس المواضيع هي التي نكتبها بال html هكذا

<h1<ولدينا منها 6مستويات</h1>
كلمة لدينا منها 6 مستويات أصبحت الئان رأس موضوع
انا أريد المنتدا يبقى بهذا الشكل
أرجو أن يكون قصدي واضح لكم

MesterPerfect
05-06-2018, 10:26 AM
أعتذر على كتابة مشاركة أخرى ولكن وقت التعديل عدا وكان لدي
ملحوظة
في المنتدا هنا إذا دخلت على قسم تطوير المنتديات

https://www.helpernt.com/vb/forumdisplay.php?f=3

تكون المنتديات مثل
ركن تطوير XENFORO
استايلات الزين فورو XENFORO
اضافات الزين فورو XENFORO
كل دول والباقي رؤوس موضوعات
من المستوا الثالث
يعني <h3>
فهذا هو ما أريد عمل مثله
طبعا معرفة الطريقة وليس تركيب قالب يحتوي الخصائص هذه
تحياتي لكم وللجميع

هيلبرنت
05-06-2018, 09:30 PM
والله انا بحاول افهم بس الظاهر المشكله عندى
حاول تبسطها

MesterPerfect
05-06-2018, 11:05 PM
والله انا بحاول افهم بس الظاهر المشكله عندى
حاول تبسطها

لالالالالالالالالالا
العيب عندي أخي انا عارف نفسي ضايع في الشرح
طيب هحاول أشرح لك
المواضيع داخل المنتدا هنا ما هي طريقة العرض بتاعتها
يعني هل أنتو محددين أنو يعرضها على هيئة رابط فقط ولا روابط داخل رؤوس موضوعات
نحن لدينا في ال html أكثر من طريقة للعرض مثلا عرض المواضيع على شكل قائمة يعني list
ولدينا العرض على شكل جدول
ولدينا العرض على شكل صندوق خيارات
ولدينا العرض على شكل قائمة منسدلة
ولدينا العرض على شكل رؤوس موضوعات ال هي head
نعطي أمثلة
مثلا الأنتقال السريع
دا صندوق خيارات أنتو كتبتو كود الخاص به
وهذا كلام لا شك فيه أنو صندوق
التحرير ال انا بكتب فيه الموضوعات
دا يسما تحرير متعدد الأسطر
يعني كل ما هدوس أنتر يعمل لي سطر فارغ
وهذا لا شك فيه
عندنا هنا داخل المعهد المواضيع من الخارج تكون على هيئة روابط داخل رؤوس مواضيع
يعني في الصورة الآتية ال انا واقف عليه بالفئرة هذا عنوان موضوع داخل رؤس من الرأوس
أو داخل مستوا من المستويات يستطيع فهمي أكثر من كتب القالب
أو لو تريني أخي الكود المستخدم هنا لعرض الموضوعات
كما في الصورة

أرجو أن تصل فكرتي
وأيضا أنظر هنا أخي تعريف بال Heading
https://www.w3schools.com/html/html_headings.asp
وهنا أيضا
http://pd.chem.ucl.ac.uk/pdnn/internet/fonts.htm
وانا بأنتظارك أخي