• Resolved jfsilva

    (@jfsilva)


    Hi, can anyone help me?i nedd to change the column name (Version, Last Modified) to custom text. how can i do that?

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author bhaldie

    (@bhaldie)

    unfortunately mDocs does have the options to change the text for the columns. It is a feature request but has not yet be developed yet.

    Thread Starter jfsilva

    (@jfsilva)

    But, in the code may i edit the column name?where are the fyles that i must edit?

    Plugin Author bhaldie

    (@bhaldie)

    if you open the mdocs-options.php file and scroll down to line 196 you will see all the titles there.

    Thread Starter jfsilva

    (@jfsilva)

    i don’t know if my file is correct, because, in that file i don’t find anything similar with column names

    Plugin Author bhaldie

    (@bhaldie)

    It is the right file, please take a look st the bottom of the file. You will see a list of.words.

    Thread Starter jfsilva

    (@jfsilva)

    This is my file:

    <?php
    function mdocs_init_settings() {
    //register_setting(‘mdocs-settings’, ‘mdocs-options’);
    //add_option(‘mdocs-options’,array(), ‘no’);
    add_filter(‘upload_mimes’, ‘mdocs_custom_mime_types’);
    $temp_cats = array();
    $temp_cats[0] = array(‘base_parent’ => ”, ‘index’ => 0, ‘parent_index’ => 0, ‘slug’ => ‘mdocuments’, ‘name’ => ‘Documents’, ‘parent’ => ”, ‘children’ => array(), ‘depth’ => 0,);
    register_setting(‘mdocs-settings’, ‘mdocs-cats’);
    add_option(‘mdocs-cats’,$temp_cats, ” , ‘no’);
    if(is_string(get_option(‘mdocs-cats’))) update_option(‘mdocs-cats’,$temp_cats, ” , ‘no’);
    register_setting(‘mdocs-settings’, ‘mdocs-list’);
    add_option(‘mdocs-list’,array(), ” , ‘no’);
    register_setting(‘mdocs-settings’, ‘mdocs-num-cats’);
    add_option(‘mdocs-num-cats’,1);
    register_setting(‘mdocs-settings’, ‘mdocs-num-cats’);
    add_option(‘mdocs-num-cats’,1);
    register_setting(‘mdocs-settings’, ‘mdocs-zip’);
    add_option(‘mdocs-zip’,’mdocs-export.zip’);
    //register_setting(‘mdocs-settings’, ‘mdocs-wp-root’);
    //update_option(‘mdocs-wp-root’,”);
    register_setting(‘mdocs-top-downloads’, ‘mdocs-top-downloads’);
    add_option(‘mdocs-top-downloads’,10);
    register_setting(‘mdocs-top-downloads’, ‘mdocs-top-rated’);
    add_option(‘mdocs-top-rated’,10);
    register_setting(‘mdocs-top-downloads’, ‘mdocs-last-updated’);
    add_option(‘mdocs-last-updated’,10);
    //GLOBAL VARIABLES
    register_setting(‘mdocs-global-settings’, ‘mdocs-list-type’);
    update_option(‘mdocs-list-type’,’small’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-list-type-dashboard’);
    add_option(‘mdocs-list-type-dashboard’,’small’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-all-files-non-members’);
    add_option(‘mdocs-hide-all-files-non-members’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-all-posts-non-members’);
    add_option(‘mdocs-hide-all-posts-non-members’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-all-posts-non-members-default’);
    add_option(‘mdocs-hide-all-posts-non-members-default’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-all-files’);
    add_option(‘mdocs-hide-all-files’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-all-posts’);
    add_option(‘mdocs-hide-all-posts’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-all-posts-default’);
    add_option(‘mdocs-hide-all-posts-default’, false);
    // TAB OPTIONS
    register_setting(‘mdocs-global-settings’, ‘mdocs-default-content’);
    add_option(‘mdocs-default-content’,’description’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-description’);
    add_option(‘mdocs-show-description’,true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-preview’);
    add_option(‘mdocs-show-preview’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-versions’);
    add_option(‘mdocs-show-versions’, true);

    // INITIALIZATION OF DOCUMENTS PAGE
    register_setting(‘mdocs-global-settings’, ‘mdocs-documents-page-created’);
    add_option(‘mdocs-documents-page-created’, false);

    register_setting(‘mdocs-global-settings’, ‘mdocs-show-share’);
    add_option(‘mdocs-show-share’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-social’);
    add_option(‘mdocs-show-social’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-download-color-normal’);
    add_option(‘mdocs-download-color-normal’, ‘#d14836’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-download-color-hover’);
    add_option(‘mdocs-download-color-hover’, ‘#c34131’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-download-text-color-normal’);
    add_option(‘mdocs-download-text-color-normal’, ‘#ffffff’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-download-text-color-hover’);
    add_option(‘mdocs-download-text-color-hover’, ‘#ffffff’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-navbar-bgcolor’);
    add_option(‘mdocs-navbar-bgcolor’, ‘#f8f8f8’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-navbar-bordercolor’);
    add_option(‘mdocs-navbar-bordercolor’, ‘#c4c4c4’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-navbar-text-color-normal’);
    add_option(‘mdocs-navbar-text-color-normal’, ‘#777777’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-navbar-text-color-hover’);
    add_option(‘mdocs-navbar-text-color-hover’, ‘#333333’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-new-banners’);
    add_option(‘mdocs-show-new-banners’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-file-type-icon’);
    add_option(‘mdocs-hide-file-type-icon’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-new-update-label’);
    add_option(‘mdocs-hide-new-update-label’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-name’);
    add_option(‘mdocs-hide-name’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-filename’);
    add_option(‘mdocs-hide-filename’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-time-to-display-banners’);
    add_option(‘mdocs-time-to-display-banners’, 14);
    register_setting(‘mdocs-global-settings’, ‘mdocs-doc-preview’);
    add_option(‘mdocs-doc-preview’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-sort-type’);
    add_option(‘mdocs-sort-type’,’modified’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-sort-style’);
    add_option(‘mdocs-sort-style’,’desc’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-htaccess’);
    add_option(‘mdocs-htaccess’, “Deny from all\nOptions +Indexes\nAllow from .google.com”);
    register_setting(‘mdocs-global-settings’, ‘mdocs-view-private’);
    add_option(‘mdocs-view-private’, mdocs_init_view_private());
    register_setting(‘mdocs-global-settings’, ‘mdocs-date-format’);
    add_option(‘mdocs-date-format’, ‘d-m-Y G:i’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-allow-upload’);
    add_option(‘mdocs-allow-upload’, array());
    register_setting(‘mdocs-global-settings’, ‘mdocs-font-size’);
    add_option(‘mdocs-font-size’, ’14’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-post-show-title’);
    add_option(‘mdocs-post-show-title’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-post-title-font-size’);
    add_option(‘mdocs-post-title-font-size’, ’24’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-override-post-title-font-size’);
    add_option(‘mdocs-override-document-list-title-font-size’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-subfolders’);
    add_option(‘mdocs-hide-subfolders’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-all-subfolders’);
    add_option(‘mdocs-hide-all-subfolders’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-post-menu’);
    add_option(‘mdocs-show-post-menu’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-disable-user-sort’);
    add_option(‘mdocs-disable-user-sort’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-disable-bootstrap’);
    add_option(‘mdocs-disable-bootstrap’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-disable-bootstrap-admin’);
    add_option(‘mdocs-disable-bootstrap-admin’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-disable-jquery’);
    add_option(‘mdocs-disable-jquery’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-disable-fontawesome’);
    add_option(‘mdocs-disable-fontawesome’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-no-file-found’);
    add_option(‘mdocs-show-no-file-found’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-preview-type’);
    add_option(‘mdocs-preview-type’, ‘google’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-preview-type’);
    add_option(‘mdocs-preview-type’, ‘google’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-box-view-key’);
    add_option(‘mdocs-box-view-key’, ”);
    register_setting(‘mdocs-global-settings’, ‘mdocs-remove-posts-from-homepage’);
    add_option(‘mdocs-remove-posts-from-homepage’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-dropdown-toggle-fix’);
    add_option(‘mdocs-dropdown-toggle-fix’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-navbar’);
    add_option(‘mdocs-hide-navbar’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-sortbar’);
    add_option(‘mdocs-hide-sortbar’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-convert-to-latin’);
    add_option(‘mdocs-convert-to-latin’, false);
    // FILE HIGHLIGHT COLOURS
    register_setting(‘mdocs-global-settings’, ‘mdocs-file-highlight-color-new-normal’);
    add_option(‘mdocs-file-highlight-color-new-normal’, ‘#dff0d8’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-file-highlight-color-new-hover’);
    add_option(‘mdocs-file-highlight-color-new-hover’, ‘#d0e9c6’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-file-highlight-color-updated-normal’);
    add_option(‘mdocs-file-highlight-color-updated-normal’, ‘#d9edf7’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-file-highlight-color-updated-hover’);
    add_option(‘mdocs-file-highlight-color-updated-hover’, ‘#c4e3f3’);

    //***** MEGACOOKIE SAVED VARIABLES ******//

    register_setting(‘mdocs-global-settings’, ‘mdocs-show-upload-folder’);
    add_option(‘mdocs-show-upload-folder’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-upload-version’);
    add_option(‘mdocs-show-upload-version’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-upload-date’);
    add_option(‘mdocs-show-upload-date’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-upload-file-status’);
    add_option(‘mdocs-show-upload-file-status’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-upload-post-status’);
    add_option(‘mdocs-show-upload-post-status’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-upload-social’);
    add_option(‘mdocs-show-upload-social’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-non-members’);
    add_option(‘mdocs-show-non-members’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-upload-contributors’);
    add_option(‘mdocs-show-upload-contributors’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-upload-tags’);
    add_option(‘mdocs-show-upload-tags’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-upload-categories’);
    add_option(‘mdocs-show-upload-categories’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-upload-description’);
    add_option(‘mdocs-show-upload-description’, true);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-upload-real-author’);
    add_option(‘mdocs-show-upload-real-author’, false);

    register_setting(‘mdocs-global-settings’, ‘mdocs-show-current-folder-on-top’);
    add_option(‘mdocs-show-current-folder-on-top’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-upload-button-on-normal-page’);
    add_option(‘mdocs-show-upload-button-on-normal-page’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-media-files’);
    add_option(‘mdocs-show-media-files’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-show-advanced-search’);
    add_option(‘mdocs-show-advanced-search’, true);

    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-entry-div’);
    add_option(‘mdocs-hide-entry-div’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-override-time-offset’);
    add_option(‘mdocs-override-time-offset’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-override-time-offset-value’);
    add_option(‘mdocs-override-time-offset-value’, 0);
    register_setting(‘mdocs-global-settings’, ‘mdocs-disable-sessions’);
    add_option(‘mdocs-disable-sessions’, false);
    register_setting(‘mdocs-global-settings’, ‘mdocs-post-target-type’);
    add_option(‘mdocs-post-target-type’, ‘_blank’);
    register_setting(‘mdocs-global-settings’, ‘mdocs-hide-widget-titles’);
    add_option(‘mdocs-hide-widget-titles’, false);
    // *****MEGACOOKIE SAVED VARIABLES END**** //
    // GLOBAL SETTING 2
    register_setting(‘mdocs-global-settings-2’, ‘mdocs-allowed-mime-types’);
    add_option(‘mdocs-allowed-mime-types’, array());
    if(is_string(get_option(‘mdocs-allowed-mime-types’))) update_option(‘mdocs-allowed-mime-types’,array());
    register_setting(‘mdocs-global-settings-2’, ‘mdocs-removed-mime-types’);
    add_option(‘mdocs-removed-mime-types’, array());
    if(is_string(get_option(‘mdocs-removed-mime-types’))) update_option(‘mdocs-removed-mime-types’,array());
    // PATCHES
    register_setting(‘mdocs-patch-vars’, ‘mdocs-patches’);
    add_option(‘mdocs-patches’, array());
    //Update View Private Users
    mdocs_update_view_private_users();
    }
    ?>

    and in F.O. i want to edit the column name ‘Version’ to ‘Vers?o’ for example… in this code, there isn’t the ‘Version’ that i can edit…

    Plugin Author bhaldie

    (@bhaldie)

    sorry I gave you the wrong file name it mdocs-localiztion.php starting at line 195:

    You may want to become a translation editor for this plugin to change local language. Take a look here and let me know https://translate.www.ads-software.com/projects/wp-plugins/memphis-documents-library

    
    $local = array(
    		'manage-settings' => __('Manage Settings','memphis-documents-library'),
    		'manage-options' => __('Manage Options','memphis-documents-library'),
    		'allow-upload' => __('Allow to Upload','memphis-documents-library'),
    		'view-private' => __('View Private Posts and Pages','memphis-documents-library'),
    		'description' => __('Description','memphis-documents-library'),
    		'downloads' => __('Downloads','memphis-documents-library'),
    		'download' => __('Download','memphis-documents-library'),
    		'version' => __('Version','memphis-documents-library'),
    		'owner' => __('Owner','memphis-documents-library'),
    		'author' => __('Author','memphis-documents-library'),
    		'last-modified' => __('Last Modified','memphis-documents-library'),
    		'rating' => __('Rating','memphis-documents-library'),
    		'file-size' => __('File Size','memphis-documents-library'),
    		'batch-edit' => __('Allow to Batch Edit', 'memphis-documents-library'),
    		'batch-move' => __('Allow to Batch Move', 'memphis-documents-library'),
    		'batch-delete' => __('Allow to Batch Delete', 'memphis-documents-library'),
    		'allow-upload-frontend' => __('Allow to Upload Frontend', 'memphis-documents-library'),
    	);
    
    Thread Starter jfsilva

    (@jfsilva)

    in my mdocs-localization.php file, i don’t find that array.

    My code in that file is:

    <?php
    // LOCALIZATION INIT
    function mdocs_localization() {
    //FOR TESTING LANG FILES
    //global $locale; $locale = ‘pt_BR’;
    $loaded = load_plugin_textdomain(‘mdocs’, false, ‘memphis-documents-library/languages/’ );
    }
    //PASS VARIABLES TO JAVASCRIPT
    function mdocs_js_handle($script) {
    wp_localize_script( $script, ‘mdocs_js’, array(
    ‘version_file’ => __(“You are about to delete this file. Once deleted you will lose this file!\n\n’Cancel’ to stop, ‘OK’ to delete.”,’memphis-documents-library’),
    ‘version_delete’ => __(“You are about to delete this version. Once deleted you will lose this version of the file!\n\n’Cancel’ to stop, ‘OK’ to delete.”,’memphis-documents-library’),
    ‘category_delete’ => __(“You are about to delete this folder. Any file in this folder will be lost!\n\n’Cancel’ to stop, ‘OK’ to delete.”,’memphis-documents-library’),
    ‘remove’ => __(‘Remove’,’memphis-documents-library’),
    ‘new_category’ => __(‘New Folder’,’memphis-documents-library’),
    ‘leave_page’ => __(‘Are you sure you want to navigate away from this page?’,’memphis-documents-library’),
    ‘category_support’ => __(‘Currently Memphis Documents Library only supports two sub categories.’,’memphis-documents-library’),
    ‘restore_warning’ => __(‘Are you sure you want continue. All you files, posts and directories will be delete.’,’memphis-documents-library’),
    ‘add_folder’ => __(‘Add Folder’, ‘memphis-documents-library’),
    ‘update_doc’ => __(‘Updating Document’, ‘memphis-documents-library’),
    ‘update_doc_btn’ => __(‘Update Document’ , ‘memphis-documents-library’),
    ‘add_doc’ => __(‘Adding Document’, ‘memphis-documents-library’),
    ‘add_doc_btn’ => __(‘Add Document’, ‘memphis-documents-library’),
    ‘current_file’ => __(‘Current File’,’memphis-documents-library’),
    ‘patch_text_3_0_1’ => __(‘UPDATE HAS STARTER, DO NOT LEAVE THIS PAGE!’, ‘memphis-documents-library’),
    ‘patch_text_3_0_2’ => __(‘Go grab a coffee this my take awhile.’, ‘memphis-documents-library’),
    ‘create_export_file’ => __(‘Creating the export file, please be patient.’, ‘memphis-documents-library’),
    ‘export_creation_complete_starting_download’ => __(‘Export file creation complete, staring download of zip file.’, ‘memphis-documents-library’),
    ‘sharing’ => __(‘Sharing’, ‘memphis-documents-library’),
    ‘download_page’ => __(‘Download Page’, ‘memphis-documents-library’),
    ‘direct_download’ => __(‘Direct Download’, ‘memphis-documents-library’),
    ‘levels’=> 2,
    ‘blog_id’ => get_current_blog_id(),
    ‘plugin_url’ => plugins_url().’/memphis-documents-library/’,
    ‘ajaxurl’ => admin_url( ‘admin-ajax.php’ ),
    ‘dropdown_toggle_fix’ => get_option(‘mdocs-dropdown-toggle-fix’),
    ‘mdocs_debug’ => MDOCS_DEV,
    ‘mdocs_debug_text’ => __(‘MDOCS DEVELOPMENT VERSION’, ‘memphis-documents-library’).'<br>’.__(‘[ ALL ERRORS ARE BEING REPORTED ]’, ‘memphis-documents-library’),
    ‘mdocs_ajax_nonce’ => wp_create_nonce(‘mdocs-ajax-nonce’),
    ));
    }
    // PROCESS AJAX REQUESTS
    function mdocs_ajax_processing() {
    if(check_ajax_referer( ‘mdocs-ajax-nonce’, ‘_mdocs_ajax_nonce’,false)) {
    if(isset($_POST[‘type’]) && $_POST[‘type’] != ‘batch-edit-save’ && $_POST[‘type’] != ‘batch-move-save’ && $_POST[‘type’] != ‘batch-delete-save’) $_POST = mdocs_sanitize_array($_POST);
    switch($_POST[‘type’]) {
    case ‘update-date’:
    if(current_user_can(‘mdocs-dashboard’)) echo json_encode(mdocs_format_unix_epoch());
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘add-mime’:
    if(current_user_can(‘manage_options’)) mdocs_update_mime();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘remove-mime’:
    if(current_user_can(‘manage_options’)) mdocs_update_mime();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘restore-mime’:
    if(current_user_can(‘manage_options’)) mdocs_update_mime();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘restore’:
    if(current_user_can(‘manage_options’)) mdocs_restore_default();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘sort’:
    mdocs_sort();
    break;
    case ‘rating’:
    mdocs_ratings();
    break;
    case ‘versions’:
    mdocs_show_versions();
    break;
    case ‘rating-submit’:
    if(current_user_can(‘manage_options’)) mdocs_set_rating(intval($_POST[‘mdocs_file_id’]));
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘add-doc’:
    if(current_user_can(‘mdocs-dashboard’)) mdocs_add_update_ajax(‘Add Document’);
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘update-doc’:
    if(current_user_can(‘mdocs-dashboard’)) mdocs_add_update_ajax(‘Update Document’);
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘mdocs-v3-0-patch’:
    if(current_user_can(‘manage_options’)) mdocs_box_view_update_v3_0();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘mdocs-v3-0-patch-cancel-updater’:
    if(current_user_can(‘manage_options’)) mdocs_v3_0_patch_cancel_updater();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘search-users’:
    if(current_user_can(‘mdocs-dashboard’)) mdocs_search_users($_POST[‘user-search-string’], $_POST[‘owner’], $_POST[‘contributors’]);
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘show-social’:
    echo mdocs_social(intval($_POST[‘doc-id’]));
    break;
    case ‘box-view-refresh’:
    if(current_user_can(‘mdocs-dashboard’)) {
    $mdocs = mdocs_array_sort();
    $upload_dir = wp_upload_dir();
    $the_mdoc = get_the_mdoc_by(basename(mdocs_sanitize_string($_POST[‘id’])), ‘id’);
    $is_image = @getimagesize($upload_dir[‘basedir’].’/mdocs/’.$the_mdoc[‘filename’]);
    if($is_image == false && strtolower($the_mdoc[‘type’]) != ‘zip’ && strtolower($the_mdoc[‘type’]) != ‘rar’) {
    $boxview = new mdocs_box_view();
    $boxview_file = $boxview->uploadFile($the_mdoc);
    $boxview_file = $boxview_file[‘entries’][0];
    $boxview->deleteFile($the_mdoc);
    $mdocs[basename(mdocs_sanitize_string($_POST[‘index’]))][‘box-view-id’] = $boxview_file[‘id’];
    update_option(‘mdocs-list’, $mdocs);
    echo ‘<div class=”alert alert-success” role=”alert” id=”box-view-updated”>’.$the_mdoc[‘filename’].’ ‘.__(‘preview has been updated.’, ‘memphis-documents-library’).'</div>’;
    } else {
    $boxview_file[‘id’] = 0;
    echo ‘<div class=”alert alert-success” role=”alert” id=”box-view-updated”>’.$the_mdoc[‘filename’].’ ‘.__(‘is not supported by Box preview.’, ‘memphis-documents-library’).'</div>’;
    }
    } else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘lost-file-search-start’:
    if(current_user_can(‘manage_options’)) find_lost_files();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘lost-file-save’:
    if(current_user_can(‘manage_options’)) save_lost_files();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘mdocs-export’:
    if(current_user_can(‘manage_options’)) {
    mdocs_export_zip();
    mdocs_download_export_file($_POST[‘zip-file’]);
    } else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘mdocs-export-cleanup’:
    if(current_user_can(‘manage_options’)) {
    if($_POST[‘mdocs-export-donot-delete’] == ”) unlink(sys_get_temp_dir().’/mdocs-export.zip’);
    } else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘mdocs-cat-index’:
    $check_index = intval($_POST[‘check-index’]);
    do {
    $found = mdocs_find_cat(‘mdocs-cat-‘.$check_index);
    $empty_index = $check_index;
    $check_index++;
    } while ($found == true);
    update_option(‘mdocs-num-cats’, $empty_index);
    echo $empty_index;
    break;
    case ‘batch-edit’:
    if(current_user_can(‘mdocs-dashboard’)) mdocs_batch_edit();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘batch-edit-save’:
    if(current_user_can(‘mdocs-dashboard’)) mdocs_batch_edit_save();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘batch-move’:
    if(current_user_can(‘mdocs-dashboard’)) mdocs_batch_move();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘batch-move-save’:
    if(current_user_can(‘mdocs-dashboard’)) mdocs_batch_move_save();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘batch-delete’:
    if(current_user_can(‘mdocs-dashboard’)) mdocs_batch_delete();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    case ‘batch-delete-save’:
    if(current_user_can(‘mdocs-dashboard’)) mdocs_batch_delete_save();
    else die(__(‘You are unauthorized to do this.’, ‘memphis-documents-library’));
    break;
    }
    } else {
    wp_die(__(“\n\nmDocs Error: Memphis has terminated due to a faulty nonce check. This check is needed to deter Cross-site scripting security vulnerabilities.\n\n”, ‘memphis-documents-library’));
    }
    exit;
    }
    function mdocs_localized_errors() {
    //ERRORS
    define(‘MDOCS_ERROR_1’,__(‘No file was uploaded, please try again.’,’memphis-documents-library’));
    define(‘MDOCS_ERROR_2’,__(‘Sorry, this file type is not permitted for security reasons. If you want to add this file type please goto the setting page of Memphis Documents Library and add it to the Allowed File Type menu.’,’memphis-documents-library’));
    define(‘MDOCS_ERROR_3’,__(‘No folders found. The upload process can not proceed.’,’memphis-documents-library’));
    define(‘MDOCS_ERROR_4’,__(‘Your submission failed, either you tried to resubmit a form or you are having issue with sessions.<br>If the problem persists contact your administrator and tell them to disable sessions from the Memphis Documents Library setting menu.’,’memphis-documents-library’));
    define(‘MDOCS_ERROR_5’, __(‘File Upload Error. Please try again.’,’memphis-documents-library’));
    define(‘MDOCS_ERROR_6’, __(‘You are already at the most recent version of this document.’,’memphis-documents-library’));
    define(‘MDOCS_ERROR_7’, __(‘The import file is too large, please update your php.ini files upload_max_filesize.’,’memphis-documents-library’));
    define(‘MDOCS_ERROR_8’, __(‘An error occurred when creating a folder, please try again.’,’memphis-documents-library’));
    define(‘MDOCS_ERROR_9’, __(‘You have reached the maxium number of input variable allowed for your servers configuration, this means you can not edit folders anymore. To be able to edit folders again, please increase the variable max_input_vars in your php.ini file.’,’memphis-documents-library’));
    }
    ?>

    Plugin Author bhaldie

    (@bhaldie)

    what version are you using?

    Thread Starter jfsilva

    (@jfsilva)

    3.8

    Plugin Author bhaldie

    (@bhaldie)

    you need to update to the latest version in order for me to help you. I can’t maintain multiple version of mDocs.

    Thread Starter jfsilva

    (@jfsilva)

    Hi,

    i’ve updated to latest version, and when i edit the code when you say, and refresh my page, the column text appear “Text not found.”

    Plugin Author bhaldie

    (@bhaldie)

    Yeah, the best bet for you is just to become a translation editor. To edit the code would take a lot of time.

    Check out https://translate.www.ads-software.com/projects/wp-plugins/memphis-documents-library and let me know what language you would like to be editor of.

    Thread Starter jfsilva

    (@jfsilva)

    Hello,

    my language is, Portuguese (Portugal).

    Plugin Author bhaldie

    (@bhaldie)

    Hi, I made the request for you. You can follow the thread here:

    Hello Polyglots!

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Edit Column Name’ is closed to new replies.