vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Multiple styles in index (https://vborg.vbsupport.ru/showthread.php?t=216606)

Lynne 06-22-2009 03:34 PM

It's always best if you post what you did so we can help you fix it. You aren't going to learn as much if I just tell you exactly what to do.

Here is what I am talking about doing. I stated it in post 7 above:
HTML Code:

<td class="thead mycolor$forumid" >&nbsp;</td>
If you add that to the lines, you should then be able to go into your source code and see lines such as (Psychology Website Lounge):
HTML Code:

<td class="thead mycolor1" >&nbsp;</td>
and in the next section (Psychology Topics):
HTML Code:

<td class="thead mycolor5" >&nbsp;</td>
So looking at the source code shows you the classes you then need to define in your Main CSS - from above, you need to define .mycolor1 and .mycolor5

j1mmy 06-22-2009 05:16 PM

I can see the lines such as Psychology Website Lounge etc in the source code. But that source code is based on the above template, forumbit_level1_nopost.

So in that template would I need to add that code 4 times (as there are 4 different forums?)

Also, how would I define this in the CSS? Would it be like

.mycolor1 {

color:#FFF

Also, above in your example, you haven't specified the forumid?

--------------- Added [DATE]1245706039[/DATE] at [TIME]1245706039[/TIME] ---------------

Any further suggestions?

smartkidbk5 06-23-2009 04:17 AM

First Make Multiple Styles with different colors...then:

AdminCP>Forum Manager>Select Forum & Click Edit
Style Options: Select Style for the forum
Override Users' Style Choice: Yes

j1mmy 06-23-2009 11:45 AM

Quote:

Originally Posted by smartkidbk5 (Post 1835373)
First Make Multiple Styles with different colors...then:

AdminCP>Forum Manager>Select Forum & Click Edit
Style Options: Select Style for the forum
Override Users' Style Choice: Yes

What I am trying to do is get the styles to display themselves all on the index page. Usually vB only allows one style to be shown on the home page, not multiple.

Lynne 06-23-2009 02:00 PM

Quote:

Originally Posted by j1mmy (Post 1834929)
I can see the lines such as Psychology Website Lounge etc in the source code. But that source code is based on the above template, forumbit_level1_nopost.

So in that template would I need to add that code 4 times (as there are 4 different forums?)

Also, how would I define this in the CSS? Would it be like

.mycolor1 {

color:#FFF

Also, above in your example, you haven't specified the forumid?

--------------- Added 22 Jun 2009 at 14:27 ---------------

Any further suggestions?

The forumid gets spit out with the code. That's why I told you to view your page source and get the colors that are spit out in it.

This may help with your css - http://www.w3schools.com/Css/pr_background-color.asp

j1mmy 06-24-2009 12:01 PM

Well this is what the source is generating on my index, but no colors?

HTML Code:

<!-- BEGIN TEMPLATE: forumhome_forumbit_level1_nopost -->
<tbody>
        <tr>
                <td colspan="3">
                <!-- forcing space -->

                <img src="clear.gif" width="1" height="5" />
                </td>
        </tr>
</tbody>
<tbody>
        <tr>
                <td class="tcat" colspan="3">
                       
                        <a style="float:right" href="#top" onClick="return toggle_collapse('forumbit_1')"><img id="collapseimg_forumbit_1" src="images/fun/buttons/collapse_tcat.gif" alt="" border="0" /></a>
                       
                        <a href="forumdisplay.php?f=1">Psychology Website Lounge</a>

                       
                       
                </td>
        </tr>
</tbody>
<tbody>
        <tr align="center">
          <td class="thead" >&nbsp;</td>
          <td class="thead" width="100%" align="left">Forum</td>
          <td class="thead" width="175">Last Post</td>
         
        </tr>

</tbody>

<tbody id="collapseobj_forumbit_1" style="">
<!-- BEGIN TEMPLATE: forumhome_forumbit_level2_post -->



All times are GMT. The time now is 08:38 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.01111 seconds
  • Memory Usage 1,739KB
  • 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
  • (4)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete