Forum Replies Created

Viewing 15 replies - 1 through 15 (of 30 total)
  • Thread Starter cichy

    (@cichy)

    marking as resolved.

    Thread Starter cichy

    (@cichy)

    Hi Thorsten,

    Thank you for taking the time to reply to my inquiry.

    MultilingualPress is 100 % based on the multisite feature of WordPress, for several reasons. Changing this would mean at least three things: a lot of work (for an unknown and yet assumed to be very small amount of people), changes ot the inner workings of the plugin (meaning almost the whole architecture as well as data structures), and last but not least loss of quite a lot functionality.

    Understood. I only thought that it could be done as an addition to the core functionality, however, if this would mean rebuilding the whole architecture of the plugin then it is clear it cannot be done just like that. Perhaps this is an area for a different plugin then.

    Thanks,
    Przemek

    cichy

    (@cichy)

    +1 for this integration.

    Would be great to see these two plugins working together. A desire for that was already expressed several times by other users as well here but was probably addressed incorrectly:
    https://ww.wp.xz.cn/support/topic/sumome-mail-poet-compatibility
    https://ww.wp.xz.cn/support/topic/popup-integration-with-mailpoet-newsletter
    https://ww.wp.xz.cn/support/topic/sumome-and-mailpoet
    https://ww.wp.xz.cn/support/topic/sumome-integration
    https://ww.wp.xz.cn/support/topic/mailpoet-compatible

    Any chances for that?

    Thanks πŸ™‚

    Thread Starter cichy

    (@cichy)

    Actually it still works after deactivating the plugin. I will do more tests later to see if I need it at all. I need to have it working for three category names only.

    Thanks,
    Przemek

    Thread Starter cichy

    (@cichy)

    OK, it seems to be working. It’s just that the interface has some validation and does not allow to save the slug in create/edit category view if such has already been used but if I do an update on db level it is working.

    Thanks a lot Kochhase πŸ™‚

    Thread Starter cichy

    (@cichy)

    Hi Kochhase,

    Thank you for the hint. Could you advise how should I used this plugin? It’s installed and activated. I am now trying to create a translation of the category name using the same slug but it does not allow me to update the category.

    Thanks,
    Przemek

    Thread Starter cichy

    (@cichy)

    However, at the moment, these categories won’t share the same slug

    Yep πŸ™‚ this is what I mean. I did create 3 categories, all with the same name. But I was hoping for the same slug as well πŸ™‚

    Anyway it would be great, if you could consider such feature for the future.

    I’ll mark this topic as resolved (as it was explained).

    Best regards,
    Przemek

    Thread Starter cichy

    (@cichy)

    Yes, sure. The client has 3 different products and each product team will be publishing posts under one of the three main categories (the regular post category). Each main category name (each term) is the name of the product which is the same in each language.

    Let’s say that product names are as follows “Product A”, “Product B”, “Product C”. So I create three post categories (terms) named “Product A”, “Product B”, “Product C”. I have three languages and in each language it is going to be “Product A”, “Product B”, “Product C”. So these three terms are the only ones I would like to have synchronized and each subterm will have it’s own translation and this is the reason I can’t synchronize all categories.

    If I can’t synchronize the top three terms I will have to append language code at the end of each slug, which is basically an issue as it discloses the fact which language is the primary one.

    I am using language directories in paths so perhaps there is some other solution I could use here to avoid appending the language code?

    Thank you in advance for your help.

    regards.

    Thread Starter cichy

    (@cichy)

    Hi Chouby,

    Thank you for your feedback. Any chance for such feature in any of the future releases?

    Thread Starter cichy

    (@cichy)

    Hi Josh,

    I can confirm that entries from my ‘contact’ form generated via the PHP are saved in the database. It’s only that I cannot see them in wordpress admin panel just the way I can see entries from DB forms. As a workaround I use DB version of the same form.

    I’ve subscribed to github thread.

    Thank you very much.

    regards,
    Przemek

    Thread Starter cichy

    (@cichy)

    Hi Josh,

    Thank you for your feedback. If I do it this way the form is not displayed on the front end and is also not visible in the backend. Something else might be wrong here I will try to troubleshoot it over the weekend and get back to you with it.

    But if you could also show me how to do it with Caldera_Forms_Save_Final::save_in_db() that would also be great.

    Thank you,
    Przemek

    Thread Starter cichy

    (@cichy)

    This is the code that I’ve used to create a form:

    add_action( 'caldera_forms_get_form-contact', function( $form )  {
       $form = array (
         'ID' => 'contact',
         'name' => 'Forma kontaktowa',
         'description' => '',
         'db_support' => 1,
         'pinned' => 1,
         'pin_roles' =>
           array (
             'all_roles' => 1,
             'access_role' =>
           array (
             'editor' => 1,
             'author' => 1,
             'contributor' => 1,
             'subscriber' => 1,
           ),
         ),
         'hide_form' => 1,
         'check_honey' => 1,
         'success' => 'Thanks',
         'avatar_field' => '',
         'form_ajax' => 1,
         'has_ajax_callback' => 1,
         'custom_callback' => 'caldera_on_submission_callback',
         'layout_grid' =>
         array (
           'fields' =>
           array (
             'teaser_form_heading' => '1:1',
             'teaser_form_email' => '1:1',
             'teaser_form_name' => '1:1',
             'teaser_form_about' => '1:1',
             'teaser_form_legal_accept' => '1:1',
             'teaser_form_submit' => '1:1',
           ),
           'structure' => '12',
         ),
         'fields' =>
         array (
           'teaser_form_heading' =>
           array (
             'ID' => 'teaser_form_heading',
             'type' => 'html',
             'label' => 'NagΕ‚Γ³wek',
             'slug' => 'teaser_form_heading',
             'conditions' =>
             array (
               'type' => '',
             ),
             'caption' => '',
             'config' =>
             array (
               'custom_class' => '',
               'default' => 'Some text here',
             ),
           ),
           'teaser_form_email' =>
           array (
             'ID' => 'teaser_form_email',
             'type' => 'email',
             'label' => 'teaser-form-email',
             'hide_label' => 1,
             'slug' => 'teaser_form_email',
             'conditions' =>
             array (
               'type' => '',
             ),
             'required' => 1,
             'caption' => '',
             'config' =>
             array (
               'custom_class' => 'teaser-form-row',
               'placeholder' => 'e-mail',
               'default' => '',
             ),
           ),
           'teaser_form_name' =>
           array (
             'ID' => 'teaser_form_name',
             'type' => 'text',
             'label' => 'Your name',
             'slug' => 'teaser_form_name',
             'conditions' =>
             array (
               'type' => '',
             ),
             'caption' => '',
             'config' =>
             array (
               'custom_class' => 'teaser-form-row',
               'placeholder' => 'first and last name',
               'default' => '',
               'mask' => '',
             ),
           ),
           'teaser_form_about' =>
           array (
             'ID' => 'teaser_form_about',
             'type' => 'paragraph',
             'label' => 'Your message',
             'slug' => 'teaser_form_about',
             'conditions' =>
             array (
               'type' => '',
             ),
             'caption' => '',
             'config' =>
             array (
               'custom_class' => 'teaser-form-row',
               'placeholder' => 'message',
               'rows' => 4,
               'default' => '',
             ),
           ),
           'teaser_form_legal_accept' =>
           array (
             'ID' => 'teaser_form_legal_accept',
             'type' => 'checkbox',
             'label' => 'teaser_form_legal_accept',
             'hide_label' => 1,
             'slug' => 'teaser_form_legal_accept',
             'conditions' =>
             array (
               'type' => '',
             ),
             'required' => 1,
             'caption' => '',
             'entry_list' => 1,
             'config' =>
             array (
               'custom_class' => 'teaser-form-row teaser-form-legal-accept',
               'inline' => 1,
               'auto_type' => '',
               'taxonomy' => 'category',
               'post_type' => 'post',
               'value_field' => 'name',
               'default' => '',
               'option' =>
               array (
                 'opt1179306' =>
                 array (
                   'value' => 'my consent',
                   'label' => 'my consent',
                 ),
               ),
             ),
           ),
           'teaser_form_submit' =>
           array (
             'ID' => 'teaser_form_submit',
             'type' => 'button',
             'label' => 'Send',
             'slug' => 'teaser_form_submit',
             'conditions' =>
             array (
               'type' => '',
             ),
             'caption' => '',
             'config' =>
             array (
               'custom_class' => 'teaser-form-row teaser-form-button',
               'type' => 'submit',
               'class' => '',
             ),
           ),
         ),
         'page_names' =>
         array (
           0 => 'Page 1',
         ),
         'conditional_groups' =>
         array (
           '_open_condition' => '',
         ),
         'variables' =>
         array (
           'keys' =>
           array (
             0 => 'orderid',
           ),
           'values' =>
           array (
             0 => '{entry_id}',
           ),
           'types' =>
           array (
             0 => 'passback',
           ),
         ),
         'settings' =>
         array (
           'responsive' =>
           array (
             'break_point' => 'sm',
           ),
         ),
         'mailer' =>
         array (
           'enable_mailer' => 1,
           'sender_name' => 'Some Name',
           'sender_email' => '[email protected]',
           'reply_to' => '[email protected]',
           'email_type' => 'html',
           'recipients' => '%teaser_form_email%',
           'bcc_to' => '[email protected]',
           'email_subject' => 'Contact form',
           'email_message' => 'Thank you',
         ),
       );
    
       return $form;
    });

    It does shows up on front end and it does save entries into the database, but the form is not visible in the admin panel (but I guess I should not expect that since form settings are configured in the code) and neither the entries (but as you said they should be visible).

    The code was generated using the var_export() function. Is it missing anything?

    Thank you in advance for your help.

    Best regards,
    Przemek

    Thread Starter cichy

    (@cichy)

    It works. You’re a great πŸ™‚ Thank you very much for that. This feature is also great πŸ˜‰

    Thread Starter cichy

    (@cichy)

    Thank you very much for your reply. Could you please provide me with an example of a callback function that contains this object with key _entry_id?

    Thread Starter cichy

    (@cichy)

    sorry for spamming. I guess that my two previous posts were going through verification because of the URLs I’ve used.

Viewing 15 replies - 1 through 15 (of 30 total)