Dear Serge,
I'm Adriano and I will handle this issue now, could you provide me the credentials too (adriano.f@icanlocalize.com)?
Dear Serge,
I'm Adriano and I will handle this issue now, could you provide me the credentials too (adriano.f@icanlocalize.com)?
Dear Ryan,
About the file data, there are three parameters which you could use "size, name, error and tmp_name". So look an example of size validation below:
add_filter(‘cred_form_validate’,’my_validation’,10,2); function my_validation($field_data, $form_data) { // field data are field values and errors list($fields,$errors)=$field_data; // print the field values print_r($fields); // validate if specific form if ($form_data[‘id’]==12) if ($fields[‘my_field’][‘value’]['file_data']['my_file']['size'] > ’value’) // set error message per field $errors[‘my_field’]=’Wrong Value’; // return result return array($fields,$errors); }
Look the piece of the article which contains this explanation:
FILE / IMAGE FIELDS for field types like file or image, the field values of the $fields array contain also the upload data (if an upload was performed) eg for a field of type file with name ‘my_file’ $fields[‘my_file’][‘value’]=array( 'value'=>the url of the file (not final one if upload is currently done, or the actual file url if upload was done previously), 'file_data'=>array(‘my_file’=> ‘size’=> uploaded file size, ‘name’=> name of uploaded file, ‘error’=> what error occurred during upload, ‘tmp_name’=> location of temporary uploaded file ), // only set if actual upload is performed, else empty 'file_upload'=>empty array/not used ); );
Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.
Nope, no errors whatsoever. I'm looking at the console, and I can't produce any errors, whether I'm clicking or just letting the slider run. Whenever I click a pagination button, it pauses the slider, with no apparent errors.
Is there a setting I'm not seeing that controls whether a click will pause the slider? Anything else I'm missing?
I'll paste the various components of the view below for you to review, in case that helps. Please let me know what you find. Thanks!
FULL HTML:
——————————–
<div class="custom-slider">
[wpv-layout-meta-html]
[wpv-filter-meta-html]
</div>
FILTERS:
——————————–
Posts, ordered by post date, descending, limit to 10 items
Select posts with custom fields: wpcf-blog-slider = 1 (used to indicate which posts are to be used by the slider)
META HTML:
——————————–
[wpv-filter-start hide="false"]
[wpv-filter-controls][/wpv-filter-controls]
[wpv-pagination]
[wpv-pager-current-page style="link"]
[/wpv-pagination]
[wpv-filter-end]
VIEW OUTPUT:
——————————–
[wpv-layout-start]
[wpv-posts-found]
<!– wpv-loop-start –>
<wpv-loop>
<a href="[wpv-post-url raw="true"]">[wpv-post-featured-image size="full"]</a>
<div class="custom-slide-excerpt">
<h3>[wpv-post-title]</h3>
[wpv-post-excerpt length="100"]
<a href="[wpv-post-url raw="true"]" class="more-link">Read More</a>
</div>
</wpv-loop>
<!– wpv-loop-end –>
[/wpv-posts-found]
[wpv-no-posts-found][wpml-string context="wpv-views"]<strong>No posts found</strong>[/wpml-string][/wpv-no-posts-found]
[wpv-layout-end]
What is the Types version that are you using now?
Please make a database backup, install the Optimize Database plugin (http://wordpress.org/plugins/rvg-optimize-database/) and then execute some procedures of it and let me see the final log.
A same issue has been fixed in the past, are you using the latest version of all Toolset plugins?
Thanks.
Thanks, that did it . Sorry for taking so long to reply that the issue was resolved, just got around to it.
Yes it is in bytes, you are right. Please try to replace your code with:
if ($fields['wpcf-gallery-image']['value']['file_data']['size'] > 2097152) {
Dear Toine,
I've checked and it still in our "Client Requests" list and now it has two users asking for the same feature. I don't know when it will be implemented, but you will be notified when it is done. Thank you for your understanding.
Dear Rainman,
I get "Invalid post type" when visiting that url.
Can you double check?
Thanks,
Caridad
Dear ericaG,
The boolean operators which is availables are: AND, OR, NOT. Also you could use the empty() function to compare it, look:
evaluate="$start >= TODAY() OR !empty($start)"
Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.
Thanks, but the problem is that the field is NOT empty. It looks empty when I'm editing the content, but a value of January 1, 1970 actually gets stored (I know because when I return the value of that field with [types] it always comes out that way). So I need to know what that data looks like in the database so I can write an expression that checks against it- and if $start='January 1, 1970' that means that the field was intentionally left blank, and then I can complete my logic.
Dear Marcel,
This is the "posts not found" problem. We have a development version for you to test, I will send it to you by email.
Regards,
Caridad
Thanks for sharing your solution to this! Totally avoided the bald patch because of your post (no need to pull out my hair, that is!)
I would like to know what cirteria do you follow to answer topics.
I posted a topic around 4 hours ago (http://wp-types.com/forums/topic/why-are-custom-fields-automatically-added-to-a-page-when-i-insert-a-cred-form/),
and I see that there are many others that were posted after mine, have been already answered…
Thank you.
Dear William,
The address you provided doesnt respond. Have you got a new address for this?
Regards,
Caridad
Unfortunately it doesn't seem to work, I have tried all of the following shortcodes, I have included this shortcode in all of the view templates and views I am using, and I either get all pages appear (all pages like "home", "about us" etc. but no property pages – which is a custom post).
I have tried
[siblings]
[subpages]
[pagelist]
[siblings child_of="[wpv-post-id]"]
[subpages child_of="[wpv-post-id]"]
[pagelist child_of="[wpv-post-id]"]
Any advice?
I've talked with others developers and we will check the query to understand which is wrong there. A to do list has been added for this purpose, for any news you will be notified. Thank you for let us know about it and for your understanding.
Try
[siblings depth="1"]
Let me know what shows up.
I just sent that to you. Thanks!