Portfolio
Code/Web

[wordpress] Hướng dẫn cài đặt wp MULTISITE

September 18, 2017Category : Code/Web

ỨNG DỤNG CỦA WORDPRESS MULTISITE Hầu hết nếu chúng ta có nhu cầu tạo ra một mạng lưới nhiều website liên kết với nhau trên cùng một máy chủ thì có thể sử dụng WordPress Multisite. Chúng ta có thể sử dụng WordPress Multisite để tạo nhiều trang con trong một mạng lưới như vậy,..

Read more
01.

[WordPress] RICH SNIPPETS

August 23, 2017Category : Code/Web

Nói theo cách dễ hiểu, Rich Snippets là đoạn thông tin đặc biệt dùng để hiển thị các thông tin thêm có trong những bài viết đặc biệt (bài đánh giá, sản phẩm, ứng dụng, công thức nấu ăn, địa chỉ công ty..v.v..) trên các máy tìm kiếm (Google, Yahoo, Bing) nhằm cung cấp thêm những thông..

Read more
02.

Thu thập địa chỉ Email bằng script ruby bằng mã Jigsaw

April 27, 2017Category : Code/Web

Thu thập địa chỉ email là một trong những phần mà mình thấy thú vị nhất. Bạn có thể tìm kiếm trên Google và ra hàng loạt những công cụ thu thập địa chỉ email có cả miễn phí, dùng thử và trả phí. Nhưng có 1 công cụ mới giúp bạn thâm nhập vào..

Read more
03.

Redirect url with browser lang – htaccess

April 20, 2017Category : Code/Web

Add to htaccess RewriteEngine on RewriteCond %{HTTP:Accept-Language} (aa|ab|af|am|ar|as|ay|az|ba|be|bg|bh|bi|bn|bo|br|ca|co|cs|cy|da|de|dz|el|en|eo|es|et|eu|fa|fi|fj|fo|fr|fy|ga|gd|gl|gn|gu|ha|hi|hr|hu|hy|ia|ie|ik|in|is|it|iw|ja|ji|jw|ka|kk|kl|km|kn|ko|ks|ku|ky|la|ln|lo|lt|lv|mg|mi|mk|ml|mn|mo|mr|ms|mt|my|na|ne|nl|no|oc|om|or|pa|pl|ps|pt|qu|rm|rn|ro|ru|rw|sa|sd|sg|sh|si|sk|sl|sm|sn|so|sq|sr|ss|st|su|sv|sw|ta|te|tg|th|ti|tk|tl|tn|to|tr|ts|tt|tw|uk|ur|uz|vo|wo|xh|yo|zh|zu) [NC] RewriteRule .* google.com [L]        

Read more
04.

Call ring css

December 29, 2016Category : Code/Web

CSS .nml-alo-phone.nml-alo-show { visibility: visible; } .nml-alo-phone { background-color: transparent; cursor: pointer; height: 200px; position: fixed; transition: visibility 0.5s ease 0s; visibility: hidden; width: 200px; z-index: 200000 !important; } .nml-alo-phone { top: 250px; right: 0px; } .nml-alo-phone.nml-alo-green .nml-alo-ph-circle { border-color: #87de91; opacity: 0.5; } .nml-alo-ph-circle { animation: 1.2s ease-in-out 0s normal none infinite running nml-alo-circle-anim;..

Read more
05.

[VPS] Cài đặt Memcached đầy đủ trên CentOS

September 28, 2016Category : Code/Web IT & Network

Memcached là một hệ thống cache hoạt động bằng cách lưu tạm thông tin những dữ liệu bạn hay sử dụng vào bộ nhớ RAM. Do tốc độ đọc ghi của bộ nhớ bao giờ cũng cao hơn so với lưu trữ file nên việc sử dụng memcached giúp cho hệ thống của bạn tăng tốc lên một cách..

Read more
07.

Direct sql quiries in magento

September 1, 2016Category : Code/Web

Database Connections In Magento By default, Magento will automatically connect to it’s database and provide two separate resources which you can use to access data: core_read and core_write. As you can probably guess, core_read is for reading from the database while core_write is for writing to the database. It is important to ensure that you..

Read more
08.

Magento import produdct – fix product not show

September 1, 2016Category : Code/Web

SQL <?php /** * @author Linhdh * @website http://181988.xyz * @project update price and specialPrice */ error_reporting(E_ALL | E_STRICT); define(‘MAGENTO_ROOT’, getcwd()); $mageFilename = MAGENTO_ROOT . ‘/app/Mage.php’; require_once $mageFilename; Mage::app(); $ids = Mage::getModel(‘catalog/product’)->getCollection()->getAllIds(); Mage::getSingleton(‘catalog/product_action’)->updateAttributes( $ids, array(‘status’=>1, ‘visibility’=>4), 0 );  

Read more
09.

Magento remove duplicate img

September 1, 2016Category : Code/Web

SQL <?php /** * @author Linhdh * @website http://181988.xyz * @project update price and specialPrice */ include(‘app/Mage.php’); //Mage::App(‘default’); Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); error_reporting(E_ALL | E_STRICT); Mage::setIsDeveloperMode(true); ini_set(‘display_errors’, 1); ob_implicit_flush (1); $mediaApi = Mage::getModel(“catalog/product_attribute_media_api”); $_products = Mage::getModel(‘catalog/product’)->getCollection(); $i =0; $total = count($_products); $count = 0; foreach($_products as $_prod) { $_product = Mage::getModel(‘catalog/product’)->load($_prod->getId()); $_md5_values = array(); //protected base image $base_image..

Read more
010.

Magento SQL update price and special price form csv

September 1, 2016Category : Code/Web

SQL <?php /** * @author Linhdh * @website http://181988.xyz * @project update price and specialPrice */ $mageFilename = ‘app/Mage.php’; require_once $mageFilename; Mage::setIsDeveloperMode(true); ini_set(‘display_errors’, 1); umask(0); Mage::app(‘admin’); Mage::register(‘isSecureArea’, 1); Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); set_time_limit(0); ini_set(‘memory_limit’,’1024M’); /***************** UTILITY FUNCTIONS ********************/ function _getConnection($type = ‘core_read’){ return Mage::getSingleton(‘core/resource’)->getConnection($type); } function _getTableName($tableName){ return Mage::getSingleton(‘core/resource’)->getTableName($tableName); } function _getAttributeId($attribute_code = ‘price’){ $connection = _getConnection(‘core_read’); $sql..

Read more
011.

Magento bulk product import with images

August 30, 2016Category : Code/Web

I recently had to transfer the inventory of an old Shop Factory site into Magento 1.7. Magento offers a powerful facility to do this via CSV using its DataFlow profiles but this is not without its quirks and pitfalls so I thought I’d share my experiences. Importing product data First, you will need to know..

Read more
012.

Hướng dẫn thay đổi tên miền giữ nguyên Rank

August 1, 2016Category : Code/Web

Nhiều bạn có liên hệ hỏi mình về sự ảnh hưởng từ khóa trên kết quả tìm kiếm Google, tất nhiên là bị ảnh hưởng chứ, rất nhiều là đằng khác. Thời gian đầu mình chứng kiến nhiều từ khóa mất top, thậm chí không còn xuất hiện trên Google nữa. Nhưng sau khoảng thời..

Read more
013.

Theo dõi Website Uptime 24/7 miễn phí với Google Drive, hỗ trợ SMS

July 2, 2016Category : Code/Web

Thông thường, bạn có thể sử dụng các dịch vụ miễn phí như UptimeRobot, PingThat, tuy nhiên bạn sẽ bị giới hạn số lượng website, thời gian check, giới hạn SMS thông báo và thường xuyên nhận được thông báo nâng cấp. Với công cụ mình biết này thì khác, bạn có thể theo dõi không giới..

Read more
014.

PHP7 mysql lib to mysqli convert

July 2, 2016Category : Code/Web

Đây là thư viện để các bạn không phải sửa từng chút một trong code nữa thêm include hoặc require trong config.php là được <?php namespace { if (!function_exists(‘\mysql_connect’)) { define (‘MYSQL_ASSOC’, 1); define (‘MYSQL_NUM’, 2); define (‘MYSQL_BOTH’, 3); define (‘MYSQL_CLIENT_COMPRESS’, 32); define (‘MYSQL_CLIENT_SSL’, 2048); define (‘MYSQL_CLIENT_INTERACTIVE’, 1024); define (‘MYSQL_CLIENT_IGNORE_SPACE’, 256); function mysql_connect( $hostname =..

Read more
015.
© Oliver / All rights reserved.
To top