// Hook into Instant Messenger message creation function sms_notif_im_message($thread_id, $message) { if(sms_param('notify_user_item_contact') == 1) { // Get thread details $thread = ModelIM::newInstance()->getThread($thread_id); if($thread) { $item = Item::newInstance()->findByPrimaryKey($thread['fk_i_item_id']); $user = User::newInstance()->findByPrimaryKey($thread['i_to_user_id']); if(sms_check_user_group($user['pk_i_id'])) { $phone_number = @$user['s_phone_mobile']; $phone_number_item = sms_item_phone_number($thread['fk_i_item_id']); $phone_number = ($phone_number <> '' ? $phone_number : $phone_number_item); // Create the URL using the thread ID $message_url = 'https://iqmedmart.com/im-messages/' . $thread_id . '/' . mb_generate_rand_string(10); // Format the message to be concise $sms_message = sprintf(__('New message from %s about %s. View details: %s', 'sms'), $thread['s_from_user_name'], $item['s_title'], $message_url ); sms_send($phone_number, $sms_message, 'USER_ITEM_CONTACT'); } } } } // Add hook for Instant Messenger messages - using the correct hook name osc_add_hook('instant_messenger_message_created', 'sms_notif_im_message'); Login into your account
Imaging Quest Menu
Hello! Sign in To view your account
Home Search My account My alerts My personal info My listings Mail us Call us IQ Forums Blog
Refine search
Keyword
Category
Location

Region

City

Pictures
Price

Price:

-
Advanced
Clean search