Forum Replies Created

Viewing 15 replies - 1 through 15 (of 24 total)
  • Thread Starter jlohl

    (@jlohl)

    Cool, I just saw your second answer. thanks

    Thread Starter jlohl

    (@jlohl)

    Thanks for feedback. So I contacted directly the support for Premium.

    Thread Starter jlohl

    (@jlohl)

    So sorry, I only tried with “100” and never with “100px” !
    It works fine with the “px” suffix. Maybe it is indicated somewhere but I missed it…

    Thanks a lot Nickboss !

    • This reply was modified 4 years, 1 month ago by jlohl.
    Thread Starter jlohl

    (@jlohl)

    Thanks Nicholas,
    before asking for some help, I already tested width dimensions in the visual editor but without success : nothing changes when you modify widths.
    I tried your other solution with CSS : the filename does not wrap anymore but the block filename+progress bar does not adapt to filename length.

    JL

    Thread Starter jlohl

    (@jlohl)

    Hi,
    please
    – go to https://www.loudspeakers.audio
    – login : titi/newpassword
    – menu “upload my measurements”
    – the main form should be already filled
    – the WFU form is at bottom : choose one or more files (wav, txt or jpg) with long names (ie more than 10 characters) and click “upload”

    Thanks
    JL

    Thread Starter jlohl

    (@jlohl)

    Bravo Nickboss !
    It works perfectly with both Dropbox and GoogleDrive…

    Efficient support as usual, thanks a lot

    Thread Starter jlohl

    (@jlohl)

    About Dropbox, I tried same functions now that worked 3 years ago : it does’nt work anymore !?! I also tried with very basic path on Dropbox or Gdrive “/” or “mmm/” so without any variable in the path.
    So with both Dropbox and Gdrive, the .txt file is correctly created in the WP-content with the good content, good name, good folder but is not send to Dropbox or Gdrive : is (wfu_dropbox_add_file_to_queue) missing something ? How can we check if the file is/was in the upload queue ?
    Could it be that the user is not “system” and so has no rights to write to the cloud ?
    See : log

    • This reply was modified 4 years, 2 months ago by jlohl.
    • This reply was modified 4 years, 2 months ago by jlohl.
    • This reply was modified 4 years, 2 months ago by jlohl.
    • This reply was modified 4 years, 2 months ago by jlohl.
    • This reply was modified 4 years, 2 months ago by jlohl.
    Thread Starter jlohl

    (@jlohl)

    Hi Nickolas,

    this one worked on dropbox :

    if (!function_exists('wfu_after_upload_handler')) {
    	function wfu_after_upload_handler($changable_data, $additional_data) {
    		$user = wp_get_current_user();
    		$today = date("Y-m-d");
    		if ( $user->ID == 0 ) $username = "guest";
    		else $username = $user->user_login;
     		$deletelocal = true;
    		$dropboxpath = "mmm/".$username."/".$additional_data["files"][0]["user_data"][1]["value"]."/".$today;
    		foreach ( $additional_data["files"] as $file ) {
    
    			$fileext = wfu_fileext($file["filepath"], true);
    			if ( $fileext == ".wav" ) {
    				$txtpath = preg_replace("/\\$fileext$/", ".txt", $file["filepath"]);
    				$filepath = preg_replace("/\\$fileext$/", ".wav", $file["filepath"]);
    				$contents = "";
    				foreach ( $file["user_data"] as $userdata )
    					$contents .= ( $contents == "" ? "" : "\r\n" ).$userdata["label"].": ".$userdata["value"];
    				file_put_contents($txtpath, $contents);
    				$fileid = wfu_log_action('include', $txtpath, $user->ID, '', '', get_current_blog_id(), '', null);
    				wfu_dropbox_add_file_to_queue($fileid, $txtpath, $dropboxpath, $deletelocal, "last");
    			}
    		}
    		return $changable_data;
    	}
    	add_filter('wfu_after_upload', 'wfu_after_upload_handler', 10, 2);
    Thread Starter jlohl

    (@jlohl)

    Hello Nick,
    it worked well on Dropbox but I’m not really sure of the exact hook I used (it was a hook that you wrote and that I slightly adapted.

    The .txt file is written on the WordPress uploads but is not moved to the google drive, even if I just set a very basic gdrive path ie only “mmm/”
    I thought it could be an error in the function names ie “wfu_gdrive_add_file_to_queue”, I just changed dropbox to gdrive but not sure it is the right name !

    Thread Starter jlohl

    (@jlohl)

    I was just thinking : WFU has the function to upload all user datas into Google’s file description and this works very well.
    Using this description would be fine but it would mean using the Google API with keys, not a very light solution,….

    Thread Starter jlohl

    (@jlohl)

    I have tried different files : it seems that I am only allowed for a 300s max upload time.
    I tried ftp method but had problems with paths.
    Finally I also tried the option “Upload Big Files in Chunks : On” and it works !
    Even for files as small as 30MB ( I thought that this option was for really large files).

    JL

    Thread Starter jlohl

    (@jlohl)

    I get following error message :
    “Upload failed! The duration of the upload exceeded the time limit of the server….The upload time limit of PHP directive max_input_time is preventing the upload of big files. PHP directive max_input_time limit is: -1 seconds. To increase the limit change the value of the directive from php.ini. If you don’t have access to php.ini, then add the following line to your .htaccess file: php_value max_input_time 500”
    Limit time is -1 seconds ! Does this mean infinite time ? If yes the problem is elsewhere.
    I don’t have access to php.ini and modifying .htaccess was not successfull (crashed the site). I tried changing post method of WFUP using cURL or sockets instead of fopen. Also tried ftp upload in advanced settings of WFUP. But same problem…
    Any idea ?

    Thanks
    JL

    • This reply was modified 7 years, 6 months ago by jlohl.
    • This reply was modified 7 years, 6 months ago by jlohl.

    Hi,
    as Lisaweb said, it works fine if everybody types the company name the same way.
    An improvement could help : if the company name is in your wp profile or as a variable readable by WPFU, this name could be automatically retrieved in the path. No need to type so no error.

    Regards
    JL

    Thread Starter jlohl

    (@jlohl)

    Hi

    the trick is fine if in ‘wfu_before_file_check_handler’, I write something like :
    $changable_data[“user_data”][2][“value”] = $changable_data[“user_data”][1][“value”];
    or
    $changable_data[“user_data”][2][“value”] = “newcompany”;

    but it fails if I use :
    $changable_data[“user_data”][2][“value”] = $company;
    or $changable_data[“user_data”][2][“value”] = $GLOBALS[“company”];
    I suppose it fails because I cannot get $company to be seen by WFUP as a global variable ?
    I’ll keep testing, cheers.
    JL

    Thread Starter jlohl

    (@jlohl)

    Thanks a lot Nickolas,
    I’ll try and let you know.

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