Vấn đề: phone number html hiển thị tốt trên trình duyệt firefox, chrome.... Hiển thị tốt trên mobile Android.
Khi hiển thị trên Iphone thì ko nhận được style.
Nguyên nhân: iphone tự kiểm tra xác nhận là phone number ra format font khác.
Đã thử xử lý: css important, check css inline đều không được.
Xử lý:
<meta name="format-detection" content="telephone=no">
Kết quả: nhận style bình thường
Thứ Tư, 24 tháng 4, 2019
Thứ Hai, 15 tháng 4, 2019
Ghi nhận Joomla upgrade 3.4 - 3.9.5
Bước 1: Admin panel thông báo cần upgrade 3.4.3 lên 3.6.5
Thực hiện từ trong admin update: FAILED
Tiến hành download và unzip đè lên: SUCCESS
Bước 2: Admin panel thông báo upgrade 3.6.5 lên 3.9.5
Thực hiện trong admin update: FAILED
Tiến hành download và unzip đè lên: SUCCESS
Run sau khi update 500 server error
Tiến hành tìm kiếm google '3.9.0 postupdate issue' cần run postupdate.php
Bước 3: run theo hướng dẫn postupdate.php
Nhận được thông báo Update to 3.9.5 completed successfull.
Sau khi kiểm tra nhanh Admin, user, articles, module, contact hoạt động ổn định.
Thực hiện từ trong admin update: FAILED
Tiến hành download và unzip đè lên: SUCCESS
Bước 2: Admin panel thông báo upgrade 3.6.5 lên 3.9.5
Thực hiện trong admin update: FAILED
Tiến hành download và unzip đè lên: SUCCESS
Run sau khi update 500 server error
Tiến hành tìm kiếm google '3.9.0 postupdate issue' cần run postupdate.php
Bước 3: run theo hướng dẫn postupdate.php
Nhận được thông báo Update to 3.9.5 completed successfull.
Sau khi kiểm tra nhanh Admin, user, articles, module, contact hoạt động ổn định.
Thứ Hai, 26 tháng 11, 2018
CSS transform scale blank space - SOLVED
Description: Responsive view zoom transform scale. This make blank space. Need fix view full
Explain code: Original is 980, <980 auto scale. When scale important: '.container' is scale + absolute. Absolute is will make html>body auto height again.
Solution:
HTML
<body>
<div class="container">
CONTENT
</div>
</body>
SCRIPT
var jquery = jQuery.noConflict();
jquery(window).ready(function(){
/*ScallFullScreen*/
ZoomScale();
});
jquery( window ).resize(function() {
/*ScallFullScreen*/
ZoomScale();
});
/*ScallFullScreen*/
function ZoomScale(){
var widthScreen = jquery(window).width();
var scale = 1;
var wrapper = jquery('.container');
if(widthScreen<980){
/*scale=1*/
scale = widthScreen/980;
jquery(wrapper).css('position','absolute');
jquery(wrapper).css('width','980px');
jquery(wrapper).css('overflow-x','hidden');
}else{
jquery(wrapper).css('position','relative');
jquery(wrapper).css('width','auto');
jquery(wrapper).css('overflow-x','auto');
}
jquery(wrapper).css('-webkit-transform', 'scale(' + scale + ')');
jquery(wrapper).css('transform', 'scale(' + scale + ')');
jquery(wrapper).css('transform-origin', 'left top');
}
Thứ Ba, 3 tháng 7, 2018
PHP random array unique multi SOLVED
/*Original Array*/
$arrayIDs = ['a','aa','bb','cc'];
/*Result*/
$randomArray = [];
/*number unique*/
$numberRandom = 4;
if(count($arrayIDs)> $numberRandom){
while(count($randomArray) < $numberRandom) {
$randomKey = mt_rand(0, count($arrayIDs)-1);
$randomArray[$randomKey] = $arrayIDs[$randomKey];
}
}else{
$randomArray = $arrayIDs;
}
$arrayIDs = ['a','aa','bb','cc'];
/*Result*/
$randomArray = [];
/*number unique*/
$numberRandom = 4;
if(count($arrayIDs)> $numberRandom){
while(count($randomArray) < $numberRandom) {
$randomKey = mt_rand(0, count($arrayIDs)-1);
$randomArray[$randomKey] = $arrayIDs[$randomKey];
}
}else{
$randomArray = $arrayIDs;
}
Thứ Hai, 11 tháng 6, 2018
Joomla HTTPS 2.5, 3.x - Layout broken SOLVED
Step 1:
.htaccess add to top
<IfModule mod_env.c>
SetEnv HTTPS on
</IfModule>
Step 2: System / Global Configuration / Server / Force HTTPS = Entire Site
.htaccess add to top
<IfModule mod_env.c>
SetEnv HTTPS on
</IfModule>
Step 2: System / Global Configuration / Server / Force HTTPS = Entire Site
Thứ Hai, 23 tháng 10, 2017
Thứ Hai, 18 tháng 9, 2017
Joomla 3.x admin json error SOLVED
Description: Joomla backend save article, module, or config view issue "0 - Error decoding JSON data"
The reason: param at database {} break quote.
This many reason from many table. So need view error.
Step #1:
Here https://forum.joomla.org/viewtopic.php?f=706&t=937036 on Oct 19 the user ibrentlam offered the following solution:
The error is pulled in the file:
/libraries/vendor/joomla/registry/src/Format/Json.php`
line 72
I changed it to:
throw new \RuntimeException(sprintf('Error decoding JSON data: %s the bad data is: %s', json_last_error_msg(), $data));
so I could actually see the data.
Step #2: reload joomla admin BackEnd, view detail data error view
Step #3: backup database before edit, find data to know: table name, row id.
Step #4: Focus at column PARAM, check {} quote
The reason: param at database {} break quote.
This many reason from many table. So need view error.
Step #1:
Here https://forum.joomla.org/viewtopic.php?f=706&t=937036 on Oct 19 the user ibrentlam offered the following solution:
The error is pulled in the file:
/libraries/vendor/joomla/registry/src/Format/Json.php`
line 72
I changed it to:
throw new \RuntimeException(sprintf('Error decoding JSON data: %s the bad data is: %s', json_last_error_msg(), $data));
so I could actually see the data.
Step #2: reload joomla admin BackEnd, view detail data error view
Step #3: backup database before edit, find data to know: table name, row id.
Step #4: Focus at column PARAM, check {} quote
Đăng ký:
Bài đăng (Atom)




