PHPBB coding question if anyone is good at it.

This is used for general discussion that is not necessarily server-related.
Post Reply
User avatar
Hatz
This is my homepage
This is my homepage
Posts: 84
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Thu Jan 18, 2007 5:07 pm
Contact:

PHPBB coding question if anyone is good at it.

Post by Hatz »

Someone helped me make this viewtopic_body.tpl so that the sig and messagebody were in different table rows. This allowed me to vert align the sig to the bottom of it's tr, preventing peoples sigs from moving up and down depending on the size of the message and/or avatar table row. Problem is that there is now a gap between the messagebody and sig. I would like the sig table row to be only 100% and no more, so that the message body row above it will come down and there wont be a gap. Kinda hard to explain, but if u go to http://www.snk-klan.net/forums/viewtopi ... 0203#10203 you will see the gap im talking of.

I'm sure it's a simple edit, but im not sure exactly what to do, i've tried messing with it, no dice. Any help appreciated, thanks.

Code: Select all

<table width="100%" cellspacing="2" cellpadding="2" border="0">
  <tr>
        <td align="left" valign="bottom" colspan="2"><font color="#555555"><a class="maintitle" href="{U_VIEW_TOPIC}"><span class="topictitle1">{TOPIC_TITLE}</span></a></font><br />
          <br /></td>
  </tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0" class="nav">
  <tr>
        <td align="left" valign="bottom" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
        <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
          || <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
        <td align="right" valign="middile" nowrap="nowrap">

        <!-- <div class="pagination">{PAGINATION}</div>-->
       
        <script language="Javascript" type="text/javascript">
                //done by Bryan St. Amour
                var pag = '{PAGINATION}';
                if (pag != '') {
                       document.write('<div class="pagination">{PAGINATION}</div>');
                }
        </script>


        </td>
  </tr>
</table>

<table class="forumborder" width="100%" cellspacing="0" cellpadding="3" border="0">
       
   {POLL_DISPLAY}
        <tr>
                <th align="center" class="forumtitle" nowrap="nowrap"><img src="templates/intensity/images/lang_english/author.png"></th>
     
                <th align="right" class="forumtitle" nowrap="nowrap"><img src="templates/intensity/images/lang_english/message.png">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <a href="{U_VIEW_OLDER_TOPIC}" class="white"><img src="templates/intensity/images/lang_english/previous.png"></a>  <a href="{U_VIEW_NEWER_TOPIC}" class="white"><img src="templates/intensity/images/lang_english/next.png"></a> <b></b>&nbsp;</span></td></th>
        </tr>
   
       
        <!-- BEGIN postrow -->
   
   
        <tr>
   <!-- Custom Profile Fields MOD start -->
                <td width="150" rowspan="2" align="left" valign="top" class="row2" style="white-space: nowrap;"><span class="forumindex"><a name="{postrow.U_POST_ID}"></a><center><b><font color="#c91e1e">{postrow.POSTER_NAME}</font></b></span><br /><span class="gensmall"><font color="#ffffff"><b>{postrow.POSTER_RANK}</b></font><b><br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}</center></b><br /><b><font size="1" color="#ffffff">{postrow.POSTER_ONLINE}<br/>{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}<br/></font>
     
    <!-- BEGIN author_profile -->
     <font size="1" color="#c91e1e">{postrow.author_profile.AUTHOR_VAL}<br/></font></span>
      <!-- END author_profile -->
     
 <span class="small"><font color="#ffffff"> {postrow.POINTS}{postrow.DONATE_POINTS}<br/>{postrow.POSTER_TROPHY}<br/></font><center><font color="#c91e1e">{postrow.POSTER_MEDAL_COUNT}<br/><br/>{postrow.USER_RIB2}{postrow.USER_RIB1}</font></center>
 
 
 <!-- BEGIN medal -->
   <table border="0" cellspacing="0" cellpadding="1">
      <!-- BEGIN medal_row -->
      <tr align="left" valign="middle">
         <!-- BEGIN medal_col -->
         <td><img src="{postrow.medal.medal_row.medal_col.MEDAL_IMAGE}" border="0" alt="{postrow.medal.medal_row.medal_col.MEDAL_NAME} {postrow.medal.medal_row.medal_col.MEDAL_COUNT}" title="{postrow.medal.medal_row.medal_col.MEDAL_NAME} {postrow.medal.medal_row.medal_col.MEDAL_COUNT}" {postrow.medal.medal_row.medal_col.MEDAL_WIDTH} {postrow.medal.medal_row.medal_col.MEDAL_HEIGHT} /></td>
         <!-- END medal_col -->
      </tr>
      <!-- END medal_row -->
   </table>
   <!-- END medal -->
     </span><br />     <center>
       {postrow.POSTER_klass}
     </center></td>
<!-- Custom Profile Fields MOD finish -->



     
   

                <td height="14" valign="top" class="{postrow.ROW_CLASS}"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                                <td width="100%" height="10"><a href="{postrow.U_MINI_POST}"><img src="{postrow.MINI_POST_IMG}" width="12" height="9" alt="{postrow.L_MINI_POST_ALT}" title="{postrow.L_MINI_POST_ALT}" border="0" /></a></span></td>
                                <td valign="top" nowrap="nowrap">{postrow.QUOTE_IMG} {postrow.EDIT_IMG} {postrow.DELETE_IMG} {postrow.IP_IMG}</td>
                        </tr>
                     
                        <tr>
         
                                <td colspan="2" height="5"></td>
                        </tr>
         
                        <tr>
                                <!-- Custom Profile Fields MOD start -->
            <td height="100%" colspan="2"><span class="postbody"><br>{postrow.MESSAGE}<br><br><br></span>
          <!-- BEGIN above_sig -->
          <span class="postdetails">{postrow.above_sig.ABOVE_VAL}</span>
          <!-- END above_sig -->
          </td>
                        </tr>
                </table></td>
        </tr>
        <tr height="1">
          <td valign="bottom" class="row6"><hr><span class="postbody">{postrow.SIGNATURE}</span>
          <!-- BEGIN below_sig -->
          <span class="postdetails">{postrow.below_sig.BELOW_VAL}</span>
          <!-- END below_sig -->
          <span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
<!-- Custom Profile Fields MOD finish -->
        </tr>
        <tr>
                <td class="{postrow.ROW_CLASS}" width="150" align="left" valign="middle"><span class="gensmall">{postrow.POST_DATE}</span></td>
                <td class="{postrow.ROW_CLASS}" height="28" valign="bottom" nowrap="nowrap"><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
                        <tr>
                                <td valign="middle" nowrap="nowrap">{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></td>
        </tr>
   <tr>
      <td class="spaceRow" colspan="3"><img src="templates/cs_red/images/spacer.gif" alt="" width="1" height="1" /></td>
   </tr>
       
        <!-- END postrow -->
        <tr align="center">
                <td class="menu" colspan="2" height="28"><table cellspacing="0" cellpadding="0" border="0">
                        <tr><form method="post" action="{S_POST_DAYS_ACTION}">
                                <td align="center" class="menu"><span class="gen">{L_DISPLAY_POSTS}: {S_SELECT_POST_DAYS}&nbsp;{S_SELECT_POST_ORDER}&nbsp;<input type="submit" value="{L_GO}" class="mainoption" name="submit" /></span></td>
                        </form></tr>
                </table></td>
        </tr>
</table>

<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center" class="nav">
  <tr>
        <td align="left" valign="middle" nowrap="nowrap"><span class="nav"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" align="middle" /></a>&nbsp;&nbsp;&nbsp;<a href="{U_POST_REPLY_TOPIC}"><img src="{REPLY_IMG}" border="0" alt="{L_POST_REPLY_TOPIC}" align="middle" /></a></span></td>
        <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
          || <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
        <td align="right" nowrap="nowrap" valign="top">
         <script language="Javascript" type="text/javascript">
                //done by Bryan St. Amour
                var pag = '{PAGINATION}';
                if (pag != '') {
                       document.write('<div class="pagination">{PAGINATION}</div>');
                }
        </script>

                <a href="{U_VIEW_OLDER_TOPIC}"><img src="templates/intensity/images/arrowL.gif" alt="{L_VIEW_PREVIOUS_TOPIC}" /></a>  <a href="{U_VIEW_NEWER_TOPIC}"><img src="templates/intensity/images/arrowR.gif" alt="{L_VIEW_NEXT_TOPIC}" /></a>
    </td>
  </tr>
  <tr>
        <td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
  </tr>
</table>

<table width="100%" cellspacing="2" border="0" align="center">
  <tr>
        <td width="40%" valign="top" nowrap="nowrap" align="left"><span class="gensmall">{S_WATCH_TOPIC}</span><br />
          &nbsp;<br />
          {S_TOPIC_ADMIN}</td>
        <td align="right" valign="top" nowrap="nowrap">{JUMPBOX}<span class="gensmall">{S_AUTH_LIST}<br />{S_TIMEZONE}</span></td>
  </tr>
</table>
SNK-KLAN.NET - CS Denver - Realistic Mods - Fast DL - Believe It...

•Realistic Mods to help promote a more real cs!
•Forums are at http://www.snk-klan.net
•IP of the server is 72.5.102.41:27015
•19 slot server.
•HLTV
User avatar
Hatz
This is my homepage
This is my homepage
Posts: 84
Joined: Thu Jan 18, 2007 5:07 pm
Contact:

Post by Hatz »

I fixed it, please delete
SNK-KLAN.NET - CS Denver - Realistic Mods - Fast DL - Believe It...

•Realistic Mods to help promote a more real cs!
•Forums are at http://www.snk-klan.net
•IP of the server is 72.5.102.41:27015
•19 slot server.
•HLTV
User avatar
Edge100x
Founder
Founder
Posts: 13127
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Post by Edge100x »

We really try to avoid deleting anything when we can.
User avatar
Hatz
This is my homepage
This is my homepage
Posts: 84
Joined: Thu Jan 18, 2007 5:07 pm
Contact:

Post by Hatz »

fair enough, just thought it to be useless spam now.
SNK-KLAN.NET - CS Denver - Realistic Mods - Fast DL - Believe It...

•Realistic Mods to help promote a more real cs!
•Forums are at http://www.snk-klan.net
•IP of the server is 72.5.102.41:27015
•19 slot server.
•HLTV
Post Reply