Flaunt Books
Forum Replies Created
-
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Unserialize Meta Box DataYou can also use print_r($background) to see the array and then use the appropriate field such as [‘background-image’] or whatever…
Try that and let me know…. Should work.
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Unserialize Meta Box DataMy example was for a background. You might need
$background = unserialize($custom[‘firstimg’][0]);Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Unserialize Meta Box DataTry this in place of what you have:
$background = unserialize($custom[‘firstimg’]);Then just echo $background to see if it’s got data.
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Unserialize Meta Box DataI’m not sure but I’ll try to test your code. I assume you are trying to get the URL of the full size of the uploaded image?
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Unserialize Meta Box DataError on above code… Use this:
$custom_meta = get_post_custom($post->ID); $background = unserialize($custom_meta['background'][0]);
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Version 2.0 Coming Soon!Does 2.0 store settings in a mySQL table like version 1.8 or does it use a multi-dimensional associative array like we talked about last year?
I think the main issue was re-sorting the array once a setting field was dragged and dropped.
Any teasers on what is coming in 2.0?
Thanks & I look forward to it!Forum: Plugins
In reply to: [OptionTree] Wrong File Type – ERRORThat was version 1.1.6. No uploads were working on that installation at all.
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Theme IntegrationForum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Theme IntegrationThat’s really great Derek.
I am curious if you would be interested in some development I’ve done on your 1.1.6 version that allows a user to save settings into an alternate array (option) to have easily accessible layouts that can be activated / deleted / exported.
The purpose of coding this was to allow a client to easily manage several designs for their site within the Options Tree Settings without have to export / import txt files.
Just a simple click of the mouse let’s a user save the current settings as a new design and then create / activate / delete & export many more of them.
We also added some action hooks into a few places that allow more control over the internal processes.
Let me know as I would be happy to share it with you and the community.
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Default form values?I think the important issue behind default values is that the end-user is potentially hazardous to the site operations when they remove important values, insert wrong values, insert improperly formatted values (colors, measurements), etc.
Forum: Plugins
In reply to: [OptionTree] [Plugin: OptionTree] Default form values?Another way to achieve greater speed and simplicity is this code below:
Add this to the functions.php file in your theme:if ( function_exists( 'get_option_tree' ) ) { $theme_options = $theme_options; } function option_tree_default($val,$default){ global theme_options; if($theme_options[$val]){ return $theme_options[$val]; }else{ return $default; } }
Then within you theme you can use it as such:
echo 'option_tree_default('my_var_value','Default Value');
Forum: Plugins
In reply to: Image Voting SystemThere is a commercial plugin for image voting here:
https://flauntbooks.mybigcommerce.com/products/Image-Voting.htmlAn active coupon is June10 to receive $10 OFF. It’s got great reviews and sample sites.
Forum: Fixing WordPress
In reply to: Embedding a Contact form on single pageHi Eric,
I’ve done this integration for several photographers.I’ll have a plugin available for managing it as well as using a great forms management plugin.