عرض مشاركة واحدة
احصائياتى

الردود
4

المشاهدات
1737
abo-karim
.:: Administrator ::.
  • abo-karim has much to be proud ofabo-karim has much to be proud ofabo-karim has much to be proud ofabo-karim has much to be proud ofabo-karim has much to be proud ofabo-karim has much to be proud ofabo-karim has much to be proud ofabo-karim has much to be proud of

  • abo-karim غير متواجد حالياً

المشاركات
4,227

+التقييم
20

تاريخ التسجيل
Jun 2015

الاقامة
ام الدنيــ EGYPT ــا

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

رقم العضوية
1
10-23-2017, 10:20 PM
المشاركة 1
10-23-2017, 10:20 PM
المشاركة 1
افتراضي اضافة زر اضف رد اعلى الموضوع يظهر فقط للاعضاء لحل مشكلة خطأ 403
السلام عليكم ورحمه الله وبركاته
فى السابق قمت بشرح طريقة اضافة زر اعلى الموضوع وكان لا يظهر الا للاعضاء فقط وستجدوه على هذا الرابط طريقة اضافة زر اضف رد اعلى الموضوع كما بمنتديات الـ vb ومشاء الله كان يعمل تمام جدا لا يوجد به اى مشاكل اطلاقا.
لكن عندما قمت بطرح استايلى الاول للزين فورو قمت باضافة بعض التعديلات وهى ان زر ااضافة الرد يتغير بتغير الحالة بمعنى انك عندما تغلق الموضوع يتحول من اضافة رد الى غلق وحتى تكون واصله ليك شاهد الموضوع من هنا استايل هيلبرنت للزين فورو الاصدار الاول برعاية معهد هيلبرنت طبعا استخدمت فكره اسكريبت الفى بى وللمعلومية هذا الزر كان اضافة رد او غلق يظهرو جميعا للاعضاء والزوار ايضا وبمرور الوقت تفضل اخونا رحلات تايلاند بطرح مشكلته حول ان جوجل الم يستطيع الوصول الى هذه الروابط شاهد الموضوع هنا ختى تدارك ما قام به جوجل مشكلة فى أضافة زر اضف رد اعلى الموضوع للزورا ومحركات البحث ! واليكم صوره توضيحية ايضا


طبعا لم اسكت فحاول كثيرا لاصلاح هذا الخطاء رغم عدم اقتناعى بما قام به جوجل لاننى كما قلت لكم تلك الازار تظهر للزوار فى الــ vbulletin المهم وحتى لا اطول عليكم توصلت الى حل انشاء الله يصلح معكم
الخطوات:
1- قم بتسجيل دخول الى لوحة تحكم المنتدى >>> المظهر >>> البحث فى القوالب >>> ابحث عن قالب اسمه thread_view بداخل ابحث عن هذا الكود.
كود:
<xen:set var="$threadStatusHtml">
    <xen:if hascontent="true">
        <dl class="threadAlerts secondaryContent">
            <dt>{xen:phrase thread_status}:</dt>
            <xen:contentcheck>
                <xen:if is="{$thread.discussion_state} == 'deleted'">
                    <dd class="deletedAlert">
                        <span class="icon Tooltip" title="{xen:phrase deleted}" data-tipclass="iconTip"><i class="fa fa-trash-o"></i></span>
                            {xen:phrase removed_from_public_view}</dd>
                <xen:elseif is="{$thread.discussion_state} == 'moderated'" />
                    <dd class="moderatedAlert">
                        <span class="icon Tooltip" title="{xen:phrase awaiting_moderation}" data-tipclass="iconTip"><i class="fa fa-shield"></i></span>
                            {xen:phrase awaiting_moderation_before_being_displayed_publicly}</dd>
                </xen:if>
            </xen:contentcheck>
            </xen:if>
        </dl>
</xen:set>
ضع اسفله مباشرة هذا الكود
كود:
<div class="poststatboxtres">
<xen:if is="!{$thread.discussion_open}">
<span class="buttonclosed">{xen:phrase not_open_for_further_replies}</span>
<xen:else />
<xen:if is="{$canReply}">
<span class="btn_status">
<a href="{xen:link threads/reply, $thread}" data-postUrl="{xen:link posts/quote, $post}" class="button addreplyv4" title="Reply to this message"><span></span> اضف رد </a>
</span></xen:if>
</xen:if>
 <div class="poststatus">        
<span class="fa fa-eye forumhomestatIcon"></span> <span>{xen:phrase views} </span><span>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.view_count}}</span>   |  
<span class="fa fa-comments-o forumhomestatIcon"></span> <span>{xen:phrase replies} </span> <span>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.reply_count}}</span>   |  
<span class="fa fa-sitemap forumhomestatIcon"></span> مشاركة عبر : <a rel="nofollow" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + document.URL ,'facebook-share-dialog','width=626,height=436'); return false;" class="SocilContact simptip-position-top simptip-smooth" data-tooltip="انشر الموضوع على Facebook">
<span style="font-size:18px; color:#00346F;cursor: pointer;" class="fa fa-facebook-square"></span></a>
<a rel="nofollow" onclick="window.open('http://twitter.com/share?url=' + document.URL ,'twitter-share-dialog','width=626,height=436'); return false;" class="SocilContact simptip-position-top simptip-smooth" data-tooltip="انشر الموضوع على Twitter">
<span style="font-size:18px; color:#00BFFF;cursor: pointer;" class="fa fa-twitter-square"></span></a>
</div> 
</div>
2-من لوحة تحكم المنتدى >>> المظهر >>> البحث فى القوالب >>> ابحث عن قالب اسمه EXTRA.css قم بوضع الكود التالى به
كود:
.poststatboxtres {
    background-color: #FEFEFE;
    color: #6A6A6A;
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    padding:8px;
    margin:0px 0px 0px 0px;
    font-family: Droid Arabic Kufi,Tahoma;
    font-size: 12px;
    font-weight: bold;
    min-height: 30px;
}
.poststatus {
    float:right;
    font-family: Droid Arabic Kufi,Tahoma;
    font-size: 12px;
    font-weight: normal;
    line-height: 30px;
}

.forumhomestatIcon {
    color: #4e81a4;
    font-size: 15px !important;
    text-align: center;
}
التعديل للذين قامو بتركيب استايل هيلبرنت للزين فورو الاصدار الاول
1- قم بتسجيل دخول الى لوحة تحكم المنتدى >>> المظهر >>> البحث فى القوالب >>> ابحث عن قالب اسمه thread_view بداخل ابحث عن هذا الكود.
كود:
<div class="poststatboxtres">
<xen:if is="!{$thread.discussion_open}">
<span class="buttonclosed">{xen:phrase not_open_for_further_replies}</span>
<xen:else />
<span class="btn_status">
<a href="{xen:link threads/reply, $thread}" data-postUrl="{xen:link posts/quote, $post}" class="button addreplyv4" title="Reply to this message"><span></span> اضف رد </a>
</span>
</xen:if>
 <div class="poststatus">        
<span class="fa fa-eye forumhomestatIcon"></span> <span>{xen:phrase views} </span><span>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.view_count}}</span>   |  
<span class="fa fa-comments-o forumhomestatIcon"></span> <span>{xen:phrase replies} </span> <span>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.reply_count}}</span>   |  
<span class="fa fa-sitemap forumhomestatIcon"></span> مشاركة عبر : <a rel="nofollow" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + document.URL ,'facebook-share-dialog','width=626,height=436'); return false;" class="SocilContact simptip-position-top simptip-smooth" data-tooltip="انشر الموضوع على Facebook">
<span style="font-size:18px; color:#00346F;cursor: pointer;" class="fa fa-facebook-square"></span></a>
<a rel="nofollow" onclick="window.open('http://twitter.com/share?url=' + document.URL ,'twitter-share-dialog','width=626,height=436'); return false;" class="SocilContact simptip-position-top simptip-smooth" data-tooltip="انشر الموضوع على Twitter">
<span style="font-size:18px; color:#00BFFF;cursor: pointer;" class="fa fa-twitter-square"></span></a>
</div> 
</div>
2- قم الان بستبداله بهذا الكود
كود:
<div class="poststatboxtres">
<xen:if is="!{$thread.discussion_open}">
<span class="buttonclosed">{xen:phrase not_open_for_further_replies}</span>
<xen:else />
<xen:if is="{$canReply}">
<span class="btn_status">
<a href="{xen:link threads/reply, $thread}" data-postUrl="{xen:link posts/quote, $post}" class="button addreplyv4" title="Reply to this message"><span></span> اضف رد </a>
</span></xen:if>
</xen:if>
 <div class="poststatus">        
<span class="fa fa-eye forumhomestatIcon"></span> <span>{xen:phrase views} </span><span>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.view_count}}</span>   |  
<span class="fa fa-comments-o forumhomestatIcon"></span> <span>{xen:phrase replies} </span> <span>{xen:if $thread.isRedirect, '&ndash;', {xen:number $thread.reply_count}}</span>   |  
<span class="fa fa-sitemap forumhomestatIcon"></span> مشاركة عبر : <a rel="nofollow" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=' + document.URL ,'facebook-share-dialog','width=626,height=436'); return false;" class="SocilContact simptip-position-top simptip-smooth" data-tooltip="انشر الموضوع على Facebook">
<span style="font-size:18px; color:#00346F;cursor: pointer;" class="fa fa-facebook-square"></span></a>
<a rel="nofollow" onclick="window.open('http://twitter.com/share?url=' + document.URL ,'twitter-share-dialog','width=626,height=436'); return false;" class="SocilContact simptip-position-top simptip-smooth" data-tooltip="انشر الموضوع على Twitter">
<span style="font-size:18px; color:#00BFFF;cursor: pointer;" class="fa fa-twitter-square"></span></a>
</div> 
</div>
3- من لوحة تحكم المنتدى >>> المظهر >>> البحث فى القوالب >>> ابحث عن قالب اسمه EXTRA.css بداخل ابحث عن هذا الكود.
كود:
.poststatboxtres {
    background-color: #FEFEFE;
    color: #6A6A6A;
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    padding:8px;
    margin:0px 0px 0px 0px;
    font-family: Droid Arabic Kufi,Tahoma;
    font-size: 12px;
    font-weight: bold;
}
4- قم الان بستبداله بهذا الكود
كود:
.poststatboxtres {
    background-color: #FEFEFE;
    color: #6A6A6A;
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    padding:8px;
    margin:0px 0px 0px 0px;
    font-family: Droid Arabic Kufi,Tahoma;
    font-size: 12px;
    font-weight: bold;
    min-height: 30px;
}
النتيجة
  • فى حال كنت زائر

لن يظهر زر اضف رد وعليه سيسمح لجوجل المرور


  • فى حال كنت مسجل دخول (عضو)

سيظهر الزر عادى


  • فى حال كنت زائر او عضو

سيظهر زر اغلاق الموضوع للجميع



فى النهاية الموضوع كله اجتهاد شخصى لذى يحتمل الصواب والخطاء