PDA

View Full Version : Help! Need to remove table header bar from ForumHome


Sonno
05-20-2006, 05:55 PM
Ok, I'm looking to remove the table header bars (the bars that read "Forum, Last Post, Threads, Posts") from my ForumHome (frontpage).

I have applied these two mods:
http://www.vbulletin.com/forum/showthread.php?t=156783
http://www.vbulletin.com/forum/showthread.php?t=156777

How do I get those bars outta there AND keep my columns aligned?

Any help would be greatly appreciated.
Thanks.

peterska2
05-20-2006, 06:06 PM
remove this from your forumhom_forumbit_level1_nopost template

<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>

it will mess up your alignment though, so bear with me a few mins while I see about a fix

Sonno
05-20-2006, 06:07 PM
remove this from your forumhom_forumbit_level1_nopost template

<tr align="center">
<td class="thead">&nbsp;</td>
<td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
<td class="thead" width="175">$vbphrase[last_post]</td>
<td class="thead">$vbphrase[threads]</td>
<td class="thead">$vbphrase[posts]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="thead">$vbphrase[moderator]</td>
</if>
</tr>

Ok, after I do that, how do I keep my columns aligned vertically?
EDIT: heheh... ok, thanks! :D

peterska2
05-20-2006, 06:35 PM
ok, in forumhome_forumbit_level2_post

find

<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]">

Replace with

<td class="alt2" width="5%"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" width="50%">

find

<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]&nbsp;</div></td>
</if>

replace with

<td class="alt2" nowrap="nowrap" width="25%">$forum[lastpostinfo]</td>
<td class="alt1" width="10%">$forum[threadcount]</td>
<td class="alt2" width="10%">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1" width="0"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
</if>

that should do the trick nicely. :)

Sonno
05-20-2006, 06:44 PM
Ok, going to try it out now.
Brb

ok, in forumhome_forumbit_level2_post

find

<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]">

Replace with

<td class="alt2" width="5%"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" width="50%">

My code looks like this:

<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]" style="cursor:hand;" onmouseover="this.className='alt2Active';" onmouseout="this.className='alt1Active';" onclick="window.location.href='forumdisplay.php?$session[sessionurl]f=$forum[forumid]';">

Replace all that?

peterska2
05-20-2006, 06:57 PM
oh, you have another mod installed that makes changes to the template in the same locations.

Just note the width parts in my replace code and add that in the appropraite places.

Sonno
05-20-2006, 07:02 PM
Here's what my forumhome_forumbit_level2_post now looks like, nothing changed. The bars are still there.

<tr align="center">
<td class="alt2" width="5%"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" /></td>
<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]" width="50%" style="cursor:hand;" onmouseover="this.className='alt2Active';" onmouseout="this.className='alt1Active';" onclick="window.location.href='forumdisplay.php?$session[sessionurl]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&amp;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>:<br /> $forum[subforums]</div></if>
<td class="alt2" nowrap="nowrap" width="25%">$forum[lastpostinfo]</td>
<td class="alt1" width="10%">$forum[threadcount]</td>
<td class="alt2" width="10%">$forum[replycount]</td>
<if condition="$vboptions['showmoderatorcolumn']">
<td class="alt1" width="0"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
</if>

</tr>
$childforumbits

I also have a forumhome_forumbit_level3_post if that helps any.

EDIT: Applied the same code to forumhome_forumbit_level3_post and nothing has changed.

peterska2
05-20-2006, 07:15 PM
did you also do the deletion I mentioned in post #2? That is to remove the title bars, then the rest is to fix the widths of the columns.

Sonno
05-20-2006, 07:19 PM
D'oh! Hang on.

Ok, that worked like a charm, now I just have to plug in my old width settings to get looking like it did.
Thanks for the help!!!