Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Still not fixed? The Sweden map is very wrong. “Kalmar” should not be there as it is a county for instance (it should be “Småland” and be larger).

    The image that DapHan wrote above is correct;
    http://sv.wikipedia.org/wiki/Landskap_i_Sverige#mediaviewer/File:Sverigekarta-Landskap_Text.svg

    Please fix this!

    Thread Starter Search4it

    (@search4it)

    Great support from the developer, all is working now.

    Thanks again!

    Thread Starter Search4it

    (@search4it)

    Hello and thank you for your response.

    I have sent the URL to you through your website. Subject “Regarding support for Product slider”.

    Thank you!

    Thread Starter Search4it

    (@search4it)

    The “test.com”-domain I used above is not the real domain, I changed it to not publicly post my clients real domain.

    Regarding this and WP 4.0

    Well.. I think the reason for it is because of something with caching (but I don’t understand why). If having multiple media-instances it adds a number, say for instance I add 10 videos to a single page it get ?_=1 up to ?_=10. I would LOVE a explanation from the WP-team regarding this.

    In my case I needed to edit this because when requesting a video (mp4) from Rackspace Cloud Files CDN it would slow down when using the URL with the querystring for some reason.

    Solution for video-uploads – You have to edit a core-function in WordPress.

    File: /wp-includes/media.php, row 1864;
    $url = add_query_arg( '_', $instances, $atts[ $fallback ] );

    Change to

    $url = $atts[ $fallback ];

    and remember; This change will be reset if updating wordpress.

    Thread Starter Search4it

    (@search4it)

    Another question;

    5. The following code

    // Delete file when successfully uploaded, if set
    if (isset($_SESSION['cdn']->api_settings->remove_local_files) && $_SESSION['cdn']->api_settings->remove_local_files == true) {
    
    	if (stripos($content_type, 'image') === false) {
    	    @unlink($cur_file);
    	}
    }

    Exactly what does it do? Because from what I can gather from it it checks that the file isn’t an image so it can be removed (why not remove local images when they have been uploaded?)

    Thread Starter Search4it

    (@search4it)

    I see that problem #1 and #2 is related. The sync is not working because some images had extension “.jpeg” and not “.jpg”, the same goes for video “.mp4”.

    Maybe add a field to the backend where one can add custom mime-types?

    Edit:
    Hmm.. “.jpeg” already exists in the array but does not work. I am certain something is not quite right because ALL files that are not synced are “.jpeg” and “.mp4”..

    Edit 2:
    set_cdn_path($attachment), when doing a var_dump on $attachment it display on all rows under media except for mp4-files.

    Edit 3:
    The reason “.jpeg” is not working is because of this;
    preg_match_all('/'.$base_uploads_url.'\/.*?\.[a-z]{3}+/i', $attachment, $attachments);

    When changing the 3 to 4 it works on .jpeg but not .jpg (or any other format with a 3-letter extension).

    When changing [a-z] to [a-zA-Z0-9] it works with .mp4!

    Edit 4:
    preg_match_all('/'.$base_uploads_url.'\/.*?\.[a-z]{3}+/i', $attachment, $attachments);

    should be

    preg_match_all('/'.$base_uploads_url.'\/.*?\.[a-zA-Z0-9]{3,4}+/i', $attachment, $attachments);

    Now .jpeg and .mp4 works 🙂 I guess that .mp3 shouldn’t have worked before either because of the 3 in the extension? Also, some customers upload files with uppercase extensions unfortunately so it’s good to have that covered too.

    Hopefully you can answer my other questions in the first post!

Viewing 7 replies - 1 through 7 (of 7 total)