mitchklink wrote: Is there a step-by-step set of instructions for upgrading this mod from version 2.3.10 to the latest version? I don't care how complex it is or how many days it takes me to make the mods!!! Please! I've got to get this mod working again without starting from scratch!
jayray999 wrote: This is the best MOD I have used but:
1. I cannot figure out how to control Thumbnail size. I have managed to use the thumbnail feature and imagemagick etc. but it puts out a fairly large thumbnail.
2. It decides whether to create a thumbnail based on a filesize you specify (default= 12000 bytes) but shouldn't it decide based on image dimension. I mean wouldn't it make sense that it checks that an image has umnanageable dimensions and make a thumbnail rather than its size. A very compressed JPEG can be below 12000 bytes and yet be 800x800 pixels so if not thumbnailed it screws up the post.
Here is an example. Supposing I wish to upload the favicon of my website for my users to recognize. I have banned the .ICO extension so I upload a .JPG or .GIF. Now for some reason this produces a file that is 10000 bytes. Suppose 5000 bytes is my threshold for thumbnail generation i.e. uploaded files larger than 5000 bytes will be thumbnailed. Then my uploaded favicon gets thumnailed. The thumbnail turns out to huge and distorted (since it is magnified some 600%). Clicking on it yields the actual file that is 16x16 pixels. Now if the MOD had resized based on pixel size and not filesize the favicon.GIF would not be thumbnailed in the first place because the software realizes that despite being larger than 5000 bytes it is merely 16x16 pixels.
For some reason everyoone is ignoring this post so I am led to believe:
1. I am asking something stupid, or;
2. I am asking something that has long been resolved, or;
3. People have no answer and thus are speechless.
I don't know what scenario is accurate but please help.
Any suggestions?
Note: I am using the latest phpBB and latest ATTACH mod.
jayray999 wrote: 1. I cannot figure out how to control Thumbnail size. I have managed to use the thumbnail feature and imagemagick etc. but it puts out a fairly large thumbnail.
jayray999 wrote: 2. It decides whether to create a thumbnail based on a filesize you specify (default= 12000 bytes) but shouldn't it decide based on image dimension.
jayray999 wrote: ....The key is to realize that you only overwriting files came as part of your 2.3.10. No other phpBB files are modified so there is no question of conflict with other mods. This is not the case if your existing ATTACH MOD were 2.3.04 or older. Then you have to modify both ATTACH MOD files and regular phpBB files.
Code: Select all
sort($auth_p);
Code: Select all
// Generate array for Auth_Pack, do not add doubled forums
for ($i = 0; $i < count($add_forums_list); $i++)
{
if (!in_array($add_forums_list[$i], $auth_p))
{
$auth_p[] = $add_forums_list[$i];
}
}
Code: Select all
sort($auth_p);
Code: Select all
// Generate array for Auth_Pack, do not add doubled forums
for ($i = 0; $i < count($add_forums_list); $i++)
{
if (!in_array($add_forums_list[$i], $auth_p))
{
$auth_p[] = $add_forums_list[$i];
}
}
hydra1979 wrote:i have a problem with this mod
my phpbb version is 2.0.6 this mod version is 2.3.9
why there is sometimes upload pic is benn replaced with other upload pic
no often, may 1pecent,but it really happen
it's so troubleing ... is there anyone else has meet this ?
who can tell me why
#
#-----[ OPEN ]---------------------------------------------
#
viewforum.php
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/modcp_body.tpl
#
#-----[ FIND ]---------------------------------------------
# around line 27
<td class="row1"> <span class="topictitle">{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}"
class="topictitle">{topicrow.TOPIC_TITLE}</a></span></td>
{topicrow.TOPIC_TYPE}
<table border="0" cellpadding="4" cellspacing="1" width="100%">
<tr>
<td><span class="maintitle">
<a href="{U_MOD_CP}" class="maintitle">{L_MOD_CP}</a>
</span><span class="gensmall"><br />
{L_MOD_CP_EXPLAIN}<br />
</span></td>
</tr>
</table>
<form method="post" action="{S_MODCP_ACTION}">
{NAVIGATION_BOX}
<!-- BEGIN forum_header -->
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td width="100%" valign="bottom"><span class="gensmall">
<!-- BEGIN pagination -->
<b>{forum_header.pagination.L_PAGE_OF}</b> {forum_header.pagination.L_COUNT}
<!-- END pagination -->
</span></td>
<td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall">
<b>
<!-- BEGIN pagination -->
<!-- BEGIN unique_ELSE -->
{forum_header.pagination.L_GOTO}:
<!-- END unique_ELSE -->
<!-- BEGIN previous -->
<a href="{forum_header.pagination.U_PREVIOUS}" class="gensmall">{forum_header.pagination.L_PREVIOUS}</a>
<!-- END previous -->
<!-- BEGIN page_number -->
<!-- BEGIN number -->
<!-- BEGIN current -->
{forum_header.pagination.page_number.PAGE}{forum_header.pagination.page_number.L_SEP}
<!-- END current -->
<!-- BEGIN current_ELSE -->
<a href="{forum_header.pagination.page_number.U_PAGE}" class="gensmall">{forum_header.pagination.page_number.PAGE}</a>{forum_header.pagination.page_number.L_SEP}
<!-- END current_ELSE -->
<!-- END number -->
<!-- BEGIN number_ELSE -->
...,
<!-- END number_ELSE -->
<!-- END page_number -->
<!-- BEGIN next -->
<a href="{forum_header.pagination.U_NEXT}" class="gensmall">{forum_header.pagination.L_NEXT}</a>
<!-- END next -->
<!-- END pagination -->
</b></span></td>
</tr>
</table>
<!-- END forum_header -->
<!-- INCLUDE topics_row_box.tpl -->
<!-- BEGIN forum_header -->
<table border="0" cellpadding="2" cellspacing="0" width="100%">
<tr>
<td width="100%" valign="bottom"><span class="gensmall">
<!-- BEGIN pagination -->
<b>{forum_header.pagination.L_PAGE_OF}</b> {forum_header.pagination.L_COUNT}
<!-- END pagination -->
</span></td>
<td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall">
<b>
<!-- BEGIN pagination -->
<!-- BEGIN unique_ELSE -->
{forum_header.pagination.L_GOTO}:
<!-- END unique_ELSE -->
<!-- BEGIN previous -->
<a href="{forum_header.pagination.U_PREVIOUS}" class="gensmall">{forum_header.pagination.L_PREVIOUS}</a>
<!-- END previous -->
<!-- BEGIN page_number -->
<!-- BEGIN number -->
<!-- BEGIN current -->
{forum_header.pagination.page_number.PAGE}{forum_header.pagination.page_number.L_SEP}
<!-- END current -->
<!-- BEGIN current_ELSE -->
<a href="{forum_header.pagination.page_number.U_PAGE}" class="gensmall">{forum_header.pagination.page_number.PAGE}</a>{forum_header.pagination.page_number.L_SEP}
<!-- END current_ELSE -->
<!-- END number -->
<!-- BEGIN number_ELSE -->
...,
<!-- END number_ELSE -->
<!-- END page_number -->
<!-- BEGIN next -->
<a href="{forum_header.pagination.U_NEXT}" class="gensmall">{forum_header.pagination.L_NEXT}</a>
<!-- END next -->
<!-- END pagination -->
</b></span></td>
</tr>
</table>
<!-- END forum_header -->
{NAVIGATION_BOX}
{S_HIDDEN_FIELDS}</form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right">{JUMPBOX}</td>
</tr>
</table>