هيلبرنت | Helpernt

هيلبرنت | Helpernt (https://www.helpernt.com/vb/index.php)
-   ركن مشاكل وطلبات الزين فورو XENFORO (https://www.helpernt.com/vb/forumdisplay.php?f=97)
-   -   نجوم العضوبات لاتظهر (https://www.helpernt.com/vb/showthread.php?t=8341)

ilyess 12-08-2018 06:36 PM

نجوم العضوبات لاتظهر
 
السلام عليكم و رحمة الله تعالى و بركاته ..



مثلما هو موضح في العنوان و الصورة . نجوم العضويات لا تظهر



https://b.top4top.net/p_10728j6px1.png

هيلبرنت 12-08-2018 09:03 PM

رد: نجوم العضوبات لاتظهر
 
سوف تقوم بمراجعة الموضوع ده طريقة اضافة نجوم للرتب الاعضاء لمنتديات الزين فورو الجيل الثانى

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

كود:

styles/default/xenforo/ranks/Blue.gif

ثم تضع بداخله النجمة اللى اسمها ده Blue.gif

وشكرا

ilyess 12-09-2018 12:19 AM

رد: نجوم العضوبات لاتظهر
 
اقتباس:

المشاركة الأصلية كتبت بواسطة هيلبرنت (المشاركة 24275)
سوف تقوم بمراجعة الموضوع ده طريقة اضافة نجوم للرتب الاعضاء لمنتديات الزين فورو الجيل الثانى

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

كود:

styles/default/xenforo/ranks/Blue.gif
ثم تضع بداخله النجمة اللى اسمها ده Blue.gif

وشكرا


شكرا أخي الكريم قمت بوضع النجمة داخل الفولد ولاكن لم أجد هذا الكود في قالب message_macros


https://a.top4top.net/p_1072ek3zb1.gif

Anis07 12-09-2018 04:47 AM

رد: نجوم العضوبات لاتظهر
 
اقتباس:

المشاركة الأصلية كتبت بواسطة ilyess (المشاركة 24281)
شكرا أخي الكريم قمت بوضع النجمة داخل الفولد ولاكن لم أجد هذا الكود في قالب message_macros


https://a.top4top.net/p_1072ek3zb1.gif

هات صورة للكود الموجود عندك من سطر 1 إلى 20

ilyess 12-09-2018 05:13 PM

رد: نجوم العضوبات لاتظهر
 
اقتباس:

المشاركة الأصلية كتبت بواسطة Anis07 (المشاركة 24282)
هات صورة للكود الموجود عندك من سطر 1 إلى 20

تفضل أخي و بارك الله فيك مسبقا

https://e.top4top.net/p_1073t2pzw0.jpg

هيلبرنت 12-09-2018 07:14 PM

رد: نجوم العضوبات لاتظهر
 
الصزره اللى اننت حاتطها وضحت لك مكان الكود وهو موجود امامك اهو فى سطر رقم 16 وينتهى عند السطر رقم 21

ilyess 12-09-2018 07:41 PM

رد: نجوم العضوبات لاتظهر
 
اقتباس:

المشاركة الأصلية كتبت بواسطة هيلبرنت (المشاركة 24292)
الصزره اللى اننت حاتطها وضحت لك مكان الكود وهو موجود امامك اهو فى سطر رقم 16 وينتهى عند السطر رقم 21

لم أراه لأني بحثت عليه أوتوماتيكيا ب control+f عندما وضعت الكود ظهر لي هذا المشكل ما الحل أخي العزيز ؟

https://e.top4top.net/p_107386ay91.png

هيلبرنت 12-09-2018 08:17 PM

رد: نجوم العضوبات لاتظهر
 
ضع القالب هنا بالكامل للتعديل عليه

لاتنسى وضع القالب فى كود نصى

ilyess 12-09-2018 08:41 PM

رد: نجوم العضوبات لاتظهر
 
كود:

<xf:macro name="user_info"
        arg-user="!"
        arg-fallbackName=""
        arg-dateHtml=""
        arg-linkHtml="">

        <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="$user" size="m" defaultname="{$fallbackName}" itemprop="image" />
                                <xf:if is="$xf.options.showMessageOnlineStatus && $user && $user.isOnline()">
                                        <span class="message-avatar-online" data-xf-init="tooltip" title="{{ phrase('online_now')|for_attr }}"></span>
                                </xf:if>
                        </div>
                </div>
                <div class="message-userDetails">
                        <h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" /></h4>
                        <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" />
                        <xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="jobTitle" />
                        <xf:if is="{$dateHtml}"><div class="message-date">{$dateHtml}</div></xf:if>
                </div>
                <xf:if is="{$linkHtml}"><div class="message-permalink">{$linkHtml}</div></xf:if>
                <xf:if is="$user.user_id">
                        <xf:set var="$extras" value="{{ 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.like_count">
                                                <dl class="pairs pairs--justified">
                                                        <dt>{{ phrase('likes') }}</dt>
                                                        <dd>{$user.like_count|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="$user" size="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="$attachments" value="$attachment" if="!$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>


هيلبرنت 12-09-2018 08:54 PM

رد: نجوم العضوبات لاتظهر
 
تفضل
كود:

<xf:macro name="user_info"
        arg-user="!"
        arg-fallbackName=""
        arg-dateHtml=""
        arg-linkHtml="">

        <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="$user" size="m" defaultname="{$fallbackName}" itemprop="image" />
                                <xf:if is="$xf.options.showMessageOnlineStatus && $user && $user.isOnline()">
                                        <span class="message-avatar-online" data-xf-init="tooltip" title="{{ phrase('online_now')|for_attr }}"></span>
                                </xf:if>
                        </div>
                </div>
                <div class="message-userDetails">
                        <h4 class="message-name"><xf:username user="$user" rich="true" defaultname="{$fallbackName}" itemprop="name" /></h4>
                        <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="jobTitle" />
                        <xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="jobTitle" />
                        <xf:if is="{$dateHtml}"><div class="message-date">{$dateHtml}</div></xf:if>
                </div>
                <!-- this adds the Rank Badge Count-->
                        <xf:if is="$user.message_count >= 3000">
                        <br>
                        <div class="rankBlock">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        </div>
                        <xf:elseif is ="$user.message_count >= 2000"/>
                        <br>
                        <div class="rankBlock">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        </div> 
                        <xf:elseif is ="$user.message_count >= 1000"/>
                        <br>
                        <div class="rankBlock">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif"></div>
                        <xf:elseif is ="$user.message_count >= 500"/>
                        <br>
                        <div class="rankBlock">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        </div> 
                        <xf:elseif is ="$user.message_count >= 250"/>
                        <br>
                        <div class="rankBlock">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        </div>
                        <xf:elseif is ="$user.message_count >= 100"/>
                        <br>
                        <div class="rankBlock">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        </div>
                        <xf:elseif is ="$user.message_count >= 50"/>
                        <br>
                        <div class="rankBlock"><img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        </div> 
                        <xf:elseif is ="$user.message_count >= 10"/>
                        <br>
                        <div class="rankBlock">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        <img src="styles/default/xenforo/ranks/Blue.gif">
                        </div>
                        <xf:elseif is ="$user.message_count >= 1"/>
                        <br>
                        <div class="rankBlock"><img src="styles/default/xenforo/ranks/Blue.gif"></div> 
                        </xf:if>
                    <!-- this adds the Rank Badge Count-->
                <xf:if is="{$linkHtml}"><div class="message-permalink">{$linkHtml}</div></xf:if>
                <xf:if is="$user.user_id">
                        <xf:set var="$extras" value="{{ 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.like_count">
                                                <dl class="pairs pairs--justified">
                                                        <dt>{{ phrase('likes') }}</dt>
                                                        <dd>{$user.like_count|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="$user" size="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="$attachments" value="$attachment" if="!$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>



الساعة الآن 04:47 AM

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