Thứ Bảy, 28 tháng 9, 2013

Firefox User Agent Switcher view iphone device

Firefox User Agent Switcher addon: khi cần view browser ở deveice IPHONE. Có những website thiết kế có đoạn code nhận phân biệt Iphone hoặc web thường. Add on này hiển thị nhanh để debug trên firefox.
Lâu lâu cũng cần cái này để kiểm tra.

Thứ Năm, 26 tháng 9, 2013

disable magic_quotes_gpc joomla 3.

Cách 1: trong file .htaccess
Thêm vào cuối cùng dòng  php_value magic_quotes_gpc off
Up lên host.

Cách 2:
1.Create file php5.ini
2. Add content
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
extension=pdo.so
extension=pdo_mysql.s
display_errors = Off
error_reporting = Off


Cách 3: Cách thao khảo tại: http://docs.joomla.org/How_to_turn_off_magic_quotes_gpc_for_Joomla_3
Tạo 1 file php5.ini thêm đoạn
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off
extension=pdo.so
extension=pdo_mysql.s
display_errors = Off
error_reporting = Off

Tạo 1 file php.ini thêm đoạn
magic_quotes_gpc = Off
magic_quotes_runtime = Off
magic_quotes_sybase = Off


Mở file .htaccess thêm đoạn code vào đầu file
<IfModule mod_suphp.c>
  suPHP_ConfigPath /home/myusername/public_html/yourJ3folder
  <Files php.ini>
    order allow,deny
    deny from all
  </Files>
</IfModule> 
 /home/myusername/public_html/yourJ3folder là đường dẫn tuyệt đối của host chỉ đến file php5.ini
 

Check url Mobile Joomla extension

Check MOBILE JOOMLA
?device=m
?device=iphone
?device=wap
?device=imode

Jevent change view Nagivation

Giới thiệu: JEVENT quản lý sự kiện theo thời gian, có thể lặp theo các ngày trong tuần.
Giao diện hiển thị theo kiểu năm, tháng, ngày. Chuyển đổi qua lại dễ dàng.

Ở đây hướng dẫn thay đổi pagination JEVENT.
Navigation mặc định JEVENT có hỗ trợ thêm phần view. Yêu cầu cần thay đổi giao diện (có sẵn).


Thứ Ba, 17 tháng 9, 2013

Xem nhanh đường dẫn tuyệt đối joomla 3.

Có nhiều lúc cần cấu hình theo đường dẫn tuyệt đối ví dụ virtuemart safe path, path log, path temp.
Thì có thể dùng cách này để xem nhanh trong joomla 3.
Joomla backend > System > System Information > [Directory Permissions] : xem phần logs hoặc temp (sau đó nhớ bỏ logs )


Thứ Tư, 11 tháng 9, 2013

Hướng dẫn Turn off RSFireWALL

Giới thiệu:
RSFIREWALL là component để bảo mật joomla tốt.
Bảo mật thêm 1 cấp.
Bảo mật Table users
Vì bảo mật tốt nên lúc cần nâng cấp hiệu chỉnh lại không thực hiện được. Vì vậy cần tắt RSFIREWALL

Cách thực hiện::
1. Trường hợp bình thường: Vào databse vào table RSFirwall Config tìm dòng enable: set 0
2. Trường hợp bảo mật cho table USER: cần tắt Plugin/system/rsfirewall.php đổi tên thành rsfirewall.bak khi làm xong thì trả lại như cũ

Cách lưu htaccess.txt thành .htaccess bằng notepad


1. Open htaccess.txt bằng Notepad
2. Save as
3. Chọn All file selection
4. Name file .htaccess


Thứ Ba, 10 tháng 9, 2013

CSVI 5.9.6 - import export virtue mart.

Phiên bản sử dụng CSVI 5.9.6 Pro  : Joomla 2.5, Virtue Mart 2.
Giới thiệu CSVI: Cấu trúc được định nghĩa để export và import. Mỗi exension được định nghĩa khác nhau vì vậy cần tham khảo cấu trúc để can thiệp export import.
Ở đây không chỉ import trên 1 table, ví dụ Virtuemart với 1 CSV Product chuẩn có thể import vào cùng lúc  category, image, cost, parent, prodcuct. (vì vậy cần phải xem hướng dẫn sử dụng).

Link download CSVI 5.9.6 Prohttps://docs.google.com/file/d/0B785Epf6q5XlS2JCX3FndVd5Ylk/edit?usp=sharing
Hướng dẫn sử dụng: http://www.csvimproved.com/overview#more-information

Hướng dẫn setup:
Setup component: setup bình thường.

Sau đó thực hiện theo hình ảnh ví dụ bên dưới:


Chủ Nhật, 8 tháng 9, 2013

10 jQuery CAPTCHA Plugins


Nguồn trích từ : http://www.jquery4u.com/security/10-jquery-captcha-plugins/
1. QapTcha: jQuery captcha system with jQuery & jQuery UI

This is an easy-to-use, simple and intuitive captcha system. It needs human action instead of to read a hard text and it is a very lightweight jQuery plugin.

Source
 


2. jQuery Fancy Draggable Captcha

Here is a jQuery example for a captcha in a registration form. In order to pass the “Are you human” test, the user has to drag the numbers from 1 to 6 into order.

Source


3. reCaptcha style Captcha with JQuery and PHP

This tutorial is about to creating a captcha same as recaptcha. Create your own recaptcha style captcha with PHP and jQuery.

Source



4. jQuery Advanced Ajax validation with CAPTCHA

jQuery offers a plugin called validate which will allow you to create stunningly user friendly sign up forms, login addresses, contact forms and much more. In this tutorial I’m going to teach you how to create a signup form with advanced AJAX validation and CAPTCHA.

Source



5. s3Capcha jQuery plugin

It is an advanced plugin script that asks for choosing the correct image instead of asking to recognize the difficult text.

Source



6. Ajax Stylish Captcha and Contact Form using JQuery and PH

This tutorial is about AJAX based contact form with jQuery validation and AJAX based captcha.

Source



7. Ajax Fancy Captcha

Ajax Fancy Captcha is a jQuery plugin that helps you protect your web pages from bots and spammers.

Source



8. jQuery Real Person

This plugin is designed to help overcome automated form submission by requiring a “real person” to identify text made up of dots. The entered value is compared on the server with the generated value to determine whether processing should continue.

Source



9. jQuery.buttonCaptcha

is a plugin, that protects your site from robots using jQuery. To unlock captcha you need to drag letters into baskets and get some simple word, or site name, which was typed in options.

Source



10. Sexy Captcha – Drag-and-Drop Ajax Captcha

Sexy Captcha is a truly ajaxified, sexy captcha module. It’s visually stimulating, functional and returns immediate feedback on whether the user’s answer was correct.

Source


AUTHOR: Sam Deering. Find out more about jQuery4u author on Google Plus.

Thứ Ba, 3 tháng 9, 2013

LAYER SLIDER JQUERY

LAYER SLIDER JQUERY:
Đối với thời điểm 09 năm 2013 - slider jquery được đánh giá cao và được nhiều người sử dụng.
Với tính năng đặc biệt: mỗi slide có nhiều lớp gọi là layer giống photoshop. Mỗi lớp có thể hình ảnh, text. Và đặc biệt là tính năng trình diễn khá giống với Power Point.

Link demo: http://codecanyon.net/item/layerslider-responsive-wordpress-slider-plugin-/full_screen_preview/1362246
Link download example: https://docs.google.com/file/d/0B785Epf6q5XlLVZRYWRBTlRyRUk/edit?usp=sharing

Thứ Hai, 2 tháng 9, 2013

RSForm!Pro - How to compare two fields using Javascript

The following script will be used to compare the value of these fields so you can get a confirmation that the data inuted by the user is correct.

You can start by creating a new form. In the "Edit form" you can enter these values:


  • Form Title: Compare
  • Form Name: Compare


  • The next step is to populate the form with the following components:
    1. Email field 1 - Textbox
      Name: email1
      Caption: Email1
      Required: Yes
      Validation: Your validation message here

      Click "Save" next to the component's settings
    2. Email field 2 - Textbox
      Name: email2
      Caption: Email2
      Required: Yes
      Validation: email

      Click "Save" next to the component's settings
    3. Submit button
      Name: compare
      Caption: Compare
      Reset: No
      Additional Attributes: onclick="return checkEmail('email1', 'email2');"

      Click "Save" next to the component's settings

    Go to the "CSS and Javascript" tab and paste the following code:


    <script type="text/javascript">
    function checkEmail(theForm) {
    if (document.getElementById('email1').value != document.getElementById('email2').value)
    {
    alert('Those emails don\'t match!');
    return false;
    }
    else {
    return true;
    }
    }
    </script>

    Click "Save" and that's it.