vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   User Default Font/Color/Size hack (https://vborg.vbsupport.ru/showthread.php?t=49398)

zootsuit 03-15-2003 06:46 AM

Quote:

Yesterday at 11:12 PM msimplay said this in Post #50
it works on 2.3
but theres a potential problem
what if u want to change ur font color in the post ie
not use the that u chose in user cp

for example if u picked ms sans serif and color green

but just for one post u want to change it or even for just one line
can u do that ?

Yep. Just choose your font and/or color from the reply page as you would normally. :)

LangTuDaTinh 03-17-2003 04:48 PM

one little idea, add an option in newthread, editpost, newreply and edit option from usercp, where use can turn on or off this hack by checkbox or radio button.

geniuscrew 03-24-2003 02:36 PM

This is all getting very confusing

If you want to only use it for some posts, then you don't need the hack since you can do that anyway.

Also I figured the CSS out - with a little help from amykhar.

So, for anyone who prefers CSS sizes to HTML sizes

replace

PHP Code:

$message "[color=".$bbuserinfo[post_color]."][font=".$bbuserinfo[post_font]."][size=".$bbuserinfo[post_size]."]".$message."[/size][/font][/color]"

with

PHP Code:

$message "<font style=\"color:".$bbuserinfo[post_color]."; font-family:".$bbuserinfo[post_font]."; font-size: ".$bbuserinfo[post_size]." px;\">".$message."</font>"

You will also need to change the length of default_pcs and post_fontsize [Note: has to be in pixels or whatever CSS format you're using]

WEForums 04-22-2003 11:02 PM

Nice hack and all but am I the only one who experiences a 'bug' when making quotes? It's like this:

Quote:

Origina
lly posted by USERNAME

I know it's trivial but I just want to know if others have the same problem. I am sure it's easily fixable though.

geniuscrew 04-23-2003 12:11 AM

Nope - I have this problem too :/

subu1 04-23-2003 05:03 AM

it works fine on 2.2.8, quotes too.

thank you;)

subu1 04-23-2003 09:12 AM

hi my verdana is green, i want to have that in black. Black is verdana or not???

greetz subu1

LangTuDaTinh 04-23-2003 09:30 AM

Quote:

Yesterday at 04:02 PM WEForums said this in Post #54
Nice hack and all but am I the only one who experiences a 'bug' when making quotes? It's like this:



I know it's trivial but I just want to know if others have the same problem. I am sure it's easily fixable though.


i have the same problem...i don't know because of this hack or not...

but i think it's depend on which font that i selected. because some of my users have no problem when they quote...but strangly...i got the same problem.

gwhooooey 04-26-2003 12:51 AM

Quote:

This assumes three things: 1) Your default font is 'Veranda'; 2) your default color is 'black'; and 3) Your default size is '2'. If these are different, please change to reflect.
I'm using 2 styles, on one the default colour is black, on the other it's kinda silver....

So um...What do I do?

gwhooooey 04-27-2003 01:49 AM

Can anyone help?


All times are GMT. The time now is 04:39 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.01143 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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