Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Blog Description Background Details »»
Blog Description Background
Version: 1.00, by cheat-master30 cheat-master30 is offline
Developer Last Online: Apr 2010 Show Printable Version Email this Page

Category: vBulletin Blog - Version: 3.6.x Rating:
Released: 09-16-2007 Last Update: Never Installs: 9
 
No support by the author.

Okay, this very minor CSS addition just does one thing; adds the right background to the blog_description property. Because by default, it just places this text on the page background colour with no nice background and no box border. And I felt it looked out of place.

In 'All Style Options', add this under 'Additional CSS':
Code:
#blog_description {background: [same as blog_message]; color: [Same as blog_message]; border: 1px solid black }
Replace as need be. Just felt like posting this because it felt half finished otherwise.

Oh, and change values for the other skins.

Demos:

http://jpicforum.info/blog.php?u=1 (With 10px padding)

http://www.dsultimate.net/Board/upload/blog.php?u=1 (guess why this forum added it).

Thanks to PoetJA-1975 for first demo.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 09-20-2007, 05:47 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did this in the templates which is easier if you have multiple styles:

In template BLOG, find:
Code:
<!-- Description -->
		<if condition="$show['description']">
			<div id="blog_description">$description</div>
		</if>
		<!-- End Description -->
Replace with:
Code:
<!-- Description -->
		<if condition="$show['description']">
			<div id="blog_description" class="tborder" style="padding: $stylevar[cellspacing]px"><div class="alt2" style="padding: $stylevar[cellpadding]px">$description</div></div>
		</if>
		<!-- End Description -->
I'm not sure if doing that with two DIVs is ideal, however as we're avoiding tables now I am not sure of any other way. Works in Firefox, Opera and IE so it can't be THAT bad.
Reply With Quote
  #13  
Old 09-20-2007, 06:34 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, that works as well. The only reason I don't is because it saves loading time and file size to put all styling information in the CSS files.
Reply With Quote
  #14  
Old 10-05-2007, 06:04 PM
erinys erinys is offline
 
Join Date: Mar 2006
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

allthough its just a css style, its something thats needed, therefor installed!

good for pointing it out!
Reply With Quote
  #15  
Old 10-05-2007, 10:57 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by erinys View Post
allthough its just a css style, its something thats needed, therefor installed!

good for pointing it out!
I'm surprised this was not already default in the blog; it's a glaringly obviously CSS overlook.
Reply With Quote
  #16  
Old 10-30-2007, 05:31 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where is the blog css located/defined so I can find the blog_message hex color? I don't see that listed in my CSS or additional definitions. I am colorblind so I need some help! lol (btw - I am using the default vb skin)
Reply With Quote
  #17  
Old 10-30-2007, 06:25 AM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You just add it to the Main CSS part.
Reply With Quote
  #18  
Old 10-30-2007, 02:24 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cheat-master30 View Post
You just add it to the Main CSS part.
I figured that, but your code says:
Quote:
#blog_description {background: [same as blog_message]; color: [Same as blog_message]; border: 1px solid black }
how do I find out the code for blog_message so I can make it the same, and where is that defined?
Reply With Quote
  #19  
Old 10-30-2007, 03:39 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's the same as the First Alternating Colour in my case. Try taking the value from that and applying it.

Edit: Of course, multiple skins will by nature slightly ruin this mod, so maybe also edit it different for each style?
Reply With Quote
Reply

Thread Tools

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 02:19 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04734 seconds
  • Memory Usage 2,284KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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