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?

SnapOff Racing 09-04-2006 09:06 AM

how could you make the default font bold? would this be difficult?

The Librarian 01-17-2007 07:48 PM

Hello,

I've installed this mod and the color addon found here:
https://vborg.vbsupport.ru/showpost....2&postcount=23

Both work beautifully, but I find the fonts difficult to read sometimes. Some fonts just need to be bigger. So I wanted to add the font size choice found here:

https://vborg.vbsupport.ru/showthread.php?t=133225

I followed the directions to add the field to the UserCP Options. It's a Single Line Text Box with a default value of 12.

But the code looks VERY different, so I decided to try to modify it to match the coding on the first mods.

Here's what I came up with:

ORIGINAL POSTBIT LEGACY TEMPLATE CODE (with font and color added):

Code:

<div id="post_message_$post[postid]"><if condition="$post[field13]"><font face="$post[field13]"<if condition="$post[field14]"> color="$post[field14]"</if>>$post[message]</font><else />$post[message]</if></div>

NEW POSTBIT LEGACY TEMPLATE CODE (with size field added):

Code:

            <div id="post_message_$post[postid]"><if condition="$post[field13]"><font face="$post[field13]"<if condition="$post[field14]"> color="$post[field14]"<if condition="$post[field17]"> font size="$post[field17]"</if>>$post[message]</font><else />$post[message]</if></div>
*But* everytime I try to save it, I get the following error message:

Quote:

The following error occurred when attempting to evaluate this template:

The conditional on line 78 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed.

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
I've checked it and I can't find my error... but I'm not a programmer. This is all Greek to me. Can somebody tell me what I need to change to make this work?

Thanks!

cartooner 10-21-2007 06:01 PM

I've had this hack on all my versions I installed 3.6.8 on one of my forums and can't get it to work. The selections show up in the User Options. But when I go to post no changes.

Is this not compatable with Version 3.6.8??

it works with 3.6.7.....

The Librarian 10-22-2007 04:00 PM

Quote:

Originally Posted by cartooner (Post 1365263)
I've had this hack on all my versions I installed 3.6.8 on one of my forums and can't get it to work. The selections show up in the User Options. But when I go to post no changes.

Is this not compatable with Version 3.6.8??

it works with 3.6.7.....

It's working fine for me and I'm using 3.6.8 with the newest upgrade patch.

~~~~~UPDATE TO OP NOTE~~~~~~~~~~~~
I'd forgotten about this thread until I saw this reply. Just to add some closure let me point any interested parties to THIS THREAD where you'll find the resolution to the difficulties I posted here.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


All times are GMT. The time now is 04:20 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.01273 seconds
  • Memory Usage 1,757KB
  • 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_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (14)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