Here are some resources to aid in understanding how to implement custom post types, and, more significantly, custom fields in WordPress 3:
http://codex.wordpress.org/Custom_Fields
http://justintadlock.com/archives/2007/10/24/using-wordpress-custom-fields-introduction
http://codex.wordpress.org/Function_Reference/add_meta_box
http://wefunction.com/2008/10/tutorial-creating-custom-write-panels-in-wordpress
http://kovshenin.com/archives/extending-custom-post-types-in-wordpress-3-0
http://codex.wordpress.org/Function_Reference/query_posts
Thursday, December 30, 2010
Sunday, May 30, 2010
Inserting Membership Types into CiviCRM
I reject repetitive tasks!
Here is the query I am using to insert new membership types into CiviCRM:
INSERT INTO `civicrm_membership_type` (name, domain_id, member_of_contact_id, contribution_type_id, duration_unit, duration_interval, period_type, visibility, weight )
VALUES ('Sponsor', 1, 2, 2, 'year', 1, 'rolling', 'Public', 2)
Obviously 'domain_id' and 'member_of_contact_id' need to be based on pre-existing conditions, so make sure you add one membership type to establish the pattern, then use this for the rest...
Here is the query I am using to insert new membership types into CiviCRM:
INSERT INTO `civicrm_membership_type` (name, domain_id, member_of_contact_id, contribution_type_id, duration_unit, duration_interval, period_type, visibility, weight )
VALUES ('Sponsor', 1, 2, 2, 'year', 1, 'rolling', 'Public', 2)
Obviously 'domain_id' and 'member_of_contact_id' need to be based on pre-existing conditions, so make sure you add one membership type to establish the pattern, then use this for the rest...
Monday, April 19, 2010
Linux list and delete fun
To display:
find . -name "cron.php.*"
To delete:
find . -name "cron.php.*" | xargs rm -rf
Yay!
find . -name "cron.php.*"
To delete:
find . -name "cron.php.*" | xargs rm -rf
Yay!
Sunday, April 18, 2010
What is with all these "smarty" errors in my CiviCRM installation?
http://sca-roadside-local:8888/civicrm/admin/uf/group?action=add&reset=1
user error: Smarty error: [in CRM/UF/Form/Group.hlp line 91]: syntax error: mismatched tag {/htxt}. expected {/ts} (opened line 90). (Smarty_Compiler.class.php, line 2338) in /Library/WebServer/Sites/MAMP/sca-roadside.org/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1093.
etc., etc., etc.!
user error: Smarty error: [in CRM/UF/Form/Group.hlp line 91]: syntax error: mismatched tag {/htxt}. expected {/ts} (opened line 90). (Smarty_Compiler.class.php, line 2338) in /Library/WebServer/Sites/MAMP/sca-roadside.org/sites/all/modules/civicrm/packages/Smarty/Smarty.class.php on line 1093.
etc., etc., etc.!
Running CRON jobs on a Mac
Finding this helpful:
http://www.alvinpoh.com/how-to-add-cron-or-cron-like-jobs-to-mac-with-mamp-or-otherwise/
however, I am confused. You launch the job cycle like this:
sudo launchctl load /Library/LaunchDaemons/yourfile.cron.plist
But how do you UN-launch it, say, to restart?
http://www.alvinpoh.com/how-to-add-cron-or-cron-like-jobs-to-mac-with-mamp-or-otherwise/
however, I am confused. You launch the job cycle like this:
sudo launchctl load /Library/LaunchDaemons/yourfile.cron.plist
But how do you UN-launch it, say, to restart?
Subscribe to:
Posts (Atom)