عيد الاضحى المبارك


مواضيع تهمك

ركن مشاكل وطلبات الزين فورو XENFORO بامكانك تسجيل طلبك واستفسارك عن XENFORO وإن شاء الله ستجد من يدعمك ويساعدك فى حل مشكلتك

ممكن معرفة طريقة ان يكون التوقيع واحد في الصفحة

السلام عليكم مازلنا نبحر ونكتشف XENFORO كيف اجعل التوقيع في الصفحة واحد لا يتكرر اليا كما في vb عن طريق هاك عدم...

احصائياتى

الردود
10

المشاهدات
1207
اقرا
.:: عضو مشارك ::.
  • اقرا is an unknown quantity at this point

  • اقرا غير متواجد حالياً

المشاركات
93

+التقييم
5

تاريخ التسجيل
Jul 2021

الاقامة
المدينة المنورة

نظام التشغيل
windows 8.1

رقم العضوية
2672
08-08-2021, 11:24 AM
المشاركة 1
08-08-2021, 11:24 AM
المشاركة 1
افتراضي تمت الإجابة ممكن معرفة طريقة ان يكون التوقيع واحد في الصفحة
السلام عليكم
مازلنا نبحر ونكتشف XENFORO
كيف اجعل التوقيع في الصفحة واحد لا يتكرر اليا
كما في vb عن طريق هاك عدم تكرار التوقيع
شاكرا ومقدرا مسبقا


أفضل جواب - كتبه shqawe
اذا تقصد ان يعرض التوقيع مرة واحدة لكل عضو يرد على الموضوع حتى لو تعددت مشاركاته فاتوقع تحتاج الى اضافة

اما اذا اردت ان يكون التوقيع فقط في المشاركة الاولى للموضوع فقم بفتح قالب post_macros وابحث عن الكود التالي:

كود:
<xf:extension name="signature">
									<xf:macro template="message_macros" name="signature" arg-user="{$post.User}" />
								</xf:extension>
واستبدله بهذا الكود:

كود:
<xf:extension name="signature">
									<xf:if is="$post.isFirstPost()">
										<xf:macro template="message_macros" name="signature" arg-user="{$post.User}" />
									</xf:if>
								</xf:extension>
احترامي وتقديري
اخوك
شقاوي
قديم 08-08-2021, 08:26 PM
المشاركة 2
هيلبرنت
.:: رفيق درب ::.
  • هيلبرنت غير متواجد حالياً
الإجابات المقدمة: 493
افتراضي رد: ممكن معرفة طريقة ان يكون التوقيع واحد في الصفحة
ابحث عن القالب message_macros بداخله ابحث عن هذا الكود
كود:
            <aside class="message-signature">
            <xf:contentcheck>
                {{ bb_code($user.Profile.signature, 'user:signature', $user) }}
            </xf:contentcheck>
            </aside>
استبدله بــ
كود PHP:
<xf:if is="$post.Thread && $post.post_id === $post.Thread.first_post_id">            
            <
aside class="message-signature">
            <
xf:contentcheck>
                {{ 
bb_code($user.Profile.signature'user:signature'$user) }}
            </
xf:contentcheck>
            </
aside>
</
xf:if> 
جرب وردلنا خبر

قديم 08-08-2021, 08:49 PM
المشاركة 3
اقرا
.:: عضو مشارك ::.
  • اقرا غير متواجد حالياً
افتراضي رد: ممكن معرفة طريقة ان يكون التوقيع واحد في الصفحة
عذراً! واجهنا بعض المشاكل.

السطر 146: يجب أن تكون العلامة الشرطية صالحة باستخدام إحدى الصفات أو التحقق من المحتوى. - إسم القالب: public:message_macros

كود PHP:
<xf:macro name="user_info"
    
arg-user="!"
    
arg-fallbackName="">

    <
section itemscope itemtype="https://schema.org/Person" class="message-user">
        <
div class="message-avatar {{ ($xf.options.showMessageOnlineStatus && $user && $user.isOnline()) ? 'message-avatar--online' : '' }}">
            <
div class="message-avatar-wrapper">
                <
xf:avatar user="$usersize="m" defaultname="{$fallbackName}itemprop="image" />
                <
xf:if is="$xf.options.showMessageOnlineStatus && $user && $user.isOnline()">
                    <
span class="message-avatar-online" tabindex="0" data-xf-init="tooltip" data-trigger="auto" title="{{ phrase('online_now')|for_attr }}"></span>
                </
xf:if>
            </
div>
        </
div>
        <
div class="message-userDetails">
            <
h4 class="message-name"><xf:username user="$userrich="true" defaultname="{$fallbackName}/></h4>
            <
xf:usertitle user="$usertag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" />
            <
xf:userbanners user="$usertag="div" class="message-userBanner" itemprop="jobTitle" />
        </
div>
        <
xf:if is="$user.user_id">
            <
xf:set var="$extrasvalue="{{ property('messageUserElements') }}" />
            <
xf:if contentcheck="true">
                <
div class="message-userExtras">
                <
xf:contentcheck>
                    <
xf:if is="$extras.register_date">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('joined') }}</dt>
                            <
dd>{{ date($user.register_date) }}</dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.message_count">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('messages') }}</dt>
                            <
dd>{$user.message_count|number}</dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.solutions AND $user.question_solution_count">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('solutions') }}</dt>
                            <
dd>{$user.question_solution_count|number}</dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.reaction_score">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('reaction_score') }}</dt>
                            <
dd>{$user.reaction_score|number}</dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.trophy_points && $xf.options.enableTrophies">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('points') }}</dt>
                            <
dd>{$user.trophy_points|number}</dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.age && $user.Profile.age">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('age') }}</dt>
                            <
dd>{$user.Profile.age}</dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.location && $user.Profile.location">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('location') }}</dt>
                            <
dd>
                                <
xf:if is="$xf.options.geoLocationUrl">
                                    <
a href="{{ link('misc/location-info', '', {'location': $user.Profile.location}) }}" rel="nofollow noreferrer" target="_blank" class="u-concealed">{$user.Profile.location}</a>
                                <
xf:else />
                                    {
$user.Profile.location}
                                </
xf:if>
                            </
dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.website && $user.Profile.website">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('website') }}</dt>
                            <
dd><a href="{$user.Profile.website}rel="nofollow" target="_blank">{$user.Profile.website|url('host'phrase('visit_site'))}</a></dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.custom_fields">
                        <
xf:macro template="custom_fields_macros" name="custom_fields_values"
                            
arg-type="users"
                            
arg-group="personal"
                            
arg-set="{$user.Profile.custom_fields}"
                            
arg-additionalFilters="{{ ['message'] }}"
                            
arg-valueClass="pairs pairs--justified" />
                        <
xf:if is="$user.canViewIdentities()">
                            <
xf:macro template="custom_fields_macros" name="custom_fields_view"
                                
arg-type="users"
                                
arg-group="contact"
                                
arg-set="{$user.Profile.custom_fields}"
                                
arg-additionalFilters="{{ ['message'] }}"
                                
arg-valueClass="pairs pairs--justified" />
                        </
xf:if>
                    </
xf:if>
                </
xf:contentcheck>
                </
div>
            </
xf:if>
        </
xf:if>
        <
span class="message-userArrow"></span>
    </
section>
</
xf:macro>

<
xf:macro name="user_info_simple" arg-user="!" arg-fallbackName="">
    <
header itemscope itemtype="https://schema.org/Person" class="message-user">
        <
meta itemprop="name" content="{{ $user.username ?: $fallbackName }}">
        <
div class="message-avatar">
            <
div class="message-avatar-wrapper">
                <
xf:avatar user="$usersize="s" defaultname="{$fallbackName}itemprop="image" />
            </
div>
        </
div>
        <
span class="message-userArrow"></span>
    </
header>
</
xf:macro>

<
xf:macro name="attachments" arg-attachments="!" arg-message="!" arg-canView="!">
    <
xf:if contentcheck="true">
        <
xf:css src="attachments.less" />
        <
section class="message-attachments">
            <
h4 class="block-textHeader">{{ phrase('attachments') }}</h4>
            <
ul class="attachmentList">
                <
xf:contentcheck>
                    <
xf:foreach loop="$attachmentsvalue="$attachmentif="!$message.isAttachmentEmbedded($attachment)">
                        <
xf:macro template="attachment_macros" name="attachment_list_item"
                            
arg-attachment="{$attachment}"
                            
arg-canView="{$canView}/>
                    </
xf:foreach>
                </
xf:contentcheck>
            </
ul>
        </
section>
    </
xf:if>
</
xf:macro>

<
xf:macro name="signature" arg-user="!">
    <
xf:if is="$xf.visitor.Option.content_show_signature AND $user.Profile.signature">
        <
xf:if contentcheck="true">
            <
aside class="message-signature">
            <
xf:contentcheck>
                {{ 
bb_code($user.Profile.signature'user:signature'$user) }}
            </
xf:contentcheck>
            </
aside>
        </
xf:if>
    </
xf:if>
</
xf:macro

التعديل الأخير تم بواسطة اقرا ; 08-08-2021 الساعة 08:54 PM
قديم 08-08-2021, 09:27 PM
المشاركة 4
هيلبرنت
.:: رفيق درب ::.
  • هيلبرنت غير متواجد حالياً
الإجابات المقدمة: 493
افتراضي رد: ممكن معرفة طريقة ان يكون التوقيع واحد في الصفحة
جرب الان
كود PHP:
<xf:macro name="user_info"
    
arg-user="!"
    
arg-fallbackName="">

    <
section itemscope itemtype="https://schema.org/Person" class="message-user">
        <
div class="message-avatar {{ ($xf.options.showMessageOnlineStatus && $user && $user.isOnline()) ? 'message-avatar--online' : '' }}">
            <
div class="message-avatar-wrapper">
                <
xf:avatar user="$usersize="m" defaultname="{$fallbackName}itemprop="image" />
                <
xf:if is="$xf.options.showMessageOnlineStatus && $user && $user.isOnline()">
                    <
span class="message-avatar-online" tabindex="0" data-xf-init="tooltip" data-trigger="auto" title="{{ phrase('online_now')|for_attr }}"></span>
                </
xf:if>
            </
div>
        </
div>
        <
div class="message-userDetails">
            <
h4 class="message-name"><xf:username user="$userrich="true" defaultname="{$fallbackName}/></h4>
            <
xf:usertitle user="$usertag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" />
            <
xf:userbanners user="$usertag="div" class="message-userBanner" itemprop="jobTitle" />
        </
div>
        <
xf:if is="$user.user_id">
            <
xf:set var="$extrasvalue="{{ property('messageUserElements') }}" />
            <
xf:if contentcheck="true">
                <
div class="message-userExtras">
                <
xf:contentcheck>
                    <
xf:if is="$extras.register_date">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('joined') }}</dt>
                            <
dd>{{ date($user.register_date) }}</dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.message_count">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('messages') }}</dt>
                            <
dd>{$user.message_count|number}</dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.solutions AND $user.question_solution_count">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('solutions') }}</dt>
                            <
dd>{$user.question_solution_count|number}</dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.reaction_score">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('reaction_score') }}</dt>
                            <
dd>{$user.reaction_score|number}</dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.trophy_points && $xf.options.enableTrophies">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('points') }}</dt>
                            <
dd>{$user.trophy_points|number}</dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.age && $user.Profile.age">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('age') }}</dt>
                            <
dd>{$user.Profile.age}</dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.location && $user.Profile.location">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('location') }}</dt>
                            <
dd>
                                <
xf:if is="$xf.options.geoLocationUrl">
                                    <
a href="{{ link('misc/location-info', '', {'location': $user.Profile.location}) }}" rel="nofollow noreferrer" target="_blank" class="u-concealed">{$user.Profile.location}</a>
                                <
xf:else />
                                    {
$user.Profile.location}
                                </
xf:if>
                            </
dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.website && $user.Profile.website">
                        <
dl class="pairs pairs--justified">
                            <
dt>{{ phrase('website') }}</dt>
                            <
dd><a href="{$user.Profile.website}rel="nofollow" target="_blank">{$user.Profile.website|url('host'phrase('visit_site'))}</a></dd>
                        </
dl>
                    </
xf:if>
                    <
xf:if is="$extras.custom_fields">
                        <
xf:macro template="custom_fields_macros" name="custom_fields_values"
                            
arg-type="users"
                            
arg-group="personal"
                            
arg-set="{$user.Profile.custom_fields}"
                            
arg-additionalFilters="{{ ['message'] }}"
                            
arg-valueClass="pairs pairs--justified" />
                        <
xf:if is="$user.canViewIdentities()">
                            <
xf:macro template="custom_fields_macros" name="custom_fields_view"
                                
arg-type="users"
                                
arg-group="contact"
                                
arg-set="{$user.Profile.custom_fields}"
                                
arg-additionalFilters="{{ ['message'] }}"
                                
arg-valueClass="pairs pairs--justified" />
                        </
xf:if>
                    </
xf:if>
                </
xf:contentcheck>
                </
div>
            </
xf:if>
        </
xf:if>
        <
span class="message-userArrow"></span>
    </
section>
</
xf:macro>

<
xf:macro name="user_info_simple" arg-user="!" arg-fallbackName="">
    <
header itemscope itemtype="https://schema.org/Person" class="message-user">
        <
meta itemprop="name" content="{{ $user.username ?: $fallbackName }}">
        <
div class="message-avatar">
            <
div class="message-avatar-wrapper">
                <
xf:avatar user="$usersize="s" defaultname="{$fallbackName}itemprop="image" />
            </
div>
        </
div>
        <
span class="message-userArrow"></span>
    </
header>
</
xf:macro>

<
xf:macro name="attachments" arg-attachments="!" arg-message="!" arg-canView="!">
    <
xf:if contentcheck="true">
        <
xf:css src="attachments.less" />
        <
section class="message-attachments">
            <
h4 class="block-textHeader">{{ phrase('attachments') }}</h4>
            <
ul class="attachmentList">
                <
xf:contentcheck>
                    <
xf:foreach loop="$attachmentsvalue="$attachmentif="!$message.isAttachmentEmbedded($attachment)">
                        <
xf:macro template="attachment_macros" name="attachment_list_item"
                            
arg-attachment="{$attachment}"
                            
arg-canView="{$canView}/>
                    </
xf:foreach>
                </
xf:contentcheck>
            </
ul>
        </
section>
    </
xf:if>
</
xf:macro>

<
xf:macro name="signature" arg-user="!">
    <
xf:if is="$post.Thread && $post.post_id === $post.Thread.first_post_id">
    <
xf:if is="$xf.visitor.Option.content_show_signature AND $user.Profile.signature">
        <
xf:if contentcheck="true">
            <
aside class="message-signature">
            <
xf:contentcheck>
                {{ 
bb_code($user.Profile.signature'user:signature'$user) }}
            </
xf:contentcheck>
            </
aside>
        </
xf:if>
    </
xf:if>
    </
xf:if>
</
xf:macro

قديم 08-08-2021, 09:54 PM
المشاركة 5
اقرا
.:: عضو مشارك ::.
  • اقرا غير متواجد حالياً
افتراضي رد: ممكن معرفة طريقة ان يكون التوقيع واحد في الصفحة
للاسف اتلغى تماما
بدون تعديل
كود:
https://i.imgur.com/ER0qTzF.png
بعد التعديل
كود:
https://i.imgur.com/qkmAS16.png

قديم 08-08-2021, 09:56 PM
المشاركة 6
هيلبرنت
.:: رفيق درب ::.
  • هيلبرنت غير متواجد حالياً
الإجابات المقدمة: 493
افتراضي رد: ممكن معرفة طريقة ان يكون التوقيع واحد في الصفحة
لا يوجد فرق بين الصورتين

قديم 08-08-2021, 10:07 PM
المشاركة 7
اقرا
.:: عضو مشارك ::.
  • اقرا غير متواجد حالياً
افتراضي رد: ممكن معرفة طريقة ان يكون التوقيع واحد في الصفحة
الاولى قبل ماحط التعديل تظهر كل التواقيع في كل مشاركة
الصورة الثانية اختفت كلها والمطلوب الله يسعدك ان يظهر واحد فقط

قديم 08-08-2021, 10:11 PM
المشاركة 8
هيلبرنت
.:: رفيق درب ::.
  • هيلبرنت غير متواجد حالياً
الإجابات المقدمة: 493
افتراضي رد: ممكن معرفة طريقة ان يكون التوقيع واحد في الصفحة
بالمرفقات ستجد طلبك
الملفات المرفقة
نوع الملف: zip TickTackk-SignatureOnce-1.2.3.zip‏ (27.4 كيلوبايت, المشاهدات 69)

قديم 08-11-2021, 01:11 AM
المشاركة 9
اقرا
.:: عضو مشارك ::.
  • اقرا غير متواجد حالياً
افتراضي رد: ممكن معرفة طريقة ان يكون التوقيع واحد في الصفحة
للاسف مايعمل ويطلع لي اخطاء ام مااعرف اركبه!!
امل شرح الطريقة
شكرا لكم

قديم 08-12-2021, 01:45 AM
المشاركة 10
shqawe
.:: مطور XenForo ::.
  • shqawe غير متواجد حالياً
الإجابات المقدمة: 10
افتراضي رد: ممكن معرفة طريقة ان يكون التوقيع واحد في الصفحة
اذا تقصد ان يعرض التوقيع مرة واحدة لكل عضو يرد على الموضوع حتى لو تعددت مشاركاته فاتوقع تحتاج الى اضافة

اما اذا اردت ان يكون التوقيع فقط في المشاركة الاولى للموضوع فقم بفتح قالب post_macros وابحث عن الكود التالي:

كود:
<xf:extension name="signature">
									<xf:macro template="message_macros" name="signature" arg-user="{$post.User}" />
								</xf:extension>
واستبدله بهذا الكود:

كود:
<xf:extension name="signature">
									<xf:if is="$post.isFirstPost()">
										<xf:macro template="message_macros" name="signature" arg-user="{$post.User}" />
									</xf:if>
								</xf:extension>
احترامي وتقديري
اخوك
شقاوي

اضافة رد

العلامات المرجعية

ممكن معرفة طريقة ان يكون التوقيع واحد في الصفحة


أدوات الموضوع

الانتقال السريع
المواضيع المتشابهه للموضوع: ممكن معرفة طريقة ان يكون التوقيع واحد في الصفحة
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
طريقة وضع التوقيع بايطار khaled ركن مشاكل وطلبات الزين فورو XENFORO 5 03-09-2021 11:50 PM
طريقة إخفاء التوقيع بزر اضغط هنا لمشاهدة توقيعي هيلبرنت ركن تطوير منتديات vb3.8.0 0 09-30-2018 09:55 PM
[XF 2.x] : طريقة تحديد حجم الصور المرفقة فى التوقيع هيلبرنت ركن شروحات الزين فورو XENFORO 4 06-26-2018 06:01 PM
شرح طريقة اضافة التوقيع بمنتدايات XenForo هيلبرنت ركن شروحات الزين فورو XENFORO 1 10-17-2016 09:59 AM




الساعة الآن 02:18 PM
RSS 2.0XML Site MapTAGS SiteInfo SiteRSS FeedMap SectionsvB MapsMap TagSitemap ForumMaps Forum