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

[ تم الحل ] نرجو منكم معرفه تلك الخطاErrorException: Template error

الحالة
مغلق و غير مفتوح للمزيد من الردود.

ابومازن

:: الأعضاء ::
25 يونيو 2021
184
1
56
28
  • ErrorException: Template error: [E_USER_WARNING] Cannot call method isOnline on a non-object (NULL)
  • src/XF/Template/Templater.php:1179
  • أنشأت بواسطة: حساب غير معروف
  • 04-08-2023 في 3:13 مساءاً

Stack trace​

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/masrysat/...', 1179, Array)
#1 src/XF/Template/Templater.php(1179): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l3/s27/public/message_macros.php(211): XF\Template\Templater->method(NULL, 'isOnline', Array)
#3 src/XF/Template/Templater.php(827): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#4 internal_data/code_cache/templates/l3/s27/public/post_macros.php(25): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#5 src/XF/Template/Templater.php(990): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Templater.php(926): XF\Template\Templater->renderExtensionInternal('user_cell', Array, Array, Object(XF\Template\ExtensionSet))
#7 internal_data/code_cache/templates/l3/s27/public/post_macros.php(148): XF\Template\Templater->renderExtension('user_cell', Array, Object(XF\Template\ExtensionSet))
#8 src/XF/Template/Templater.php(990): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#9 src/XF/Template/Templater.php(926): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#10 internal_data/code_cache/templates/l3/s27/public/post_macros.php(192): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#11 src/XF/Template/Templater.php(827): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#12 internal_data/code_cache/templates/l3/s27/public/thread_view.php(810): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#13 src/XF/Template/Templater.php(1654): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#14 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#15 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#16 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#17 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#18 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#19 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#20 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#21 src/XF.php(524): XF\App->run()
#22 index.php(20): XF::runApp('XF\\Pub\\App')
#23 {main}

Request state​

array(4) {
["url"] => string(16) "/vb/threads/109/"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
https://masrysat.com/vb/admin.php?logs/server-errors/6/delete
 
HTML:
<xf:macro name="user_info"

    arg-user="!"

    arg-fallbackName=""

    arg-includeMicrodata="{{ true }}"

    arg-itemProp="">


    <section class="message-user"

        {{ $includeMicrodata ? 'itemprop="' . $itemProp . '" itemscope itemtype="Person - Schema.org Type" itemid="' . ($user ? link('canonical:members', $user) : '') . '"' : '' }}>


        <xf:if is="$includeMicrodata && $user">

            <meta itemprop="url" content="{{ link('canonical:members', $user) }}" />

        </xf:if>


        <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="{{ $includeMicrodata ? '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="$user" rich="true" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? 'name' : '' }}" /></h4>

            <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />

            <xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />

        </div>

        <xf:if is="$xf.options.urs_act == 1">

    <xf:if is="property('urs_style') == 1">

        <xf:include template="urs_stars_template" />

    </xf:if>

</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.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_display('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>

<xf:if is="$user.isOnline()">

    <div class="message-threadStarter"><span class="message-threadStarter--indicator">متصل</span></div>

<xf:else />

     <div class="message-threadStarter"><span class="message-threadStarter--indicatorOff">غير متصل</span></div>

</xf:if>       

        <span class="message-userArrow"></span>

    </section>

</xf:macro>


<xf:macro name="user_info_simple" arg-user="!" arg-fallbackName="" arg-includeMicrodata="{{ true }}" arg-itemProp="">

    <header class="message-user"

        {{ $includeMicrodata ? 'itemprop="' . $itemProp . '" itemscope itemtype="Person - Schema.org Type" itemid="' . ($user ? link('canonical:members', $user) : '') . '"' : '' }}>


        <xf:if is="$includeMicrodata">

            <meta itemprop="name" content="{{ $user.username ?: $fallbackName }}" />

            <xf:if is="$user">

                <meta itemprop="url" content="{{ link('canonical:members', $user) }}" />

            </xf:if>

        </xf:if>


        <div class="message-avatar">

            <div class="message-avatar-wrapper">

                <xf:avatar user="$user" size="s" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? '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>

            <xf:contentcheck>

            <xf:if contentcheck="true">

            <ul class="attachmentList">

                <xf:contentcheck>

                    <xf:foreach loop="$attachments" value="$attachment" if="!$message.isAttachmentEmbedded($attachment) AND $attachment.has_thumbnail">

                        <xf:macro template="attachment_macros" name="attachment_list_item"

                            arg-attachment="{$attachment}"

                            arg-canView="{$canView}" />

                    </xf:foreach>

                </xf:contentcheck>

            </ul>

            </xf:if>

          

            <xf:if contentcheck="true">

            <ul class="attachmentList attachmentListCustom">

                <xf:contentcheck>

                    <xf:foreach loop="$attachments" value="$attachment" if="!$message.isAttachmentEmbedded($attachment) AND !$attachment.has_thumbnail">

                        <xf:macro template="attachment_macros" name="attachment_list_item"

                            arg-attachment="{$attachment}"

                            arg-canView="{$canView}" />

                    </xf:foreach>

                </xf:contentcheck>

            </ul>

            </xf:if>

          

            </xf:contentcheck>

        </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">

             <div class="Sign-Block">

                 <h6><i class="fa fa-pencil" style="color: rgb(150, 150, 150);font-size: 20px;"></i> توقيع : <b>

                     <span style="color:#FF2BDF"><b>

                         <xf:username user="$user" /></b></span></b>

                </h6>

                <aside class="Sign-Content">

                     <xf:contentcheck>

                         {{ bb_code($user.Profile.signature, 'user:signature', $user) }}

                        </xf:contentcheck>

                </aside>


            </div>

        </xf:if>

    </xf:if>

</xf:macro>
 
التعديل الأخير بواسطة المشرف:
العفو منك اخوي @ابومازن هذا واجبنا

طيب جرب كذا الكود فقط للتجربة وشوف هل اختفى الخطأ ام ﻻ

HTML:
<xf:macro name="user_info"

    arg-user="!"

    arg-fallbackName=""

    arg-includeMicrodata="{{ true }}"

    arg-itemProp="">


    <section class="message-user"

        {{ $includeMicrodata ? 'itemprop="' . $itemProp . '" itemscope itemtype="Person - Schema.org Type" itemid="' . ($user ? link('canonical:members', $user) : '') . '"' : '' }}>


        <xf:if is="$includeMicrodata && $user">

            <meta itemprop="url" content="{{ link('canonical:members', $user) }}" />

        </xf:if>


        <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="{{ $includeMicrodata ? '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="$user" rich="true" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? 'name' : '' }}" /></h4>

            <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />

            <xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />

        </div>

        <xf:if is="$xf.options.urs_act == 1">

    <xf:if is="property('urs_style') == 1">

        <xf:include template="urs_stars_template" />

    </xf:if>

</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.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_display('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>

<xf:if is="$user">
    <xf:if is="$user.isOnline()">

    <div class="message-threadStarter"><span class="message-threadStarter--indicator">متصل</span></div>

<xf:else />

     <div class="message-threadStarter"><span class="message-threadStarter--indicatorOff">غير متصل</span></div>

</xf:if> 
</xf:if>     

        <span class="message-userArrow"></span>

    </section>

</xf:macro>


<xf:macro name="user_info_simple" arg-user="!" arg-fallbackName="" arg-includeMicrodata="{{ true }}" arg-itemProp="">

    <header class="message-user"

        {{ $includeMicrodata ? 'itemprop="' . $itemProp . '" itemscope itemtype="Person - Schema.org Type" itemid="' . ($user ? link('canonical:members', $user) : '') . '"' : '' }}>


        <xf:if is="$includeMicrodata">

            <meta itemprop="name" content="{{ $user.username ?: $fallbackName }}" />

            <xf:if is="$user">

                <meta itemprop="url" content="{{ link('canonical:members', $user) }}" />

            </xf:if>

        </xf:if>


        <div class="message-avatar">

            <div class="message-avatar-wrapper">

                <xf:avatar user="$user" size="s" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? '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>

            <xf:contentcheck>

            <xf:if contentcheck="true">

            <ul class="attachmentList">

                <xf:contentcheck>

                    <xf:foreach loop="$attachments" value="$attachment" if="!$message.isAttachmentEmbedded($attachment) AND $attachment.has_thumbnail">

                        <xf:macro template="attachment_macros" name="attachment_list_item"

                            arg-attachment="{$attachment}"

                            arg-canView="{$canView}" />

                    </xf:foreach>

                </xf:contentcheck>

            </ul>

            </xf:if>

          

            <xf:if contentcheck="true">

            <ul class="attachmentList attachmentListCustom">

                <xf:contentcheck>

                    <xf:foreach loop="$attachments" value="$attachment" if="!$message.isAttachmentEmbedded($attachment) AND !$attachment.has_thumbnail">

                        <xf:macro template="attachment_macros" name="attachment_list_item"

                            arg-attachment="{$attachment}"

                            arg-canView="{$canView}" />

                    </xf:foreach>

                </xf:contentcheck>

            </ul>

            </xf:if>

          

            </xf:contentcheck>

        </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">

             <div class="Sign-Block">

                 <h6><i class="fa fa-pencil" style="color: rgb(150, 150, 150);font-size: 20px;"></i> توقيع : <b>

                     <span style="color:#FF2BDF"><b>

                         <xf:username user="$user" /></b></span></b>

                </h6>

                <aside class="Sign-Content">

                     <xf:contentcheck>

                         {{ bb_code($user.Profile.signature, 'user:signature', $user) }}

                        </xf:contentcheck>

                </aside>


            </div>

        </xf:if>

    </xf:if>

</xf:macro>
 
العفو منك اخوي @ابومازن هذا واجبنا

طيب جرب كذا الكود فقط للتجربة وشوف هل اختفى الخطأ ام ﻻ

HTML:
<xf:macro name="user_info"

    arg-user="!"

    arg-fallbackName=""

    arg-includeMicrodata="{{ true }}"

    arg-itemProp="">


    <section class="message-user"

        {{ $includeMicrodata ? 'itemprop="' . $itemProp . '" itemscope itemtype="Person - Schema.org Type" itemid="' . ($user ? link('canonical:members', $user) : '') . '"' : '' }}>


        <xf:if is="$includeMicrodata && $user">

            <meta itemprop="url" content="{{ link('canonical:members', $user) }}" />

        </xf:if>


        <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="{{ $includeMicrodata ? '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="$user" rich="true" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? 'name' : '' }}" /></h4>

            <xf:usertitle user="$user" tag="h5" class="message-userTitle" banner="true" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />

            <xf:userbanners user="$user" tag="div" class="message-userBanner" itemprop="{{ $includeMicrodata ? 'jobTitle' : '' }}" />

        </div>

        <xf:if is="$xf.options.urs_act == 1">

    <xf:if is="property('urs_style') == 1">

        <xf:include template="urs_stars_template" />

    </xf:if>

</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.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_display('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>

<xf:if is="$user">
    <xf:if is="$user.isOnline()">

    <div class="message-threadStarter"><span class="message-threadStarter--indicator">متصل</span></div>

<xf:else />

     <div class="message-threadStarter"><span class="message-threadStarter--indicatorOff">غير متصل</span></div>

</xf:if>
</xf:if>    

        <span class="message-userArrow"></span>

    </section>

</xf:macro>


<xf:macro name="user_info_simple" arg-user="!" arg-fallbackName="" arg-includeMicrodata="{{ true }}" arg-itemProp="">

    <header class="message-user"

        {{ $includeMicrodata ? 'itemprop="' . $itemProp . '" itemscope itemtype="Person - Schema.org Type" itemid="' . ($user ? link('canonical:members', $user) : '') . '"' : '' }}>


        <xf:if is="$includeMicrodata">

            <meta itemprop="name" content="{{ $user.username ?: $fallbackName }}" />

            <xf:if is="$user">

                <meta itemprop="url" content="{{ link('canonical:members', $user) }}" />

            </xf:if>

        </xf:if>


        <div class="message-avatar">

            <div class="message-avatar-wrapper">

                <xf:avatar user="$user" size="s" defaultname="{$fallbackName}" itemprop="{{ $includeMicrodata ? '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>

            <xf:contentcheck>

            <xf:if contentcheck="true">

            <ul class="attachmentList">

                <xf:contentcheck>

                    <xf:foreach loop="$attachments" value="$attachment" if="!$message.isAttachmentEmbedded($attachment) AND $attachment.has_thumbnail">

                        <xf:macro template="attachment_macros" name="attachment_list_item"

                            arg-attachment="{$attachment}"

                            arg-canView="{$canView}" />

                    </xf:foreach>

                </xf:contentcheck>

            </ul>

            </xf:if>

         

            <xf:if contentcheck="true">

            <ul class="attachmentList attachmentListCustom">

                <xf:contentcheck>

                    <xf:foreach loop="$attachments" value="$attachment" if="!$message.isAttachmentEmbedded($attachment) AND !$attachment.has_thumbnail">

                        <xf:macro template="attachment_macros" name="attachment_list_item"

                            arg-attachment="{$attachment}"

                            arg-canView="{$canView}" />

                    </xf:foreach>

                </xf:contentcheck>

            </ul>

            </xf:if>

         

            </xf:contentcheck>

        </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">

             <div class="Sign-Block">

                 <h6><i class="fa fa-pencil" style="color: rgb(150, 150, 150);font-size: 20px;"></i> توقيع : <b>

                     <span style="color:#FF2BDF"><b>

                         <xf:username user="$user" /></b></span></b>

                </h6>

                <aside class="Sign-Content">

                     <xf:contentcheck>

                         {{ bb_code($user.Profile.signature, 'user:signature', $user) }}

                        </xf:contentcheck>

                </aside>


            </div>

        </xf:if>

    </xf:if>

</xf:macro>
جارى التجربه والرد اخى وتسلم
 
الحالة
مغلق و غير مفتوح للمزيد من الردود.

إحصائيات المنتدى

المواضيع
1,564
المشاركات
17,674
الأعضاء
1,120
آخر عضو مسجل
codemaster
أعلى