Skip to content

Instantly share code, notes, and snippets.

@littlefyr
littlefyr / optionsets.php
Created January 6, 2011 05:45
LittleFyr_OptionSet does all the heavy lifting of setting up an option page with a standard behaviour. Testing_Options provides the specific instance that defines the different option values.
<?php
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
abstract class LittleFyr_OptionSet {
protected $option_name;
$highlight_metabox = new WPAlchemy_MetaBox(array
(
'id' => '_metabox',
'title' => 'My Custom Custom Meta',
'types' => array('page'),
'template' => STYLESHEETPATH . '/custom/metabox.php'
));
function my_admin_scripts() {
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking staging.naturalwellbeing.com (be patient).....done
Server Software: nginx/0.6.35
Server Hostname: staging.naturalwellbeing.com
Server Port: 80
ActiveRecord::DangerousAttributeError (attribute? is defined by ActiveRecord):
/Users/adamvandenhoven/.rvm/gems/ruby-1.8.7-p174@rails3/gems/activerecord-3.0.0.beta4/lib/active_record/attribute_methods.rb:22:in `instance_method_already_implemented?'
/Users/adamvandenhoven/.rvm/gems/ruby-1.8.7-p174@rails3/gems/activemodel-3.0.0.beta4/lib/active_model/attribute_methods.rb:260:in `define_attribute_methods'
/Users/adamvandenhoven/.rvm/gems/ruby-1.8.7-p174@rails3/gems/activemodel-3.0.0.beta4/lib/active_model/attribute_methods.rb:259:in `each'
/Users/adamvandenhoven/.rvm/gems/ruby-1.8.7-p174@rails3/gems/activemodel-3.0.0.beta4/lib/active_model/attribute_methods.rb:259:in `define_attribute_methods'
/Users/adamvandenhoven/.rvm/gems/ruby-1.8.7-p174@rails3/gems/activemodel-3.0.0.beta4/lib/active_model/attribute_methods.rb:258:in `each'
/Users/adamvandenhoven/.rvm/gems/ruby-1.8.7-p174@rails3/gems/activemodel-3.0.0.beta4/lib/active_model/attribute_methods.rb:258:in `define_attribute_methods'
/Users/adamvanden
[2010-06-18 15:31:24] make
w: illegal option -- L
usage: w [hi] [user ...]
make: [libruby.1.9.1.dylib] Error 1 (ignored)
ld: in /usr/local/lib/libxml2.2.dylib, file was built for i386 which is not the architecture being linked (x86_64)
collect2: ld returned 1 exit status
make[1]: *** [../../.ext/i386-darwin10.3.0/tcltklib.bundle] Error 1
make: *** [mkmain.sh] Error 1
rake routes
--- a bunch of routes ---
new_order_checkout GET /orders/:order_id/checkout/new(.:format) {:controller=>"checkouts", :action=>"new"}
paypal_checkout_order_checkout /orders/:order_id/checkout/paypal_checkout(.:format) {:controller=>"checkouts", :action=>"paypal_checkout"}
paypal_confirm_order_checkout /orders/:order_id/checkout/paypal_confirm(.:format) {:controller=>"checkouts", :action=>"paypal_confirm"}
paypal_payment_order_checkout /orders/:order_id/checkout/paypal_payment(.:format) {:controller=>"checkouts", :action=>"paypal_payment"}
paypal_finish_order_checkout /orders/:order_id/checkout/paypal_finish(.:format) {:controller=>"checkouts", :action=>"paypal_finish"}
edit_order_checkout GET /orders/:order_id/checkout/edit(.:f
// Old Code:
if($f->verve_meta_field_type=='textarea'){
$meta_box_value = get_post_meta($post->ID, $f->verve_meta_field_key, true);
echo '<p><label for="'.$f->verve_meta_field_key.'">'.$f->verve_meta_field_name.$description.'</label>'; echo '<textarea name="'.$f->verve_meta_field_key.'" rows="3" cols="35">'.$meta_box_value.'</textarea></p>';
}
if($f->verve_meta_field_type=='select'){
$meta_box_value = get_post_meta($post->ID, $f->verve_meta_field_key, true);
NoMethodError (undefined method `no_login_required?' for #<SiteController:0x40c444fc>):
/vendor/extensions/sns/lib/sns/site_controller_ext.rb:24:in `ensure_no_login_required'
/vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/callbacks.rb:173:in `send'
/vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/callbacks.rb:173:in `evaluate_method'
/vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/callbacks.rb:161:in `call'
/vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:191:in `call'
/vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:591:in `run_before_filters'
/vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:577:in `call_filters'
/vendor/radiant/vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
/vendor/radiant/vendor/rails/actionpack/lib/action_controller/benchm
$ rake --trace production radiant:extensions:search:migrate
(in /home/user/example.com)
** Invoke production (first_time)
** Execute production
** Invoke environment (first_time)
** Execute environment
rake aborted!
Expected /home/user/example.com/vendor/extensions/search/app/models/search_page.rb to define SearchPage
/home/user/example.com/vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:249:in `load_missing_constant'
/home/user/example.com/vendor/radiant/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:in `const_missing'