vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Thread links vs index links (https://vborg.vbsupport.ru/showthread.php?t=256154)

MrHorror 12-29-2010 11:18 PM

Thread links vs index links
 
Is there any way to keep the links on the index page one particular hex code color, and make the links of threads ONLY, a different hex code color?

Lynne 12-29-2010 11:20 PM

Sure, you can write some css to do that. Look in the page source and get the class for what you want to change, and just write some CSS to change the color for that class.

MrHorror 12-31-2010 12:49 AM

Thanks but I'm gonna need a bit more information on how to do this. Like which thread template should I edit, and what css should I add there?

Digital Jedi 12-31-2010 01:00 AM

Quote:

Originally Posted by MrHorror (Post 2141609)
Thanks but I'm gonna need a bit more information on how to do this. Like which thread template should I edit, and what css should I add there?

First you need to do as Lynne suggested and look at the source code of the page. Find the classes of the links you want to change. You can figure out which templates they are by enabling Admin CP ? vBulletin Options ? vBulletin Options ? General Settings ? Add Template Name in HTML Comments. Then each template will be marked at where they start and end.

If you don't know much about CSS, you'll need to research that on your own. It's not terribly hard to learn, but it's more involved then can be described here and it's going to be up to you how you want it to look.

Lynne 12-31-2010 03:17 AM

If you need more help, you need to provide a lot more detail - like a link to the page you want to change things, an image showing what you want to change, and tell us exactly how you want to change it. If you give us a general question, you are going to get a very general answer. If you are most specific, you will get a more specific answer.

MrHorror 12-31-2010 04:23 AM

Okay let me try and be more specific.


Here's a link to the dvd forum on my board...http://hmandsforums.oliwy.net/forums...splay.php?f=28


Now if you leave this forum, and go onto the index page you'll see I have my links colored #cc0000 hex code. All of them are this color. What I wanna do is change the color of links for each board. So for example...when someone enters the forums landing page, they'll see all the links to each forum in #cc0000 (dark red) hex code color, as it is currently. But when they enter a board, the links to each thread would be colored #ff3300 (red). That's all I wanna do. I want all of the thread links on my board a different color from the forum links on the landing page.

Kind of like you guys have all of your links on this board blue currently? But if you were to choose to have ONLY the links to each board on your landing page blue. But once someone leaves the landing page and would enter the vb3 forum for example, the thread links there would be yellow, red, green, or whatever.

Digital Jedi 12-31-2010 04:35 AM

A simpler solution would be to just create a child style to your current style. Change the color for links on the child style. Then set whatever boards you want to have those link colors as a the default style for those subforums in the Forum Manager.

Lynne 12-31-2010 06:18 PM

Perhaps something like:
HTML Code:

#threadslist a {color: pink;}
Unfortunately, vb3 has no class assigned to just the thread titles, so if you only want to do them, you'll have to add a class to the link and then define the class.

MrHorror 12-31-2010 06:43 PM

Quote:

Originally Posted by Lynne (Post 2141975)
Perhaps something like:
HTML Code:

#threadslist a {color: pink;}
Unfortunately, vb3 has no class assigned to just the thread titles, so if you only want to do them, you'll have to add a class to the link and then define the class.

How would I add a class to the link and where would I go to find the class of threads specifically?

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

Quote:

Originally Posted by Digital Jedi (Post 2141698)
A simpler solution would be to just create a child style to your current style. Change the color for links on the child style. Then set whatever boards you want to have those link colors as a the default style for those subforums in the Forum Manager.

I tried that, worked but my sidebar doesn't appear with the child style for some reason.

Digital Jedi 12-31-2010 07:25 PM

Quote:

Originally Posted by MrHorror (Post 2141979)
How would I add a class to the link and where would I go to find the class of threads specifically?

You would look at the source code of your page and look at a link. Like I said, for CSS, you'll need to do some research into how CSS works. Then you'll immediately know where to look and how to implement it using vBulletin's extra CSS options.

Quote:

I tried that, worked but my sidebar doesn't appear with the child style for some reason.
Is your side bar a modification or a template edit?


All times are GMT. The time now is 05:53 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.01415 seconds
  • Memory Usage 1,740KB
  • 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
  • (5)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