vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need help with my category line mod... (https://vborg.vbsupport.ru/showthread.php?t=129868)

sylem 10-24-2006 07:20 PM

Need help with my category line mod...
 
1 Attachment(s)
Ok I used this mod back in the day when I had vB2 and it worked great. It seems to work fine on vB3 except one problem. The line will not decrese in height to 1px. It stays the same no matter what I do. Here's the code...

In my forumhome_forumbit_level1_nopost I put this code
HTML Code:

<td colspan="6" height="1px" bgcolor="{catlinecolor}"></td>
in between these 2 peices of code
HTML Code:

<table class="tborder" cellpadding="$stylevar[cellpadding]"
cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">

<tbody>
    <tr>
        <td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">

                        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumid" src="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>

                        <a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>


                        <if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>



                        <if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
        </td>
    </tr>
</tbody>

and

HTML Code:

<tbody>
        <tr align="center">
          <td class="thead" width="30">&nbsp;</td>
          <td class="thead" align="$stylevar[left]">$vbphrase[forum]</td>
          <td class="thead" width="245">$vbphrase[last_post]</td>
          <td class="thead" width="55">$vbphrase[threads]</td>
          <td class="thead" width="55">$vbphrase[posts]</td>
          <if condition="$vboptions[showmoderatorcolumn]">
          <td class="thead" width="100">$vbphrase[moderator]</td>
          </if>
        </tr>
</tbody>
<if condition="$childforumbits">
<tbody id="collapseobj_forumbit_$forumid" style="{$collapseobj_forumid}">
$childforumbits
</tbody>
</if>
</table>
<br />

I also create a replacement value for the {catlinecolor} that tells the style what color it needs to be. It comes out perfect, just not 1px high, its like 5px high, too big, lemme show u...

any ideas?

aveon 10-24-2006 07:33 PM

its a CSS mistake isntead of usin height use border for example

Code:

{
        border-bottom: 5px solid Black;
        background-repeat: repeat-x;
}

also u can change color where it says solid black u can use html color codes or color name itself as well

sylem 10-25-2006 04:38 AM

where do i put that? should I copy and paste that code where my code used to be? Cuz when I did nothing changed....just a lil lost srry.

nm, I fixed it, thanks so much that was awesome!


All times are GMT. The time now is 01:09 AM.

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.01035 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_code_printable
  • (3)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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