avenueverve
Forum Replies Created
-
Forum: Plugins
In reply to: Verve Meta Boxes – Gone?As promised, here’s the link to the Git repo:
https://github.com/avenueverve/verve-meta-boxesForum: Plugins
In reply to: Verve Meta Boxes – Gone?Erik Petersen of TRILOS reached out to me today about Verve Meta Boxes. As the developer of the plugin I must apologize for not keeping it updated. I have been working at a startup which takes all my time. Here are some things I can tell you:
The timthumb security vulnerability was removed in version 1.2.9.
I currently run Verve Meta Boxes on a busy version 3.3.1 wordpress site – ymmv however.
I plan on putting the plugin on Github this week. Will post here the location of the archive when I do. If you have less than version 1.2.9, please email me (you can find my email at the bottom of my site: avenueverve.com), and I will send you a zip archive.
Forum: Plugins
In reply to: [Verve Meta Boxes] [Plugin: Verve Meta Boxes] Security vulnerabilityHi johnnyfish19,
I will confirm that you can just drop in the new version of timthumb.php into verve-meta-boxes plugin and everything will work fine. You are also correct in that timthumb.php is only used to display image on edit screen.
I have an upgrade to timthumb.php as part of the next release, currently in testing phase.
Thank you Rein, Hiroki and all for this. I’ve applied the patch and updated timthumb.php to version 2.0.
It has been hard for me to maintain this plugin, overloaded with work — a good thing — but still. Problem is I don’t have time to test everything. I am including a link to the updated plugin here. If people are kind enough to test then I will upload it to svn. I humbly apologize for not being able to do the testing.
I am actually so happy that other people are making good plugins to address this functionality. I wrote vmb since at the time there was nothing available and I needed the functionality.
🙂 komra
I will probably automatically hide the custom post meta box on any post type that uses verve post meta. Coming soon to an upgrade near you! 😀
Forum: Fixing WordPress
In reply to: Verve Meta Boxes, and value stored in checkboxhi taghaboy,
when you have multiple values, you will need them back in an array. so do put FALSE in get_post_meta, rather than TRUE (TRUE returns a single value). Also change the foreach statement to:
foreach($var_offres as $offre) :here is the complete code snippet:
<?php $var_offres = get_post_meta($post->ID, "offres", FALSE); foreach($var_offres as $offre) : ?> <?php if($offre !== '') { ?> <li><?php echo $offre; ?></li> <?php } ?> <?php endforeach; ?>hi doron,
You need to echo the value
<?php echo get_post_custom_values('img_upload'); ?>and then really, you would want to echo it inside an image tag:
<img src="<?php echo get_post_custom_values('img_upload'); ?>">something like that
😀
Check out the wordpress docs for
Forum: Plugins
In reply to: Verve Meta Boxes Date Formatyou need to do strtotime($airtime_begin) because the date function takes a timestamp as an argument. So this will work:
<?php echo date("M j, y",strtotime($airtime_begin))?>Hi Viter, I just tested for this error, and could not reproduce it. Can you provide any additional information on this? Also, try disabling other plugins to see if that fixes it and then tell me the results? thanks!
Hi Debasish, I am unable to recreate the problem. Can you give me more information, anything that you think might be relevant. I just installed a fresh version of Verve Meta Boxes to test and everything runs okay. Maybe it is conflicting with other plugins? Try disabling other plugins and see if that fixes the problem, and let me know what you find.
Forum: Plugins
In reply to: [Verve Meta Boxes] [Plugin: Verve Meta Boxes] Date OutputForum: Plugins
In reply to: [Verve Meta Boxes] [Plugin: Verve Meta Boxes] Date OutputHi nimaha,
The format the date is stored in the database is a standard format, and it is much better for data to be stored in this way. Makes possible to compare dates, etc.
What you are looking for is the way to format dates. This can be done with the php date function: http://php.net/manual/en/function.date.php
so for example if you want to see June 25, 2010 @ 5:30 PM, you would do something like this:
`<?php echo date(“F j Y @ g:i A”,strtotime($your_custom_date_field_value_here));?>Forum: Plugins
In reply to: [Plugin: Verve Meta Boxes] wp 3.0 and post_typesHi anointed,
The updated plugin looks for post types that support custom-fields. I changed this from polling the posts table to glean the custom post types available as that was more of a hack, this way is more in alignment with the wordpress way.
To update already existing post types to include custom fields support you can run this script:
<?php add_post_type_support( 'your_post_type_here', array('custom-fields') ); ?>So when creating the post type one must also specify the ‘supports’ => array(‘custom-fields’) argument.
Custom Post Type UI plugin will allow you to specify the ‘supports’ arguments:
http://ww.wp.xz.cn/extend/plugins/custom-post-type-ui/screenshots/More information
http://codex.ww.wp.xz.cn/Function_Reference/register_post_typeadd_action('init', 'my_custom_init'); function my_custom_init() { $args = array( 'label' => __('Albums'), 'singular_label' => __('Album'), 'public' => true, 'show_ui' => true, 'capability_type' => 'page', 'hierarchical' => false, 'rewrite' => true, 'supports' => array('title', 'thumbnail','custom-fields') /// <<< custom-fields needs to be supplied here. ); register_post_type( 'album' , $args ); }Forum: Fixing WordPress
In reply to: Automatic post title loop in taxonomy.phpHere is a pasteable piece of code to get the taxonomy title for taxonomy.php template.
<?php $term = $wp_query->query_vars["term"]; $tax = $wp_query->query_vars["taxonomy"]; $title = get_term_by( 'slug', get_query_var( $term ), get_query_var( $tax ) ); ?>