[HELP] question on viewtopic.tpl

This forum is now closed. Please ask all styles-related questions in the phpBB 3.0 Styles Support & Discussion Forum.
Locked
retroworld
Registered User
Posts: 144
Joined: Sun Apr 07, 2002 1:19 pm
Location: Die Niederlande!
Contact:

[HELP] question on viewtopic.tpl

Post by retroworld »

How to make the signature in a post bottom-aligned for the style phpVB2 with this code:

Code: Select all

<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></span><br> 
                  <span class="smalltext">{postrow.POSTER_RANK}<br> 
                  {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br> 
                  <br> 
                  {postrow.POSTER_JOINED}<br> 
                  {postrow.POSTER_POSTS}<br> 
                  {postrow.POSTER_FROM}</span></td> 
                <td valign="top" class="{postrow.ROW_CLASS}"> <span class="smalltext"><b>{postrow.POST_SUBJECT}</b></span> 
                  <p><span class="largetext">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="smalltext">{postrow.EDITED_MESSAGE}</span></p> 
                </td> 
              </tr>
i've noticed there's a mod for the subSilver style, but the phpVB2 style has a totally different code and i didn't manage to get the signature bottom-aligned... :(

please help if you can!
Last edited by retroworld on Wed Apr 23, 2003 3:09 pm, edited 2 times in total.
retroworld
Registered User
Posts: 144
Joined: Sun Apr 07, 2002 1:19 pm
Location: Die Niederlande!
Contact:

Post by retroworld »

why doesn't anybody help me??? :(
User avatar
zeroK
Former Team Member
Posts: 20964
Joined: Sun Jan 20, 2002 7:36 pm
Location: Klagenfurt / Austria
Contact:

Post by zeroK »

Perhaps because you posted it in the wrong forum ;-)
Support -> Styles Discussions
Image My weblog | gamerslog.com | No support via PM or ICQ or email - If you don't know a term or a program mentioned in a post -> Google is your friend
retroworld
Registered User
Posts: 144
Joined: Sun Apr 07, 2002 1:19 pm
Location: Die Niederlande!
Contact:

Post by retroworld »

zeroK wrote: Perhaps because you posted it in the wrong forum ;-)
Support -> Styles Discussions

perhaps i can get an answer :( i've waited so long now, and really want to know how to do that... i've tried somethings myself but can't solve it!
User avatar
GPHemsley
Registered User
Posts: 1475
Joined: Fri Apr 18, 2003 3:12 am
Location: Long Beach, NY
Name: Gordon Hemsley
Contact:

Post by GPHemsley »

Apparently you can't take a hint.... He/she was saying to post in the Styles Support Forum! So don't come back here saying, "Why doesn't anybody help me?" when the people in this forum aren't here to help.
retroworld
Registered User
Posts: 144
Joined: Sun Apr 07, 2002 1:19 pm
Location: Die Niederlande!
Contact:

Post by retroworld »

ehm, and can someone help me now?
User avatar
GPHemsley
Registered User
Posts: 1475
Joined: Fri Apr 18, 2003 3:12 am
Location: Long Beach, NY
Name: Gordon Hemsley
Contact:

Post by GPHemsley »

We're trying to help you by telling you that you posted this in the WRONG FORUM!!!!! Now go post in the right forum where there are people who will actually help you with your problem!!!!!! :x
Graham
Former Team Member
Posts: 8462
Joined: Tue Mar 19, 2002 7:11 pm
Location: UK
Contact:

Post by Graham »

It has been moved to the right forum :)

However, I'm not sure what you are trying to achieve here? What do you wish it bottom-aligned with respect to? because at present the signature is in the middle of a table cell with things above and below it.
"So Long, and Thanks for All the Fish"

phpBB Useful Links: Knowledge Base | Userguide | Forum Search | MOD Database | Styles Database
My Links: Blog!
retroworld
Registered User
Posts: 144
Joined: Sun Apr 07, 2002 1:19 pm
Location: Die Niederlande!
Contact:

Post by retroworld »

well, if you just tell me how to get some of the text in the table bottom aligned (everything below the actual message) i can fix the rest myself. i want to get just the signature bottom-aligned, and don't know how to do that :(
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Post by Arty »

this this one:

Code: Select all

<tr> 
<td width="100%"><table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
	<td width="186" align="left" valign="top" class="row3" nowrap="nowrap" rowspan="2"><span class="largetext"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br> 
		<span class="smalltext">{postrow.POSTER_RANK}<br> 
		{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br> 
		<br> 
		{postrow.POSTER_JOINED}<br> 
		{postrow.POSTER_POSTS}<br> 
		{postrow.POSTER_FROM}</span></td>
	<td width="100%" align="left" valign="top" class="{postrow.ROW_CLASS}">
		<span class="smalltext"><b>{postrow.POST_SUBJECT}</b></span> 
		<p><span class="largetext">{postrow.MESSAGE}</span></p> 
	</td>
</tr>
<tr>
	<td align="left" valign="bottom"><span class="largetext">{postrow.SIGNATURE}</span><span class="smalltext">{postrow.EDITED_MESSAGE}</span></td>
</tr></table></td>
</tr>

this will look little bit different from default because it uses different row classes - but that's because of table structure. with this code you won't see border between user info and post, but userinfo has class "row3" so it should look differently. change "row3" to "{postrow.ROW_CLASS}" if you want default row class.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
retroworld
Registered User
Posts: 144
Joined: Sun Apr 07, 2002 1:19 pm
Location: Die Niederlande!
Contact:

Post by retroworld »

it still didn't work. :(

my forum now looks like this: http://www.retroworld.nl/forum/viewtopic.php?p=30#30

the code is this one:

Code: Select all

 <td width="100%" align="left" valign="top" class="{postrow.ROW_CLASS}"> 
      <span class="smalltext"><b>{postrow.POST_SUBJECT}</b></span> 
      <p><span class="largetext">{postrow.MESSAGE}</span></p> 
   </td> 
</tr>
<tr>
   <td align="left" valign="bottom"><span class="largetext">{postrow.SIGNATURE}</span><span 

class="smalltext">{postrow.EDITED_MESSAGE}</span></td>
what do i need to change to get the signature in the same cell as the message?
User avatar
Arty
Former Team Member
Posts: 16654
Joined: Wed Mar 06, 2002 2:36 pm
Name: Vjacheslav Trushkin
Contact:

Post by Arty »

you need to change bigger part of code than just that one.

left row (the one where username, posts numer, etc. is) should have rowspan="2" so it would take 2 rows. on the right should be 2 rows - first with post, second with signature. first aligned to top, second to bottom.
Vjacheslav Trushkin / Arty.
Free phpBB 3.1 styles | New project: Iconify - modern SVG framework
retroworld
Registered User
Posts: 144
Joined: Sun Apr 07, 2002 1:19 pm
Location: Die Niederlande!
Contact:

Post by retroworld »

when i did it your way CyberAlien i had those awfull borders... so i deleted everything in the message-cell and placed a table with two rows.. one with valign="top" and the message and edited by in it. and the other cell with valign="bottom" and the signature in it:


works great:

Code: Select all

    <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></span><br>
                  <span class="smalltext">{postrow.POSTER_RANK}<br>
                  {postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br></span></td>
                <td valign="top" class="{postrow.ROW_CLASS}"><table border="0" height="130">
  <tr>
    <td width="100%" valign="top"><span class="largetext">{postrow.MESSAGE}</span><span class="smalltext">{postrow.EDITED_MESSAGE}</span></td>
  </tr>
  <tr>
    <td width="100%" valign="bottom"><span class="smalltext"><b>{postrow.SIGNATURE}</b></span></td>
  </tr>
</table>

                </td>
              </tr>
check it out: http://www.retroworld.nl/forum/viewtopic.php?p=30
Locked

Return to “[2.0.x] Styles Development & Discussion”