*

Locan

  • ****
  • 166 posts
Please help me to make Image URL Path
« on: August 27, 2018, 01:33:59 PM »
 i make function to make custom image  url path but it not work correct, Dear best develop can you help me.
 - image show  www.img.website.com/imageid_thumbnail.jpg  but image have been upload in /upload/1/imageid_thumbnail.jpg or /upload/2/imageid_thumbnail.jpg

///
Quote
function image_path_resource_path($path) {
        return "". osc_get_preference('img_path', 'image_path');
    }
   
osc_add_filter('resource_path', 'image_path_resource_path'); 
   

////

. osc_get_preference('img_path', 'image_path') = www.img.website.com       and can change url in admin panel

my sub domain image point to oc-content/uploads/

please help me
regard