ReIMG Image Resizer

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17321
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: ReIMG Image Resizer

Post by DavidIQ »

CoRp$ wrote:Thank you DavidIQ for so useful mod but I have some little problem with attachment images .
There is this edit that was added to viewtopic_body.html:

Code: Select all

 style="width: 97%;"
It was there from the original MOD so I didn't change it but if you take it out your attachbox will shrink to the right size. I'll probably remove that edit from a future release.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
User avatar
CoRp$
Registered User
Posts: 3
Joined: Fri Jan 22, 2010 5:50 pm
Location: Earth

Re: ReIMG Image Resizer

Post by CoRp$ »

Thank you for answering but I remove this

Code: Select all

style="width: 97%;"
from styles/prosilver/template/viewtopic_body.html and refresh the prosilver template and imageset, and purge the cache but nothing happyend for me so images uploaded from my local computer look like in my last post.

P.S. OK, I try watch it in another (Mozzila) browser and it work :) so I suppose I should be purge the cache in my IE browser too. Thank you again remove this code help me.
Lamer4o
Registered User
Posts: 98
Joined: Tue Dec 22, 2009 9:29 pm

Re: ReIMG Image Resizer

Post by Lamer4o »

I Still have problems when i try to install it whit Automod i have these problems here are the Code's

memberlist.php

Code: Select all

 
Find

'SIGNATURE'		=> $member['user_sig'],

Replace With

			'SIGNATURE'		=> ($config['reimg_ignore_sig_img']) ? str_replace(reimg_properties(), '', $member['user_sig']) : $member['user_sig'],

The Find specified by the MOD could not be found
posting.php

Code: Select all

Find

'PREVIEW_SIGNATURE'		=> $preview_signature,

Replace With

			'PREVIEW_SIGNATURE'		=> ($config['reimg_ignore_sig_img']) ? str_replace(reimg_properties(), '', $preview_signature) : $preview_signature,

The Find specified by the MOD could not be found
viewtopic.php

Code: Select all

Find

'SIGNATURE'			=> ($row['enable_sig']) ? $user_cache[$poster_id]['sig'] : '',

Replace With

		'SIGNATURE'			=> ($row['enable_sig']) ? ($config['reimg_ignore_sig_img'] ? str_replace(reimg_properties(), '', $user_cache[$poster_id]['sig']) : $user_cache[$poster_id]['sig']) : '',

The Find specified by the MOD could not be found
includes/ucp/ucp_pm_viewmessage.php

Code: Select all

Find

'SIGNATURE'			=> ($message_row['enable_sig']) ? $signature : '',

Replace With

		'SIGNATURE'			=> ($message_row['enable_sig']) ? (($config['reimg_ignore_sig_img']) ? str_replace(reimg_properties(), '', $signature) : $signature) : '',

The Find specified by the MOD could not be found
includes/ucp/ucp_profile.php

Code: Select all

Find

'SIGNATURE_PREVIEW'	=> $signature_preview,

Replace With

					'SIGNATURE_PREVIEW'	=> ($config['reimg_ignore_sig_img']) ? str_replace(reimg_properties(), '', $signature_preview) : $signature_preview,

The Find specified by the MOD could not be found
styles/prosilver/template/attachment.html

Code: Select all

Find

<dt class="attach-image"><img src="{_file.U_INLINE_LINK}" alt="{_file.DOWNLOAD_NAME}" onclick="viewableArea(this);" /></dt>

In-Line Find

This MOD has an invalid instruction, or an in-line find operation failed.

The Find specified by the MOD could not be found
styles/prosilver/template/bbcode.html

Code: Select all

Find

<!-- BEGIN img --><img src="{URL}" alt="{L_IMAGE}" /><!-- END img -->

In-Line Find

This MOD has an invalid instruction, or an in-line find operation failed.

The Find specified by the MOD could not be found
styles/prosilver/template/ucp_pm_viewmessage.html

Code: Select all

Find

<dl class="attachbox">

In-Line Find

This MOD has an invalid instruction, or an in-line find operation failed.

The Find specified by the MOD could not be found
styles/prosilver/template/viewtopic_body.html

Code: Select all

Find

<dl class="attachbox">

In-Line Find

This MOD has an invalid instruction, or an in-line find operation failed.

The Find specified by the MOD could not be found
Can some one help me out whit this problem ?It's on 3.0.6
polatok
Registered User
Posts: 2
Joined: Sun Jan 24, 2010 7:28 pm

Re: ReIMG Image Resizer

Post by polatok »

hi. i am using the latest phpbb version setup 3 days back and using the style melankolia. now i need help for image resizer setup/install.

please daivdiq or anyone help me. just edit the template and pm or post here. or if i have to do more please tell me.

thanks a lot.

my view topic_body template is

Code: Select all

<!-- INCLUDE overall_header.html -->

<!-- IF S_FORUM_RULES -->
   <div class="forumrules">
      <!-- IF U_FORUM_RULES -->
         <h3>{L_FORUM_RULES}</h3><br />
         <a href="{U_FORUM_RULES}"><b>{L_FORUM_RULES_LINK}</b></a>
      <!-- ELSE -->
         <h3>{L_FORUM_RULES}</h3><br />
         {FORUM_RULES}
      <!-- ENDIF -->
   </div>

   <br clear="all" />
<!-- ENDIF -->

<div id="pageheader">
   <h2><a class="titles" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h2>

<!-- IF MODERATORS -->
   <p class="moderators"><!-- IF S_SINGLE_MODERATOR -->{L_MODERATOR}<!-- ELSE -->{L_MODERATORS}<!-- ENDIF -->: {MODERATORS}</p>
<!-- ENDIF -->
</div>

<br clear="all" /><br />

<div id="pagecontent">

   <table width="100%" cellspacing="1">
   <tr>
      <td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
      <!-- IF not S_IS_BOT -->
         <!-- IF S_DISPLAY_POST_INFO --><a href="{U_POST_NEW_TOPIC}">{POST_IMG}</a>&nbsp;<!-- ENDIF -->
         <!-- IF S_DISPLAY_REPLY_INFO --><a href="{U_POST_REPLY_TOPIC}">{REPLY_IMG}</a><!-- ENDIF -->
      <!-- ENDIF -->
      </td>
      <!-- IF TOTAL_POSTS -->
         <td class="nav" valign="middle" nowrap="nowrap">&nbsp;{PAGE_NUMBER}<br /></td>
         <td class="gensmall" nowrap="nowrap">&nbsp;[ {TOTAL_POSTS} ]&nbsp;</td>
         <td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
      <!-- ENDIF -->
   </tr>
   </table>

   <table class="tablebg" width="100%" cellspacing="1">
   <tr>
      <td class="cat">
         <table width="100%" cellspacing="0">
         <tr>
            <td class="nav" nowrap="nowrap">&nbsp;
            <!-- IF not S_IS_BOT -->
               <!-- IF U_WATCH_TOPIC --><a class="kat" href="{U_WATCH_TOPIC}" title="{L_WATCH_TOPIC}">{L_WATCH_TOPIC}</a><!-- IF U_PRINT_TOPIC or U_EMAIL_TOPIC or U_BUMP_TOPIC or U_BOOKMARK_TOPIC --> | <!-- ENDIF --><!-- ENDIF -->
               <!-- IF U_BOOKMARK_TOPIC --><a class="kat" href="{U_BOOKMARK_TOPIC}" title="{L_BOOKMARK_TOPIC}">{L_BOOKMARK_TOPIC}</a><!-- IF U_PRINT_TOPIC or U_EMAIL_TOPIC or U_BUMP_TOPIC --> | <!-- ENDIF --><!-- ENDIF -->
               <!-- IF U_PRINT_TOPIC --><a class="kat" href="{U_PRINT_TOPIC}" title="{L_PRINT_TOPIC}">{L_PRINT_TOPIC}</a><!-- IF U_EMAIL_TOPIC or U_BUMP_TOPIC --> | <!-- ENDIF --><!-- ENDIF -->
               <!-- IF U_EMAIL_TOPIC --><a class="kat" href="{U_EMAIL_TOPIC}" title="{L_EMAIL_TOPIC}">{L_EMAIL_TOPIC}</a><!-- IF U_BUMP_TOPIC --> | <!-- ENDIF --><!-- ENDIF -->
               <!-- IF U_BUMP_TOPIC --><a class="kat" href="{U_BUMP_TOPIC}" title="{L_BUMP_TOPIC}">{L_BUMP_TOPIC}</a><!-- ENDIF -->
            <!-- ENDIF -->
            </td>
            <td class="nav" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><a class="kat" href="{U_VIEW_OLDER_TOPIC}">{L_VIEW_PREVIOUS_TOPIC}</a><!-- IF U_VIEW_UNREAD_POST and not S_IS_BOT --> | <a class="kat" href="{U_VIEW_UNREAD_POST}">{L_VIEW_UNREAD_POST}</a><!-- ENDIF --> | <a class="kat" href="{U_VIEW_NEWER_TOPIC}">{L_VIEW_NEXT_TOPIC}</a>&nbsp;</td>
         </tr>
         </table>
      </td>
   </tr>
<!-- IF S_HAS_POLL -->
   <tr>
      <td class="row2" colspan="2" align="center"><br clear="all" />

         <form method="post" action="{S_POLL_ACTION}">

         <table cellspacing="0" cellpadding="4" border="0" align="center">
         <tr>
            <td align="center"><span class="gen"><b>{POLL_QUESTION}</b></span><br /><span class="gensmall">{L_POLL_LENGTH}</span></td>
         </tr>
         <tr>
            <td align="{S_CONTENT_FLOW_BEGIN}">
               <table cellspacing="0" cellpadding="2" border="0">
            <!-- BEGIN poll_option -->
               <tr>
               <!-- IF S_CAN_VOTE -->
                  <td>
                     <!-- IF S_IS_MULTI_CHOICE -->
                        <input type="checkbox" class="radio" name="vote_id[]" value="{poll_option.POLL_OPTION_ID}"<!-- IF poll_option.POLL_OPTION_VOTED --> checked="checked"<!-- ENDIF --> />
                     <!-- ELSE -->
                        <input type="radio" class="radio" name="vote_id[]" value="{poll_option.POLL_OPTION_ID}"<!-- IF poll_option.POLL_OPTION_VOTED --> checked="checked"<!-- ENDIF --> />
                     <!-- ENDIF -->
                  </td>
               <!-- ENDIF -->
                  <td><span class="gen">{poll_option.POLL_OPTION_CAPTION}</span></td>
                  <!-- IF S_DISPLAY_RESULTS -->
                     <td dir="ltr">{POLL_LEFT_CAP_IMG}{poll_option.POLL_OPTION_IMG}{POLL_RIGHT_CAP_IMG}</td>
                     <td class="gen" align="{S_CONTENT_FLOW_END}"><b>&nbsp;{poll_option.POLL_OPTION_PERCENT}&nbsp;</b></td>
                     <td class="gen" align="center">[ {poll_option.POLL_OPTION_RESULT} ]</td>
                     <!-- IF poll_option.POLL_OPTION_VOTED -->
                        <td class="gensmall" valign="top"><b title="{L_POLL_VOTED_OPTION}">x</b></td>
                     <!-- ENDIF -->
                  <!-- ENDIF -->
               </tr>
            <!-- END poll_option -->
               </table>
            </td>
         </tr>
      <!-- IF S_CAN_VOTE -->
         <tr>
            <td align="center"><span class="gensmall">{L_MAX_VOTES}</span><br /><br /><input type="submit" name="update" value="{L_SUBMIT_VOTE}" class="btnlite" /></td>
         </tr>
      <!-- ENDIF -->
      <!-- IF S_DISPLAY_RESULTS -->
         <tr>
            <td class="gensmall" colspan="4" align="center"><b>{L_TOTAL_VOTES} : {TOTAL_VOTES}</b></td>
         </tr>
      <!-- ELSE -->
         <tr>
            <td align="center"><span class="gensmall"><b><a href="{U_VIEW_RESULTS}">{L_VIEW_RESULTS}</a></b></span></td>
         </tr>
      <!-- ENDIF -->
         </table>
         {S_HIDDEN_FIELDS}
         {S_FORM_TOKEN}
         </form>
         
      </td>
   </tr>
<!-- ENDIF -->
   </table>

<!-- BEGIN postrow -->
   <table class="tablebg" width="100%" cellspacing="1">
   <!-- IF postrow.S_FIRST_ROW -->
      <tr>
         <th>{L_AUTHOR}</th>
         <th>{L_MESSAGE}</th>
      </tr>
   <!-- ENDIF -->
   <!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row1"><!-- ENDIF -->

   <!-- IF postrow.S_IGNORE_POST -->
         <td class="gensmall" colspan="2" height="25" align="center"><!-- IF postrow.S_FIRST_UNREAD --><a name="unread"></a><!-- ENDIF --><a name="p{postrow.POST_ID}"></a>{postrow.L_IGNORE_POST}</td>
   <!-- ELSE -->

         <td align="center" valign="middle" class="row2">
            <!-- IF postrow.S_FIRST_UNREAD --><a name="unread"></a><!-- ENDIF --><a name="p{postrow.POST_ID}"></a>
            <b class="postauthor"<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.POST_AUTHOR}</b>
         </td>
         <td width="100%" height="25" class="row1">
            <table width="100%" cellspacing="0">
            <tr>
            <!-- IF postrow.POST_ICON_IMG -->
               <td><img src="{T_ICONS_PATH}{postrow.POST_ICON_IMG}" width="{postrow.POST_ICON_IMG_WIDTH}" height="{postrow.POST_ICON_IMG_HEIGHT}" alt="" title="" /></td>
            <!-- ENDIF -->
               <td class="gensmall" width="100%"><div style="float: {S_CONTENT_FLOW_BEGIN};">&nbsp;<b>{L_POST_SUBJECT}:</b> {postrow.POST_SUBJECT}</div><div style="float: {S_CONTENT_FLOW_END};"><!-- IF S_IS_BOT -->{postrow.MINI_POST_IMG}<!-- ELSE --><a href="{postrow.U_MINI_POST}">{postrow.MINI_POST_IMG}</a><!-- ENDIF --><b>{L_POSTED}:</b> {postrow.POST_DATE}&nbsp;</div></td>
            </tr>
            </table>
         </td>
      </tr>
      
      <!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row1"><!-- ENDIF -->

         <td valign="top" class="row2">
            <table cellspacing="4" align="center" width="180" >
         <!-- IF postrow.RANK_TITLE -->
            <tr>
               <td align="left">{postrow.RANK_TITLE}</td>
            </tr>
         <!-- ENDIF -->
         <!-- IF postrow.RANK_IMG -->
            <tr>
               <td>{postrow.RANK_IMG}</td>
            </tr>
         <!-- ENDIF -->
         <!-- IF postrow.POSTER_AVATAR -->
            <tr>
               <td>{postrow.POSTER_AVATAR}</td>
            </tr>
         <!-- ENDIF -->
         <!-- IF not (postrow.ONLINE_IMG or postrow.RANK_TITLE or postrow.RANK_IMG or postrow.POSTER_AVATAR) -->
            <tr>
               <td></td>
            </tr>
         <!-- ENDIF -->
            </table>

            <span>
               <!-- IF postrow.POSTER_JOINED --><div class="postdetails"><b>{L_JOINED}:</b> {postrow.POSTER_JOINED}</div><!-- ENDIF -->
               <!-- IF postrow.POSTER_POSTS != '' --><div class="postdetails"><b>{L_POSTS}:</b> {postrow.POSTER_POSTS}</div><!-- ENDIF -->
               <!-- IF postrow.POSTER_FROM --><div class="postdetails"><b>{L_LOCATION}:</b> {postrow.POSTER_FROM}</div><!-- ENDIF -->

               <!-- IF postrow.S_PROFILE_FIELD1 -->
                  <!-- Use a construct like this to include admin defined profile fields. Replace FIELD1 with the name of your field. -->
                  <div class="postdetails"><b>{postrow.PROFILE_FIELD1_NAME}:</b> {postrow.PROFILE_FIELD1_VALUE}</div>
               <!-- ENDIF -->

               <!-- BEGIN custom_fields -->
                  <div class="postdetails"><b>{postrow.custom_fields.PROFILE_FIELD_NAME}:</b> {postrow.custom_fields.PROFILE_FIELD_VALUE}</div>
               <!-- END custom_fields -->
            </span>

         </td>
         <td valign="top">
            <table width="100%" cellspacing="5">
            <tr>
               <td>
               <!-- IF postrow.S_POST_UNAPPROVED or postrow.S_POST_REPORTED -->
                  <table width="100%" cellspacing="0">
                  <tr>
                     <td class="gensmall"><!-- IF postrow.S_POST_UNAPPROVED --><span class="postapprove">{UNAPPROVED_IMG} <a href="{postrow.U_MCP_APPROVE}">{L_POST_UNAPPROVED}</a></span><br /> <!-- ENDIF --> <!-- IF postrow.S_POST_REPORTED --><span class="postreported">{REPORTED_IMG} <a href="{postrow.U_MCP_REPORT}">{L_POST_REPORTED}</a></span><!-- ENDIF --></td>
                  </tr>
                  </table>

                  <br clear="all" />
               <!-- ENDIF -->

                  <div class="postbody">{postrow.MESSAGE}</div>

               <!-- IF postrow.S_HAS_ATTACHMENTS -->
                  <br clear="all" /><br />

                  <table class="tablebg" width="100%" cellspacing="1">
                  <tr>
                     <td class="row3"><b class="genmed">{L_ATTACHMENTS}: </b></td>
                  </tr>
                  <!-- BEGIN attachment -->
                     <tr>
                        <!-- IF postrow.attachment.S_ROW_COUNT is even --><td class="row1"><!-- ELSE --><td class="row1"><!-- ENDIF -->{postrow.attachment.DISPLAY_ATTACHMENT}</td>
                     </tr>
                  <!-- END attachment -->
                  </table>
               <!-- ENDIF -->

               <!-- IF postrow.S_DISPLAY_NOTICE -->
                  <span class="gensmall error"><br /><br />{L_DOWNLOAD_NOTICE}</span>
               <!-- ENDIF -->
               <!-- IF postrow.SIGNATURE -->
                  <span class="postbody"><br />_________________<br />{postrow.SIGNATURE}</span>
               <!-- ENDIF -->

               <!-- IF postrow.EDITED_MESSAGE or postrow.EDIT_REASON -->
                  <!-- IF postrow.EDIT_REASON -->
                     <br /><br />
                     <table class="tablebg" width="100%" cellspacing="1">
                     <tr>
                        <td class="row3"><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
                     </tr>
                     <tr>
                        <td class="row2"><span class="genmed">{postrow.EDIT_REASON}</span></td>
                     </tr>
                     </table>
                  <!-- ELSE -->
                     <br /><br />
                     <span class="gensmall">{postrow.EDITED_MESSAGE}</span>
                  <!-- ENDIF -->
               <!-- ENDIF -->

               <!-- IF postrow.BUMPED_MESSAGE -->
                  <span class="gensmall"><br /><br />{postrow.BUMPED_MESSAGE}</span>
               <!-- ENDIF -->

               <!-- IF not postrow.S_HAS_ATTACHMENTS --><br clear="all" /><br /><!-- ENDIF -->

                  <table width="100%" cellspacing="0">
                  <tr valign="middle">
                     <td class="gensmall" align="{S_CONTENT_FLOW_END}">
                     <!-- IF not S_IS_BOT -->
                        <!-- IF postrow.U_REPORT --><a href="{postrow.U_REPORT}">{REPORT_IMG}</a> <!-- ENDIF -->
                        <!-- IF postrow.U_INFO --><a href="{postrow.U_INFO}">{INFO_IMG}</a> <!-- ENDIF -->
                        <!-- IF postrow.U_WARN --><a href="{postrow.U_WARN}">{WARN_IMG}</a> <!-- ENDIF -->
                        <!-- IF postrow.U_DELETE --><a href="{postrow.U_DELETE}">{DELETE_IMG}</a> <!-- ENDIF -->
                     <!-- ENDIF -->
                     </td>
                  </tr>
                  </table>
               </td>
            </tr>
            </table>
         </td>
      </tr>

      <!-- IF postrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row1"><!-- ENDIF -->

         <td class="row2"><!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{PROFILE_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_PM --><a href="{postrow.U_PM}">{PM_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_EMAIL --><a href="{postrow.U_EMAIL}">{EMAIL_IMG}</a><!-- ENDIF --><!-- IF postrow.ONLINE_IMG -->&nbsp;{postrow.ONLINE_IMG}<!-- ENDIF --></td>
         <td><div class="gensmall" style="float: {S_CONTENT_FLOW_END};"><!-- IF not S_IS_BOT --><!-- IF postrow.U_EDIT --><a href="{postrow.U_EDIT}">{EDIT_IMG}</a> <!-- ENDIF --> <!-- IF postrow.U_QUOTE --><a href="{postrow.U_QUOTE}">{QUOTE_IMG}</a> <!-- ENDIF --> <!-- ENDIF -->&nbsp;</div></td>
      <!-- ENDIF -->
        </tr>
   
   <tr>
      <td class="spacer" colspan="2" height="1"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
   </tr>
   </table>
<!-- END postrow -->
<!-- IF not S_IS_BOT -->
   <table width="100%" cellspacing="1" class="tablebg">
   <tr align="center">
      <td class="cat"><form name="viewtopic" method="post" action="{S_TOPIC_ACTION}"><p gensmall="" style="color: #40BFE7;"><span class="gensmall">{L_DISPLAY_POSTS}:</span> {S_SELECT_SORT_DAYS}&nbsp;<span class="gensmall">{L_SORT_BY}</span> {S_SELECT_SORT_KEY} {S_SELECT_SORT_DIR}&nbsp;<input class="btnlite" type="submit" value="{L_GO}" name="sort" /></p></form></td>
   </tr>
   </table>
<!-- ENDIF -->
   <table width="100%" cellspacing="1">
   <tr>
      <td align="{S_CONTENT_FLOW_BEGIN}" valign="middle" nowrap="nowrap">
      <!-- IF not S_IS_BOT -->
         <!-- IF S_DISPLAY_POST_INFO --><a href="{U_POST_NEW_TOPIC}">{POST_IMG}</a>&nbsp;<!-- ENDIF -->
         <!-- IF S_DISPLAY_REPLY_INFO --><a href="{U_POST_REPLY_TOPIC}">{REPLY_IMG}</a><!-- ENDIF -->
      <!-- ENDIF -->
      </td>
      <!-- IF TOTAL_POSTS -->
         <td class="nav" valign="middle" nowrap="nowrap">&nbsp;{PAGE_NUMBER}<br /></td>
         <td class="gensmall" nowrap="nowrap">&nbsp;[ {TOTAL_POSTS} ]&nbsp;</td>
         <td class="gensmall" width="100%" align="{S_CONTENT_FLOW_END}" nowrap="nowrap"><!-- INCLUDE pagination.html --></td>
      <!-- ENDIF -->
   </tr>
   </table>

</div>

<div id="pagefooter"></div>

<br clear="all" />
<!-- IF S_QUICK_REPLY -->
<!-- INCLUDE quickreply_editor.html -->
<!-- ENDIF -->
<!-- INCLUDE breadcrumbs.html -->

<!-- IF S_DISPLAY_ONLINE_LIST -->
   <br clear="all" />

   <table class="tablebg" width="100%" cellspacing="1">
   <tr>
   <td colspan="2" class="cat"><h4 style="color: rgb(29, 169, 216);"> {L_WHO_IS_ONLINE}</h4></td>
   </tr>
      <td colspan="2" class="row1"><p class="gensmall">{LOGGED_IN_USER_LIST}</p></td>
      </tr>
<!-- ELSE -->   <br clear="all" />

   <table class="tablebg" width="100%" cellspacing="1"><!-- ENDIF -->
   <tr>
   <td colspan="2" class="cat"><h4 style="color: rgb(29, 169, 216);"> Panel</h4></td>
   </tr>
<tr class="row1">
   <td class="row1" width="40%" valign="top" nowrap="nowrap" align="{S_CONTENT_FLOW_BEGIN}"><!-- IF S_TOPIC_MOD --><form method="post" action="{S_MOD_ACTION}"><span class="gensmall">{L_QUICK_MOD}:</span> {S_TOPIC_MOD} <input class="btnlite" type="submit" value="{L_GO}" /></form><!-- ELSE --><span class="gensmall"><a href="#wrapcentre"><strong>{L_BACK_TO_TOP}</strong></a></span><!-- ENDIF --></td>
   <td class="row1" align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap"><span class="gensmall"><!-- BEGIN rules -->{rules.RULE}<br /><!-- END rules --></span></td>
</tr>
<tr class="row1">
   <td class="row1"><!-- IF S_DISPLAY_SEARCHBOX --><!-- INCLUDE searchbox.html --><!-- ENDIF --></td>
   <td class="row1" align="{S_CONTENT_FLOW_END}"><!-- INCLUDE jumpbox.html --></td>
</tr>
</td>
</table>

<!-- INCLUDE overall_footer.html -->
s7eve
Registered User
Posts: 10
Joined: Mon Jan 25, 2010 11:38 am
Location: Qld, Australia.
Contact:

Re: ReIMG Image Resizer

Post by s7eve »

I just installed this mod on DirtyBoard 2.0, I thought I should share my results here as I found no information to help me with the installation of the mod in the DirtyBoard style.

It did not work after following the instruction to manually install the mod. After searching through this thread for information about issues with installing this mod on DirtyBoard I decided to make the same changes in root/styles/DirtyBoard2.0/'.', after performing the same changes within the DirtyBoard style the mod now function correctly.

This is my first forum and I am not a developer, forgive me if this was how I was supposed to install it but the instructions did not make this clear and I thought I should share to help any other first timers who are having the same issue with DirtyBoard.

Thanks for the great mod.
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17321
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: ReIMG Image Resizer

Post by DavidIQ »

polatok wrote:my view topic_body template is
That style is subsilver2 based. Use the subsilver2.xml file and apply the changes there to your style.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17321
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: ReIMG Image Resizer

Post by DavidIQ »

s7eve wrote:It did not work after following the instruction to manually install the mod. After searching through this thread for information about issues with installing this mod on DirtyBoard I decided to make the same changes in root/styles/DirtyBoard2.0/'.', after performing the same changes within the DirtyBoard style the mod now function correctly.
All MODs will include changes for prosilver and some will include changes for subsilver2. It's up to you to figure out which of the two your style is based on and then apply the changes done to that style to your own. That is true for any other MOD here ;)
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
Lamer4o
Registered User
Posts: 98
Joined: Tue Dec 22, 2009 9:29 pm

Re: ReIMG Image Resizer

Post by Lamer4o »

DavidIQ
Can you help me about my errors that i got trying to install it whit automod?
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17321
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: ReIMG Image Resizer

Post by DavidIQ »

Lamer4o wrote:DavidIQ
Can you help me about my errors that i got trying to install it whit automod?
Your errors are coming up for pretty much every file for this MOD. It's either an AutoMOD issue for which you need to post in the AutoMOD forum or your files are so different that the finds don't match at all and this would be the case if you had a really outdated phpBB installation. Either way I'm afraid I can't help you here as MOD release topics are not the place for AutoMOD support. The MOD is installable using AutoMOD as others in this topic have stated.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
Lamer4o
Registered User
Posts: 98
Joined: Tue Dec 22, 2009 9:29 pm

Re: ReIMG Image Resizer

Post by Lamer4o »

Ok i try to install it whit out Auto mod and i think it was OK till when i go to my ACP and try to click on what ever option in Board configuration i get this error
Fatal error: Cannot redeclare acp_board::select_reimg_link_method() in E:\XAMPP\xampp\htdocs\forum\includes\acp\acp_board.php on line 902
And when i mean evry thing i mean this

Code: Select all

    * Board configuration

    * Board settings
    * Board features
    * Avatar settings
    * Private message settings
    * Post settings
    * Signature settings
    * Feed settings
    * User registration settings
Any idea how to get rid of that Error?
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17321
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: ReIMG Image Resizer

Post by DavidIQ »

Visually check that file (acp_board.php) to see if you have two select_reimg_link_method functions in it and just remove one of them.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
Lamer4o
Registered User
Posts: 98
Joined: Tue Dec 22, 2009 9:29 pm

Re: ReIMG Image Resizer

Post by Lamer4o »

I don't know what to remove so i copy from 179 to 217 line

Code: Select all

						'legend_reimg'			=> 'REIMG_SETTINGS',
						'reimg_max_width'		=> array('lang' => 'REIMG_MAX_SIZE',		'validate' => 'int:0',	'type' => false, 'method' => false, 'explain' => false),
						'reimg_max_height'		=> array('lang' => 'REIMG_MAX_SIZE',		'validate' => 'int:0',	'type' => false, 'method' => false, 'explain' => false),
						'reimg_max'				=> array('lang' => 'REIMG_MAX_SIZE',		'validate' => 'int:0',	'type' => 'dimension:3:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
						'reimg_rel_width'		=> array('lang' => 'REIMG_REL_WIDTH',		'validate' => 'int:0',	'type' => 'text:3:4', 'explain' => true, 'append' => ' %'),
						'reimg_swap_portrait'	=> array('lang' => 'REIMG_SWAP_PORTRAIT',	'validate' => 'bool',	'type' => 'radio:yes_no', 'explain' => true),
						'reimg_ignore_sig_img'	=> array('lang' => 'REIMG_IGNORE_SIG_IMG',	'validate' => 'bool',	'type' => 'radio:yes_no', 'explain' => true),
						'reimg_link'			=> array('lang' => 'REIMG_LINK_METHOD',		'validate' => 'string',	'type' => 'select', 'method' => 'select_reimg_link_method', 'explain' => true),
						'reimg_zoom'			=> array('lang' => 'REIMG_ZOOM_METHOD',		'validate' => 'string',	'type' => 'select', 'method' => 'select_reimg_zoom_method', 'explain' => true),
						'legend_reimg'			=> 'REIMG_SETTINGS',
						'reimg_max_width'		=> array('lang' => 'REIMG_MAX_SIZE',		'validate' => 'int:0',	'type' => false, 'method' => false, 'explain' => false),
						'reimg_max_height'		=> array('lang' => 'REIMG_MAX_SIZE',		'validate' => 'int:0',	'type' => false, 'method' => false, 'explain' => false),
						'reimg_max'				=> array('lang' => 'REIMG_MAX_SIZE',		'validate' => 'int:0',	'type' => 'dimension:3:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
						'reimg_rel_width'		=> array('lang' => 'REIMG_REL_WIDTH',		'validate' => 'int:0',	'type' => 'text:3:4', 'explain' => true, 'append' => ' %'),
						'reimg_swap_portrait'	=> array('lang' => 'REIMG_SWAP_PORTRAIT',	'validate' => 'bool',	'type' => 'radio:yes_no', 'explain' => true),
						'reimg_ignore_sig_img'	=> array('lang' => 'REIMG_IGNORE_SIG_IMG',	'validate' => 'bool',	'type' => 'radio:yes_no', 'explain' => true),
						'reimg_link'			=> array('lang' => 'REIMG_LINK_METHOD',		'validate' => 'string',	'type' => 'select', 'method' => 'select_reimg_link_method', 'explain' => true),
						'reimg_zoom'			=> array('lang' => 'REIMG_ZOOM_METHOD',		'validate' => 'string',	'type' => 'select', 'method' => 'select_reimg_zoom_method', 'explain' => true),
						'legend3'					=> 'ACP_SUBMIT_CHANGES',
witch things i have to Remove?Becoas when i remove the

Code: Select all

						'legend_reimg'			=> 'REIMG_SETTINGS',
						'reimg_max_width'		=> array('lang' => 'REIMG_MAX_SIZE',		'validate' => 'int:0',	'type' => false, 'method' => false, 'explain' => false),
						'reimg_max_height'		=> array('lang' => 'REIMG_MAX_SIZE',		'validate' => 'int:0',	'type' => false, 'method' => false, 'explain' => false),
						'reimg_max'				=> array('lang' => 'REIMG_MAX_SIZE',		'validate' => 'int:0',	'type' => 'dimension:3:4', 'explain' => true, 'append' => ' ' . $user->lang['PIXEL']),
						'reimg_rel_width'		=> array('lang' => 'REIMG_REL_WIDTH',		'validate' => 'int:0',	'type' => 'text:3:4', 'explain' => true, 'append' => ' %'),
						'reimg_swap_portrait'	=> array('lang' => 'REIMG_SWAP_PORTRAIT',	'validate' => 'bool',	'type' => 'radio:yes_no', 'explain' => true),
						'reimg_ignore_sig_img'	=> array('lang' => 'REIMG_IGNORE_SIG_IMG',	'validate' => 'bool',	'type' => 'radio:yes_no', 'explain' => true),
						'reimg_link'			=> array('lang' => 'REIMG_LINK_METHOD',		'validate' => 'string',	'type' => 'select', 'method' => 'select_reimg_link_method', 'explain' => true),
						'reimg_zoom'			=> array('lang' => 'REIMG_ZOOM_METHOD',		'validate' => 'string',	'type' => 'select', 'method' => 'select_reimg_zoom_method', 'explain' => true),
I get the same Error but different line 894 becoas i delete 9 line's (from legend_reimg ~ reimg_zoom)...
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17321
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: ReIMG Image Resizer

Post by DavidIQ »

You're looking for the wrong thing. Search in that file for:

Code: Select all

function select_reimg_link_method
If you have 2 matches then you need to remove one instance of the entire function.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.
Lamer4o
Registered User
Posts: 98
Joined: Tue Dec 22, 2009 9:29 pm

Re: ReIMG Image Resizer

Post by Lamer4o »

DavidIQ wrote:You're looking for the wrong thing. Search in that file for:

Code: Select all

function select_reimg_link_method
If you have 2 matches then you need to remove one instance of the entire function.
Wow ye i find this

Code: Select all

/**
	* Select resized image link method
	*/
	function select_reimg_link_method($selected_value, $key)
	{
		global $user;

		$link_method_ary = array('button' => 'REIMG_LINK_BUTTON', 'link' => 'REIMG_LINK_IMAGE', 'button_link' => 'REIMG_LINK_BOTH');
		$link_options = '';
		foreach ($link_method_ary as $link_mehod => $lang)
		{
			$selected = ($selected_value == $link_mehod) ? ' selected="selected"' : '';
			$link_options .= '<option value="' . $link_mehod . '"' . $selected . '>' . $user->lang[$lang] . '</option>';
		}

		return $link_options;
	}

	/**
	* Select resized image zoom method
	*/
	function select_reimg_zoom_method($selected_value, $key)
	{
		global $user, $phpbb_root_path;

		$zoom_method_ary = array('' => 'DISABLED', '_default' => 'REIMG_ZOOM_DEFAULT', '_exturl' => 'REIMG_ZOOM_EXTURL', '_blank' => 'REIMG_ZOOM_BLANK', '_litebox' => 'REIMG_ZOOM_LITEBOX', '_litebox1' => 'REIMG_ZOOM_LITEBOX_1_1', '_litebox0' => 'REIMG_ZOOM_LITEBOX_RESIZED', '_highslide' => 'REIMG_ZOOM_HIGHSLIDE');
		$zoom_options = '';
		foreach ($zoom_method_ary as $zoom_method => $lang)
		{
			$disabled = '';
			//We need to check and see if the Highslide library actually exists before allowing the option to be selectable
			if ($zoom_method == '_highslide')
			{
				//We need one of the highslide js libraries
				if (!file_exists($phpbb_root_path . 'reimg/highslide/highslide-full.packed.js'))
				{
					$disabled = ' disabled';
				}
			}
			$selected = ($selected_value == $zoom_method) ? ' selected="selected"' : '';
			$zoom_options .= '<option value="' . $zoom_method . '"' . $selected . $disabled . '>' . $user->lang[$lang] . '</option>';
		}

		return $zoom_options;
	}
	

	/**
	* Select resized image link method
	*/
	function select_reimg_link_method($selected_value, $key)
	{
		global $user;

		$link_method_ary = array('button' => 'REIMG_LINK_BUTTON', 'link' => 'REIMG_LINK_IMAGE', 'button_link' => 'REIMG_LINK_BOTH');
		$link_options = '';
		foreach ($link_method_ary as $link_mehod => $lang)
		{
			$selected = ($selected_value == $link_mehod) ? ' selected="selected"' : '';
			$link_options .= '<option value="' . $link_mehod . '"' . $selected . '>' . $user->lang[$lang] . '</option>';
		}

		return $link_options;
	}

	/**
	* Select resized image zoom method
	*/
	function select_reimg_zoom_method($selected_value, $key)
	{
		global $user, $phpbb_root_path;

		$zoom_method_ary = array('' => 'DISABLED', '_default' => 'REIMG_ZOOM_DEFAULT', '_exturl' => 'REIMG_ZOOM_EXTURL', '_blank' => 'REIMG_ZOOM_BLANK', '_litebox' => 'REIMG_ZOOM_LITEBOX', '_litebox1' => 'REIMG_ZOOM_LITEBOX_1_1', '_litebox0' => 'REIMG_ZOOM_LITEBOX_RESIZED', '_highslide' => 'REIMG_ZOOM_HIGHSLIDE');
		$zoom_options = '';
		foreach ($zoom_method_ary as $zoom_method => $lang)
		{
			$disabled = '';
			//We need to check and see if the Highslide library actually exists before allowing the option to be selectable
And delete the first 2 codes and it fix (i think for now :D )
s7eve
Registered User
Posts: 10
Joined: Mon Jan 25, 2010 11:38 am
Location: Qld, Australia.
Contact:

Re: ReIMG Image Resizer

Post by s7eve »

DavidIQ wrote:
s7eve wrote:It did not work after following the instruction to manually install the mod. After searching through this thread for information about issues with installing this mod on DirtyBoard I decided to make the same changes in root/styles/DirtyBoard2.0/'.', after performing the same changes within the DirtyBoard style the mod now function correctly.
All MODs will include changes for prosilver and some will include changes for subsilver2. It's up to you to figure out which of the two your style is based on and then apply the changes done to that style to your own. That is true for any other MOD here ;)
Thanks again David, it must be frustrating at times dealing with amateurs like me with no real coding experience or knowledge. When you write it out like that it seems like common sense and this is most likely something that has been covered many times but there is a lot of info here and when you are a new guy who doesn't know what he is doing you try to follow the instructions you have exactly as they are and you don't think of things that are basic common sense knowledge to any real developer and should go without saying. :lol:

Future mods should be a little easier for me now, Cheers.
Locked

Return to “[3.0.x] MOD Database Releases”