Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Justin Sternberg
@jtsternberg
do you see that the thumbnails are created and used in the media library?
Sergey Mochalov
@proweb
just a second I check it
Sergey Mochalov
@proweb
no
pdf image generation in 4.7 beta not working
or use lib which not on my server
with this plugin - https://wordpress.org/plugins/pdf-image-generator/ - all work, and images create
but with core - no one image was generated
strange things
Justin Sternberg
@jtsternberg
it didn't work for me either. I think it has something to do w/ where core libs live on your dev server (and permissions)
Sergey Mochalov
@proweb
is where any way to localise text_date_timestamp ?
for language differ english?
Sergey Mochalov
@proweb
or textdate
if I use d M Y format all months in English
Justin Sternberg
@jtsternberg
You can change the date format, yes. Should be in the docs: https://github.com/WebDevStudios/CMB2/wiki/Field-Types#text_date_timestamp
Justin Sternberg
@jtsternberg
(just added it there as well)
Brian Reed
@iambriansreed
Hi there. I'd really like to contribute but don't know which issue to work on. Any pointers?
Justin Sternberg
@jtsternberg
good question. Let me look at issues real quick
Brian Reed
@iambriansreed
There are some in there from 2014.
Justin Sternberg
@jtsternberg
Yah, the older ones we need to verify that the issue still exists
Honestly, this customizer PR would be awesome WebDevStudios/CMB2#468
if you feel like testing w/ the latest version of trunk and are familiar w/ the customizer
Justin Sternberg
@jtsternberg
Also, adding validation possibilities to CMB2 core would be cool
Let me know if any of those issues look interesting to you, and i'll let you know if I think it's a non-starter for any reason @iambriansreed
Brian Reed
@iambriansreed
Thanks for the hand holding. :)
Justin Sternberg
@jtsternberg
my pleasure :)
bentalgad
@bentalgad
Is it possible to set the year range of the date field to go back before 2006 (that’s what i’m seeing now, and i need to go from 1965-2000)?
Justin Sternberg
@jtsternberg
@bentalgad While the UI/UX isn't super obvious, that is built-in: http://b.ustin.co/T5YY
bentalgad
@bentalgad
wow, that's very confusing... :(
Justin Sternberg
@jtsternberg
@bentalgad I agree. It's the standard jQuery UI datepicker
bentalgad
@bentalgad
oh, got it :) thanks!
let me test that
bentalgad
@bentalgad
Great! Thanks!
bentalgad
@bentalgad
I use a date field like that:
'$basic_box->add_field( array(
'name' => 'תאריך לידה',
'id' => $prefix . 'birthday',
'type' => 'text_date',
'date_format' => 'd/m/Y',
) );'
And it doesn't save dates that have a day parameter greater then 12. am i doing something wrong?
Sergey Mochalov
@proweb
why I don't see years in datapicker?
blob
Ian Beck
@onecrayon
Anyone know if it's possible to use CMB2 to store repeating values as multiple assignments to the same key instead of an array assigned to a single instance of the key?
Ian Beck
@onecrayon
I found an undocumented 'multiple' argument for fields that looks like it does what I want, but it's mutually exclusive with the 'repeatable' argument
Justin Sternberg
@jtsternberg
It's definitely possible by using the save filters and bypassing CMB2's default save/fetch behavior
Sergey Mochalov
@proweb
and here it comes
PDF in Media
with thumbnails generation
Justin Sternberg
@jtsternberg
Nice!
TheNewGuy16
@TheNewGuy16
Does anyone know of an easy way to get the categories of images on a page that were uploaded there using a CMB2 file_list field?
Justin Sternberg
@jtsternberg
@TheNewGuy16 could you clarify? I'm not sure I follow the question.
media doesn't have categories by default, unless you've added it somehow
file_list value is an array where the keys are the attachment's ID, and the value is the attachment's url, so you can always use the attachment ID to get data about it.
TheNewGuy16
@TheNewGuy16
hey sorry i didnt mention that i added it using a plugin so that it would show up in the pop up modal. SO a wser admin goes to a page which is a main portfolio. Then they upload images to that portfolio and can can check categories right there in the upload modal. Now i need to get the cat_name of each image uploaded some might have tow or three cat_names. So you are saying i can somehow use the attachment IDs to get these cat_names?
Justin Sternberg
@jtsternberg
Interesting. I don't have the answer for you as it's still not clear to me how the bits are tied together