vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB5 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=264)
-   -   Forum Borders / Gridlines (https://vborg.vbsupport.ru/showthread.php?t=311446)

Lynne 05-25-2014 03:46 PM

Quote:

Originally Posted by Spangle (Post 2499349)
I wanted to change the icons for them as well as the main icons, but no-one seems to know how to do that either, so adding borders will be in the same boat I suspect.

I have posted that before a couple of times. I think I posted it on vbulletin.com, so you may want to try a search there.

aleheroix 05-25-2014 03:51 PM

Quote:

Originally Posted by Lynne (Post 2499359)
I have posted that before a couple of times. I think I posted it on vbulletin.com, so you may want to try a search there.

No help with the category-header and subforum-list?

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

Code:

.forum-list-container.stretch .category-header td {border-style:solid}
This does put an ugly black line on the category-header...

https://vborg.vbsupport.ru/external/2014/05/9.png

Lynne 05-25-2014 07:16 PM

This is what I use on my vB5 site for the main page:
HTML Code:

/* border on homepage */
table.forum-list-container tr.forum-item td.cell-forum { border-width: 1px 1px 0; border-style: solid; border-color: #C8CCCE; border-spacing: 1px;}
table.forum-list-container tr.forum-item td.topics-count, table.forum-list-container tr.forum-item td.posts-count, table.forum-list-container tr.forum-item td.lastpost { border-width: 1px 1px 0 0; border-style: solid; border-color: #C8CCCE; border-spacing: 1px;}
table.forum-list-container tr.subforum-list td { border-width: 1px 1px 0; border-style: solid; border-color: #C8CCCE; border-spacing: 1px; padding-top: 15px;}
table.forum-list-container tr.subforum-list td.subforum-item { border: none; padding-top: 0;}
table.forum-list-container tr.category-header td { border-width: 1px 1px 0; border-style: solid; border-color: #C8CCCE; border-spacing: 1px;}
table.forum-list-container tr.subforum-list td.subforum-item { border: none; padding-top: 0;}
div.list-footer {border-width: 1px 1px 1px; border-style: solid; border-color: #C8CCCE; border-spacing: 1px;}

This is what I use to change the icons:
HTML Code:

.forum-list-container .forum-item .cell-forum .icon {
    background: url("path/here/image_old.png") no-repeat;
    height: 20px;
    width: 20px;
}
.forum-list-container .forum-item.new .cell-forum .icon {
  background: url("path/here/image_new.png") no-repeat;
}


Spangle 05-25-2014 07:16 PM

Quote:

Originally Posted by aleheroix (Post 2499360)
No help with the category-header and subforum-list?

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

Code:

.forum-list-container.stretch .category-header td {border-style:solid}
This does put an ugly black line on the category-header...

https://vborg.vbsupport.ru/external/2014/05/9.png

try removing .category-header from that bit of css

The border styling should not be applied to it then

Spangle 05-25-2014 07:27 PM

Quote:

Originally Posted by Lynne (Post 2499359)
I have posted that before a couple of times. I think I posted it on vbulletin.com, so you may want to try a search there.

Tried a search on VB.com and found this :
Code:

http://www.vbulletin.com/forum/forum/vbulletin-5-connect/vbulletin-5-connect-questions-problems-troubleshooting/vbulletin-5-tutorials/4028327-vb5-temp-fix-for-custom-forum-icons-any-size
But that doesn't work for sub forums.

The code you suggested above is OK if you only want a new and old icon, I would like to have a different icon for each sub-forum.

aleheroix 05-25-2014 07:43 PM

Quote:

Originally Posted by Lynne (Post 2499377)
This is what I use on my vB5 site for the main page:
HTML Code:

/* border on homepage */
table.forum-list-container tr.forum-item td.cell-forum { border-width: 1px 1px 0; border-style: solid; border-color: #C8CCCE; border-spacing: 1px;}
table.forum-list-container tr.forum-item td.topics-count, table.forum-list-container tr.forum-item td.posts-count, table.forum-list-container tr.forum-item td.lastpost { border-width: 1px 1px 0 0; border-style: solid; border-color: #C8CCCE; border-spacing: 1px;}
table.forum-list-container tr.subforum-list td { border-width: 1px 1px 0; border-style: solid; border-color: #C8CCCE; border-spacing: 1px; padding-top: 15px;}
table.forum-list-container tr.subforum-list td.subforum-item { border: none; padding-top: 0;}
table.forum-list-container tr.category-header td { border-width: 1px 1px 0; border-style: solid; border-color: #C8CCCE; border-spacing: 1px;}
table.forum-list-container tr.subforum-list td.subforum-item { border: none; padding-top: 0;}
div.list-footer {border-width: 1px 1px 1px; border-style: solid; border-color: #C8CCCE; border-spacing: 1px;}

This is what I use to change the icons:
HTML Code:

.forum-list-container .forum-item .cell-forum .icon {
    background: url("path/here/image_old.png") no-repeat;
    height: 20px;
    width: 20px;
}
.forum-list-container .forum-item.new .cell-forum .icon {
  background: url("path/here/image_new.png") no-repeat;
}


Wow, cheers Lynne!

That looks loads better than my attempt. I guess I need to have a bit more practice, huh?

Lynne 05-25-2014 09:47 PM

Quote:

Originally Posted by Spangle (Post 2499382)
Tried a search on VB.com and found this :
Code:

http://www.vbulletin.com/forum/forum/vbulletin-5-connect/vbulletin-5-connect-questions-problems-troubleshooting/vbulletin-5-tutorials/4028327-vb5-temp-fix-for-custom-forum-icons-any-size
But that doesn't work for sub forums.

The code you suggested above is OK if you only want a new and old icon, I would like to have a different icon for each sub-forum.

Then use the data-channel-id in the CSS declaration. (He gives an example of how to use that in post 4 of the thread you just linked to).

Spangle 05-25-2014 10:03 PM

Quote:

Originally Posted by Lynne (Post 2499393)
Then use the data-channel-id in the CSS declaration. (He gives an example of how to use that in post 4 of the thread you just linked to).

I tried that and it didn't work for sub-forums

Lynne 05-25-2014 11:02 PM

Try using firebug, or whatever web developer tool you have, to see the CSS. It uses this as the declaration:

.forum-list-container .subforum-list .subforum-item .icon, .forum-list-container .forum-item.sub .cell-forum .icon {stuff}

So, use that with the data-id stuff.

Spangle 05-26-2014 09:22 AM

Quote:

Originally Posted by Lynne (Post 2499403)
Try using firebug, or whatever web developer tool you have, to see the CSS. It uses this as the declaration:

.forum-list-container .subforum-list .subforum-item .icon, .forum-list-container .forum-item.sub .cell-forum .icon {stuff}

So, use that with the data-id stuff.

I've been trying that for several hours on and off, I can remove the default icons, but cannot display the custom icons, even if I use the full url.


All times are GMT. The time now is 03:51 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.01229 seconds
  • Memory Usage 1,756KB
  • 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_code_printable
  • (4)bbcode_html_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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