Questions conversation plugin

Home Forums Premium add-ons support Questions conversation plugin

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #649857
    Floepkah
    Participant

    Hello,

    As I asked on the pre-sales enquieries “the newest message should appear visualy highest in the conversation tab.” How can I manage this? Now I have to scroll down to see new replies. It would be much easier if the newest message is set as the highest (visually).

    It is not possible to reply from the backend to conversations when it is made at the frond end?

    Do you have an overview (documentation) how the ACF addon might be used to implement within the conversation plugin? For me, it would be a wild guess to buy this without any pre knowledge and no refund…

    Unread documents addon: is it possible that for a new conversation, a pop up is shown, not only for pages and documents updates?

    For the owner of the conversation. When an update (new message) is made in one of his conversations. Is it possible to put it on top in the “my conversations” tab? Now it is just being ordered chronological, not based on new replies. Which is a pitty because when someone replies on an older conversation, it is not brought up to the page. Which is a realy important factor for me.

    Thank you for the solutions in advance,

    Filip

    #651650
    Thomas Lartaud
    Keymaster

    Hi,

    It would be much easier if the newest message is set as the highest (visually).

    You can change all the WP Queries (so you can change the order attribute of the query from DESC to ASC. Don’t forget to check our code snippets documentation.

    It is not possible to reply from the backend to conversations when it is made at the frond end?

    Yes, that should be possible. Make sure the permissions are correctly set.

    Do you have an overview (documentation) how the ACF addon might be used

    Did you read our ACF documentation ? It should cover most of your basic needs. Do not hesitate to ask if there is something missing.

    Unread documents addon: is it possible that for a new conversation, a pop up is shown, not only for pages and documents updates?

    It should also work for conversations, as shown in this screenshot.

    Is it possible to put it on top in the “my conversations” tab?

    Same has my first answer (+ check this). I will check this on my development environment and changes the defaults if needed.

    Regards.

    #655139
    Floepkah
    Participant
    This reply has been set as private.
    #655485
    Thomas Lartaud
    Keymaster

    Hi,

    Furthermore, for me it is important that within a conversation the highest answer is the most recent.

    Create the file wp-content/plugins/wpca-custom-tweaks/wpca-custom-tweaks.php, add this into it, and then activate the plugin through wp-admin -> plugins:

    <?php
    /*
    Plugin Name: WPCA Custom Tweaks
    Plugin URI:
    Description: Custom additions for WP Customer Area
    Version:     1.0.0
    Author:      Thomas Lartaud
    Author URI:  https://wp-customerarea.com
    License:     GPL2
    License URI: https://www.gnu.org/licenses/gpl-2.0.html
    */
    
    defined('ABSPATH') or die('Nope, not accessing this');
    
    // – CUSTOM CONVERSATIONS SORTING
    // ———————————————————————————————————————————————————- //
    function cuar_custom_sorting_order( $args ) {
        $new_args = $args;
    
        // The next line says that the sort order will be by the date of the last modification
        // You could also sort by any field of the WordPress post table, like 'title'
        $new_args['orderby'] = 'modified';
    
        // This line says that we want to sort by descending order (opposite of 'ASC')
        $new_args['order'] = 'DESC';
        return $new_args;
    }
    
    // You can change the page slug to another one, for instance 'customer-private-pages' or 'customer-conversations'
    $page_slug = 'customer-conversations';
    
    // Uncomment the add_filter line you need, depending on where you want to change the sorting order
    
    // 1. Change the order on the "My conversations" page (for any display mode)
    add_filter( 'cuar/core/page/query-args?slug=' . $page_slug, 'cuar_custom_sorting_order' );
    
    // 2. Change the order on the "My conversations" page (not when we are showing date archives or category archives)
    add_filter( 'cuar/core/page/query-args?slug=' . $page_slug . '&display-mode=default', 'cuar_custom_sorting_order' );
    
    // 3. Change the order on the "My conversations" page (when showing date archives)
    add_filter( 'cuar/core/page/query-args?slug=' . $page_slug . '&display-mode=date_archive', 'cuar_custom_sorting_order' );
    
    // 4. Change the order on the "My conversations" page (when showing category archives)
    add_filter( 'cuar/core/page/query-args?slug=' . $page_slug . '&display-mode=category_archive', 'cuar_custom_sorting_order' );
    
    // 5. Change the order on the "My conversations" page (when showing author archives)
    add_filter( 'cuar/core/page/query-args?slug=' . $page_slug . '&display-mode=author_archive', 'cuar_custom_sorting_order' );
    
    // 6. Change the order on the "Dashboard" page
    add_filter( 'cuar/core/dashboard/block-query-args?slug=' . $page_slug, 'cuar_custom_sorting_order' );
    

    Regards.

    #657238
    Floepkah
    Participant

    Hi, thank you for the info.
    In the ‘my conversations’ app, evertthing is ordered Well now. Thank you.

    But the main thing I want to order is within ONE conversation. (See screenshot in my previous post).
    So the highest answer within ONE single conversation should be the most recent. Which is not the case right now ….

    Thank you in advance for the outstanding support

    #657682
    Thomas Lartaud
    Keymaster

    Hi,

    So the highest answer within ONE single conversation should be the most recent. Which is not the case right now ….

    Add this at the end of the file:

        function custom_cuar_sort_conversations_replies($args, $class){
            $args['orderby'] = 'modified';
            $args['order'] = 'DESC';
    
            return $args;
        }
        add_filter('cuar/private-content/conversations/replies/query-args', 'custom_cuar_sort_conversations_replies', 20, 2);
    

    Regards.

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.