View Full Version : How do you align the forum rows to top?
doubleclick
03-22-2006, 07:51 PM
This has be a very simple thing, but I can't figure it out. Nobody in the .com forum is answering, and the ticket people over there told me I might find an answer here.
How to I get the in the forum and subform displays to align to the top? (The rows that contain forum_old.gif and forum_new.gif)
Currently, they align "middle" and I can't find where to change this so the rows align "top". I've tried FORUMHOME and FORUMDISPLAY but nothing is moving.
Where do I go to change this?
Thanks,
DC
The Chief
03-22-2006, 08:06 PM
wrong forum...
Princeton
03-22-2006, 08:19 PM
provide a screenshot
doubleclick
03-22-2006, 10:02 PM
Thanks Princeton -
I attached it.
DrewM
03-22-2006, 10:11 PM
um you have to edit:
forumhome_forumbit_level1_nopost
forumhome_forumbit_level1_post
forumhome_forumbit_level2_nopost
forumhome_forumbit_level2_post
doubleclick
03-22-2006, 10:41 PM
It's funny how things that seem simple turn out to be not so much.
I edited the code as follows:
forumhome_forumbit_level1_nopost
forumhome_forumbit_level2_nopost
changed <tr> to <tr valign="top">
forumhome_forumbit_level1_post
forumhome_forumbit_level2_post
changed <tr align="center"> to <tr align="center" valign="top">
Nothing changed, so I'm not changing the right code there. Sorry, but I could still use some more help on this.
Hm, the above should have worked, assuming you haven't already customized the templates mentioned above. What does your forumhome_forumbit_level2_post template look like?
Here's the default:
<tr align="center">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators] </div></td>
</if>
</tr>
$childforumbits
I just tested this on my test site. When I changed the very first line to:
<tr align="center" [b]valign="top">
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>
<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
<td class="alt1">$forum[threadcount]</td>
<td class="alt2">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1"><div class="smallfont">$forum[moderators] </div></td>
</if>
</tr>
$childforumbits
On my test site, the entire row aligned to the top appropriately after this tiny change. So something's unique to your setup, I think.
If you can, post your own code so we can see what's going on. Good luck!
edited to add - Just FYI, your homepage link in your profile is incorrectly entered. You'll need to include the full URL (http://www.dalestaton.com), not just the domain ("dalestaton.com") if you want the link to work. :) Hope this helps!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.