Detail: RSFORM mapping create new article submit. Mapping CreateDate is the same format database datetime.
#Step 1: Add 1 input-text name 'CreateDate' - class hidden (invisible)
#Step2: Add default value:
//<code>
return date('o-m-d H:i:s');
//</code>
This return value the same format database datetime save.
Time zone - example GTM+10
//<code>
$date = date("Y-m-d H:m:s", (time()-(60*60*10)));
return $date;
//</code>
#Step3: mapping add createdate field: {CreateDate:value}
Chủ Nhật, 27 tháng 12, 2015
RSFORM dropdown value | text
RSFORM Pro - joomla 3.x
Dropdow item add:
value|Text
Note: separate '|' char.
Example: dropdown require
0|TextA
1|TextB
...
Dropdow item add:
value|Text
Note: separate '|' char.
Example: dropdown require
0|TextA
1|TextB
...
Thứ Sáu, 11 tháng 12, 2015
CB login redirect go to homepage.
Joomla 3.x, Community Builder(CB)
Time: December 2015
Description: SEF turn on, CB redirect after login go home page.
1. Turn OFF SEF joomla : CB redirect SUCCESS.
2. Turn ON SEF joomla: CB redirect to homepage.
Reason: Confict - SEF joomla CB login redirect >< com_redirectonlogin redirect
Solution: admin>Extension>com_redirectonlogin config login redirect
Time: December 2015
Description: SEF turn on, CB redirect after login go home page.
1. Turn OFF SEF joomla : CB redirect SUCCESS.
2. Turn ON SEF joomla: CB redirect to homepage.
Reason: Confict - SEF joomla CB login redirect >< com_redirectonlogin redirect
Solution: admin>Extension>com_redirectonlogin config login redirect
Thứ Ba, 3 tháng 11, 2015
Joomla 3.4.5 sef remove article id SOLVED
Description: remove article id at sef url: id-alias.
File edit: components\com_content\router.php
#Step 1: 2 line replace all
$advanced = $params->get('sef_advanced_link', 0);
to
$advanced = $params->get('sef_advanced_link', 1);
#Step2:
if (strpos($segments[0], ':') === false)
{
$vars['view'] = 'article';
$vars['id'] = (int) $segments[0];
return $vars;
}
to
/*if (strpos($segments[0], ':') === false)
{
$vars['view'] = 'article';
$vars['id'] = (int) $segments[0];
return $vars;
}
*/
File edit: components\com_content\router.php
#Step 1: 2 line replace all
$advanced = $params->get('sef_advanced_link', 0);
to
$advanced = $params->get('sef_advanced_link', 1);
#Step2:
if (strpos($segments[0], ':') === false)
{
$vars['view'] = 'article';
$vars['id'] = (int) $segments[0];
return $vars;
}
to
/*if (strpos($segments[0], ':') === false)
{
$vars['view'] = 'article';
$vars['id'] = (int) $segments[0];
return $vars;
}
*/
Thứ Năm, 22 tháng 10, 2015
JQUERY get image full path
Des: get full path image http,domain,subfolder,filename
JQUERY:
var imagefullpath=$('img')[0].src;
alert(imagefullpath);
result: http//domain.com/subfolder/image-name.jpg
-
var imgagepath=$('img').attr('src');
alert(imagepath);
result: subfolder/image-name.jpg
JQUERY:
var imagefullpath=$('img')[0].src;
alert(imagefullpath);
result: http//domain.com/subfolder/image-name.jpg
-
var imgagepath=$('img').attr('src');
alert(imagepath);
result: subfolder/image-name.jpg
Thứ Hai, 28 tháng 9, 2015
Fixed, absolute position auto center SOLVED
.divfixcenter{
position:fixed;
top:50%;
left:50%;
width: 500px;
transform: translate(-50%, -50%);
-webkit-transform:translate(-50%, -50%);/*safari*/
}
position:fixed;
top:50%;
left:50%;
width: 500px;
transform: translate(-50%, -50%);
-webkit-transform:translate(-50%, -50%);/*safari*/
}
Thứ Ba, 8 tháng 9, 2015
Filezilla FTP Use Proxy solved
Des: ip prevent connect to host. It's hard to find way, i did take 2 day read on internet and try.
Solution: use proxy have other way connect work.
#1. Find proxy server work:
http://incloak.com/proxy-list/
Find SOCKS5 type
Choose the best speed
#2. Cofig Filezilla:
Edit menu-> Setting->Generic Proxy input host + port
Image guide:
Note: Can try other proxy.
State: SOLVED.
Solution: use proxy have other way connect work.
#1. Find proxy server work:
http://incloak.com/proxy-list/
Find SOCKS5 type
Choose the best speed
#2. Cofig Filezilla:
Edit menu-> Setting->Generic Proxy input host + port
Image guide:
Note: Can try other proxy.
State: SOLVED.
Đăng ký:
Bài đăng (Atom)



