I think it will only work when osc_resource() is available and that's your issue here.
I suppose links in email are wrong as well
Does not make sense, it should work there
if(isset($resource['pk_i_id']) && $resource['pk_i_id'] > 0) { $path = osc_apply_filter('resource_path', osc_base_url().$resource['s_path']); $img_link = $path.$resource['pk_i_id']."_thumbnail.".$resource['s_extension']; } else { $img_link = osc_base_url() . 'oc-includes/osclass/gui/images/no_photo.gif'; }
if(isset($resource['pk_i_id']) && $resource['pk_i_id'] > 0) { $path = osc_apply_filter('resource_path', osc_base_url()); $img_link = $path.$resource['pk_i_id']."_thumbnail.".$resource['s_extension']; } else { $img_link = osc_base_url() . 'oc-includes/osclass/gui/images/no_photo.gif'; }