define('LOAD_REIMG', true); } - //This will prevent further loading of this hook. If you need this hook loaded on a page other than the ones above either add to - //the array above or add a define('LOAD_REIMG', true) to your page. + //This will prevent further loading of this hook. If you need this hook loaded on a page other than + //the ones in the above array then add a define('LOAD_REIMG', true) to the top of your page. if (!defined('LOAD_REIMG')) { return; @@ -80,6 +80,7 @@ function reimg_template_hook(&$hook) switch ($page_name) { case 'memberlist': + //Viewing user profile if (request_var('mode', '') == 'viewprofile' && reimg_get_config('reimg_ignore_sig_img', false) == false) { if (isset($template->_tpldata['.'][0]['SIGNATURE'])) @@ -90,6 +91,7 @@ function reimg_template_hook(&$hook) break; case 'posting': + //Topic review area shown when posting a reply if (!empty($template->_tpldata['topic_review_row'])) { foreach ($template->_tpldata['topic_review_row'] as $row => $data) @@ -101,18 +103,21 @@ function reimg_template_hook(&$hook) } } + //Message preview if (isset($template->_tpldata['.'][0]['PREVIEW_MESSAGE'])) { $template->assign_var('PREVIEW_MESSAGE', insert_reimg_properties($template->_tpldata['.'][0]['PREVIEW_MESSAGE'])); } - if (isset($template->_tpldata['.'][0]['PREVIEW_SIGNATURE'])) + //Signature in post preview + if (isset($template->_tpldata['.'][0]['PREVIEW_SIGNATURE']) && reimg_get_config('reimg_ignore_sig_img', false) == false) { $template->assign_var('PREVIEW_SIGNATURE', insert_reimg_properties($template->_tpldata['.'][0]['PREVIEW_SIGNATURE'])); } break; case 'ucp': + //Signature editing area if (request_var('mode', '') == 'signature' && reimg_get_config('reimg_ignore_sig_img', false) == false) { if (isset($template->_tpldata['.'][0]['SIGNATURE_PREVIEW'])) @@ -123,21 +128,37 @@ function reimg_template_hook(&$hook) $prefix = ''; + //Test to see if we're in preview mode if (isset($template->_tpldata['.'][0]['PREVIEW_MESSAGE'])) { $prefix = 'PREVIEW_'; } + //The actual message if (isset($template->_tpldata['.'][0][$prefix . 'MESSAGE'])) { $template->assign_var($prefix . 'MESSAGE', insert_reimg_properties($template->_tpldata['.'][0][$prefix . 'MESSAGE'])); } - if (isset($template->_tpldata['.'][0][$prefix . 'SIGNATURE'])) + //Message's signature + if (isset($template->_tpldata['.'][0][$prefix . 'SIGNATURE']) && reimg_get_config('reimg_ignore_sig_img', false) == false) { $template->assign_var($prefix . 'SIGNATURE', insert_reimg_properties($template->_tpldata['.'][0][$prefix . 'SIGNATURE'])); } + //Handle attachments + if (isset($template->_tpldata['attachment']) && reimg_get_config('img_create_thumbnail', false) == false) + { + foreach ($template->_tpldata['attachment'] as $row => $data) + { + // Alter the array + $template->alter_block_array('attachment', array( + 'DISPLAY_ATTACHMENT' => insert_reimg_properties($data['DISPLAY_ATTACHMENT']), + ), $row, 'change'); + } + } + + //Message history section if (!empty($template->_tpldata['history_row'])) { foreach ($template->_tpldata['history_row'] as $row => $data)[phpBB Debug] PHP Notice: in file /includes/session.php on line 1024: Cannot modify header information - headers already sent by (output started at /includes/hooks/hook_reimg.php:13)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1024: Cannot modify header information - headers already sent by (output started at /includes/hooks/hook_reimg.php:13)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1024: Cannot modify header information - headers already sent by (output started at /includes/hooks/hook_reimg.php:13)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4540: Cannot modify header information - headers already sent by (output started at /includes/hooks/hook_reimg.php:13)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4542: Cannot modify header information - headers already sent by (output started at /includes/hooks/hook_reimg.php:13)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4543: Cannot modify header information - headers already sent by (output started at /includes/hooks/hook_reimg.php:13)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4544: Cannot modify header information - headers already sent by (output started at /includes/hooks/hook_reimg.php:13)
ChilliPepers.nl Forum • Forum Chat

Het is nu za 04 feb 2012, 21:57

Het is nu za 04 feb 2012, 21:57

ChilliPepers.nl Forum Chat Center



You must be a Registered User to Chat in the Shoutbox
lee
za 07 jan 2012, 01:45
lee
za 07 jan 2012, 01:45
lee
do 05 jan 2012, 10:34
  Online List:

Wie is er online

Er zijn in totaal 10 gebruikers online :: 1 geregistreerde, 0 verborgen en 9 gasten (gebaseerd op de gebruikers die de laatste 5 minuten actief waren)
Het grootst aantal gebruikers online was 113 op ma 28 feb 2011, 22:31

Geregistreerde gebruikers: Bing [Bot]