Xuất hiện những cảnh báo sau đây:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.33 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.33 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key 2 - Line: 89 - File: inc/plugins/phptpl.php PHP 8.1.33 (Linux)
File Line Function
/inc/plugins/phptpl.php 89 errorHandler->error
[PHP]   {closure}
/inc/plugins/phptpl.php 109 preg_replace_callback_array
/inc/plugins/phptpl.php(70) : eval()'d code 19 phptpl_parsetpl
/global.php 844 phptpl_templates->get
/printthread.php 16 require_once
Warning [2] Undefined array key 2 - Line: 89 - File: inc/plugins/phptpl.php PHP 8.1.33 (Linux)
File Line Function
/inc/plugins/phptpl.php 89 errorHandler->error
[PHP]   {closure}
/inc/plugins/phptpl.php 109 preg_replace_callback_array
/inc/plugins/phptpl.php(70) : eval()'d code 19 phptpl_parsetpl
/global.php 844 phptpl_templates->get
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 102 - File: global.php(844) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/global.php(844) : eval()'d code 102 errorHandler->error
/global.php 844 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.33 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.33 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "avatar" - Line: 80 - File: global.php(938) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/global.php(938) : eval()'d code 80 errorHandler->error
/global.php 938 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "pms_unread" - Line: 99 - File: global.php(938) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/global.php(938) : eval()'d code 99 errorHandler->error
/global.php 938 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "logoutkey" - Line: 101 - File: global.php(938) : eval()'d code PHP 8.1.33 (Linux)
File Line Function
/global.php(938) : eval()'d code 101 errorHandler->error
/global.php 938 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.33 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.33 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



F@rum_Haiquan.info (*_*)
Code load trang bằng css - Bản rút gọn

+- F@rum_Haiquan.info (*_*) (http://haiquan.info/F@rum)
+-- Diễn đàn: TIN HỌC- CÔNG NGHỆ (http://haiquan.info/F@rum/forumdisplay.php?fid=101)
+--- Diễn đàn: MÃ NGUỒN (http://haiquan.info/F@rum/forumdisplay.php?fid=102)
+---- Diễn đàn: MYBB (http://haiquan.info/F@rum/forumdisplay.php?fid=103)
+---- Chủ đề: Code load trang bằng css (/showthread.php?tid=1895)



Code load trang bằng css - ngocvu1403 - 25-09-2014

Chào các bạn


Thông thường khi chúng ta mở một trang web thì phài chờ mốt thời gian để trang load xuông máy tính và lúc đó rất chán dù trang web đang chờ rất hấp dẫn.

Vì vậy hôm nay mình chia sẽ code load trang tạo sự vui vẻ trong khi chờ trang load hết.

BƯỚC 1:
Vào theme đang sử dụng-> add stylesheet -> File Name -> ghi vào: progress-bar.css.
Bấm chọn :  Write my own content.
Chép code này vào khung bên dưới:

Code:
 .well {
  font: bold 18px;
  background-color: #F7F7F7;
  background-image: linear-gradient(to bottom, #F5F5F5, #F9F9F9);
  background-repeat: repeat-x;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) inset;
  overflow: hidden;
}

.progress-bar {
  animation: progress 3s;
  padding: .3em;
  text-align: center;
  color: rgba(255,255,255,100);
  background-image: linear-gradient(135deg, #26BDA6, #FF9F65, #DED37E);
  border-radius: 4px 4px 4px 4px;
}

@keyframes progress {
  from {
    width: 0;
    color: rgba(255,255,255,0);
  }
  to {
    width: 100%;
    color: rgba(255,255,255,1);
  }
}

BƯỚC 2:
Vào Template đang sử dụng: -> Index Page Templates -> index.

Chép code này vào bất cứ chổ nào bạn muốn :

Code:
<div class="well">
 <div class="progress-bar"><img src="images/wellcome.gif"> <strong>Chào Mừng Quý Khách Đến....</strong> <img src="images/wellcome.gif"></div>
</div>

Khi muốn điều chỉnh độ lớn nhỏ của font thì tìm tại:

Trích dẫn:.well {
font: bold 18px;
Thay thông số nó theo ý bạn

Khi muốn thay hình ảnh thì tìm tại :

Trích dẫn:<img src="images/wellcome.gif">
Thay hình theo ý bạn
Xong rồi đó, ra xem trang chủ khi load trang còn buồn chán không nhé. :sm4cute_smiley36:

Theo PCNDL.