Tuesday, March 31, 2015

Cách chống hack nick facebook

Gần đây có một số bọn hay đi hack nick facebook, vợ mình cũng bị nên tìm hiểu và thấy nếu chúng ta có thể thiết lập một vài bước và sẽ tránh không bị hack facebook, kể cả không may cài những app hay link vớ vẩn: chọn edit cái Login Approvals-> check vào cái checkbox như này khi nào có người dùng trình duyệt trên máy tính khác đăng nhập facebook của các bạn nó se yêu cầu nhập mã code bảo vệ gửi về điện thoại các bạn, nhớ là đừng làm mất cả số điện thoại nhé 



Các bạn click vào Login Alerts 
Hy vọng giúp được mọi người không bị mất nick face và bị làm phiền

Monday, March 30, 2015

prestashop error Problem: Admin/Backend login redirect in version 1.6

1/ Clear your browser cache and your cookies 2/ Try using Firefox instead of Chrome (which seems have some unexpected problems) 3/ Check PS_SHOP_DOMAIN and PS_SHOP_DOMAIN_SSL in ps_configuration table 4/ Manually clear smarty cache : remove all files from tools/smarty/compile and tools/smarty/cache 5/ Disable the IP check in classes/Cookie.php (this can causes many issues with dynamics IP) : in isLoggedBack(), remove or comment the fourth condition : AND (!isset($this->_content['remote_addr']) OR $this->_content['remote_addr'] == ip2long(Tools::getRemoteAddr()) OR !Configuration::get('PS_COOKIE_CHECKIP')) 6/ Make the expire time shorter for cookies (IE can have issues with longest time cookies) : in classes/Cookie.php constructor, set : $this->_expire = isset($expire) ? (int)($expire) : (time() + 3600); instead of $this->_expire = isset($expire) ? (int)($expire) : (time() + 1728000);

Tuesday, March 17, 2015

wordpress: Writing a Plugin

Introduction

WordPress Plugins allow easy modification, customization, and enhancement of a WordPress blog. Instead of changing the core programming of WordPress, you can add functionality with WordPress Plugins. Here is a basic definition:
WordPress Plugin: A WordPress Plugin is a program, or a set of one or more functions, written in the PHP scripting language, that adds a specific set of features or services to the WordPress weblog, which can be seamlessly integrated with the weblog using access points and methods provided by the WordPress Plugin Application Program Interface (API).
Wishing that WordPress had some new or modified functionality? The first thing to do is to search various WordPress Plugin repositories and sources to see if someone has already created a WordPress Plugin that suits your needs. If not, this article will guide you through the process of creating your own WordPress Plugin.
This article assumes you are already familiar with the basic functionality of WordPress, and PHP programming.
Resources




  • To understand how WordPress Plugins work and how to install them on your WordPress blog, see Plugins.
  • There is a comprehensive list of articles and resources for Plugin developers, including external articles on writing WordPress Plugins, and articles on special topics, in Plugin Resources.
  • To learn the basics about how WordPress Plugins are written, view the source code for well-written Plugins, such as Hello Dolly distributed with WordPress.
  • Once you have written your WordPress Plugin, read Plugin Submission and Promotion to learn how to distribute it and share it with others.

Creating a Plugin

This section of the article goes through the steps you need to follow, and things to consider when creating a well-structured WordPress Plugin.

Names, Files, and Locations

Plugin Name

The first task in creating a WordPress Plugin is to think about what the Plugin will do, and make a (hopefully unique) name for your Plugin. Check out Plugins and the other repositories it refers to, to verify that your name is unique; you might also do a Google search on your proposed name. Most Plugin developers choose to use names that somewhat describe what the Plugin does; for instance, a weather-related Plugin would probably have the word "weather" in the name. The name can be multiple words.

Plugin Files

The next step is to create a PHP file with a name derived from your chosen Plugin name. For instance, if your Plugin will be called "Fabulous Functionality", you might call your PHP file fabulous-functionality.php. Again, try to choose a unique name. People who install your Plugin will be putting this PHP file into the WordPress Plugins directory in their installation (usually wp-content/plugins/), so no two Plugins they are using can have the same PHP file name.
Another option is to split your Plugin into multiple files. Your WordPress Plugin must have at least one PHP file; it could also contain JavaScript files, CSS files, image files, language files, etc. If there are multiple files, pick a unique name for a directory and a name of your choice (usually the same) for the main PHP file of your Plugin, such as fabulous-functionality and fabulous-functionality.php, respectively, put all your Plugin's files into that directory, and tell your Plugin users to install the whole directory under wp-content/plugins/. Notice that WordPress installation can be configured for wp-content/plugins/ directory to be moved, so you must use plugin_dir_path() and plugins_url() for absolute paths and URLs. See: http://codex.wordpress.org/Determining_Plugin_and_Content_Directories for more details.
In the rest of this article, "the Plugin PHP file" refers to the main Plugin PHP file, whether in wp-content/plugins/ or a sub-directory.
Security Note: Consider blocking direct access to your plugin PHP files by adding the following line at the top of each of them, or be sure to refrain from executing sensitive standalone PHP code before calling any WordPress functions.
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );

Readme File

If you want to host your Plugin on http://wordpress.org/extend/plugins/, you also need to create a readme.txt file in a standard format, and include it with your Plugin. See http://wordpress.org/extend/plugins/about/readme.txt for a description of the format or use the automatic plugin 'readme.txt' generator.
Note that the WordPress plugin repository takes the "Requires" and "Tested up to" versions from the readme.txt in the stable tag.

Home Page

It is also very useful to create a web page to act as the home page for your WordPress Plugin. This page should describe how to install the Plugin, what it does, what versions of WordPress it is compatible with, what has changed from version to version of your Plugin, and how to use the Plugin.

File Headers

Now it's time to put some information into your main Plugin PHP file.

Standard Plugin Information

The top of your Plugin's main PHP file must contain a standard Plugin information header. This header lets WordPress recognize that your Plugin exists, add it to the Plugin management screen so it can be activated, load it, and run its functions; without the header, your Plugin will never be activated and will never run. Here is the header format:
<?php
/**
 * Plugin Name: Name of the plugin, must be unique.
 * Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
 * Description: A brief description of the plugin.
 * Version: The plugin's version number. Example: 1.0.0
 * Author: Name of the plugin author
 * Author URI: http://URI_Of_The_Plugin_Author
 * Text Domain: Optional. Plugin's text domain for localization. Example: mytextdomain
 * Domain Path: Optional. Plugin's relative directory path to .mo files. Example: /locale/
 * Network: Optional. Whether the plugin can only be activated network wide. Example: true
 * License: A short license name. Example: GPL2
 */
The minimum information WordPress needs to recognize your Plugin is the Plugin Name line. The rest of the information (if present) will be used to create the table of Plugins on the Plugin management screen. The order of the lines is not important.
So that the upgrade mechanism can correctly read the Version of your plugin it is recommended that you pick a format for the version number and stick to it between the different releases. For example, x.x or x.x.x or xx.xx.xxx
Text Domain is optional. Must be a unique identifier for translation and the same as the one used in load_plugin_textdomain().
Domain Path is optional. Specify a path if the translations are located in a folder above the plugin's base path. Example: if .mo files are located in the locale folder then Domain Path will be /locale/ and must have the first slash. If not added, defaults to the base folder the plugin is located in.
Network is optional. Specify true to require that a plugin is activated across all sites in an installation. This will prevent a plugin from being activated on a single site when Multisite is enabled. You don't need to add this line if the plugin can be activated in network-wide mode and single site mode.
License is not read by WordPress but is meant to be a simple way of being explicit about the license of the code. The slug should be a short common identifier for the license the plugin is under.
Important: file must be in UTF-8 encoding.

License

It is customary to follow the standard header with information about licensing for the Plugin. Most Plugins use the GPL2 license used by WordPress or a license compatible with the GPL2. To indicate a GPL2 license, include the following lines in your Plugin:
<?php
/*  Copyright YEAR  PLUGIN_AUTHOR_NAME  (email : PLUGIN AUTHOR EMAIL)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License, version 2, as 
    published by the Free Software Foundation.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/

Programming Your Plugin

Now, it's time to make your Plugin actually do something. This section contains some general ideas about Plugin development, and describes how to accomplish several tasks your Plugin will need to do.

WordPress Plugin Hooks

Many WordPress Plugins accomplish their goals by connecting to one or more WordPress Plugin "hooks". The way Plugin hooks work is that at various times while WordPress is running, WordPress checks to see if any Plugins have registered functions to run at that time, and if so, the functions are run. These functions modify the default behavior of WordPress.
For instance, before WordPress adds the title of a post to browser output, it first checks to see if any Plugin has registered a function for the "filter" hook called "the_title". If so, the title text is passed in turn through each registered function, and the final result is what is printed. So, if your Plugin needs to add some information to the printed title, it can register a "the_title" filter function.
Another example is the "action" hook called "wp_footer". Just before the end of the HTML page WordPress is generating, it checks to see whether any Plugins have registered functions for the "wp_footer" action hook, and runs them in turn.
You can learn more about how to register functions for both filter and action hooks, and what Plugin hooks are available in WordPress, in the Plugin API. If you find a spot in the WordPress code where you'd like to have an action or filter, but WordPress doesn't have one, you can also suggest new hooks (suggestions will generally be taken); see Reporting Bugs to find out how.

Template Tags

Another way for a WordPress Plugin to add functionality to WordPress is by creating custom Template Tags. Someone who wants to use your Plugin can add these "tags" to their theme, in the sidebar, post content section, or wherever it is appropriate. For instance, a Plugin that adds geographical tags to posts might define a template tag function called geotag_list_states() for the sidebar, which lists all the states posts are tagged with, with links to the state-based archive pages the Plugin enables.
To define a custom template tag, simply write a PHP function and document it for Plugin users on your Plugin's home page and/or in the Plugin's main PHP file. It's a good idea when documenting the function to give an example of exactly what needs to be added to the theme file to use the function, including the <?php and ?>.

Saving Plugin Data to the Database

Most WordPress Plugins will need to get some input from the site owner or blog users and save it between sessions, for use in its filter functions, action functions, and template functions. This information has to be saved in the WordPress database, in order to be persistent between sessions. There are four (4) methods for saving Plugin data in the database:
  1. Use the WordPress "option" mechanism (described below). This method is appropriate for storing relatively small amounts of relatively static, named pieces of data -- the type of data you'd expect the site owner to enter when first setting up the Plugin, and rarely change thereafter.
  2. Post Meta (a.k.a. Custom Fields). Appropriate for data associated with individual posts, pages, or attachments. See post_meta Function Examples, add_post_meta(), and related functions.
  3. Custom Taxonomy. For classifying posts or other objects like users and comments and/or for a user-editable name/value list of data consider using a Custom Taxonomy, especially when you want to access all posts/objects associated with a given taxonomy term. See Custom Taxonomies.
  4. Create a new, custom database table. This method is appropriate for data not associated with individual posts, pages, attachments, or comments -- the type of data that will grow as time goes on, and that doesn't have individual names. See Creating Tables with Plugins for information on how to do this.

WordPress Options Mechanism

See Creating Options Pages for info on how to create a page that will automatically save your options for you.
WordPress has a mechanism for saving, updating, and retrieving individual, named pieces of data ("options") in the WordPress database. Option values can be strings, arrays, or PHP objects (they will be "serialized", or converted to a string, before storage, and unserialized when retrieved). Option names are strings, and they must be unique, so that they do not conflict with either WordPress or other Plugins.
It's also generally considered a good idea to minimize the number of options you use for your plugin. For example, instead of storing 10 different named options consider storing a serialized array of 10 elements as a single named option.
Here are the main functions your Plugin can use to access WordPress options.
add_option($name, $value, $deprecated, $autoload);
Creates a new option; does nothing if option already exists.
$name
Required (string). Name of the option to be added.
$value
Optional (mixed), defaults to empty string. The option value to be stored.
$deprecated
Optional (string), no longer used by WordPress, You may pass an empty string or null to this argument if you wish to use the following $autoload parameter.
$autoload
Optional, defaults to 'yes' (enum: 'yes' or 'no'). If set to 'yes' the setting is automatically retrieved by the wp_load_alloptions function.
get_option($option);
Retrieves an option value from the database.
$option
Required (string). Name of the option whose value you want returned. You can find a list of the default options that are installed with WordPress at the Option Reference.
update_option($option_name, $newvalue);
Updates or creates an option value in the database (note that add_option does not have to be called if you do not want to use the $deprecated or $autoload parameters).
$option_name
Required (string). Name of the option to update.
$newvalue
Required. (string|array|object) The new value for the option.

Administration Panels

Assuming that your Plugin has some options stored in the WordPress database (see section above), you will probably want it to have an administration panel that will enable your Plugin users to view and edit option values. The methods for doing this are described in Adding Administration Menus.

Internationalizing Your Plugin

Once you have the programming for your Plugin done, another consideration (assuming you are planning on distributing your Plugin) is internationalization. Internationalization is the process of setting up software so that it can be localized; localization is the process of translating text displayed by the software into different languages. WordPress is used all around the world, so it has internationalization and localization built into its structure, including localization of Plugins.
Please note that language files for Plugins ARE NOT automatically loaded. Add this to the Plugin code to make sure the language file(s) are loaded:
 load_plugin_textdomain('your-unique-name', false, basename( dirname( __FILE__ ) ) . '/languages' );
To fetch a string simply use __('String name','your-unique-name'); to return the translation or _e('String name','your-unique-name'); to echo the translation. Translations will then go into your plugin's /languages folder.
It is highly recommended that you internationalize your Plugin, so that users from different countries can localize it. There is a comprehensive reference on internationalization, including a section describing how to internationalize your plugin, at I18n for WordPress Developers.

Updating Your Plugin

This section describes the necessary steps to update your Plugin when you host it on http://wordpress.org/extend/plugins, including details about using Subversion (SVN) with wordpress.org.
Assuming you have already submitted your Plugin to the WordPress Plugin Repository, over time you will probably find the need, and hopefully the time, to add features to your Plugin or fix bugs. Work on these changes and commit the changes to the trunk of your plugin as often as you want. The changes will be publicly visible, but only to the technically-minded people checking out your Plugin via SVN. What other users download through the website or their WordPress Plugin administration will not change.
When you're ready to release a new version of the Plugin:
  • Make sure everything is committed and the new version actually works. Pay attention to all WordPress versions your Plugin supports and try to test it with all of them. Don't just test the new features; also make sure you didn't accidentally break some older functionality of the Plugin.
  • Change the version number in the header comment of the main PHP file to the new version number (in the trunk folder).
  • Change the version number in the 'Stable tag' field of the readme.txt file (in the trunk folder).
  • Add a new sub-section in the 'changelog' section of the readme.txt file, briefly describing what changed compared to the last release. This will be listed on the 'Changelog' tab of the Plugin page.
  • Commit these changes.
  • Create a new SVN tag as a copy of trunk, following this guide.
Give the system a couple of minutes to work, and then check the wordpress.org Plugin page and a WordPress installation with your Plugin to see if everything updated correctly and the WordPress installation shows an update for your Plugin (the update checks might be cached, so this could take some time -- try visiting the 'available updates' page in your WordPress installation).
Troubleshooting:
  • The Plugin's page on wordpress.org still lists the old version. Have you updated the 'stable tag' field in the trunk folder? Just creating a tag and updating the readme.txt in the tag folder is not enough!
  • The Plugin's page offers a zip file with the new version, but the button still lists the old version number and no update notification happens in your WordPress installations. Have you remembered to update the 'Version' comment in the main PHP file?
  • For other problems check Otto's good write-up of common problems: The Plugins directory and readme.txt files

Plugin Development Suggestions

This last section contains various suggestions regarding Plugin development.
  • The code of a WordPress Plugin should follow the WordPress Coding Standards. Please consider the Inline Documentation Standards as well.
  • All the functions in your Plugin need to have unique names that are different from functions in the WordPress core, other Plugins, and themes. For that reason, it is a good idea to use a unique function name prefix on all of your Plugin's functions. A far superior possibility is to define your Plugin functions inside a class (which also needs to have a unique name).
  • Do not hardcode the WordPress database table prefix (usually "wp_") into your Plugins. Be sure to use the $wpdb->prefix variable instead.
  • Database reading is cheap, but writing is expensive. Databases are exceptionally good at fetching data and giving it to you, and these operations are (usually) lightning quick. Making changes to the database, though, is a more complex process, and computationally more expensive. As a result, try to minimize the amount of writing you do to the database. Get everything prepared in your code first, so that you can make only those write operations that you need.
  • Use WordPress' APIs instead of using direct SQL where possible. For example, use get_posts() or new WP_Query() instead of SELECT * FROM {$wpdb->prefix}_posts.
  • Use the existing database tables instead of creating new custom tables if possible. Most use-cases can be accomplished with custom post types and meta data, custom taxonomy and/or one of the other standard tables and using the standard tables provides a lot of UI and other functionality "for free." Think very carefully before adding a table because it adds complexity to your plugin that many users and site builders prefer to avoid.
  • SELECT only what you need. Even though databases fetch data blindingly fast, you should still try to reduce the load on the database by only selecting that data which you need to use. If you need to count the number of rows in a table don't SELECT * FROM, because all the data in all the rows will be pulled, wasting memory. Likewise, if you only need the post_id and the post_author in your Plugin, then just SELECT those specific fields, to minimize database load. Remember: hundreds of other processes may be hitting the database at the same time. The database and server each have only so many resources to spread around amongst all those processes. Learning how to minimize your Plugin's hit against the database will ensure that your Plugin isn't the one that is blamed for abuse of resources.
  • Eliminate PHP errors in your plugin. Add define('WP_DEBUG', true); to your wp-config.php file, try all of your plugin functionality, and check to see if there are any errors or warnings. Fix any that occur, and continue in debug mode until they have all been eliminated.
  • Try not to echo <script> and <style> tags directly - instead use the recommended wp_enqueue_style() and wp_enqueue_script() functions. They help eliminate including duplicate scripts and styles as well as introduce dependency support. See posts by the following people for more info: Ozh Richard, Artem Russakovskii, and Vladimir Prelovac.

External Resources

wordpress developer

Introduction

WordPress is fast, lightweight, and easy to use. To ensure it stays that way, the Core Team thinks carefully about adding functionality to the core WordPress code. Still, users often find the need to graft additional functionality onto WordPress to meet their needs. This section of the Codex offers guidelines and references for anyone wishing to modify, extend, or contribute to WordPress.
You may also wish to consult the Developer Documentation FAQ.
WARNING: Programming Code Ahead
The following articles may use programming terms without offering detailed explanations for non-programmers.
Although the alteration of the downloadable files for WordPress is limited to a few distinct programmers, every WordPress user has the ability to effect change in the core WordPress code, making WordPress highly customizable.

Plugin Development

  • Writing a Plugin - The best starting place for learning about how to develop plugins
  • WordPress Coding Standards - General information about coding standards for WordPress development
  • Debugging in WordPress - Reference and guide for using the built-in debugging system in WordPress.
  • Data Validation - A must-read for WordPress plugin authors. Describes the functions used by WordPress to validate and sanitize data. Plugin authors should be familiar with these functions and ideas.
  • Plugin Submission and Promotion - Once you have written your plugin, here are some hints on distributing it widely
  • Migrating Plugins and Themes - Contains information on how to upgrade your Plugin so it will work from version to version of WordPress
  • Function Reference - Complete PHP function reference for WordPress (version 2.1, with links to previous versions)
  • Global Variables - A list of all global variables created by WordPress
  • Plugin Resources - Comprehensive list of other references for plugin development
  • Post Types - Creating new types of posts other than the posts that display on the main loop.
  • Taxonomies - Creating new types of taxonomies other than the built-in ones.
  • Reserved Terms - A list of reserved terms in WordPress.

APIs

  • Plugin API - Hooks, Actions, and Filters to use in your Plugins (version 2.1; has links to older version articles)
  • Shortcode API - A tutorial and reference for the shortcode API (new in version 2.5)
  • Dashboard Widgets API - A reference with examples for adding new widgets to the admin dashboard.
  • Settings API - A reference with examples for adding new settings to existing settings screens.
  • Options API - Details about the generic option storage system.
  • Transients API - Details about the temporary/time-constrained data storage system.
  • Widgets API - A reference with examples for creating widgets for use in sidebars.
  • Quicktags API - A reference for adding buttons to the HTML editor.
  • Rewrite API - Details about the URL rewriting API.
  • Theme Customization API - Details about the API for Theme Customization screen.

Contributing to WordPress

  • Contributing to WordPress - Main starting point if you would like to contribute to core WordPress development, documentation, support, translations, or financial health
  • Automated Testing - Testing WordPress using the automated test suite and how to use the tools and write test cases.
  • Release Philosophy - The philosophy of WordPress releases.

Forums, Lists, and Blogs

Other Information of Interest

  • Advanced Topics - Annotated list of many articles on advanced WordPress topics
  • Query Overview - Description of the WordPress query process used to find posts and display them
  • Reporting Bugs - Information on reporting and fixing WordPress bugs
  • Using Subversion - Introduction to SVN, the source code repository used by WordPress
  • Development Team - The members of the development team.

External Resources

WordPress Hooks

  • WP Hook Database - Thorough and extremely useful reference of all hooks (actions and filters) used in WordPress cross referenced by version.

WordPress Source Code

Other Resources

wordpress theme WooCommerce Themes

Prestashop Document part 6: Making the Native Modules Work

Making the Native Modules Work

This chapter explores the configuration process of all the default modules in PrestaShop 1.6.
There are more than 130 native modules available in 25 sections. Module sections are only displayed if they actually contain at least one module.
Icon
Some modules have configuration pages, which give you access to a couple of tools and information pages.
In every configuration page, generic buttons are gathered at the top of the screen:
  • Disable. Deactivates the module while keeping its current settings for later use.
  • Uninstall. Deactivates the module end delete its current settings.
  • Reset. Wipes the module's current settings to set them back to default.
  • Check and update. Checks whether a new version of this module is available (either in the PrestaShop repository or in the Addons online store), and if so, updates the module.
  • Manage hooks. This link is a shortcut to the "Positions" page, from the "Modules" menu. From there, you can change the location of the module's interface on the front-end of your shop, or launch the Live Edit tool. The "Positions" page is configured so that you only the hooks available to the current module are displayed.
  • Back. A link back to the module list.
At the bottom of the screen, the Manage translations selector contains shortcuts to the "Translations" page for installed modules. From there, you can update the module's translation for the selected language. For instance, you might want to change the wording in order to better fit your use.
Some modules will not be installed from files on your server, but downloaded from the Addons website. It helps ensure that you always have the latest version of a module.
The "Must have" modules are also from the Addons website, but are not freely available. They are not listed in this chapter.
This chapter contains the following sections:
Prestashop templates

Prestashop document part 5: Managing Modules and Themes

Managing Modules and Themes

PrestaShop 1.6 comes bundled with over 120 modules that can be installed/uninstalled and configured as desired, in order to customize and complete your shop.
The range of actions is virtually unlimited: the extensibility of PrestaShop makes it possible to turn your shop into exactly what you intend it to do, instead of you having to comply with constraints that you did not choose – provided you can find the module that does exactly what you need.
This chapter contains the following sections:
Do you want templates prestashop click here !

 

Your Modules

The "Modules" page under the "Modules" menu gives you access to the list of modules. On this page you can install, uninstall, configure and update each module. All the native modules are explained in depth in their own chapter, "Making the Native Modules Work". This chapter simply explains how the Modules page works.

Module notifications

Below the page title, you will at times get notifications from installed modules. Most of the time, the notification help you complete the configuration of modules that are installed but are not yet ready to be used: updating their settings should make the notification disappear... and your module work properly.

When one of your module has an update available on the Addons site, PrestaShop will let you know about it, and an "Update all" button will appear at the top of the page. Click on this button to update them all.

Addons connection

PrestaShop Addons users are first-class citizens when it comes to managing modules! Indeed, once you installation of PrestaShop is tied to your Addons account, the modules you get on Addons will automatically be installed and updated!
PrestaShop Addons is the central marketplace where you can get new modules and themes for your store. Creating an account is free, just click on the "Sign up" button, which will take you here: https://addons.prestashop.com/en/login#createnow

If you already have an Addons account, click on the "Log in" button to open the login window.

Enter your credentials, click on "Sign in": your installation of PrestaShop is now tied to your Addons account, and will start comparing your local modules with the ones that you got from Addons, making sure to keep each available and up to date!

The modules list

This list enables you to quickly find the module you want to install or edit the settings of.
The first section is where you can search for a specific module, or filter down modules until you find the one you are looking for.

  • Search field. Modules are displayed while you type their name, which makes it even more intuitive and fast.
  • Sort selectors. The list automatically reloads when you make a selection, and displays modules according to all the current settings.
    • Installed & Not Installed. Most of the time, you will want to perform an action on an installed module, or install a new one. This filter is the most commonly used.
    • Enabled & Disabled. Installed module are the only ones that can be configured, hence the importance of this selector.
    • Authors. You can filter the modules by author. By default, only "PrestaShop" is available, but as add more modules, this selector will prove very useful.
On the left is a list of all the module categories, with the number of modules for each in brackets. Click on a category in order to display the modules for this category.
One of the categories is named "Favorites" and is empty by default. This enables you to gather the modules you most often use, and to access them quickly. You can set your favorite modules using the "Mark as Favorite" action.
Modules can have one of 4 statuses:
  • Non-installed.
  • Installed but disabled
  • Installed and enabled.
  • Installed and enabled, but with warnings.
Some module have a "Popular" badge. This modules are actually from the Addons website. They are not free: the "Install" button is replaced by a shopping cart button, with the price of the module. Clicking that button open the module's page on the Addons website, where you can buy the module.
Difference between disabling and uninstalling
Icon
When you do not have a use for a module anymore, you can either disable or uninstall it. The results of both actions are seemingly the same: the module is not available anymore, its options do not appear in your back-office and any element it added to your front-end have disappeared.
The difference is that disabling a module keeps its configuration safe for later re-enabling, while uninstalling it removes all of its configuration and database data.
Therefore, you should only uninstall a module if you do not care about its data or if you are certain that you would not need it. If you are really sure you do not want that module on your shop, you can even click on its "Delete" link.

Performing Actions on Modules

Here are the available actions, depending on the module's status:
  • Uninstalled modules:
    • Install. This will trigger the installation of the module on your installation of PrestaShop. The module will be automatically enabled. It might add new options to your back-office.
    • Mark as favorite. This will add the module to your Favorites list.
  • Installed modules:
    • Configure. Some modules have a configuration page. In that case, they offer a "Configure" link to access a new interface where the user will be able to adjust all its settings.
    • Disable. When installed, a module is enabled by default. You can disable it, which will remove its options from your back-office, but will keep its settings for a later re-enabling.
      • Disable/display on mobile. This will disable the front-office view of the module only for mobile devices (smartphones, etc.).
      • Disable/display on tablets. This will disable the front-office view of the module only for tables.
      • Disable/display on computers. This will disable the front-office view of the module only for desktop computers.
    • Reset. This will restore the module's settings to their defaults.
    • Uninstall. This will disable the module and delete its data.
    • Mark as favorite. This will add the module to your Favorites list.
    • Delete. This will remove the module from the modules list, and delete its files and folders from your server.

Icon
Top ranking modules from Addons can be promoted to your module list, depending on your country settings. They appear among regular modules, but their action buttons are not labeled "Install" but instead "30 €", for instance. Clicking on the button takes you to the module's Addons page, from which you can log in, buy and download the module. From there on, you can install it on your shop.

Connecting to Addons

In the basic configuration, the modules' page will only let you update the default modules, the ones that were included in PrestaShop. If you have bought modules on Addons, the PrestaShop marketplace, and you want those to update automatically too, you have to connect your PrestaShop to Addons.
Click on the "Addons" link at the top of the screen: this will open a model window with a log in form. Simply fill in the form with your Addons connection details, and PrestaShop will now know (and update) the modules you have bought. Click on the "Addons" again, and it will display your account login.
If the modules you have bought on Addons are not updating, do check that you are connected through this form!

Prestashop document part 4: Managing Customers

Managing Customers

You have to take good care of your customers. That means making sure their profile contains all the information you need to have a package shipped to them, following up on their support requests, creating special discount groups, knowing which orders have been completed and which have been abandoned, and much more.
The "Customers" menu enables you to check on your customers' details, create groups to which you can apply discounts, view the current shop carts, handle customer service, etc.
This chapter contains the following sections:
Prestashop templates

Prestashop document part 3: Managing Orders

Managing Orders

As a shop manager, you will have to deal with heaps of orders and their accompanying invoices and customer support requests – at least, that's what we wish for you. The daily task of handling numerous orders can be daunting. Fortunately PrestaShop does its best to help you wade through them all and successfully handle your customers' purchases, along with credit slips and the unavoidable merchandise returns.
This chapter contains the following sections:
Prestashop themes

Prestashop 1.6 Document part 2: Managing the Catalog

Managing the Catalog

The foundation of a PrestaShop site is its catalog, which contains products and product categories. Building and improving your catalog is the main way you will make your website live in the eyes of the customer. This is where your shop becomes a reality, creating content, and thus giving value to your online presence.
As the heart of your shop, your catalog deserves a great deal of your attention. Adding products does not only mean adding an image and some text, and then validating your content. It means knowing your product by heart: price, weight, size, features, specifications, details, manufacturer, supplier and so much more. You should not start adding products to your Catalog without knowing exactly what you want to present to the customer, and thus need to have a set plan about your products and the way they will be displayed. This also means knowing your shop's front-office like the back of your hand in order to properly fill in the required fields.
The "Catalog" section can be accessed by opening the menu with the same name, which lists all the product-related pages. This is where you manage your products and their characteristics throughout your PrestaShop shop.
This chapter contains the following sections:

Prestashop document 1.6 part 1

Getting started with PrestaShop 1.6

This guide was written to help you download and install PrestaShop 1.6.
Other languages
Icon
Current guides:
Older guides:
Every step of the process is detailed, with tips and indications to help you get the most of PrestaShop. Make sure to read the instructions at least once before proceeding with the installation.
The presented chapters should be read one after the other: for instance, the "What you need to get started" chapter should be read first. No instruction should be skipped, as having a correct environment for your installation of PrestaShop is essential for its health and its growth.


  • No labels

Cách kiểm tra mắt họa mi


Lang thang trên mạng tìm thấy cái này hay hay, anh em xem qua để thêm chút kinh nghiệm
Bảng mầu mắt của Họa Mi
Mình xin dịch những hình ảnh trên nhé :
1,Lục đậu thanh. 2,Thiên lam thanh. 3,Bạch nhãn thủy. 4,Phỉ thúy lục. 5,Bảo thạch lục. 6,Hoàng kim sa. 7,Nguyệt bạch nhãn. 8,Sà nhãn. 9,Thái hoa hoàng. 10,Đạm lục sa. 11,Khôi bạch thủy. 12,Kim hoàng sa. 13,Khôi nhãn. 14,Hoàng kim nhãn. 15,Đại thanh nhãn. Bốn con mắt còn lại được ghi chú là "Tần lãnh bắc pha điểu" nghĩa là chim vùng núi cao bắc nước Tần.

Và em cũng có 1 số kinh nghiệm chọn 1 chú Họa Mi thế này có gì không phải mong các tiền bối bỏ qua cho em nhé :
- Về tổng thể: Chọn chim già rừng, hình thức phải thuộc một bộ nào đó ( ngũ trường hoặc ngũ đoản ) tác phong chững chạc, nhảy lên xuống theo quy luật, dù nó là chim mộc. khi nhảy phải phát ra âm nặng ( nghe Phịch phịch chứ không phải xoạch xoạch ) đó là con chim có cốt chứ không phải to vì lông
- Bộ lông Hoạ Mi: chọn chim có bộ lông khô, tơi, mỏng, ngắn, ít hoa, sáng màu, vùng lông trắng dưới bụng càng rộng càng tốt ( chú ý tránh lông dầu, loại chất lông có màu xẫm và bết dính, k tơi. vì loại chim này khó thuần dưỡng và khi đã mất lửa thì rất khó hồi phục, )
- Đầu Hoạ Mi: chọn chim có tảng đầu to, phẳng, gáy dài, lông đầu thưa và ngắn, càng ít hoa càng tốt. hai bên thái dương càng vuông càng tốt.
- Mắt Hoạ Mi: chọn loại mắt nhỏ, méo, mí dày, nhăn nheo, tối màu, con ngươi nhỏ và đục nhìn có vẩn như phù sa, hoạ đóng cao, lam mắt rộng và càng ít lông mi càng tốt
- Mỏ: chọn mỏ xẻ hoặc mỏ đúp đa là tốt nhất, nếu mỏ kênh, lỗ mũi to thì hay hót, chim chiến thì cần có hàm sâu và mỏ dưới dày, cạnh mỏ sắc, sống mỏ cao
- Chân: chọn chân khô, giống như cái chân gà phơi nắng, màu trắng vàng là tốt. Móng ngắn, cong, sắc nhọn, nhìn rõ tia máu trong lõi móng.
- Đuôi Hoạ mi: chọn đuôi dài cho bộ ngũ trường và đuôi dẻ quạt cho bộ ngũ đoản, đuôi dẻo, đệm đuôi dày.
- Cánh Hoạ Mi: chọn cánh buồm, hơi xệ, nhưng không phải xệ vì bị suy.
Về cơ bản là vậy, nhưng trên thực tế thì phải tuỳ cơ ứng biến cho phù hợp với điều kiện của mình, vì trên thực tế rất khó chọn được 1 chú chim hoàn hảo như lý thuyết mà lại hợp với túi tiền của mình.

Bên trên là cách chọn chim rồi thì bên dưới này em lại sưu tầm được vài quan điểm cần tránh khi chọn chim họa Mi :
- Một là, Họa Mi non rừng: Nhỏ con, mép vàng, lông mịn, chân tròn và ướt ( ví như da em bé )
Nếu còn mộc thì khi ta động vào lồng nó nhảy và húc đầu lung tung không có 1 quy luật nào cả.
Nếu đã thuộc thì có các biểu hiện sau: ở trong lồng thì ỉa bậy và hay bới phân; treo trên cây thì hay vặt lá, bẻ cành nhìn cứ ngồ ngộ như đứa trẻ con vậy; Khi đặt dưới đất thì bới đất nhặt cát và tha các thứ linh tinh vào lồng; khi hót thì tắc cú không thành bài vì chưa tốt nghiệp trường nghệ thuật tại rừng ( chim chưa trưởng thành )
- Hai là, Họa mi lông dầu: tôi đã nói ở trên, loại này có bộ lông tối màu và bết dính, mặt lông bóng như dầu nhớt. loại này rất khó thuần và khi đã mất lửa thì rất khó vực lại.
- Ba là, Họa mi gáy lợn: gáy của nó không phẳng xuống lưng, mà có chỗ gợn lên như gáy con lợn. Loại này nếu chơi hót thì còn tạm chứ nếu chơi chiến thì dứt khoát không mua. Vì loại này dù có căng đến mấy thì khi đánh cũng nhát đòn và chạy sớm.
- Bốn là, Họa mi rậm đầu: k nên chọn những con chim có bộ tóc dày, rậm và nhiều hoa. vì loại này là chim nhát, kém cả hót lẫn đánh.

- Năm là, Mắt loãng và sáng màu: Mắt là thứ quan trọng nhất, khi chọn không nên chọn con có chất mắt loãng, sáng long lanh như giọt sương.
- Sáu là, mắt lộ khóe: k nên chọn chim có mắt lộ khóe. cái da mắt k che hết con ngươi mà đề lộ ra cái khóe mắt ( chính là chỗ hay đùn gỉ ở mắt người )

Bên trên là cách chọn và vài điều cần tránh khi chọn chim
Sau đây em xin nêu 1 số điều để thuần và dưỡng chim Họa Mi
Sau khi đã chọn cho mình một chú Mi ngon lành từ "rừng" về ( Mi bổi), ta bắt tay vào việc. Tìm 1 cái lồng 60 (60 nan), không cần vẹc-ni chi cả (Lồng Mộc), sau này ta sẽ sắm lồng xịn khi mà chú đã ra giáng rồi thỉ cũng không muộn. Một cái áo lồng màu xanh dương đậm ( xanh biển), hoặc màu đen, 4 cái kẹp ( kẹp quần áo cũng dc). Trong lồng nên bỏ 3 cóng, 2 cóng nước và 1 cóng trộn sâu tươi cùng tấm. Khi có nhà rồi, cho chú ta vào, phủ kín áo lồng, treo vài góc nhà hay góc sân.
Mỗi ngày nhớ thăm chừng nuớc khoảng 2 lần ( 1 buổi sáng và 1 buổi tối), mỗi sáng lặt chục con cào cào quăng vô, xong cứ "trùm mền" nó lại.
Một tuần sau, có thể làm bước 2, đó là cái áo lồng, mỗi bên vén lên 1 ít, chừa 1 khoảng trống đúng bằng khoảng cách cửa lồng, mỗi bên kẹp 2 cây kẹp cho áo lồng dính vô nan lồng. Giai đoạn đồ ăn, nước uống cứ tiếp tục như trên.
Thường thì Mi bổi mua về, ít nhất là vứt đi mùa đầu để thuộc cho đứng chim, chịu ăn mồi nhà ( tấm), có nhiều chú nhát quá phải tốn đến 2, 3 mùa mới đứng chim, chim đứng mới có thể đem đi dợt được, vội vã quá sẽ có tác dụng ngược lại, hư luôn con chim. Do đó khi tìm mua Mi bổi nên mua vào đầu năm ( đang mùa xuân), chim ở rừng khi đó vừa có bộ lông mới, vừa có lửa, mang về thuộc dễ hơn, nhanh hơn, chim mau dạn hơn.
Để tập Mi ăn tấm cũng không khó, ban đầu ta bỏ tỉ lệ 1:1 ( phân nữa tấm, phân nửa sâu tươi), sau vài ngày ta rút lại, 2:1 rồi 3:1,...khoảng 1 tháng là Mi có thể ăn tấm làm thức ăn chính.
Một tháng sau khi mua Mi bổi về, có thể cho Mi tắm, Mi bổi rất thích tắm, chọn ngày nắng to, buổi trưa, chọn chỗ vắng, nhẹ nhàng thì ta áp sát lồng Mi vô lồng tắm đã mở sẵn rồi kéo kiếm, sau đó ra chỗ khác, và phút thì Mi sẽ qua lồng tắm ngay, khi đó ta có thể lấy lồng tắm ra, và tránh chỗ khác để em nó tự nhiên tắm, he he. Khoảng 2 phút Mi nhảy tới, nhảy lui trong lồng, không xuống nước nữa, ta có thể cho em nó về lồng. Khi này áo lồng ta có thể mở rộng thêm nhưng không được quá 1/2 lồng, treo chim vào chỗ ráo (không có nắng ) để chim tự rỉa, làm khô lông. Cứ mỗi lần cho tắm là mỗi lần chim dạn thêm 1 bước, các bạn cứ yên chí thế.
Có nhiều chú nhát quá không chịu qua lồng tắm, mạnh bạo hơn, đứng từ phía sau, ta vỗ nhẹ vào lưng lồng vài cái, nó chui tọt qua lồng tắm liền.
Sau lần tắm đầu tiên, các bạn có thể rút bớt thời gian lại bằng cách cho Mi tắm mỗi tuần 1 lần, sau đó là mỗi ngày 1 lần.
Khoảng 3 tháng sau kể từ ngày đem chú ta về nhà, bạn có thể xách chú ta đi chơi rồi. Ở đây tui xin nói rõ là đem đi chơi thôi, không phải là đem đi luyện giọng.
Đến chỗ dợt, thường là công viên , chọn 1 chỗ ngồi hơi thoáng, ta đặt lồng chim trước mặt, để dưới đất, mở áo lồng ra và kẹp lại đúng bằng ngay cửa lồng, gọi 1 ly cafe đá, ít vài hơi thuốc, ung dung mở bịch cào cào, lặt từng em quăng vào lồng. Đúng điệu rồi, chắc là nghệ nhân.
Việc cho chim ăn cũng là một trong những tiểu xảo để làm chim mau dạn, quen mặt với chủ nuôi, Mi thông lắm, nhớ mặt , làm nó hoảng, mai mốt thấy mặt bạn từ xa là nó nhảy lia lịa. Kết hợp cùng việc để lồng chim dưới đất, ngồi trên ghế, banh 2 chân, chim ở giữa. Chú có nhát, có nhảy cũng không thể nhảy ngược lên mà bể đầu, chỉ có nhảy qua, nhảy lại hoặc ở dưới bố lồng thôi.
Sau khi làm xong bịch cào cào, ta có thể treo chim lên xà, chọn chỗ không có Mi treo, tốt nhất là chỗ thưa, quay mặt cửa về hướng có nhiều chim để Mi tập làm quen với khung cảnh bên ngoài.
Việc thuần dưỡng 1 chú Mi có nhiều công đoạn, thuần cho Mi dạn, đứng lồng, chịu hót, thuần cho Mi hót hay và cuối cùng, cao cấp hơn đó là thuần cho Mi sống theo phong cách của chủ.
Nghe qua thì hơi lạ tai, nhưng thiết nghĩ đó cũng là một vấn đề ta cần suy nghĩ, bàn bạc cùng nhau xem đúng sai ra sao.
Công đoạn đầu, thuần cho Mi dạn, đứng lồng, chịu hót là tương đối khó nhưng cũng không phải là quá khó nếu bạn nhiệt tâm, chú ý hơn về những điều có vẻ như nhỏ nhặt trong việc hàng ngày chăm sóc Mi, ví dụ đơn giản : nuôi chim thì phải vệ sinh lồng, thay bố lồng.
Một chú Mi mới về, nhảy lưng tưng mỗi khi thấy bóng người hoặc xe cộ, con mèo,...bạn lò mò lại gần, mở cửa, thò tay lôi bố lồng ra, thay bố lồng khác...đảm bảo sau đó chú không tét máu đầu thì cũng hoảng càng thêm hoảng, ta giải quyết thế nào, đơn giản là ta chỉ thay bố lồng, vệ sinh lồng khi mà cho chú tắm.
Hoặc việc cắt móng, cắt mỏ cho chú thì sao ? Mi rất thông minh, bạn thò tay bắt chú trong lúc bạn và chú chưa thân, đảm bảo lần sau thấy mặt bạn từ xa là chú đã nhảy loạn xạ tìm đường trốn. Khi bạn muốn làm việc này, kiếm cái mũ đội vô, đeo cặp kính đen vào và thêm cái khẩu trang.
Công đoạn thứ 2 là khi ta đã có một chú Mi đã tưong đối dạn, đã xong lông rồi thì ta sẽ cho chú đi dợt giọng "ca sĩ" của mình.
Mi rừng chú nào cũng có sẵn giọng cả và phong phú theo mức độ nào thì do số tuổi sống ở rừng quyết định và do...bạn có chọn được chú có "ngon lành" hay không mà thôi. Tất nhiên, ngoài các yếu tố kể trên, dợt Mi luôn là yếu tố quan trọng.
Trong sân dợt, có biết bao là Mi, hay có, dở có, chưa kể đến các loài chim khác, chú Mi của bạn được đem đi dợt thường xuyên sẽ được nâng cấp giọng hót. Bản tính tự nhiên của chú là sao chép, sao chép ở đây không phải photo nguyên bản mà là có sự chọn lọc. Đi dợt mà Mi của bạn được treo gần những chú " khét lửa", những chú "trùm", thì chỉ cần vài hôm, giọng hót của chú Mi bạn sẽ có vài âm điệu của những chú kia, hoặc là thêm vào vài tiếng còi xe, tiếng mèo kêu, chó sủa,...
Điểm quan trọng cần lưu ý là khi dợt, đừng bao giờ dại dột treo lồng Mi của mình kế bên nhửng chú Mi đó, treo xa xa, cách 5, 7 mét và phải chú ý Mi của mình, nếu thấy chú nhảy lên, nhảy xuống vồ lồng về hướng những chú kia, đó là tín hiệu đáng mừng. Còn nếu thấy chú có vẻ hoảng, nhảy theo cách tìm đường trốn hoặc đứng yên 1 chỗ trên cầu, can thiệp ngay, treo xa hơn nữa, quay mặt hướng khác hoặc mượn 1 Mi mái kè ngay trước cửa lồng ngay, không thì chim dựng đầu thành Chào Mào của bác Bạch Đề.
Thời điểm này khi làm tấm, bạn có thể rang vàng đều hạt tấm, cho ăn tấm + cào cào tươi, không cho ăn sâu ( nuôi Mi thì tốt nhất đừng cho ăn sâu), có thể thay đổi thực đơn cào cào = liêu điêu nhưng ít thôi hoặc kèm thêm liêu điêu.

Chế độ phơi nắng, tắm cũng phải thích hợp, Mi nên phơi nắng mỗi ngày từ khoảng 7h đến 9h sáng là đủ, sau đó cho vào trong bóng mát, khoảng trưa thì nên cho tắm, tắm xong nên cho phơi nắng khoảng 3 đến 5 phút để chú hong khô lông rồi mang vào ngay, không nên để Mi tiếp xúc nắng trưa hoặc chiều.
Đến khi mà ta mang Mi vào sân dợt, vừa treo lên vài phút là chú ta đã lên cầu, đánh võng cái đầu, chơi liền tù tì vài phút hay hơn, khi đó ta có thể yên tâm để Mi đứng gần các chú Mi dữ khác nhưng vẫn phãi quan sát kỹ, "cao nhân tắc hữu cao nhân trị", Mi ta dữ nhưng có thể có Mi dữ hơn, khi đó Mi ta sẽ lép, khi đó phải tách ra xa một chút.
Khi này, trước khi mang Mi đi dợt, bạn có thể xách thêm vài quả lựu đạn, đến chỗ dợt, trong lúc nhâm nhi cafe, nhả khói thuốc chữ O, ngồi nghe ca sĩ nhà trổ giọng, bạn có thể ung dung quăng vài quả chỗ này, chỗ kia rồi đó.
Giai đoạn 3, giai đoạn mà tôi muốn trình bày trong bài này là ở đây, thuộc cho Mi phải tuân theo bạn !
Giai đoạn này thường chỉ bắt đầu khi mà Mi bạn thuộc khoảng từ mùa thứ 2 hoặc 3 trở đi, lúc này Mi đã dạn người, đã có giọng hay,...và ta đã có tình cảm thân thương với chú.
Việc đầu tiên bạn phải làm sao để chú nhận ra bạn, chính bạn chứ không phải là ai khác ! Có nhiều cách làm, không ai giống ai, tôi xin ví dụ:
Khi lại gần Mi búng tay 1 cái, miệng huýt sáo " chỏi che chèo, chỏi che chèo". Lâu dần, từ xa thấy hoặc nghe thấy tiếng huýt sáo từ xa, Mi sẽ nhảy qua lại điệu bộ mừng rỡ, vì là người bảo vệ chú, người chăm sóc chú,...
Việc này nghe qua có vẻ vô nghĩa, nhưng thực tế không vô nghĩa chút nào, có những lúc bạn treo Mi ở chỗ nào đó mà làm chú bị hoảng, hoặc có nhiều người dòm ngó là chú hoảng, bạn lại gần, khi thấy mặt bạn Mi sẽ bớt hoảng ngay, rồi động tác hạ lồng, chuyễn vị trí cho Mi nữa, chú Mi trong tay bạn đó như đứa trẻ đang được ông bố, bà mẹ nắm tay, nó im re ngay.
Đôi khi bạn có thể đổi chỗ dợt chim, bạn có thể yên tâm cùng chú đi mà không sợ chú lạ sân, lạ chỗ, có bạn, chú sẽ chơi hay hơn, dạn dĩ hơn.
'lang thang trên mạng tìm thấy cái này hay hay, anh em xem qua để thêm chút kinh nghiệm
Bảng mầu mắt của Họa Mi

Mình xin dịch những hình ảnh trên nhé :
1,Lục đậu thanh. 2,Thiên lam thanh. 3,Bạch nhãn thủy. 4,Phỉ thúy lục. 5,Bảo thạch lục. 6,Hoàng kim sa. 7,Nguyệt bạch nhãn. 8,Sà nhãn. 9,Thái hoa hoàng. 10,Đạm lục sa. 11,Khôi bạch thủy. 12,Kim hoàng sa. 13,Khôi nhãn. 14,Hoàng kim nhãn. 15,Đại thanh nhãn. Bốn con mắt còn lại được ghi chú là "Tần lãnh bắc pha điểu" nghĩa là chim vùng núi cao bắc nước Tần.


Và em cũng có 1 số kinh nghiệm chọn 1 chú Họa Mi thế này có gì không phải mong các tiền bối bỏ qua cho em nhé :
- Về tổng thể: Chọn chim già rừng, hình thức phải thuộc một bộ nào đó ( ngũ trường hoặc ngũ đoản ) tác phong chững chạc, nhảy lên xuống theo quy luật, dù nó là chim mộc. khi nhảy phải phát ra âm nặng ( nghe Phịch phịch chứ không phải xoạch xoạch ) đó là con chim có cốt chứ không phải to vì lông

- Bộ lông Hoạ Mi: chọn chim có bộ lông khô, tơi, mỏng, ngắn, ít hoa, sáng màu, vùng lông trắng dưới bụng càng rộng càng tốt ( chú ý tránh lông dầu, loại chất lông có màu xẫm và bết dính, k tơi. vì loại chim này khó thuần dưỡng và khi đã mất lửa thì rất khó hồi phục, )

- Đầu Hoạ Mi: chọn chim có tảng đầu to, phẳng, gáy dài, lông đầu thưa và ngắn, càng ít hoa càng tốt. hai bên thái dương càng vuông càng tốt.

- Mắt Hoạ Mi: chọn loại mắt nhỏ, méo, mí dày, nhăn nheo, tối màu, con ngươi nhỏ và đục nhìn có vẩn như phù sa, hoạ đóng cao, lam mắt rộng và càng ít lông mi càng tốt

- Mỏ: chọn mỏ xẻ hoặc mỏ đúp đa là tốt nhất, nếu mỏ kênh, lỗ mũi to thì hay hót, chim chiến thì cần có hàm sâu và mỏ dưới dày, cạnh mỏ sắc, sống mỏ cao

- Chân: chọn chân khô, giống như cái chân gà phơi nắng, màu trắng vàng là tốt. Móng ngắn, cong, sắc nhọn, nhìn rõ tia máu trong lõi móng.
- Đuôi Hoạ mi: chọn đuôi dài cho bộ ngũ trường và đuôi dẻ quạt cho bộ ngũ đoản, đuôi dẻo, đệm đuôi dày.
- Cánh Hoạ Mi: chọn cánh buồm, hơi xệ, nhưng không phải xệ vì bị suy.
Về cơ bản là vậy, nhưng trên thực tế thì phải tuỳ cơ ứng biến cho phù hợp với điều kiện của mình, vì trên thực tế rất khó chọn được 1 chú chim hoàn hảo như lý thuyết mà lại hợp với túi tiền của mình.


Bên trên là cách chọn chim rồi thì bên dưới này em lại sưu tầm được vài quan điểm cần tránh khi chọn chim họa Mi :
- Một là, Họa Mi non rừng: Nhỏ con, mép vàng, lông mịn, chân tròn và ướt ( ví như da em bé )
Nếu còn mộc thì khi ta động vào lồng nó nhảy và húc đầu lung tung không có 1 quy luật nào cả.
Nếu đã thuộc thì có các biểu hiện sau: ở trong lồng thì ỉa bậy và hay bới phân; treo trên cây thì hay vặt lá, bẻ cành nhìn cứ ngồ ngộ như đứa trẻ con vậy; Khi đặt dưới đất thì bới đất nhặt cát và tha các thứ linh tinh vào lồng; khi hót thì tắc cú không thành bài vì chưa tốt nghiệp trường nghệ thuật tại rừng ( chim chưa trưởng thành )

- Hai là, Họa mi lông dầu: tôi đã nói ở trên, loại này có bộ lông tối màu và bết dính, mặt lông bóng như dầu nhớt. loại này rất khó thuần và khi đã mất lửa thì rất khó vực lại.

- Ba là, Họa mi gáy lợn: gáy của nó không phẳng xuống lưng, mà có chỗ gợn lên như gáy con lợn. Loại này nếu chơi hót thì còn tạm chứ nếu chơi chiến thì dứt khoát không mua. Vì loại này dù có căng đến mấy thì khi đánh cũng nhát đòn và chạy sớm.

- Bốn là, Họa mi rậm đầu: k nên chọn những con chim có bộ tóc dày, rậm và nhiều hoa. vì loại này là chim nhát, kém cả hót lẫn đánh.


- Năm là, Mắt loãng và sáng màu: Mắt là thứ quan trọng nhất, khi chọn không nên chọn con có chất mắt loãng, sáng long lanh như giọt sương.

- Sáu là, mắt lộ khóe: k nên chọn chim có mắt lộ khóe. cái da mắt k che hết con ngươi mà đề lộ ra cái khóe mắt ( chính là chỗ hay đùn gỉ ở mắt người )



Bên trên là cách chọn và vài điều cần tránh khi chọn chim
Sau đây em xin nêu 1 số điều để thuần và dưỡng chim Họa Mi
Sau khi đã chọn cho mình một chú Mi ngon lành từ "rừng" về ( Mi bổi), ta bắt tay vào việc. Tìm 1 cái lồng 60 (60 nan), không cần vẹc-ni chi cả (Lồng Mộc), sau này ta sẽ sắm lồng xịn khi mà chú đã ra giáng rồi thỉ cũng không muộn. Một cái áo lồng màu xanh dương đậm ( xanh biển), hoặc màu đen, 4 cái kẹp ( kẹp quần áo cũng dc). Trong lồng nên bỏ 3 cóng, 2 cóng nước và 1 cóng trộn sâu tươi cùng tấm. Khi có nhà rồi, cho chú ta vào, phủ kín áo lồng, treo vài góc nhà hay góc sân.
Mỗi ngày nhớ thăm chừng nuớc khoảng 2 lần ( 1 buổi sáng và 1 buổi tối), mỗi sáng lặt chục con cào cào quăng vô, xong cứ "trùm mền" nó lại.
Một tuần sau, có thể làm bước 2, đó là cái áo lồng, mỗi bên vén lên 1 ít, chừa 1 khoảng trống đúng bằng khoảng cách cửa lồng, mỗi bên kẹp 2 cây kẹp cho áo lồng dính vô nan lồng. Giai đoạn đồ ăn, nước uống cứ tiếp tục như trên.
Thường thì Mi bổi mua về, ít nhất là vứt đi mùa đầu để thuộc cho đứng chim, chịu ăn mồi nhà ( tấm), có nhiều chú nhát quá phải tốn đến 2, 3 mùa mới đứng chim, chim đứng mới có thể đem đi dợt được, vội vã quá sẽ có tác dụng ngược lại, hư luôn con chim. Do đó khi tìm mua Mi bổi nên mua vào đầu năm ( đang mùa xuân), chim ở rừng khi đó vừa có bộ lông mới, vừa có lửa, mang về thuộc dễ hơn, nhanh hơn, chim mau dạn hơn.
Để tập Mi ăn tấm cũng không khó, ban đầu ta bỏ tỉ lệ 1:1 ( phân nữa tấm, phân nửa sâu tươi), sau vài ngày ta rút lại, 2:1 rồi 3:1,...khoảng 1 tháng là Mi có thể ăn tấm làm thức ăn chính.
Một tháng sau khi mua Mi bổi về, có thể cho Mi tắm, Mi bổi rất thích tắm, chọn ngày nắng to, buổi trưa, chọn chỗ vắng, nhẹ nhàng thì ta áp sát lồng Mi vô lồng tắm đã mở sẵn rồi kéo kiếm, sau đó ra chỗ khác, và phút thì Mi sẽ qua lồng tắm ngay, khi đó ta có thể lấy lồng tắm ra, và tránh chỗ khác để em nó tự nhiên tắm, he he. Khoảng 2 phút Mi nhảy tới, nhảy lui trong lồng, không xuống nước nữa, ta có thể cho em nó về lồng. Khi này áo lồng ta có thể mở rộng thêm nhưng không được quá 1/2 lồng, treo chim vào chỗ ráo (không có nắng ) để chim tự rỉa, làm khô lông. Cứ mỗi lần cho tắm là mỗi lần chim dạn thêm 1 bước, các bạn cứ yên chí thế.
Có nhiều chú nhát quá không chịu qua lồng tắm, mạnh bạo hơn, đứng từ phía sau, ta vỗ nhẹ vào lưng lồng vài cái, nó chui tọt qua lồng tắm liền.
Sau lần tắm đầu tiên, các bạn có thể rút bớt thời gian lại bằng cách cho Mi tắm mỗi tuần 1 lần, sau đó là mỗi ngày 1 lần.
Khoảng 3 tháng sau kể từ ngày đem chú ta về nhà, bạn có thể xách chú ta đi chơi rồi. Ở đây tui xin nói rõ là đem đi chơi thôi, không phải là đem đi luyện giọng.
Đến chỗ dợt, thường là công viên , chọn 1 chỗ ngồi hơi thoáng, ta đặt lồng chim trước mặt, để dưới đất, mở áo lồng ra và kẹp lại đúng bằng ngay cửa lồng, gọi 1 ly cafe đá, ít vài hơi thuốc, ung dung mở bịch cào cào, lặt từng em quăng vào lồng. Đúng điệu rồi, chắc là nghệ nhân.
Việc cho chim ăn cũng là một trong những tiểu xảo để làm chim mau dạn, quen mặt với chủ nuôi, Mi thông lắm, nhớ mặt , làm nó hoảng, mai mốt thấy mặt bạn từ xa là nó nhảy lia lịa. Kết hợp cùng việc để lồng chim dưới đất, ngồi trên ghế, banh 2 chân, chim ở giữa. Chú có nhát, có nhảy cũng không thể nhảy ngược lên mà bể đầu, chỉ có nhảy qua, nhảy lại hoặc ở dưới bố lồng thôi.
Sau khi làm xong bịch cào cào, ta có thể treo chim lên xà, chọn chỗ không có Mi treo, tốt nhất là chỗ thưa, quay mặt cửa về hướng có nhiều chim để Mi tập làm quen với khung cảnh bên ngoài.
Việc thuần dưỡng 1 chú Mi có nhiều công đoạn, thuần cho Mi dạn, đứng lồng, chịu hót, thuần cho Mi hót hay và cuối cùng, cao cấp hơn đó là thuần cho Mi sống theo phong cách của chủ.
Nghe qua thì hơi lạ tai, nhưng thiết nghĩ đó cũng là một vấn đề ta cần suy nghĩ, bàn bạc cùng nhau xem đúng sai ra sao.
Công đoạn đầu, thuần cho Mi dạn, đứng lồng, chịu hót là tương đối khó nhưng cũng không phải là quá khó nếu bạn nhiệt tâm, chú ý hơn về những điều có vẻ như nhỏ nhặt trong việc hàng ngày chăm sóc Mi, ví dụ đơn giản : nuôi chim thì phải vệ sinh lồng, thay bố lồng.
Một chú Mi mới về, nhảy lưng tưng mỗi khi thấy bóng người hoặc xe cộ, con mèo,...bạn lò mò lại gần, mở cửa, thò tay lôi bố lồng ra, thay bố lồng khác...đảm bảo sau đó chú không tét máu đầu thì cũng hoảng càng thêm hoảng, ta giải quyết thế nào, đơn giản là ta chỉ thay bố lồng, vệ sinh lồng khi mà cho chú tắm.
Hoặc việc cắt móng, cắt mỏ cho chú thì sao ? Mi rất thông minh, bạn thò tay bắt chú trong lúc bạn và chú chưa thân, đảm bảo lần sau thấy mặt bạn từ xa là chú đã nhảy loạn xạ tìm đường trốn. Khi bạn muốn làm việc này, kiếm cái mũ đội vô, đeo cặp kính đen vào và thêm cái khẩu trang.
Công đoạn thứ 2 là khi ta đã có một chú Mi đã tưong đối dạn, đã xong lông rồi thì ta sẽ cho chú đi dợt giọng "ca sĩ" của mình.
Mi rừng chú nào cũng có sẵn giọng cả và phong phú theo mức độ nào thì do số tuổi sống ở rừng quyết định và do...bạn có chọn được chú có "ngon lành" hay không mà thôi. Tất nhiên, ngoài các yếu tố kể trên, dợt Mi luôn là yếu tố quan trọng.
Trong sân dợt, có biết bao là Mi, hay có, dở có, chưa kể đến các loài chim khác, chú Mi của bạn được đem đi dợt thường xuyên sẽ được nâng cấp giọng hót. Bản tính tự nhiên của chú là sao chép, sao chép ở đây không phải photo nguyên bản mà là có sự chọn lọc. Đi dợt mà Mi của bạn được treo gần những chú " khét lửa", những chú "trùm", thì chỉ cần vài hôm, giọng hót của chú Mi bạn sẽ có vài âm điệu của những chú kia, hoặc là thêm vào vài tiếng còi xe, tiếng mèo kêu, chó sủa,...
Điểm quan trọng cần lưu ý là khi dợt, đừng bao giờ dại dột treo lồng Mi của mình kế bên nhửng chú Mi đó, treo xa xa, cách 5, 7 mét và phải chú ý Mi của mình, nếu thấy chú nhảy lên, nhảy xuống vồ lồng về hướng những chú kia, đó là tín hiệu đáng mừng. Còn nếu thấy chú có vẻ hoảng, nhảy theo cách tìm đường trốn hoặc đứng yên 1 chỗ trên cầu, can thiệp ngay, treo xa hơn nữa, quay mặt hướng khác hoặc mượn 1 Mi mái kè ngay trước cửa lồng ngay, không thì chim dựng đầu thành Chào Mào của bác Bạch Đề.
Thời điểm này khi làm tấm, bạn có thể rang vàng đều hạt tấm, cho ăn tấm + cào cào tươi, không cho ăn sâu ( nuôi Mi thì tốt nhất đừng cho ăn sâu), có thể thay đổi thực đơn cào cào = liêu điêu nhưng ít thôi hoặc kèm thêm liêu điêu.


Chế độ phơi nắng, tắm cũng phải thích hợp, Mi nên phơi nắng mỗi ngày từ khoảng 7h đến 9h sáng là đủ, sau đó cho vào trong bóng mát, khoảng trưa thì nên cho tắm, tắm xong nên cho phơi nắng khoảng 3 đến 5 phút để chú hong khô lông rồi mang vào ngay, không nên để Mi tiếp xúc nắng trưa hoặc chiều.
Đến khi mà ta mang Mi vào sân dợt, vừa treo lên vài phút là chú ta đã lên cầu, đánh võng cái đầu, chơi liền tù tì vài phút hay hơn, khi đó ta có thể yên tâm để Mi đứng gần các chú Mi dữ khác nhưng vẫn phãi quan sát kỹ, "cao nhân tắc hữu cao nhân trị", Mi ta dữ nhưng có thể có Mi dữ hơn, khi đó Mi ta sẽ lép, khi đó phải tách ra xa một chút.
Khi này, trước khi mang Mi đi dợt, bạn có thể xách thêm vài quả lựu đạn, đến chỗ dợt, trong lúc nhâm nhi cafe, nhả khói thuốc chữ O, ngồi nghe ca sĩ nhà trổ giọng, bạn có thể ung dung quăng vài quả chỗ này, chỗ kia rồi đó.
Giai đoạn 3, giai đoạn mà tôi muốn trình bày trong bài này là ở đây, thuộc cho Mi phải tuân theo bạn !
Giai đoạn này thường chỉ bắt đầu khi mà Mi bạn thuộc khoảng từ mùa thứ 2 hoặc 3 trở đi, lúc này Mi đã dạn người, đã có giọng hay,...và ta đã có tình cảm thân thương với chú.
Việc đầu tiên bạn phải làm sao để chú nhận ra bạn, chính bạn chứ không phải là ai khác ! Có nhiều cách làm, không ai giống ai, tôi xin ví dụ:
Khi lại gần Mi búng tay 1 cái, miệng huýt sáo " chỏi che chèo, chỏi che chèo". Lâu dần, từ xa thấy hoặc nghe thấy tiếng huýt sáo từ xa, Mi sẽ nhảy qua lại điệu bộ mừng rỡ, vì là người bảo vệ chú, người chăm sóc chú,...
Việc này nghe qua có vẻ vô nghĩa, nhưng thực tế không vô nghĩa chút nào, có những lúc bạn treo Mi ở chỗ nào đó mà làm chú bị hoảng, hoặc có nhiều người dòm ngó là chú hoảng, bạn lại gần, khi thấy mặt bạn Mi sẽ bớt hoảng ngay, rồi động tác hạ lồng, chuyễn vị trí cho Mi nữa, chú Mi trong tay bạn đó như đứa trẻ đang được ông bố, bà mẹ nắm tay, nó im re ngay.
Đôi khi bạn có thể đổi chỗ dợt chim, bạn có thể yên tâm cùng chú đi mà không sợ chú lạ sân, lạ chỗ, có bạn, chú sẽ chơi hay hơn, dạn dĩ hơn.'