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)
-   -   Need Code to Add 1 Pixel Borders to Forum and Thread List (https://vborg.vbsupport.ru/showthread.php?t=198154)

SolarTalk 12-06-2008 02:48 PM

Need Code to Add 1 Pixel Borders to Forum and Thread List
 
Hello,

For example, on vbulletin.org, when you first come to this site and click on the "forums" tab, there is a list of all the forums. You'll notice the forum name, last post, threads, and post is separated by a thin border and the white and gray colors that run vertically also. For example it's vertically white for the list of forum names, and then a light gray for the list of all the last posts, etc.

I recently bought a skin and instead of having all the separation, it's all completely white.

Could someone please post the code I need to accomplish this and tell me what file to put the code under?? I'm not getting support from the company I bought the skin from and really need this fixed. Besides, I would like to learn how to do it myself.

Thanks so much! :up:

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

oh and just to add, i want to do the same thing for the list of threads as well. thanks!

Lynne 12-06-2008 03:53 PM

All those are are borders in the table. Very often, you will see in the table tag "border="0"" because they don't want a border at all. You need to set that to 1.

Seven Skins 12-06-2008 03:56 PM

Its hard to suggest anything when we don't have the code or site.
It might be that the lines are same color as tables or it might be there is no spacing in between table cells.

.

SolarTalk 12-06-2008 04:05 PM

Lynne, thank you for the response, where would I find the "table tag" so i can change it?

Seven, the website is www.sol@rp@nelt@lk . com...what code would you like me to post?

Thanks.

Lynne 12-06-2008 04:26 PM

The link to your site doesn't work.

A table tag is something that looks like this (this is from the page source for this page):
HTML Code:

<table id="header" border="0" width="100%" cellpadding="0" cellspacing="0" align="center">
You will find the correct table you need in your templates. To find which template to look in - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.

SolarTalk 12-06-2008 05:18 PM

Thank you, I did what you said, and it turned out looking like this:

Click Here

I just put "1" for the border and it seems to much. I would like them really thin and dim, like here on vbulletin.org. I looked at the source code for this forum and couldn't find what code it would be, i noticed it said "0" for borders, so thats confusing me. also would you happen to know how to add the vertical colors of white and gray at the separations, also like here on vbulletin.org?

Thanks again Lynne, I finally feel like I'm getting somewhere.

Lynne 12-06-2008 05:33 PM

It looks like here on vb, they have border set to 0 and then they use the class tborder to set the border. You should look at the css for this site - in particular the tborder class and alt1 and alt2. They have the columns for those area set to be class alt1, which I think is the default but you removed it.

SolarTalk 12-06-2008 05:43 PM

how do i see the css?

Seven Skins 12-06-2008 05:56 PM

It looks like in your style cellspacing has been set to 0, set it to 1 in stylevars of your styles. But it might change the layout in lot of places. See how it goes, you can always change it back to 0.

.

Lynne 12-06-2008 06:03 PM

Quote:

Originally Posted by SolarTalk (Post 1679728)
how do i see the css?

If you look at the top of the page source for this site, you'll see lines like this (this is for the blue style I am using):

HTML Code:

<!-- CSS Stylesheet -->
<link rel="stylesheet" type="text/css" href="clientscript/vbulletin_css/style-aa50424c-00023.css" id="vbulletin_css" />

So, you'd view it at www.vbulletin.org/forum/clientscript/vbulletin_css/style-aa50424c-00023.css


All times are GMT. The time now is 12:03 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.01082 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
  • (2)bbcode_html_printable
  • (1)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
  • (10)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