vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Default Posting Font (https://vborg.vbsupport.ru/showthread.php?t=97544)

TechDawgFan 10-18-2005 05:17 PM

Quote:

Originally Posted by JJR512
1. The font is applied to a message when it is displayed, that's why you make changes to the postbit and postbit_legacy templates. This is by design. The only other way I could think of to use a default font would be to put the font tags inside the message that gets stored in the database, which because of the permanence of that, I didn't want to do.

2. I don't know about this, I haven't actually used the version with the size option myself.

3. I'll look into that...

Somebody correct me if I'm wrong here, and it IS entirely possible. But all the mods and tweaks I've seen relating to users being able to set their own default fonts, sizes, and colors have revolved around using the custom profile fields and then editing the postbit and postbit_legacy templates. But unless the font and size tag are actually saved in the message, all it is doing is changing the way the user sees his or her own posts. It doesn't affect what other people see because they don't hit the other person's custom fields. I THINK the only way to do this and do it RIGHT is to have the tags written to the message the same way the editor does when you select a different font when typing your message.

Now I don't personally know how to do this, but I KNOW SOMEBODY on here has got to.

TDF

Snake 10-18-2005 06:32 PM

Quote:

Originally Posted by Aftermath
Here's what I mean. If you could do something similar like the below image, that would be cooL!

http://img153.imageshack.us/img153/9...stcolor5sa.jpg

Or entering a HEX code would be a great idea too! ;)

weaver 10-18-2005 07:22 PM

Is there a way to have the font color list show the color choices in their color? I know it was possible in the 3.0x version.

JJR512 10-18-2005 08:31 PM

Quote:

Originally Posted by TechDawgFan
Somebody correct me if I'm wrong here, and it IS entirely possible. But all the mods and tweaks I've seen relating to users being able to set their own default fonts, sizes, and colors have revolved around using the custom profile fields and then editing the postbit and postbit_legacy templates. But unless the font and size tag are actually saved in the message, all it is doing is changing the way the user sees his or her own posts. It doesn't affect what other people see because they don't hit the other person's custom fields. I THINK the only way to do this and do it RIGHT is to have the tags written to the message the same way the editor does when you select a different font when typing your message.

Now I don't personally know how to do this, but I KNOW SOMEBODY on here has got to.

TDF

Firstly, there is no RIGHT way; there are at least two different ways, both have advantages and disadvantages. What was right for me was the way I programmed it but that way may not be right for you.

The fact that the font tag is being applied to the message in the postbit or postbit_legacy template is not the reason why it only appears to be in your default font only when you're logged in. If that's the case, there is an error somewhere. It sounds like it's using info for the logged-in user, rather than for the user who posted the message. In my version, this problem does not exist, which I've confirmed by logging out of my own message board and looking at my messages. They continue to be in my default font, as they should. I've looked at the code for the color version, too, and although I don't use it myself, it appears to be correct. It's getting the font from the same source of info that a post gets the username, date, message text, etc. for, so I don't see why it should only work if you're logged in.

TechDawgFan 10-18-2005 08:53 PM

Sorry. Didn't mean for that to come across wrong. I'll try to troubleshoot on my end and let you know what I find.

TDF

JJR512 10-18-2005 09:15 PM

It didn't come across wrong, just trying to explain it more clearly. :)

You can PM me your complete postbit or postbit_legacy template if you'd like.

TechDawgFan 10-19-2005 10:53 AM

Got it working last night. Was a problem on my side.

TDF

Snake 10-28-2005 11:55 AM

JJR, how can I change the font color hack to 'Single-Line Text Box' so users can have their own choice of colors.

Snake 10-29-2005 06:42 PM

Bump!

bashy 01-22-2006 02:01 PM

Works well...thanks...

the same request as Aftermath would be nice though ;)
Any chance on a heads up?


All times are GMT. The time now is 05:49 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.01031 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)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