vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help! Need to remove table header bar from ForumHome (https://vborg.vbsupport.ru/showthread.php?t=116184)

Sonno 05-20-2006 04:55 PM

Help! Need to remove table header bar from ForumHome
 
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 05:06 PM

remove this from your forumhom_forumbit_level1_nopost template

Code:

<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 05:07 PM

Quote:

Originally Posted by peterska2
remove this from your forumhom_forumbit_level1_nopost template

Code:

<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 05:35 PM

ok, in forumhome_forumbit_level2_post

find

Code:

<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

Code:

<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

Code:

<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

Code:

<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 05:44 PM

Ok, going to try it out now.
Brb

Quote:

Originally Posted by peterska2
ok, in forumhome_forumbit_level2_post

find

Code:

<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

Code:

<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:

Code:

<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 05: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 06:02 PM

Here's what my forumhome_forumbit_level2_post now looks like, nothing changed. The bars are still there.

Code:

<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 06: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 06: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!!!


All times are GMT. The time now is 03:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01829 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (10)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete