Christian Denat
Forum Replies Created
-
I did not try this because for mee is too late in the process.
I’m in my template part so I need to include (or copy) ,( in the else part of your code), a call to the original template, the one used in admin part.
I’ve deleted (or commented) some part of the form in my template, I’ll reintroduce them with specifics CSS to hide them.
The best thing I think is that the admin part does not use the customized form.
I’ll play around and came back later ??
Forum: Plugins
In reply to: [WP FullCalendar] How to translate days and months in the calendar ?the solution I’ve posted some line before ??
Done !!! Thanks
My needs was to list all sub categories of en event cat.
In my specific template, I change only the EM_Categories call with
$categories = EM_Categories::get(array('orderby'=>'name','hide_empty'=>0,'child_of'=>get_term_by('slug', MY_SLUG, EM_TAXONOMY_CATEGORY)->term_id));
`And all is working as expected.
Thanks agelonwl,
I’ve just to add the required term for my parent category here:
$categories = EM_Categories::get(array('orderby'=>'name','hide_empty'=>0));
Right and it should do the trick ?
Forum: Plugins
In reply to: [WP FullCalendar] How to translate days and months in the calendar ?merci pour les compliments.
As I was logged as admin I had no cache so I saw the right site and but it was not your case. I emptied the cache now and all is fine.
Forum: Plugins
In reply to: [WP FullCalendar] How to translate days and months in the calendar ?This fixes the bug
$wp_fullcalendar_languages = array( 'es' => array('buttonText' => array('today'=>'hoy','month'=>'mes','week'=>'semana','day'=>'dia')), 'pt' => array('buttonText' => array('today'=>'hoje','month'=>'mes','week'=>'semana','day'=>'dia')), 'fr' => array('buttonText' => array('today'=>'aujourd\'hui','month'=>'mois','week'=>'semaine','day'=>'jour'), 'titleFormat'=> array('month'=>'MMMM yyyy','week'=>'\'Du\' d[ MMMM][ yyyy] \'au\' {d MMMM[ yyyy]}','day'=>'dddd d MMMM yyyy'), 'columnFormat'=> array('month'=>'ddd','week'=>'ddd d/M','day'=>'dddd d MMMM yyyy')) ); $calendar_languages = array_merge_recursive($calendar_languages, $wp_fullcalendar_languages);
See it online : https://www.gf38.fr/evenements/
Forum: Plugins
In reply to: [WP FullCalendar] How to translate days and months in the calendar ?Hello,
I found some bugs for french languages or other, and I add some french translations.
Here the code
$wp_fullcalendar_languages = array( 'es' => array('buttonText' => array('today'=>'hoy','month'=>'mes','week'=>'semana','day'=>'dia')), 'pt' => array('buttonText' => array('today'=>'hoje','month'=>'mes','week'=>'semana','day'=>'dia')), 'fr' => array('buttonText' => array('today'=>'aujourd\'hui','month'=>'mois','week'=>'semaine','day'=>'jour'), 'titleFormat'=> array('month'=>'MMMM yyyy','week'=>'\'Du\' d[ MMMM][ yyyy] \'au\' {d MMMM[ yyyy]}','day'=>'dddd d MMMM yyyy'), 'columnFormat'=> array('month'=>'ddd','week'=>'ddd d/M','day'=>'dddd d MMMM yyyy')) ); $calendar_languages = array_merge($calendar_languages, $wp_fullcalendar_languages);
I add titleFormat or columnFormat for the french language.
But there is a bug just after : you use array_merge, but if two or more array elements have the same key, the last one overrides the others. So we lost the first part of the french translation….I also fixed “semaine” instead of “semane”
Just after there is another bug. It should be $js_vars instead of $jsvars.
if( array_key_exists($locale_code, $calendar_languages) ){ $js_vars['wpfc_locale'] = $calendar_languages[$locale_code];
Christian
Forum: Plugins
In reply to: [WP FullCalendar] Calendar not displaying since 3.5 WP upgradeDownload it from https://arshaw.com/fullcalendar/downloads/fullcalendar-1.5.4.zip.
Push fullcalendar.js and fullcalendar.min.js in <your plugin dir>/wp-fullcalendar / includes / js.
Do the changes into main.js as described if my first reply.
It should do the trick.
Forum: Plugins
In reply to: [WP FullCalendar] Calendar not displaying since 3.5 WP upgradedid you empty your cache ?
On my implementation I changed also fullcalendar.js and fullcalendar.min.js with the new ones.
Please try to do the same and check !
Forum: Plugins
In reply to: [WP e-Commerce Shop Styling] All mails are now marked as sent from the shopHello,
The las t version did the trick concerning the email. Now I can send emails with the right adress, depending on the context (wpsc or contact form).
I’ll check the dompdf install. to try to fix my issues.
Thanks
Forum: Plugins
In reply to: [WP FullCalendar] Calendar not displaying since 3.5 WP upgradeHello,
Got the same problem here.
The root cause is the version of fullcalendar embedded in the plugin.
You need to upgrade to fullcalendar 1.54 because curCSS is depreciated in the new version of jQuery (1.8+) in WP3.5.How to fix it :
1st, download the last release of fullcalendar plugin on fullcalendar site.
In <your plugin dir>/wp-fullcalendar / includes / js
– copy your current main.js file to main.js.old
– edit the main.js file
– change the part from the beginning until spaces before Qtip2 by the content of fullcalendar.min.js.
– save itThat’s all !!!
Forum: Plugins
In reply to: [WP e-Commerce Shop Styling] All mails are now marked as sent from the shopHello
I did not find any var directory in the dompdf directory.
I tried to deactivate the PDF and got the same results :
Fatal error: Uncaught exception 'DOMPDF_Exception' with message 'Unable to find a suitable font replacement for: ''signika''' in <my/path>wp-content/plugins/wp-ecommerce-shop-styling/includes/dompdf/include/style.cls.php:805 Stack trace: #0 <my/path>wp-content/plugins/wp-ecommerce-shop-styling/includes/dompdf/include/style.cls.php(718): Style->get_font_family() #1 <my/path>wp-content/plugins/wp-ecommerce-shop-styling/includes/dompdf/include/text_frame_reflower.cls.php(165): Style->__get('font_family') #2 <my/path>wp-content/plugins/wp-ecommerce-shop-styling/includes/dompdf/include/text_frame_reflower.cls.php(333): Text_Frame_Reflower->_layout_line() #3 <my/path>wp-content/plugins/wp-ecommerce-shop-styling/includes/dompdf/include/frame_decorator.cls.php(556): Text_Frame_Reflower->reflow(Object(Block_Frame_Decorator)) #4 <my/path>wp-content/plugin in <my/path>wp-content/plugins/wp-ecommerce-shop-styling/includes/dompdf/include/style.cls.php on line 805
Need your help. .How I can use my font ???
thanxs
Forum: Plugins
In reply to: [WP e-Commerce Shop Styling] All mails are now marked as sent from the shopHello
Thanks for this upgrade but it does’nt fix all.
I’m using 2 other plugins that are able to send mails. One is mine and send emails as webmaster. The new release fix the problem because I confured the webmaster email as sender.
THe other plugin is contact form 7 : we have some contact forms on our site in order to send emails to our staff.
My use case is : the site user want to contact our secretary. In the form, we ask for his email, name, adress.. and some other things. In order to avoid spams and facilitate the answer we put the user email as the sender of the email. Like this we receive an email from the user and we just have to reply to him other email. With your plugin activated, these contacts emails are broken because they are all set with the wordpress email parameter and not the user email.
So the trick is to force the sender as wpsc email sender only for wpsc emails and to keep it unchanged for others, because in this case the sender is configured by wp or other plugins.I’ve another issue, regarding PDF. I have a lot of errors when dompdf try to build the PDF. Something is misssing ? any php config ?
I think that it will be good to have the possibility to validate or not the use of the PDF even if we bought it. Somthing like check box “send pdf as attached”.Hope it helps
Christian
Forum: Plugins
In reply to: [WP e-Commerce Shop Styling] All mails are now marked as sent from the shopI checked the plugon code and I think that the problem comes from the filter you add.
code
add_filter( ‘wp_mail_from’, ‘wpsc_replace_reply_address’, 0 );
add_filter( ‘wp_mail_from_name’, ‘wpsc_replace_reply_name’, 0 );
add_filter( ‘wp_mail_content_type’, create_function(”, ‘return “text/html”;’));
code
and you never remove them …
I can’t check for today but I’ll try tomorrow.
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Call to function errorGreat, I got the same problem.. but as I upgraded in same time Event manager plugin, I was so disapointed ..
All is working now qith the alpha !Thanks