Albert

Albert

Posts

  • Change contact form 7 field display size

    Contact Form 7 is using fixed display size for the form fields. In the form...
  • Get event list with feature image

    Plugin: The Events Calendar By Modern Tribe, Inc. The event data is stored on multiple rows in...
  • Multi-language for NationBuilder sites

    This is a note for adding Chinese language support for Gary Gu election site. Add...
  • Customize theme CityZen

    Theme: CityZen Add language switch to menu Template file: _nav.html change: add <li class="nodrop"> <a href="http://zh.nationbuilder.com{{...
  • Assign users to a post

    Affected table: wp_postmeta INSERT INTO `wp_postmeta` (`meta_id`, `post_id`, `meta_key`, `meta_value`) VALUES (14304, 4415, ‘U_S_C_users’, ‘a:9:{i:0;s:2:\”41\”;i:1;s:2:\”42\”;i:2;s:2:\”93\”;i:3;s:2:\”96\”;i:4;s:1:\”1\”;i:5;s:2:\”37\”;i:6;s:2:\”39\”;i:7;s:2:\”44\”;i:8;s:2:\”43\”;}’), (14305,...
  • WordPress + polylang – Globalization

    Tables wp_posts: posts wp_terms: post category, menu wp_term_taxonomy: term type (taxonomy), language (description), hierarchy, number...
  • Send web report by email from report page

    Taking report from web page function sendReport() { var dataInput = {}; reportBody = $(".dataTables_scroll");...
  • JQuery get checkbox value

    $('#checkbox').val() is always = 'on'. User:  $('#checkbox').is(':checked') to get correct value.
  • JQuery set selected option for supporting multi-language

    data is retrieved from web API in JSON format. Rendered on translation data completed. i18n.load(...
  • Changing DataTable cell width

    Problem: If only a few columns, the space is too big. $tblContainer.html("<table class='dataTable striped border...