Lỗi không hiển thị profile post, thống kê, tài nguyên mới

Leakd

Private
Tham gia
05/05/2017
Bài viết
14
Được Like
7
Không hiểu mình chỉnh sửa như thế nào mà bây giờ mất luôn cái profile post, new resources, với cái statistic của diễn đàn luôn, nếu như là khách thì có thể nhìn được nhưng khi đăng nhập vào thì mất hêt

mọi người biết thì giúp mình cái
website : mineleakage.org
 

nghienvt

Gefreiter
Tham gia
01/01/2017
Bài viết
65
Được Like
65
Nếu bạn có sử dụng add-on Widget Framwork thì hãy cẩn thận với cái widget có tên là "Clear Sidebar" trong danh sách, đặt nó ở đâu thì các widget trước nó sẽ bị ẩn đi. Hãy click để tạm thời vô hiệu hóa các Widgets có tên "Clear Sidebar" trong danh sách để kiểm tra lại xem sao :)

Nếu bạn không sử dụng add-on Widget Framwork, thì thử vào ACP > "Template Modifications" để xem coi có template nào có chữ sidebar bị chỉnh sửa hay không, tạm thời copy nội dung hiện có của nó, bỏ vào notepad hay đâu đó, xong restore lại template đó, kiểm tra lại có phải do bị chỉnh sửa mà ra lỗi hay không.

Đôi khi, mình đặt một số thứ bắt buộc phải ẩn đi trong Extra.css, nhưng nó lại kéo theo những thứ khác cũng bị ẩn theo, đôi lúc làm mình phát điên khi không hiểu lý do vì sao mà một điều gì đó không hiển thị ra trang web. Vậy bạn hãy kiểm tra lại Extra.css bằng cách copy nội dung, xóa hết, save lại, ra trang web refresh coi có phải từ Extra.css hay không, nếu không phải thì vào dán nội dung đã copy trở lại.
 

Leakd

Private
Tham gia
05/05/2017
Bài viết
14
Được Like
7
Widget framework...nah chưa nghe thấy bao giờ...
Đã kiểm tra và xoá nhưng k được
Mình chỉ gặp lỗi này khi dùng style material còn lại vẫn nhìn thấy được.
 

nghienvt

Gefreiter
Tham gia
01/01/2017
Bài viết
65
Được Like
65
Bạn vào thử ACP > Style > Style Propreties > chọn tên style gây ra lỗi...

Ở Style Properties này có khá nhiều thứ liên quan tới style này, nhất là các style được cài thêm thường có thêm một option cho style của chúng trong này. Đa số các style cài thêm hay đi kèm CSS để ẩn hoặc hiện các thành tố của mặc định để đề cao vẻ ngoài đầy đủ hay đơn giản của nó, thành ra nhiều khi không chỉnh trong template, mà chúng đưa luôn "display: none" vào css của style, làm mình cũng mệt xỉu với việc tìm ra lý do bị mất một thành phần nào đó khi đổi style.

Cách khác thì bạn mở hai tab trên trình duyệt, vào cùng lúc forum_list của cả 2 style để bắt đầu so sánh "forum_list" và "sidebar.css", nếu style Material của bạn thiếu một block, ví dụ: profile post:

Mã:
<xen:if is="{$profilePosts}">
            <div class="section profilePostList">
                <div class="secondaryContent">
                    <h3><a href="{xen:link find-new/profile-posts}" target="_blank">{xen:phrase new_profile_posts}</a></h3>
                    <xen:include template="sidebar_profile_post_list" />
                </div>
            </div>
        </xen:if>

...thì bạn copy từ bên hoạt động bỏ qua cho bên bị thiếu, rồi save & refresh lại xem sao.
 

Leakd

Private
Tham gia
05/05/2017
Bài viết
14
Được Like
7
nhìn qua mình có thấy vài cái display : none nhưng chưa biết chỉnh như thế nào cả
Mã:
/* sidebar structural elements */

.mainContainer
{
    float: left;
    margin-right: -{xen:calc 'intval(@sidebar.width) + 10'}px;
    width: 100%;
}

   .mainContent
   {
       margin-right: {xen:calc 'intval(@sidebar.width) + 10'}px;
   }

   <xen:if is="(((@uix_offCanvasSidebarRight == 4) OR (@uix_offCanvasSidebarLeft == 4)))">
       .mainContent {
           margin-left: 0 !important;
           margin-right: 0 !important;
       }
   </xen:if>


   html .mainContainer_noSidebar .mainContent {
       margin-left: 0;
       margin-right: 0;
   }

   .mainContent.withTransition {
       -ms-transition: margin 0.4s ease-out;
       -o-transition: margin 0.4s ease-out;
       -moz-transition: margin 0.4s ease-out;
       -webkit-transition: margin 0.4s ease-out;
       transition: margin 0.4s ease-out;
   }

.sidebar
{
   float: right;
   @property "sidebar";
   font-size: @uix_globalSmallFontSize;
   width: 280px;
   @property "/sidebar";
}







/* visitor panel */

.sidebar .visitorPanel
{
   overflow: hidden; zoom: 1;
}

   .sidebar .visitorPanel h2 .muted
   {
       display: none;
   }

   .sidebar .visitorPanel .avatar
   {
       @property "visitorPanelAvatar";
       margin-right: 12px;
       @property "/visitorPanelAvatar";

       width: auto;
       height: auto;
   }

       .sidebar .visitorPanel .avatar img
       {
           width: @visitorPanelAvatar.width;
           height: @visitorPanelAvatar.height;
       }

   .sidebar .visitorPanel .username
   {
       @property "visitorPanelUsername";
       font-size: 16px;
       color: #fff;
       @property "/visitorPanelUsername";
   }

   .sidebar .visitorPanel .stats
   {
       @property "visitorPanelStats";
       color: @mutedTextColor;
       margin-top: 2px;
       @property "/visitorPanelStats";
   }

   .sidebar .visitorPanel .stats .pairsJustified
   {
       line-height: normal;
   }














/* generic sidebar blocks */

.sidebar .section .primaryContent   h3,
.sidebar .section .secondaryContent h3,
.profilePage .mast .section.infoBlock h3
{
   @property "sidebarBlockHeading";
   font-size: 14px;
   color: @contentText;
   background-color: #fff;
   padding: @uix_gutterWidthSmall;
   border-width: 0;
   border-bottom: 1px solid @primaryLight;
   border-radius: @uix_globalBorderRadius;
   margin: -@uix_gutterWidthSmall -@uix_gutterWidthSmall @uix_gutterWidthSmall;
   @property "/sidebarBlockHeading";
}

.sidebar .section .primaryContent   h3 a,
.sidebar .section .secondaryContent h3 a
{
   @property "sidebarBlockHeading.font";
   font-size: 14px;
   color: @contentText;
   @property "/sidebarBlockHeading.font";
}

.sidebar .section .secondaryContent .footnote,
.sidebar .section .secondaryContent .minorHeading
{
   @property "sidebarBlockFootnote";
   color: @mutedTextColor;
   margin-top: 5px;
   @property "/sidebarBlockFootnote";
}

   .sidebar .section .secondaryContent .minorHeading a
   {
       color: @sidebarBlockFootnote.color;
   }












/* list of users with 32px avatars, username and user title */

.sidebar .avatarList li
{
   @property "sidebarAvatarListItem";
   padding-top: @uix_gutterWidthSmall;
   padding-bottom: @uix_gutterWidthSmall;
   margin: 0;
   border-top-width: 0;
   border-bottom: 1px solid @primaryLight;
   overflow: hidden;
   zoom: 1;
   @property "/sidebarAvatarListItem";
}

   .sidebar .avatarList .avatar
   {
       @property "sidebarAvatarListAvatar";
       margin-right: 5px;
       float: left;
       width: 32px;
       height: 32px;
       @property "/sidebarAvatarListAvatar";

       width: auto;
       height: auto;
   }

   .sidebar .avatarList .avatar img
   {
       width: @sidebarAvatarListAvatar.width;
       height: @sidebarAvatarListAvatar.height;
   }

   .sidebar .avatarList .username
   {
       @property "sidebarAvatarListUsername";
       font-size: 11pt;
       margin-top: 2px;
       display: block;
       @property "/sidebarAvatarListUsername";
   }

   .sidebar .avatarList .userTitle
   {
       @property "sidebarAvatarListUserTitle";
       color: @mutedTextColor;
       @property "/sidebarAvatarListUserTitle";
   }









/* list of users */

.sidebar .userList
{
}

   .sidebar .userList .username
   {
       @property "sidebarUserListUsername";
       font-size: 11px;
       @property "/sidebarUserListUsername";
   }

   .sidebar .userList .username.invisible
   {
       @property "sidebarUserListUsernameInvisible";
       color: @primaryLightish;
       @property "/sidebarUserListUsernameInvisible";
   }

   .sidebar .userList .username.followed
   {
       @property "sidebarUserListUsernameFollowed";

       @property "/sidebarUserListUsernameFollowed";
   }

   .sidebar .userList .moreLink
   {
       display: block;
   }




/* people you follow online now */

.followedOnline
{
   @property "sidebarFollowedUsers";
   margin-top: 3px;
   margin-bottom: -5px;
   overflow: hidden;
   zoom: 1;
   @property "/sidebarFollowedUsers";
}

.followedOnline li
{
   @property "sidebarFollowedUsersItem";
   margin-right: 5px;
   margin-bottom: 5px;
   float: left;
   @property "/sidebarFollowedUsersItem";
}

   .followedOnline .avatar
   {
       @property "sidebarFollowedUsersAvatar";
       width: 32px;
       height: 32px;
       @property "/sidebarFollowedUsersAvatar";

       width: auto;
       height: auto;
   }

       .followedOnline .avatar img
       {
           width: @sidebarFollowedUsersAvatar.width;
           height: @sidebarFollowedUsersAvatar.height;
       }






/* call to action */

#SignupButton
{
   @property "signupButton";
   display: inline-block;
   line-height: 42px;
   cursor: pointer;
   outline: 0 none;
   height: 42px;
   @property "/signupButton";
}

   #SignupButton .inner
   {
       @property "signupButtonInner";
       font-size: 13px;
       font-family: @uix_primaryFont;
       color: @callToActionSpan.color;
       background-color: @callToActionSpan.background-color;
       padding: 0 16px;
       border-radius: 2px;
       display: block;
       text-align: center;
       transition: all 0.3s cubic-bezier(.25,.8,.25,1);
       text-transform: uppercase;
       font-weight: 500;
       box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),
        0 3px 1px -2px rgba(0,0,0,.2),
        0 1px 5px 0 rgba(0,0,0,.12);
       min-width: 64px;
       @property "/signupButtonInner";
   }

   #SignupButton:hover .inner
   {
       @property "signupButtonHover";
       color: @callToActionSpan.color;
       background-color: @callToActionSpan.background-color;
       box-shadow: 0 6px 10px 0 rgba(0,0,0,.15),
   0 4px 10px 0 rgba(0,0,0,.25),
   0 2px 4px -1px rgba(0,0,0,.25);
       @property "/signupButtonHover";
   }

   #SignupButton:active
   {
       @property "signupButtonActive";
       color: @callToActionSpan.color;
       background-color: @callToActionSpan.background-color;
       box-shadow: 0 6px 10px 0 rgba(0,0,0,.15),
   0 4px 10px 0 rgba(0,0,0,.25),
   0 2px 4px -1px rgba(0,0,0,.25);
       @property "/signupButtonActive";
   }

<xen:if is="@enableResponsive">
   <xen:if is="@uix_sidebarMaxResponsiveWidth != '100%'">
   @media (max-width:@uix_sidebarMaxResponsiveWidth)
   {
   </xen:if>
       .Responsive .mainContainer
       {
            float: none;
            margin-right: 0;
            width: auto;
       }

       .Responsive .mainContent
       {
           margin-right: 0;
       }

       .Responsive .sidebar
       {
           float: none;
           margin: 0 auto;
           width: auto;
       }

       .Responsive .mainPanelWrapper .sidebar .visitorPanel
       {
           display: none;
       }
   <xen:if is="@uix_sidebarMaxResponsiveWidth != '100%'">
   }
   </xen:if>

   <xen:comment>
   @media (max-width:340px)
   {
       .Responsive .sidebar
       {
           width: 100%;
       }
   }
   </xen:comment>

</xen:if>


Pastebin : https://pastebin.com/FpL1g3H4
 

nghienvt

Gefreiter
Tham gia
01/01/2017
Bài viết
65
Được Like
65
Mình ko cài stlye này nên ko chắc được là nó nằm ở đoạn nào, vì chỉnh trong ACP thì phải refresh ở ngoài để xác định đúng.

Bây giờ bạn phải tự xử lý thôi, bằng cách sau:

Đối với các dòng bên trong một đoạn mã PHP, được mở và đóng với các khóa <xen: if> và </xen:if>, thì để vô hiệu một dòng nào đó, ta dùng <!-- để mở và --> để khóa.

Ví dụ:
<xen:if is="(((@uix_offCanvasSidebarRight == 4) OR (@uix_offCanvasSidebarLeft == 4)))">
.mainContent {
margin-left: 0 !important;
margin-right: 0 !important;
}
</xen:if>

ta vô hiệu hóa hai dòng css trong nó như sau:
<!--
margin-left: 0 !important;
margin-right: 0 !important;
-->

Trường hợp thứ hai, để vô hiệu hóa một đoạn css không nằm trong mã PHP, thì ta mở và đóng bằng các khóa sau: /* và */. Ví dụ:

.sidebar .visitorPanel h2 .muted
{
display: none;
}

thành:



.sidebar .visitorPanel h2 .muted
{
/* display: none; */
}

Như vậy dòng display: none; đã bị vô hiệu.

Bằng cách vô hiệu hóa các đoạn mã nguồn hay css trong ACP, ta có thể thay đổi hoặc hoàn trả lại nội dung cũ để xác định nguyên nhân hoặc làm vài điều mà mình muốn với diễn đàn, trong khi vẫn giữ được mã gốc, cùng lắm thì vào để bỏ các khóa vô hiệu đó đi, cho nó có hiệu lực trở lại như cũ.

Trường hợp của bạn, có thể thêm các khóa để vô hiệu một dòng, một đoạn, hoặc cả nội dung của template đó, xong save lại ra ngoài refresh lại trang web xem thay đổi. Lưu ý: đã đặt khóa mở, thì phải đặt khóa đóng, nếu không thì vô hiệu từ đoạn bắt đầu đặt khóa tới hết nội dung luôn.

Bạn làm vài lần vô hiệu mã php, hoặc css... thì sẽ mau chóng nhận ra là mình có thể thay đổi xenforo rất nhiều thứ, copy bên này bỏ vào bên kia, vô hiệu, cho phép thêm bớt các tính năng tại chỗ này, chỗ kia, copy mã của add-on này bỏ vào add-on kia... nói chung là hiểu rồi thì rất thú vị.

Tự làm xem sao bạn ;)
 

Leakd

Private
Tham gia
05/05/2017
Bài viết
14
Được Like
7
à thì ra là do cái nút sidebar toggle ở góc dưới nên không hiện lên được đang tìm cách xoá nút toggle sidebar
 

nghienvt

Gefreiter
Tham gia
01/01/2017
Bài viết
65
Được Like
65
options/list/nodeList
Bạn vào mục ở trên cũng có tùy chọn hiển thị.
 

Hướng dẫn sử dụng

XenForo 1 XenForo 2
Translate by PVS

Dịch vụ XenForo của VNXF

Mr. Tuấn

Mobile/Zalo: 0988 488 096

Telegram: bluekpro

Email: [email protected]

Nhà Tài Trợ

Mút Xốp Không Gian
pallet Thịnh Phát
Top Bottom