vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   How can i add third alternate style ?? (alt3) (https://vborg.vbsupport.ru/showthread.php?t=161907)

Mean 11-04-2007 03:44 PM

How can i add third alternate style ?? (alt3)
 
Hi all, i want to make another style to the postbit table. For example, i want to change background of postbit. But if i do this in styles options in adminp, forumhome table backgrounds are also changed. Because the tables are using alt1. So, how can i add alt3 ??

Kirk Y 11-04-2007 07:03 PM

Not sure I'm following you, but if you want to add a new CSS class, you can go to the bottom of the Main CSS Options page to "Additional CSS Definitions" and add the following:

Code:

.myclass
{
    background: black;
    color: #898989;
    border: 1px solid red;
}


Mean 11-04-2007 08:23 PM

Thank you.

<td class="alt2" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">

How can i change this to

background-image: url(/images/firstalt1.gif)


Because, I dont want to change alt2 in style settings.

Freesteyelz 11-04-2007 08:29 PM

Replace:

Code:

<td class="alt2" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]">

With:

Code:

<td class="alt2" id="td_post_$post[postid]" style="border-right: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor];background:#000000 url() repeat-x top left">

Change #000000 to whatever background color you want. Change repeat to either: no-repeat, repeat (both vertical and horizontal), repeat-y (vertical), repeat-x (horizontal)

Mean 11-04-2007 08:33 PM

Freesteyelz, very good info thanks a lot !

Freesteyelz 11-04-2007 08:35 PM

I hope it works out for you. :)


All times are GMT. The time now is 10:25 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.02432 seconds
  • Memory Usage 1,715KB
  • 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
  • (6)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