Neler yeni

Foruma hoş geldin 👋, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.

  • Forumdan daha fazla yararlanmak için, profilinizi telefon numaranız 📱 ile doğrulayın ve daha ayrıcalıklı olun 😉
    Daha fazla bilgi!

Nasıl yapılır ? v5- Ziyaretçilerin gece modu'nu kullanmasını nasıl sağlayabilirim?

Garfield

xFanatik
Aktif Lisans
SMS onaylı
Kullanıcı
Katılım
4 Nis 2020
Mesajlar
2,348
Çözümler
104
v5- Ziyaretçilerin gece modu'nu kullanmasını nasıl sağlayabilirim?

sadece üyeler temanın bu özelliğinden faydalanabiliyor, herkese açık nasıl yapabılırım?

 

Nasıl yapılır ? v5- Ziyaretçilerin gece modu'nu kullanmasını nasıl sağlayabilirim?

Yanıtı yanlış konuya vermişim :D

XgtSv5_adminbar isimli şablonu aç bul 1. satırda <xf:if is="$xf.visitor.user_id"> ve sil
Aynı sablonda en son satırda bul ve sil </xf:if>

PAGE_CONTAINER isimli şablonu aç ve bul;

HTML:
    <xf:if is="$xf.visitor.user_id">
        <xf:include template="XGTSv5_mod.js" />
    </xf:if>  
    <xf:if is="$xf.visitor.user_id">
        <xf:macro template="XGTSv5_mod.js" name="modlar" arg-modgece="gece" arg-modtamekran="tamekran" arg-modsidebar="sidebar" />
    </xf:if>

Ve değiştir;

HTML:
    <xf:include template="XGTSv5_mod.js" />
    <xf:macro template="XGTSv5_mod.js" name="modlar" arg-modgece="gece" arg-modtamekran="tamekran" arg-modsidebar="sidebar" />
Merhabalar,

Şablarda ara <div class="xgtModbar"> XgtSv5_adminbar şablonuna girin. Ardından ctrl+f ile aratın en başta ki <xf:if is="$xf.visitor.user_id"> ve en sondaki </xf:if> kodlarını silin ve deneyin.
 
Merhabalar,

Şablarda ara <div class="xgtModbar"> XgtSv5_adminbar şablonuna girin. Ardından ctrl+f ile aratın en başta ki <xf:if is="$xf.visitor.user_id"> ve en sondaki </xf:if> kodlarını silin ve deneyin.
Kod:
<xf:if is="$xf.visitor.user_id">
    <div class="xgtModbar">
    <xf:if contentcheck="true">
        <div class="hScroller" data-xf-init="h-scroller">
            <div class="hScroller-scroll">
                <xf:contentcheck>
                    <xf:if is="$xf.visitor.is_moderator && $xf.session.unapprovedCounts.total">
                        <a href="{{ link('approval-queue') }}" class="p-staffBar-link badgeContainer badgeContainer--highlighted" data-badge="{$xf.session.unapprovedCounts.total|number}">
                            {{ phrase('approval_queue') }}
                        </a>
                    </xf:if>
            
                    <xf:if is="$xf.visitor.is_moderator && !$xf.options.reportIntoForumId && $xf.session.reportCounts.total">
                        <a href="{{ link('reports') }}"
                            class="p-staffBar-link badgeContainer badgeContainer--visible {{ ($xf.session.reportCounts.total && ($xf.session.reportCounts.lastBuilt > $xf.session.reportLastRead) OR $xf.session.reportCounts.assigned) ? ' badgeContainer--highlighted' : '' }}"
                            data-badge="{{ $xf.session.reportCounts.assigned ? $xf.session.reportCounts.assigned|number . ' / ' . $xf.session.reportCounts.total|number : $xf.session.reportCounts.total|number }}"
                            title="{{ $xf.session.reportCounts.lastBuilt ? phrase('last_report_update:')|for_attr . ' ' . date_time($xf.session.reportCounts.lastBuilt) : '' }}">
                            {{ phrase('reports') }}
                        </a>
                    </xf:if>

                    <xf:if contentcheck="true">
                        <a class="p-staffBar-link menuTrigger" data-xf-click="menu" data-xf-key="alt+m" role="button" tabindex="0" aria-expanded="false" aria-haspopup="true">{{ phrase('moderator') }}</a>
                        <div class="menu" data-menu="menu" aria-hidden="true">
                            <div class="menu-content">
                                <h4 class="menu-header">{{ phrase('moderator_tools') }}</h4>
                                <xf:contentcheck>
                                <!--[XF:mod_tools_menu:top]-->
                                <xf:if is="$xf.visitor.is_moderator">
                                    <a href="{{ link('approval-queue') }}" class="menu-linkRow">{{ phrase('approval_queue') }}</a>
                                </xf:if>
                                <xf:if is="$xf.visitor.is_moderator && !$xf.options.reportIntoForumId">
                                    <a href="{{ link('reports') }}" class="menu-linkRow" title="{{ $xf.session.reportCounts.lastBuilt ? phrase('last_report_update:')|for_attr . ' ' . date_time($xf.session.reportCounts.lastBuilt) : '' }}">{{ phrase('reports') }}</a>
                                </xf:if>
                                <!--[XF:mod_tools_menu:bottom]-->
                                </xf:contentcheck>
                            </div>
                        </div>
                    </xf:if>
                    <xf:if is="$xf.visitor.is_admin">
                        <a href="{{ base_url('admin.php') }}" class="p-staffBar-link" target="_blank">{{ phrase('admin') }}</a>
                    </xf:if>
                </xf:contentcheck>
            </div>
        </div>       
    </xf:if>
    <div class="SagKenar">   
        <xf:if is="$xf.options.xgtTema5_sistem_opsiyonlari">
            <xf:if is="{{ property('XgtSv5_sidebar_kapat') }}">
                <button type="button" class="xgt-SideBarKapat" id="sidebar-kapat" data-xf-init="tooltip" title="{{ phrase ('XgtSv5_sidebar_kapat') }}"> </button>
            </xf:if>   
            <xf:if is="{{ property('XgtSv5_tamekran_mod') }}">   
                <button type="button" class="xgt-TamEkran" id="tam-ekran" data-xf-init="tooltip" title="{{ phrase ('XgtSv5_tam_ekran') }}"></button>   
            </xf:if>
            <xf:if is="{{ property('XgtSv5_gece_gunduzmod') }}">
            <button type="button" class="xgt-GeceGunduz" id="gece-modu" data-xf-init="tooltip" title="{{ phrase ('XgtSv5_gece_gundu_sec') }}"></button>
            </xf:if>
        </xf:if>
    </div>
</div>
</xf:if>

sılınce hata veerıyor sankı hocam birde neyı tam olarak sılecegım anlamadım :/
 
Kod:
<xf:if is="$xf.visitor.user_id">
    <div class="xgtModbar">
    <xf:if contentcheck="true">
        <div class="hScroller" data-xf-init="h-scroller">
            <div class="hScroller-scroll">
                <xf:contentcheck>
                    <xf:if is="$xf.visitor.is_moderator && $xf.session.unapprovedCounts.total">
                        <a href="{{ link('approval-queue') }}" class="p-staffBar-link badgeContainer badgeContainer--highlighted" data-badge="{$xf.session.unapprovedCounts.total|number}">
                            {{ phrase('approval_queue') }}
                        </a>
                    </xf:if>
           
                    <xf:if is="$xf.visitor.is_moderator && !$xf.options.reportIntoForumId && $xf.session.reportCounts.total">
                        <a href="{{ link('reports') }}"
                            class="p-staffBar-link badgeContainer badgeContainer--visible {{ ($xf.session.reportCounts.total && ($xf.session.reportCounts.lastBuilt > $xf.session.reportLastRead) OR $xf.session.reportCounts.assigned) ? ' badgeContainer--highlighted' : '' }}"
                            data-badge="{{ $xf.session.reportCounts.assigned ? $xf.session.reportCounts.assigned|number . ' / ' . $xf.session.reportCounts.total|number : $xf.session.reportCounts.total|number }}"
                            title="{{ $xf.session.reportCounts.lastBuilt ? phrase('last_report_update:')|for_attr . ' ' . date_time($xf.session.reportCounts.lastBuilt) : '' }}">
                            {{ phrase('reports') }}
                        </a>
                    </xf:if>

                    <xf:if contentcheck="true">
                        <a class="p-staffBar-link menuTrigger" data-xf-click="menu" data-xf-key="alt+m" role="button" tabindex="0" aria-expanded="false" aria-haspopup="true">{{ phrase('moderator') }}</a>
                        <div class="menu" data-menu="menu" aria-hidden="true">
                            <div class="menu-content">
                                <h4 class="menu-header">{{ phrase('moderator_tools') }}</h4>
                                <xf:contentcheck>
                                <!--[XF:mod_tools_menu:top]-->
                                <xf:if is="$xf.visitor.is_moderator">
                                    <a href="{{ link('approval-queue') }}" class="menu-linkRow">{{ phrase('approval_queue') }}</a>
                                </xf:if>
                                <xf:if is="$xf.visitor.is_moderator && !$xf.options.reportIntoForumId">
                                    <a href="{{ link('reports') }}" class="menu-linkRow" title="{{ $xf.session.reportCounts.lastBuilt ? phrase('last_report_update:')|for_attr . ' ' . date_time($xf.session.reportCounts.lastBuilt) : '' }}">{{ phrase('reports') }}</a>
                                </xf:if>
                                <!--[XF:mod_tools_menu:bottom]-->
                                </xf:contentcheck>
                            </div>
                        </div>
                    </xf:if>
                    <xf:if is="$xf.visitor.is_admin">
                        <a href="{{ base_url('admin.php') }}" class="p-staffBar-link" target="_blank">{{ phrase('admin') }}</a>
                    </xf:if>
                </xf:contentcheck>
            </div>
        </div>      
    </xf:if>
    <div class="SagKenar">  
        <xf:if is="$xf.options.xgtTema5_sistem_opsiyonlari">
            <xf:if is="{{ property('XgtSv5_sidebar_kapat') }}">
                <button type="button" class="xgt-SideBarKapat" id="sidebar-kapat" data-xf-init="tooltip" title="{{ phrase ('XgtSv5_sidebar_kapat') }}"> </button>
            </xf:if>  
            <xf:if is="{{ property('XgtSv5_tamekran_mod') }}">  
                <button type="button" class="xgt-TamEkran" id="tam-ekran" data-xf-init="tooltip" title="{{ phrase ('XgtSv5_tam_ekran') }}"></button>  
            </xf:if>
            <xf:if is="{{ property('XgtSv5_gece_gunduzmod') }}">
            <button type="button" class="xgt-GeceGunduz" id="gece-modu" data-xf-init="tooltip" title="{{ phrase ('XgtSv5_gece_gundu_sec') }}"></button>
            </xf:if>
        </xf:if>
    </div>
</div>
</xf:if>

sılınce hata veerıyor sankı hocam birde neyı tam olarak sılecegım anlamadım :/
en baştaki <xf:if is="$xf.visitor.user_id"> ve en alttaki </xf:if> şeklinde silerseniz hata vermez. Denedim. :)
 
Yanıtı yanlış konuya vermişim :D

XgtSv5_adminbar isimli şablonu aç bul 1. satırda <xf:if is="$xf.visitor.user_id"> ve sil
Aynı sablonda en son satırda bul ve sil </xf:if>

PAGE_CONTAINER isimli şablonu aç ve bul;

HTML:
    <xf:if is="$xf.visitor.user_id">
        <xf:include template="XGTSv5_mod.js" />
    </xf:if>  
    <xf:if is="$xf.visitor.user_id">
        <xf:macro template="XGTSv5_mod.js" name="modlar" arg-modgece="gece" arg-modtamekran="tamekran" arg-modsidebar="sidebar" />
    </xf:if>

Ve değiştir;

HTML:
    <xf:include template="XGTSv5_mod.js" />
    <xf:macro template="XGTSv5_mod.js" name="modlar" arg-modgece="gece" arg-modtamekran="tamekran" arg-modsidebar="sidebar" />
 
Çözüm

Foruma hoş geldin 👋, Ziyaretçi

Forum içeriğine ve tüm hizmetlerimize erişim sağlamak için foruma kayıt olmalı ya da giriş yapmalısınız. Foruma üye olmak tamamen ücretsizdir.