vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   not sure if this is in the right forum.. (https://vborg.vbsupport.ru/showthread.php?t=107225)

ZombieAndy 02-05-2006 06:32 PM

not sure if this is in the right forum..
 
so apologies if it isnt.. but i want to know, how would i make a catergory strip with a image over it, but using different images at the ends?

damn im bad at explaining things.. i mean a catergory strip using a gradient image, but with different ones at each end so it looks different.. if you get what i mean, how do i do it?

uae 02-06-2006 07:26 AM

There got to be some other and easier way to do it, but here is what just pops up into my head

From the Additional CSS Definitions under the Style Options

Add a new class, I just called it tcat1, you can change it to whatever you like, this is only an example.

You will need to change the image name and path to use your own, and change the colors.

Code:

.tcat1
{
        background: #FEWWE url(images/gradients/gradient_panel.gif) repeat-x top left;
        color: #FFFFFF;
        font: bold 10pt verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
.tcat1 a:link
{
        color: #ffffff;
        text-decoration: none;
}
.tcat1 a:visited
{
        color: #ffffff;
        text-decoration: none;
}
.tcat1 a:hover, .tcat a:active
{
        color: #FFFF66;
        text-decoration: underline;
}

Then open forumhome_forumbit_level1_nopost template
and find

Code:

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

Change it to

Code:

                <td class="<if condition="$forum[forumid]==1">tcat1<else />tcat</if>" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
Where 1 is the forum ID you would like to use the new class with.


All times are GMT. The time now is 03:24 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.00978 seconds
  • Memory Usage 1,710KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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