Submitted by Thao Huynh on June 17, 2015 - 12:28
I just write a Drupal module allow integrate Drupal with Laravel to work together, you can check here: https://www.drupal.org/project/illuminate
More information and example will post in next article.
Code fun.
Submitted by Thao Huynh on April 7, 2015 - 09:38
Beginning in Virtualmin 3.99, Virtualmin allow you install multiple version of PHP with Software Collections.
Submitted by Thao Huynh on November 7, 2014 - 22:00
Just moving to MAC OS and have problem with fn key when using Windows keyboard, fortunately there is a free application called Karabiner help you can swap fn and command key.
Submitted by Thao Huynh on July 16, 2014 - 22:21
Drupal Charts is a great charts module for Drupal, it allow use you both Google Charts and Highcharts. You can use same setup for both Google Charts and Highchats but some settings properties not implement yet. Here is tips allow you add custom chart properties
Submitted by Thao Huynh on June 25, 2014 - 10:04
This article show you how config Drupal Bootstrap theme allow show dropdown menu when hover and clickable parent menu
First add this css to your theme css, usually is style.css
@media (min-width: 768px) {
.dropdown:hover .dropdown-menu {
display: block;
}
}
Second, override theme_menu_link to remove data-toggle
Submitted by Thao Huynh on June 17, 2014 - 21:09
Some hosting problem with Drupal .htaccess symlinks, default Drupal use "Options +FollowSymLinks", you need change it to "Options +SymLinksIfOwnerMatch" to resolve the issue.
Change .htaccess at root of Drupal folder, files folder and temporary folder to fix them.
Submitted by Thao Huynh on June 16, 2014 - 12:53
<style>
.page-node .tabs--primary {
position: fixed;
left: 0;
top: 35%;
}
@media (max-width: 767px) {
.page-node .tabs--primary {
display: none;
}
}
.page-node .tabs--primary.nav-tabs > li {
float: none;
}
.page-node .tabs--primary.nav-tabs > li a {
border: 1px solid #DDDDDD;
border-radius: 0;
}
.front .page-header {
display: none;
}
</style>
Submitted by Thao Huynh on June 13, 2014 - 12:17
FlexSlider error with Firefox v29 on Windows, it doesn't apply animation for slider item. Here is sollution to fix them:
$(document).ready(function() {
$(".flexslider").flexslider({
touch: !$.browser.mozilla
});
});
Submitted by Thao Huynh on March 8, 2014 - 22:01
Drupal support multi language website and user can translate with Locale module. But it have some difficult when you translate a lot text or you need send to customer and they will translated by himself. Export current language to .po file and translate with POEdit is an easy way.
Submitted by Thao Huynh on February 20, 2014 - 13:21
VirtualMin is free system help user can easy manager their server or VPS. I usually use it with Drupal hosting, here is note for install VirtualMin on CentOS
Update System
# sudo yum -y update
Install pre-requisites
# sudo yum -y install perl
Download VirtualMin Installer
# wget http://software.virtualmin.com/gpl/scripts/install.sh
Installation
# sudo sh install.sh
Wait a moment, it about to 5 minutes to install VirtualMin on your system.
Submitted by Thao Huynh on February 4, 2014 - 23:38
Submitted by Thao Huynh on January 31, 2014 - 22:42
Submitted by Thao Huynh on January 27, 2014 - 11:29
Tips update Drupal core with Drush:
- Make sure you enabled "Update manager" module otherwise enable it with Drush by command:
drush en update
- Always backup your site and database before update Drupal core.
- Run Drush command to update Drupal core:
drush up drupal
Submitted by Thao Huynh on January 16, 2014 - 21:22
Submitted by Thao Huynh on January 11, 2014 - 18:04
Config SublimeText 3 enable mouse click 'goto definition':
Linux - create "Default (Linux).sublime-mousemap" in ~/.config/sublime-text-3/Packages/User
Mac - create "Default (OSX).sublime-mousemap" in ~/Library/Application Support/Sublime Text 3/Packages/User
Win - create "Default (Windows).sublime-mousemap" in %appdata%\Sublime Text 3\Packages\User
[
{
"button": "button1",
"count": 1,
"modifiers": ["ctrl"],
"press_command": "drag_select",
"command": "goto_definition"
}
]
Submitted by Thao Huynh on December 22, 2013 - 21:00
In drush/commands/pm/package_handler/wget,inc
// Add to URL so it is part of the cache key . Dev snapshots can then be cached forever.
if (strpos($release['download_link'], '-dev') !== FALSE) {
$release['download_link'] .= '?date=' . $release['date'];
}
$filename = basename($release['download_link']);
should probably be replaced with this: