vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   Change the forum link color (https://vborg.vbsupport.ru/showthread.php?t=249168)

miket1234 08-23-2010 07:52 AM

Change the forum link color
 
Hey guys!
I'm stuck with the following problem: I want to change in forum-home the background of the Forum-link. To understand me better i'll upload 2 pics:

NORMAL:
http://img507.imageshack.us/img507/5537/pozaa1.jpg

what i want to do :
http://img836.imageshack.us/img836/3512/pozaend.jpg

its possible?

thanks

mmoore5553 08-23-2010 01:33 PM

Anything is possible if you want too. Do you have actual link to forum so we can take a quick look ?

Lynne 08-23-2010 01:48 PM

You want to change the background of the forums that are just links? You'll have to edit the template and add a class to the row and then define the class to have a different background color. ie:
<li id="forum{vb:raw forum.forumid}" class="forumbit_post L2 <vb:if condition="$forum['statusicon'] != 'link'">forumlink</vb:if>">

Then define .forumlink {background:pink;}

miket1234 08-24-2010 08:18 AM

Quote:

Originally Posted by Lynne (Post 2088316)
You want to change the background of the forums that are just links? You'll have to edit the template and add a class to the row and then define the class to have a different background color. ie:
<li id="forum{vb:raw forum.forumid}" class="forumbit_post L2 <vb:if condition="$forum['statusicon'] != 'link'">forumlink</vb:if>">

Then define .forumlink {background:pink;}

To your first question- YES

Can you tell me step by step because i'm stuck :D on adding a class

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

Quote:

Originally Posted by mmoore5553 (Post 2088310)
Anything is possible if you want too. Do you have actual link to forum so we can take a quick look ?

http://talkpoint.ro/forum.php

Lynne 08-24-2010 01:49 PM

Quote:

Originally Posted by miket1234 (Post 2088733)
To your first question- YES

Can you tell me step by step because i'm stuck :D on adding a class

You just add the CSS to the additional.css template

miket1234 08-24-2010 07:19 PM

Quote:

Originally Posted by Lynne (Post 2088845)
You just add the CSS to the additional.css template

i put this in additional.css:
.forumlink {background-color:#6495ed;}

and:
<li id="forum{vb:raw forum.forumid}" class="forumbit_post L2 <vb:if condition="$forum['statusicon'] != 'link'">forumlink</vb:if>">
in forumhome_forumbit_level2_post

but is not working :(

Lynne 08-24-2010 09:06 PM

Actually, I think it would be "equals" (==), not "not equals" (!=) (I had just copied the condition in there) But, if you had done what you said, then I would expect that you would see something different.

Are you sure you edited the correct template? How about a link to this page on your site.

miket1234 08-25-2010 04:49 AM

Quote:

Originally Posted by Lynne (Post 2089058)
Actually, I think it would be "equals" (==), not "not equals" (!=) (I had just copied the condition in there) But, if you had done what you said, then I would expect that you would see something different.

Are you sure you edited the correct template? How about a link to this page on your site.

http://talkpoint.ro/forum.php

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

i put ==, but nothing happend

Lynne 08-25-2010 01:49 PM

I don't think you changed the correct template. I think that is a nopost template, not a post template. (My post above was an *example* of how to add this to the class, it had nothing to do with which template to change.)

To find the template to modify, do this - 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. (Sometimes the template is the one mentioned at the very top of the page source.)

miket1234 08-25-2010 04:04 PM

doesnt work in the way you explained

what i notice is if you change :
<li class="forumbit_nopost L2" id="cat{vb:raw forum.forumid}">

to

<li class="forumlink" id="cat{vb:raw forum.forumid}">

look like this, but i dont like the way the text its:
http://img201.imageshack.us/img201/818/vb2c.jpg


All times are GMT. The time now is 10:00 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.01286 seconds
  • Memory Usage 1,738KB
  • 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
  • (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