Skip to content

Instantly share code, notes, and snippets.

$view = new view();
$view->name = 'lms_company_students_manage';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'og_membership';
$view->human_name = 'LMS Company Students Manage';
$view->core = 7;
$view->api_version = '3.0';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
@drushman
drushman / gist:4192685
Created December 3, 2012 04:23
Fix Feeds + Taxonomy
  1. Import taxonomy from CSV file : You please save CSV to encode "UTF-8"

@drushman
drushman / gist:4128988
Created November 22, 2012 01:50
Report HCAM.TV

Task done when upgrade hcam to drupal 7

  1. Upgrade core

  2. Migrate CCK to drupal 7

    • When upgrade we must config manager display
  3. Upgrade contribute

    • Reconfig views
  4. Upgrade custom modules

    • Convert HCAMTV Cancel Notification, HCAMTV Slideshow email, HCAMTV Slideshow Notification to rules drupal 7
  5. Upgrade theme hcamtv to drupal 7

@drushman
drushman / gist:4001941
Created November 2, 2012 15:16
Setup murray

How to config murray project

Theming views directory

  1. Theming complete code at file styles.css in theme dupify
  2. Attachment views glossary to do alpha pager

Reconfig buttons hanlder export to pdf.

  1. Config views
    • print_all
  • print_contact

Done

  1. Theming page directory follow pdf file design
  2. Theming pdf file export
    • Theming for view is print_all
    • Theming for view print_contact
    • Theming for view print_summary

Issue

  1. In customer's file design for page directory have four button but in customer's view only three button
  2. With export contact and summary. Doesn't file design and In views config contact and summary(print_contact, print_summary) of customer have some field confuse
@drushman
drushman / gist:3972910
Created October 29, 2012 10:46
Status project Murray

  1. Now, I am working on PDF template for export data to PDF
    • I base on your site config to doing PDF template
    • I was custom views name print_all to same PDF design file
    • Thought module print which will output HTML markup to pdf file, But now it does't found my css. So i am trying to resolve this problem
@drushman
drushman / gist:3945792
Created October 24, 2012 12:23
Requiment
1. Menu
2. (home) silde show : content type slide
3. (home)News 4 items left | 2 Teaser rigth ()
4. (home)Block text
5. (home)Footer menu
-------------------
Page Blog
1. Teaser news (1 node)
2. Taxonomy
3. 8 items teaser news
@drushman
drushman / contents.png
Created October 24, 2012 02:59
Struct news and contents tian
contents.png
@drushman
drushman / gist:3916189
Created October 19, 2012 04:12
Document braintree payment new update

Configuration and setup

  1. Setup modules: enable modules
    • Download https://github.com/braintree/braintree_php and push into folder sites/all/libraries/braintree (The file Braintree.php directory as sites/all/libraries/braintree/lib/Braintree.php)
    • commerce_braintree
    • commerce_braintree_subscription
    • rules_braintree
    • commerce_checkout_redirect
    • commerce_addressbook
  2. Configuration braintree