Hello everyone.
Is there a possibility to translate Verve Meta Boxes plugin’s months names??
Actually when i use
<?php echo date("j.M.Y",strtotime(get_post_meta($post->ID, 'keyname', true)));?>
i get “19.Jan.2012” instead of italian language (19.Gen.2012)…
Thanks in advance ??
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>The date picker in this plugin is out of date and needs to be replaced. Here’s my fix:
Go to line 697 of the verve-meta-boxes.php file and insert the following lines of code:
wp_enqueue_script('jquery-ui-datepicker');
wp_enqueue_style( 'jquery-ui', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/base/jquery-ui.css' );'
Go to line 15 of the verve-meta.js file and replace it with the following line of code:
$(".date-pick").datepicker();
Enjoy your working date picker.
Note to the authors: feel free to integrate this.
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>We uncovered an issue uploading images after upgrading to WP 3.3. The issue is caused by WP calling wp_update_post twice when saving a post. The first call correctly moves the uploaded file to the permanent location, but during the second call (called via _fix_attachment_links()), the file is not seen as an valid uploaded file (because is_uploaded_file() fails in wp_handle_upload()). Therefore, Verve Meta Boxes removes the meta field as it thinks the user is trying to delete the file.
Here’s the patch to fix the issue:
--- verve-meta-boxes.php.original 2011-12-16 07:02:16.000000000 -0800
+++ verve-meta-boxes.php 2011-12-16 07:04:09.000000000 -0800
@@ -587,12 +587,14 @@
/////////////////// HANDLE FILE UPLOAD and POPULATE VALUE VARIABLE
$overrides = array('test_form' => false); //WHY DOES THIS NEED TO BE HERE?
$image = wp_handle_upload($_FILES[$key],$overrides);
- $value = $image["url"];
- if( vmb_is_empty($value) ){
- delete_post_meta($post_id, $key);
- }else{
- update_post_meta($post_id, $key, $value);
+ if (empty($image['error'])) {
+ $value = $image["url"];
+ if( vmb_is_empty($value) ){
+ delete_post_meta($post_id, $key);
+ }else{
+ update_post_meta($post_id, $key, $value);
+ }
}
}
}
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>Hello I am trying to use Verve Meta Boxes to upload an XLS file in the admin and have it link to download from the front end of the site.
This is what I am using, and everything but the file URL (or any isntance of the variable) shows up.
<?php if((get_post_meta($post->ID, "trade_show_database__spread_sheet", true))) { ?>
<?php if(get_post_meta($post->ID, "trade_show_database__spread_sheet", true)) {?>
<?php echo '<p><strong>Trade Show Contacts</strong><br>'; ?>
<?php $img = get_post_meta($post->ID, "trade_show_database_spread_sheet", true); ?>
<a href="<?php echo $img['url']; ?>">
<img src="<?php bloginfo('template_directory'); ?>/images/btn-click-to-download-200.jpg" /></a>
<?php echo '</p>'; ?>
i am sure there is something I missing, but I can’t seem to place it.
any help?
thanks
Rob
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>Somewhat new to verve meta boxes but LOVE them! The only issue I’m running into now is that I would like to assign certain boxes to sub categories and it’s currently only allowing me to show main categories.
For instance, (the site content isn’t common to the lay person so I’ll use a common example), If you have a food review site and you had the categories “mexican,” “italian,” and “american.” Then under american, you have a subcategory of “bbq,” and “hamburgers.” Is there a way of assigning a box just to hamburgers?
Currently, the only categories verve is allowing me to assign to are the mexican, italian, and americans:)
Thanks!
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>That is quite odd. I suspect something is going on with either a plugin or the theme. When viewed page using Firebug (in either Firefox or Chrome) there’s a near duplication of the link to the image:
Please sort this..
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>Hello,
Currently trying to use a custom box to upload a file to a CPT
I also have the following code that changes all posts author to a specific user
function my_change_author( $data , $postarr )
{
if ( 'comp_entry' == get_post_type() ) {
$data['post_author'] = 2;
}
return $data;
}
add_filter('wp_insert_post_data' , 'my_change_author' , '99', 2);
I presume the issue is when the extra meta is saved and how my function is getting in the way. The posts are still saved but the file doesn’t make it to the ‘uploads’ directory or remember the file name.
How is the file saved? Is it possible for me to hook my function in after that?
Thanks
Sam
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>Hello
Followed https://www.ads-software.com/extend/plugins/verve-meta-boxes/installation/ but so far can’t get the text to show in my pages. Although I have managed to get images, i don’t find a code working, and the one provided in installation doesn’t work for me:
<?php get_post_custom_values(‘your_custom_field_key_here’); ?>
What did I do wrong?
]]>The first time it’s displayed in the custom meta box, everything works great, but if you “Update” the post more than once it adds a \ before each single quote.
So for example,
Women’s Fiction
saves correctly once, then on second save the custom field changes to:
Women\’s Fiction
AND the dropdown list changes to use Women\’s Fiction from that point on for all posts and in the VMB admin display.
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>I would love it if VMB did something like Custom Post Type UI and allowed users to copy/paste code for a meta box into the theme’s functions.php file. ??
Also of course it would be great to be able to edit a meta box without having to delete it and all its data and start again.
Thank you so much for the great plugin!!
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>I have an existing website in development that I had previously defined metaboxes using verve meta boxes and wanted to extend one of my meta boxes that had previously not been defined for “pages” to now include “pages” as a post type that would show the meta box while editing “pages”. The verve metabox screen allows me to assign that meta box for “pages” as well as all other post types, but when I go to edit or create a page…the meta box is not showing and it’s not available for selection through screen options either. It seems the only way to get a meta box on a post type is to create a completely new meta box every time….and then I have to assign all the variables or custom fields with new unique field names which is not desirable.
the installation is wp 3.1 with verve meta boxes 1.2.6…neither are the latest versions…but am nervous about updating, as that often breaks other things.
Any help is much appreciated
Best, Fred Shequine
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>It appears that the latest version of Verve Meta Boxes includes an outdated version of timthumb.php in /tools directory. There is a known security risk with this version of timthumb.php. Hackers can exploit this file to upload malicious scripts to your site.
Simply having the plugin on your site even if not activated still means you are at risk because the file is still publicly accessible.
In my testing, I was able to simply replace the entire contents of timthumb.php with the latest version of the script which is much more secure. The latest source code for timthumb can be found here: https://timthumb.googlecode.com/svn/trunk/timthumb.php.
Doing so did not affect the ability of Verve Meta Boxes to perform as normal, in my case, however as always change this at your own risk. From what I can tell (and I’m no expert) it appears that Verve Meta Boxes simply uses timthumb to display an image you upload on the edit screen.
I’m in no way affiliated with this plugin, I’ve just used it on many websites I’ve created and want to save people the trouble of dealing with a hacked website. I already had to remove malicious code from one of my sites.
More information about the vulnerability in timthumb can be found here: https://markmaunder.com/2011/08/01/zero-day-vulnerability-in-many-wordpress-themes/
And here: https://news.softpedia.com/news/Timthumb-Driven-WordPress-Attacks-Continue-216969.shtml
And here: https://weblog.mediatemple.net/2011/08/02/security-update-timthumb-php-vulnerability/
If you don’t feel comfortable editing the timthumb.php file, I recommend removing the plugin from your site until the developers properly address this.
]]>Ok, I love the plugin and all, but the sticky-note popups (aka description) is just plain broken.
Literally, if it wraps in new line, it breaks and looks silly.
Although I don’t like to do this to (good) plugins, I changed a line in JS so it would look better.
in verve-meta.js, 73, this:
$(this).next().toggle();
became:
$(this).next().css('display', 'block').css('position', 'absolute');
Maybe the developer will put it (or smth better) in the next update ??
]]>Hi Guys,
Love the plugin, however I have today come across an issue that isn’t good at all..
“Field Name” has no limit of length, however if you put in a field name that is too long (I haven’t had a chance to work out the exact char limit), it will simply not store the information.
The field name is converted to the title with lowercase and underscores correctly, however it doesn’t work.
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>Hi All,
I have recently updated my website word press version and verve-meta-boxes date picker stop working. Is anyone resolve this issue?
Thanks,
Vikrant
Do you have to set values for a checkbox? I would think that by default it would be 0 or false for unchecked and 1 or true for checked if you only have one box but it doesn’t seem to work that way. For example, if you have a field with a yes or no answer and use a checkbox you wouldn’t need any other value than checked or unchecked.
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>I’m using Verve Meta Boxes to add additional fields to “Products”, a custom post type created with the Custom Post UI plugin.
Initially the Verve Meta Boxes plugin displayed the “Products” post type in it’s array of context: page; post; products.
However, now I am trying to add additional fields, and “Products” no longer appears in the array.
I can create meta boxes but there is no way to attach them to the desired post type!
]]>Thanks for this great plugin. It’s practically a staple of my wordpress development ??
Just wanted to let you know I fixed a bug I found and was wondering if you might want to take a look at it. Essentially for some reason, when I tried to upload using an image field within one of my meta boxes, if i had an image within my post content, the image field upload wouldn’t work. After doing some tests and such, I found that the image field was uploading an image properly to the website and to the right location, however verve wouldnt save the new image into the post meta.
I found that this was happening because verves verve_save_postdata function was running twice, and the second time it ran, the delete_post_meta($post_id, $key) ran after the file was uploaded.
The problem was hard to find but easy to solve.
At the begining of the verve_save_postdata function I did the following to ensure the function only runs once.
$saved = false; // used to ensure this function only runs once per
save ?? the other checks don’t work totally
function verve_save_postdata( $post_id, $post ) {
global $saved;
if($saved){ return; }
$saved = true; // all subsequent calls will not run
I’m not sure if this technique has introduced any bugs but it seems to have worked fine for my clients website.
I also added the ability to delete previously uploaded files so they don’t hang around on the system if you want the snippet just let me know. I’ve always wondered whether verve removed previous images uploaded via an image upload field.
]]>Is there an option to define your meta boxes in your functions.php?
When you’re using this plugin for a multisite (with the same meta boxes) you have to create them over and over again.
And also when you have a local version and a live version of your website it should be very handy to define your boxes in the functions.php so you can test local and you don’t have to create all the boxes at the online version.
Thanks!
]]>Is it possible to upload a .swf document with the file field?
Verve isn’t doing anything now. Maybe because WordPress is blocking the upload of .swf files in general (trough Media uploader)?
Is it possible to allow this?
]]>It’s already been mentioned in these threads. For me it’s true too: https://www.ads-software.com/extend/plugins/advanced-custom-fields/
Best,
]]>I wanted to use a date picker to choose the date in which a “candidate” (a custom post type I set up) was born, but the date picker goes back as far as 1996, but not earlier than that. I’m not sure this is a bug in the plugin or the datepicker, haven’t investigated.
]]>Is it possible to style the verve meta boxes in the dashboard.
What I would like to do is that I am using text boxes for a tag line and want to increase the width of the box without changing plugin files because when updated I will lose changes. I know I can use the textarea box but that will give the client to much temptation to write more than needed.
Also the main question is whether there is way to select where the meta boxes will be displayed ie. I have tick boxes for styling different posts and would like them to appear in the sidebar under the publish button and page attributes.
Thanks in advance
Excellent plugin by the way.
Hi, how do I echo out images I uploaded through this plugin? I need to do this in the search results loop.
My code for the results page is:
<?php
/**
* The template for displaying Search Results pages.
*
* @package WordPress
* @subpackage Starkers
* @since Starkers 3.0
*/
get_header(); ?>
<!--START MAIN CONTENT-->
<div id="main-content">
<?php if (have_posts()) : ?>
<h5>Search Results</h5>
<?php next_posts_link('« Older Entries') ?> <?php previous_posts_link('Newer Entries »') ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?>>
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<?php the_excerpt(); ?>
</div>
<?php endwhile; ?>
<?php next_posts_link('« Older Entries') ?> <?php previous_posts_link('Newer Entries »') ?>
<?php else : ?>
<h2>No posts found. Try a different search?</h2>
<?php get_search_form(); ?>
<?php endif; ?>
</div>
<!--END MAIN CONTENT-->
<?php get_footer(); ?>
]]>
I cannot seem to uncheck all of the checkboxes of a checkbox list. Is there any way to allow this?
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>I am having difficulty getting the information that I enter into Verve metaboxes to show up on my site.
As instructed, I entered <?php get_post_custom_values(‘latin_name’); ?> in the loop of post templates. That has not been working and I can’t tell which file the loop is for custom templates in Custom Templates UI plugin.
Any help would be greatly appreciated.
Thank you,
Glenn
When used in conjunction with the plug-in “CMS Tree Page View,” my custom field values gets erased when moving pages around with their ajax reordering feature.
My genius developer friend who found the bug says you can:
“Add a nonce check around line 531 of file
verve-meta-boxes.php. There’s a note in there but no code. I _think_
that will fix it.”
I hope this is helpful, and hope it can be fixed. Thanks!
]]>In the installation instrustions it says to “Place <?php get_post_custom_values('your_custom_field_key_here'); ?>
inside the Loop in your templates”.
What does “inside the Loop” mean?
https://www.ads-software.com/extend/plugins/verve-meta-boxes/
]]>What is the best way to get Verve Meta Boxes to recognize custom post types that have been created manually (i.e. by code in functions.php) so the boxes can be matched to appear with the post type?
I had been using CMS Press but with the support of custom post archives in WP 3.1 it’s pretty much unnecessary so I’ve disabled the plugin and recreated those post-types with code.
If you need more detail I can supply it… thanks!
]]>