Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2010, 07:52 AM
miket1234 miket1234 is offline
 
Join Date: Dec 2009
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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:


what i want to do :


its possible?

thanks
Reply With Quote
  #2  
Old 08-23-2010, 01:33 PM
mmoore5553 mmoore5553 is offline
 
Join Date: Aug 2008
Posts: 530
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anything is possible if you want too. Do you have actual link to forum so we can take a quick look ?
Reply With Quote
  #3  
Old 08-23-2010, 01:48 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 {backgroundink;}
Reply With Quote
  #4  
Old 08-24-2010, 08:18 AM
miket1234 miket1234 is offline
 
Join Date: Dec 2009
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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 {backgroundink;}
To your first question- YES

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

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

Quote:
Originally Posted by mmoore5553 View Post
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
Reply With Quote
  #5  
Old 08-24-2010, 01:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by miket1234 View Post
To your first question- YES

Can you tell me step by step because i'm stuck on adding a class
You just add the CSS to the additional.css template
Reply With Quote
  #6  
Old 08-24-2010, 07:19 PM
miket1234 miket1234 is offline
 
Join Date: Dec 2009
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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
Reply With Quote
  #7  
Old 08-24-2010, 09:06 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 08-25-2010, 04:49 AM
miket1234 miket1234 is offline
 
Join Date: Dec 2009
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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
Reply With Quote
  #9  
Old 08-25-2010, 01:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.)
Reply With Quote
  #10  
Old 08-25-2010, 04:04 PM
miket1234 miket1234 is offline
 
Join Date: Dec 2009
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:18 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.04684 seconds
  • Memory Usage 2,263KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete