- Google analytics module.
- Google analytics reports module.
- Fieldable panels panes module (optional).
- Themekey module.
- Oauth module.
- Features module.
- Views, Views bulk operations module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = Langgo Migrate Main | |
version = 7.x-1.0-alpha1 | |
description = Module to migrate langgo Drupal 6 to LanggoMainApp. | |
core = 7.x | |
package = "Viet Coop" | |
files[] = migrate.inc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$titles = array( | |
0 => "Église St-Clare", | |
1 => "Centre communautaire Maison Le Réveil", | |
); | |
foreach ($titles as $title){ | |
// Encode node title for save to db | |
$title = mime_header_encode($title); | |
$newnode = new stdClass; | |
$newnode->title = $title; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$result = db_query('SHOW tables')->fetchAll(); | |
dsm($result); | |
foreach ($result as $table) { | |
//var_dump($table);die; | |
$alter_string = "ALTER TABLE $table->Tables_in_drupal7_dev CHARACTER SET utf8 COLLATE utf8_general_ci"; | |
db_query($alter_string); | |
//db_query('ALTER TABLE \':tablename\' CHARACTER SET utf8 COLLATE utf8_general_ci', array( ':tablename' => $table->Tables_in_drupal7_dev)); | |
} | |
db_query('ALTER TABLE node MODIFY title VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Genowell Admin Document | |
- Change homepage image | |
1. Add a new node to 'Layout image' content type. | |
1. Add 4 images, you want to display to homepage, to this new node. | |
1. Check to 'Is current homepage' checkbox. | |
1. The last updated node and checked in 'Is current homepage' checkbox will be displaying at homepage. | |
1. Re-update any node if you want to reuse old homepage image of this node. | |
- Change homepage text | |
1. Login as administrator account. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.could not access PID file for nginx ... failed! | |
$ sudo fuser -k 80/tcp ; sudo /etc/init.d/nginx restart | |
drush scr | |
http://ac.buzzwoo.de/ | |
2.resulotion | |
cvt 1280 1024 | |
xrandr --newmode "1280x1024_60.00" 109.00 1280 1368 1496 1712 1024 1027 1034 1063 -hsync +vsync |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DROP TABLE IF EXISTS `fieldable_panels_panes`; | |
CREATE TABLE `fieldable_panels_panes` ( | |
`fpid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'The primary identifier for the entity.', | |
`vid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'The current version in use for this entity.', | |
`bundle` varchar(255) DEFAULT NULL COMMENT 'The bundle of the entity.', | |
`title` varchar(255) DEFAULT NULL COMMENT 'The title of the entity.', | |
`link` tinyint(4) DEFAULT NULL COMMENT 'Whether or not this entity title will link to another page.', | |
`path` varchar(255) DEFAULT NULL COMMENT 'The path the title should link to.', | |
`reusable` tinyint(4) DEFAULT NULL COMMENT 'Whether or not this entity will appear in the Add Content dialog.', | |
`admin_title` varchar(255) DEFAULT NULL COMMENT 'The title it will appear in the Add Content dialog as.', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; This file was auto-generated by drush make | |
core = 7.21 | |
api = 2 | |
projects[drupal][version] = "7.21" | |
; Modules | |
projects[admin_menu][version] = "3.0-rc4" | |
projects[block_class][version] = "1.2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$view = new view; | |
$view->name = 'member_blogger'; | |
$view->description = 'Display member for blog page'; | |
$view->tag = ''; | |
$view->base_table = 'users'; | |
$view->core = 6; | |
$view->api_version = '2'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ | |
$handler = $view->new_display('default', 'Defaults', 'default'); | |
$handler->override_option('relationships', array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$root = '/home/andytruong/live'; | |
$tmp = '/home/andytruong/tmp'; | |
$drush = '/home/andytruong/drush/drush'; | |
function run($cmds = array()) { | |
if (is_string($cmds)) return run(array($cmds)); | |
foreach ($cmds as $cmd) { | |
print_r($cmd . "\n"); |