Warning: The author of this contribution does not provide support for it anymore.

ReIMG Image Resizer

Frequently Asked Questions

(v2.0.1+) Making ReIMG work on non-standard pages

If you need ReIMG to work on a page that is not a default page of phpBB then you will need to add this to the top of the .php page just before (or after) the define('IN_PHPBB', true); line:

Code: Select all

define('LOAD_REIMG', true);

For general purposes, that should get it working on your page as long as it is using the template engine.

If that alone doesn't do it then you will need to figure out what the text block is called and what the section is called then define the constant for it. For example this is used for easyPortal:

Code: Select all

define('REIMG_POST_ROW', 'fetchpost_row.TEXT');


This can be figured out from the following block of code in portal.php:

Code: Select all

      $template->assign_block_vars('fetchpost_row', array(
...
         'TEXT' => $fetchposts[$i]['message'],
...
         )
      );

Wherever you see the assign_block_vars is where the template block is likely being defined. If your page is not using assign_block_vars then you could define the constant as define('REIMG_POST_ROW', 'TEXT') if it is just a section of text.


For reference purposes here are some code additions to known MODs to get ReIMG working with them:

easyPortal:
At the top of portal.php:

Code: Select all

define('LOAD_REIMG', true);
define('REIMG_POST_ROW', 'fetchpost_row.TEXT');



Others may be added to the list above as they are discovered.