[2.0.16] Abnormal posts widening fix

The cleanup is complete. This forum is now read only.
Post Reply

Rating:

Excellent!
25
63%
Very Good
3
8%
Good
3
8%
Fair
2
5%
Poor
7
18%
 
Total votes: 40

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28562
Joined: Sat Aug 16, 2003 7:36 am

[2.0.16] Abnormal posts widening fix

Post by Extensions Robot »

MOD Name: Abnormal posts widening fix
Author: -=ET=-
MOD Description: This MOD fix the abnormal posts widening when a large image is included in a message


MOD Version: 1.0.3 (Updated 07/01/05)

Download File: abnormal_posts_widening_fix_1.0.3aem.zip
mods overview page: View
File Size: 7157 Bytes

Security Score: 0
Last edited by Extensions Robot on Mon Apr 30, 2007 12:29 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
wGEric
Former Team Member
Posts: 8805
Joined: Sun Oct 13, 2002 3:01 am
Location: Friday
Name: Eric Faerber
Contact:

Post by wGEric »

MOD Validated/Released

This is a great MOD. Here is some pictures to help you figure out what it does.

Before
Image

After
Image
Eric
Acecool
Registered User
Posts: 1013
Joined: Sat Jul 13, 2002 4:51 am
Location: Behind my computer
Contact:

Post by Acecool »

I submitted something like this to John Abela, I removed the width="100%" and added align="right" on the second one before quote...


Crud, it gave me a bad gateway, I checked this thread to see if it was posted and it wasnt here, went back and posted then it appeared 2 times...

Months and months ago I gave this to John Abela...

Link: http://www.phpbb.com/phpBB/viewtopic.ph ... +subsilver

February 11th.
Last edited by Acecool on Wed Nov 26, 2003 8:40 pm, edited 2 times in total.
Visit Acecoolco.com :: Image

If you plan on contacting me, please read this: Legal Terms & Conditions
DivErTido
Registered User
Posts: 642
Joined: Fri Aug 08, 2003 10:11 pm
Contact:

Post by DivErTido »

Hi, I cant make this code to work :(
Can someone help me? :roll:

This is my viewtopic_body.tpl code:

Code: Select all

<tr> 
			  <form method="post" action="{postrow.S_CARD}">
                <td width="186" height="16" nowrap class="{postrow.ROW_CLASS}"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0"></a><span class="smalltext"> 
                  {postrow.POST_DATE}<span class="mediumtext"> </span></span></td>
                <td valign="middle" align="center" class="{postrow.ROW_CLASS}"> 
				{postrow.POSTER_ONLINE}
				{postrow.RANDOM_IMG}
 {postrow.PROFILE_IMG} {postrow.PM_IMG} 
                        {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} 
                        {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}
                </td>
              </tr>
P.S. Please sorry for my poor english...
Legendas Divx
User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 »

Well you have this:

<td width="186" height="16" nowrap class="{postrow.ROW_CLASS}"><a href="{postrow.U_MINI_POST}">

try just taking out the width="186" part.

I don't see the quote part there.

That is all of your code in the file???
Need a phpBB update or mod installed? PM me for any questions and pricing!
HostMonster.com (Unlimited Space, Unlimited Transfer, Unlimited Domains, $6.95/month )
netclectic
Former Team Member
Posts: 4439
Joined: Wed Mar 13, 2002 3:08 pm
Location: Omnipresent
Contact:

Post by netclectic »

Acecool wrote: I submitted something like this to John Abela, I removed the width="100%" and added align="right" on the second one before quote...


Crud, it gave me a bad gateway, I checked this thread to see if it was posted and it wasnt here, went back and posted then it appeared 2 times...

Months and months ago I gave this to John Abela...

Link: http://www.phpbb.com/phpBB/viewtopic.ph ... +subsilver

February 11th.

There's been at least two new releases of phpbb since then and anything submitted for 2.0.4 has been cleared out and all mod authors were asked to updated and re-submit any old mods when 2.0.6 was released.

Did you submit it to John Abela or to the mods db?
Defend the game:
Image
DivErTido
Registered User
Posts: 642
Joined: Fri Aug 08, 2003 10:11 pm
Contact:

Post by DivErTido »

drumstix42 wrote: Well you have this:

<td width="186" height="16" nowrap class="{postrow.ROW_CLASS}"><a href="{postrow.U_MINI_POST}">

try just taking out the width="186" part.

I don't see the quote part there.

That is all of your code in the file???


Dont work :(
No, this is my all viewtopic_body.tpl:

Code: Select all

<script language="Javascript" type="text/javascript">
<!--
function create_icq_subsilver(icq_user_addr, icq_status_img, icq_add_img)
{
	if( icq_user_addr.length && icq_user_addr.indexOf("&nbsp;") == -1 )
	{
		document.write('<table width="59" border="0" cellspacing="0" cellpadding="0"><tr><td nowrap="nowrap" style=" background-image: url(\'' + icq_add_img + '\'); background-repeat: no-repeat"><img src="images/spacer.gif" width="3" height="18" alt = "">' + icq_status_img + '<a href="http://wwp.icq.com/scripts/search.dll?to=' + icq_user_addr + '"><img src="images/spacer.gif" width="35" height="18" border="0" alt="{L_ICQ_NUMBER}"></a></td></tr></table>');
	}
}
//-->
</script>
<br>
<table cellpadding="2" cellspacing="0" border="0" width="98%"  align="center">
  <tr> 
    <td valign="top" align="left"><img src="templates/VereorMenInBlack/images/folder_new.gif" border="0" align="absmiddle"> 
      <span class="largetext"><a href="{U_INDEX}" ><b>{L_INDEX}</b></a> 
      -> <a  href="{U_VIEW_FORUM}"><b>{FORUM_NAME}</b></a></span><br>
      <br>
</td>
<tr> 
	<td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><br /><span class="gensmall"><b><br/>{TOTAL_USERS_ONLINE}<br/>{LOGGED_IN_USER_LIST}</b></span></td>
	<td align="right" valign="bottom" nowrap><span class="gensmall"><b>{PAGINATION}</b></span></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" width="98%" align="center">
  <tr> 
    <td class="tableborder"> 
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        {POLL_DISPLAY} 
        <tr> 
          <td class="toprow" nowrap > <span class="toprowtext"> </span> 
            <table width="100%" border="0" cellspacing="0" cellpadding="2">
              <tr> 
                <td width="186"><span class="toprowtext">  {L_AUTHOR} 
                  </span></td>
                <td><span class="toprowtext">   Thread</span></td>
                <td align="right"><A href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" style="filter:alpha(opacity=65)" onmouseover="this.filters.alpha.opacity=100" onmouseout="this.filters.alpha.opacity=65" /></A> <A href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" style="filter:alpha(opacity=65)" onmouseover="this.filters.alpha.opacity=100" onmouseout="this.filters.alpha.opacity=65" />
                        </td>
              </tr>
            </table>
          </td>
        </tr>
        <!-- BEGIN postrow -->
        <tr align="center"> 
          <td class="tableborder" > 
            <table width="100%" border="0" cellspacing="1" cellpadding="4">
              <tr> 
                <td width="186" valign="top" class="{postrow.ROW_CLASS}" nowrap> <span class="largetext"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b><br />
                </span>
                  <span class="smalltext">{postrow.POSTER_RANK}<br>
                  {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br>
                  <br>
	          {postrow.POSTER_GENDER}<br />
                  <br />{postrow.L_ZODIAC}{postrow.ZODIAC_IMG}<br/ >
                  {postrow.POSTER_AGE}<br>
                  {postrow.CARD_IMG}<br>
                  {postrow.POSTER_JOINED}<br />{postrow.POSTER_OCCUPATION}<br>
                  {postrow.POSTER_POSTS}<br />{postrow.POST_PERCENT_STATS}<br>
                  {postrow.POSTER_FROM}<br>
			      {postrow.POINTS}<br>
			      {postrow.DONATE_POINTS}</span><br/ >
<!-- [BEGIN LEVEL MOD] -->
<br />
<span class="smalltext"> Level: <strong>{postrow.POSTER_LEVEL}</strong></span>
<br /> 
<table width="143" border="0" cellpadding="0" cellspacing="0" style="background-image:url('templates/VereorMenInBlack/images/level_mod/lm_bkg.gif')">
<tr>
<td><img src="images/spacer.gif" alt="" width="31" height="49" /></td>
<td width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/spacer.gif" alt="" width="20" height="6" /></td>
</tr>
<tr>
<td><img src="templates/VereorMenInBlack/images/level_mod/lm_hp_bar.gif" alt="{postrow.POSTER_HP}" title="{postrow.POSTER_HP}" width="{postrow.POSTER_HP_WIDTH}" height="9" /><img src="templates/VereorMenInBlack/images/level_mod/lm_hp_bar_end.gif" alt="" width="4" height="9" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="20" height="4" /></td>
</tr>
<tr>
<td><img src="templates/VereorMenInBlack/images/level_mod/lm_mp_bar.gif" alt="{postrow.POSTER_MP}" title="{postrow.POSTER_MP}" width="{postrow.POSTER_MP_WIDTH}" height="9" /><img src="templates/VereorMenInBlack/images/level_mod/lm_mp_bar_end.gif" alt="" width="4" height="9" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="20" height="4" /></td>
</tr>
<tr>
<td><img src="templates/VereorMenInBlack/images/level_mod/lm_exp_bar.gif" alt="{postrow.POSTER_EXP}" title="{postrow.POSTER_EXP}" width="{postrow.POSTER_EXP_WIDTH}" height="9" /><img src="templates/VereorMenInBlack/images/level_mod/lm_exp_bar_end.gif" alt="" width="4" height="9" /></td>
</tr>
<tr>
<td><img src="images/spacer.gif" alt="" width="20" height="8" /></td>
</tr>
</table>
</td>
</tr>
</table>
<br /> 
<!-- [END LEVEL MOD] -->
</td>

                <td valign="top" class="{postrow.ROW_CLASS}"> <span class="smalltext">
                <table width="100%">
                <tr>
                <td align="left">                
                <b>{postrow.POST_SUBJECT}</b></span> 
                </td>
                <td align="right">{postrow.U_R_CARD} {postrow.U_Y_CARD} {postrow.U_G_CARD} {postrow.U_B_CARD} {postrow.CARD_EXTRA_SPACE} {postrow.CARD_HIDDEN_FIELDS} {postrow.EDIT_IMG} {postrow.QUOTE_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
				</form>
                </tr>
                </table>
                  <p><span class="largetext">{postrow.MESSAGE}{postrow.NOWPLAYING}{postrow.SIGNATURE}</span><span class="smalltext">{postrow.EDITED_MESSAGE}</span></p>
                </td>
              </tr>
              <tr> 
			  <form method="post" action="{postrow.S_CARD}">
                <td width="186" height="16" nowrap class="{postrow.ROW_CLASS}"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0"></a><span class="smalltext"> 
                  {postrow.POST_DATE}<span class="mediumtext"> </span></span></td>
                <td valign="middle" align="center" class="{postrow.ROW_CLASS}"> 
				{postrow.POSTER_ONLINE}
				{postrow.RANDOM_IMG}
 {postrow.PROFILE_IMG} {postrow.PM_IMG} 
                        {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} 
                        {postrow.YIM_IMG} {postrow.MSN_IMG} {postrow.ICQ_IMG}
                </td>
              </tr>
            </table>
            <!-- END postrow -->
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
              <tr> 
                  <td align="center" width="100%" class="catrow"><span class="catrowtext"> 
                    <table width="100%" border="0" cellpadding="2" cellspacing="1">
		     <form method="post" action="{S_POST_DAYS_ACTION}">
                      <tr> 
                        <td align="left" width="98%"> 
                          <table border="0" cellspacing="0" cellpadding="0">
                            <tr> 
                              <td valign="middle"><span class="catrowtext"><b>  {L_DISPLAY_POSTS}:</b></span></td>
                              <td valign="middle"><span class="catrowtext">  {S_SELECT_POST_DAYS} {S_SELECT_POST_ORDER}</span></td>
                              <td align="left" valign="middle"><span class="catrowtext"> 
                                  
                                <input type="submit" value="{L_GO}" class="liteoption" name="submit" />
                                </span></td>
                            </tr>
                          </table>						  
                        </td>                    
                        <td align="right" width="2%" nowrap>
                        <A href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" style="filter:alpha(opacity=65)" onmouseover="this.filters.alpha.opacity=100" onmouseout="this.filters.alpha.opacity=65" /></A> <A href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" style="filter:alpha(opacity=65)" onmouseover="this.filters.alpha.opacity=100" onmouseout="this.filters.alpha.opacity=65" />
                        </a></td>
                      </tr>
		     </form>
                    </table>
                    </span></td>
                
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellpadding="2" cellspacing="0" border="0" width="98%"  align="center">
    <tr valign="top"> 
      <td align="left"><nobr><span class="smalltext"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a><br>
        </span>
        <table cellpadding="0" cellspacing="0" border="0">
          <tr> 
            <td>
              {JUMPBOX}</td>
          </tr>
        </table>
        <span class="smalltext"> </span></nobr></td>
      <td align="right"><span class="smalltext">{PAGINATION}<br>
        <br>
</span><span class="smalltext"><a href="{U_VIEW_OLDER_TOPIC}" class="smalltext">Tópico anterior</a> | <a href="{U_VIEW_NEWER_TOPIC}" class="smalltext">Tópico seguinte</a></span></td>
    </tr>
  </table>
  <br>
  <table cellpadding="2" cellspacing="0" border="0" width="98%"  align="center">
    <tr valign="bottom"> 
      <td align="left"><span class="smalltext"><b>Forum Rules:</b></span> <br>
        <table cellpadding="0" cellspacing="0" border="0" align="left">
          <tr> 
            <td class="tableborder"> 
              <table cellpadding="4" cellspacing="1" border="0" align="left">
                <tr> 
                  <td class="row2"><span class="smalltext">{S_AUTH_LIST}</span> 
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
      
    <td align="right"><span class="gensmall">{S_WATCH_TOPIC}<br><a href="{U_FAV}">{L_FAV}</a></span><br>
<span class="gensmall"><a href="tellafriend.php?topic={TOPIC_TITLE}&link={TELL_LINK}">Enviar este tópico a um Amigo</a></span>
       <br>
     <span class="gensmall">
     <form action="http://translate.google.com/translate" method="get" name="translate" target="_translate">
      <input type="hidden" name="u" value="{SITE_URL}" />
      <input type="hidden" name="ie" value="{S_CONTENT_ENCODING}" />
      Translation: <select name="langpair" onchange="if (this.options[this.selectedIndex].value != -1) { document.translate.submit(); }">
        <option value="-1" selected="selected">{L_Translate_Topic}</option>
        <option value="en|de">{L_English_to_German}</option>
        <option value="en|es">{L_English_to_Spanish}</option>
        <option value="en|fr">{L_English_to_French}</option>
        <option value="en|it">{L_English_to_Italian}</option>
        <option value="en|pt">{L_English_to_Portuguese}</option>
        <option value="de|en">{L_German_to_English}</option>
        <option value="de|fr">{L_German_to_French}</option>
        <option value="es|en">{L_Spanish_to_English}</option>
        <option value="fr|en">{L_French_to_English}</option>
        <option value="fr|de">{L_French_to_German}</option>
        <option value="it|en">{L_Italian_to_English}</option>
        <option value="pt|en">{L_Portuguese_to_English}</option>
      </select>
       <input type="submit" value="{L_GO}" />
     </form></span><br />
      {S_TOPIC_ADMIN}
</td>  
    </tr>
		<tr align="center"> 
		<td class="row1" colspan="2" >
		{QUICKREPLY_OUTPUT}
		</td>
	</tr>
  </table>
P.S. Please sorry for my poor english...
Legendas Divx
User avatar
-=ET=-
Registered User
Posts: 799
Joined: Sun May 25, 2003 5:32 pm

Post by -=ET=- »

This MOD as it is only a template modification fully depend on which style you apply it. This release is written for subSilver and will work only for subSilver and every MOD which has the same code for its viewtopic_body.tpl .

If you have any issue on another style than subSilver or a style with the same viewtopic_body.tpl as subSilver, please tell us on which style have you tried to apply it, and give us a link to download it.

Thanks :)
Last edited by -=ET=- on Fri Nov 28, 2003 11:14 pm, edited 1 time in total.
Eternal newbie
Simon N
Registered User
Posts: 304
Joined: Tue Jul 08, 2003 9:34 pm
Location: c:\uk\nottingham
Contact:

Post by Simon N »

@DivErTido:

You are using the men in black theme and like the mod states its for generic releases........thats subsilver or the likes of.

The code issues you have are pretty straight forward to fix once you take the time to see what the mod is actually doing. Since you have so many mods installed I would like to assume you have some understanding of what they do and how they work.

So get that brain in gear and figure it out. :wink:
Image | Image
Acecool
Registered User
Posts: 1013
Joined: Sat Jul 13, 2002 4:51 am
Location: Behind my computer
Contact:

Post by Acecool »

netclectic wrote:
Acecool wrote:I submitted something like this to John Abela, I removed the width="100%" and added align="right" on the second one before quote...


Crud, it gave me a bad gateway, I checked this thread to see if it was posted and it wasnt here, went back and posted then it appeared 2 times...

Months and months ago I gave this to John Abela...

Link: http://www.phpbb.com/phpBB/viewtopic.ph ... +subsilver

February 11th.

There's been at least two new releases of phpbb since then and anything submitted for 2.0.4 has been cleared out and all mod authors were asked to updated and re-submit any old mods when 2.0.6 was released.

Did you submit it to John Abela or to the mods db?



To John Abela so he could / would fix it in the default subSilver in the package...
Visit Acecoolco.com :: Image

If you plan on contacting me, please read this: Legal Terms & Conditions
DivErTido
Registered User
Posts: 642
Joined: Fri Aug 08, 2003 10:11 pm
Contact:

Post by DivErTido »

Simon N wrote: @DivErTido:

You are using the men in black theme and like the mod states its for generic releases........thats subsilver or the likes of.

The code issues you have are pretty straight forward to fix once you take the time to see what the mod is actually doing. Since you have so many mods installed I would like to assume you have some understanding of what they do and how they work.

So get that brain in gear and figure it out. :wink:

LOL but I need help :roll:
I´m a php newbie :roll:
Can anyone help me please?
P.S. Please sorry for my poor english...
Legendas Divx
User avatar
303
Registered User
Posts: 344
Joined: Wed Jun 12, 2002 6:11 am
Contact:

Post by 303 »

how i can put this text is warpping not in one line :?: :?: :?:


hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiii :cry:

please someone tell me :!:


No need to do that many 'i's - Eric
303
User avatar
-=ET=-
Registered User
Posts: 799
Joined: Sun May 25, 2003 5:32 pm

Post by -=ET=- »

This is not the aim of this MOD.
You can have a look on this one as it's one part of what it does...
http://forum.2037.org/viewtopic.php?t=23844
Eternal newbie
User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 »

drumstix42 wrote: See how this works:
-=ET=- wrote:

Code: Select all

# 
#-----[ OPEN ]---------------------------------------------- 
# 
viewtopic.php 

# 
# 
#----[ FIND ]--------------------------------------------- 
# 
'MESSAGE' => $message, 

# 
#----[ REPLACE WITH ]---------------------------------- 
# 
'MESSAGE' => wordwrap($message, 78, "\n", 1), 

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
You can play with the value "78" to adapt it to your template/web site favorite screen resolution.
Need a phpBB update or mod installed? PM me for any questions and pricing!
HostMonster.com (Unlimited Space, Unlimited Transfer, Unlimited Domains, $6.95/month )
User avatar
-=ET=-
Registered User
Posts: 799
Joined: Sun May 25, 2003 5:32 pm

Post by -=ET=- »

lol, yes you're right I forget this :wink:
Eternal newbie
Post Reply

Return to “[2.0.x] MOD Database Cleanup”