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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2015, 05:58 PM
Guest210212002
Guest
 
Posts: n/a
Default Forum post text/font issue - where is this font setting?

I'm working on rebuilding my 3.x skin under vb4, and am slowly making progress. One thing I can't seem to sort is why my modified skin has a different font for the message text than the vb4 default theme.

Here's a post with the default theme. This is the font that I want my skin to have as well:

http://i.imgur.com/VSembUp.png

Here's a post with my theme. I don't know where/what I changed, but the font is definitely different.

http://i.imgur.com/2P25Ux8.png

Here's a screenshot of the default theme, pasted into mine so that you can see the text difference.



I'm using Firebug, and it looks like this is "blockquote class="postcontent restore". I checked my templates, and this is the same in both of my postbit_legacy templates:

Code:
<blockquote class="postcontent restore ">
In my style variable editor, postbit_font is the same for both themes as well:

Font Family: Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif
Units: px
Size 13

It's also not showing as red (edited) in my custom skin. Is this not where you change the font? Where else is the text actually defined?

Any insight would be great - it's been a while since I tried to wrap my head around the "new" (to me anyway) style system and I'm having a heck of a time with it.
Reply With Quote
  #2  
Old 03-20-2015, 06:19 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I bet you've customized another area of css (a single definition can be used/shared in several areas) and it shared the same definition. Can you make the style publicly accessible and provide us a link? If so we can help more by being on the site and viewing the css and code with our tools (Firebug in firefox etc).

You can view an older yet still valid article for styling here.
Reply With Quote
  #3  
Old 03-20-2015, 10:12 PM
Guest210212002
Guest
 
Posts: n/a
Default

I'm betting you're dead on. I did a bunch of work to this skin a couple years ago, and never ended up upgrading to vb4... And then subsequently forgot pretty much everything I learned about editing this stuff, heh.

It's on my test forum, which is .htaccess protected so that I don't run into license issues unfortunately. I can PM you a login if you'd care to take a look, but it's no biggie - I'll be mashing my face against it over the weekend and will post up if I figure it out. I recall being a little grumpy about all of the shared definitions before, so I can go on a revert rampage until I find it.

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

Turns out it's Global > Font. Unfortunately as you said, it's a shared stylevar that's... Well, everywhere, ouch.

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

For anyone searching, here's my "fix". There may be a more elegant way to do it but this is what I came up with.

In postbit_legacy, look for:

Code:
{vb:raw post.message}
Wrap it with a new div. I called mine "mgpostcontent".

Code:
<div class="mgpostcontent">						
{vb:raw post.message}
</div>
Then in style manager -> edit templates -> CSS -> additional.css. Create a new definition at the end:

Code:
/* MG Post Content */
.mgpostcontent {
font: 14px verdana;
}
Again this is probably not the cleanest way to do it, but it works in FF, Safari and Chrome for me and allows me to move on to the next item on my to-do list so that I can finish my theme.
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 02:02 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.03903 seconds
  • Memory Usage 2,175KB
  • Queries Executed 11 (?)
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
  • (4)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (1)postbit_onlinestatus
  • (3)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_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
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_imicons
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete