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

Reply
 
Thread Tools
Default Posting Font Details »»
Default Posting Font
Version: 1.0.1, by JJR512 JJR512 is offline
Developer Last Online: Jun 2006 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-03-2005 Last Update: 10-03-2005 Installs: 24
Template Edits
 
No support by the author.

This is a very simple hack. In fact it's almost embarrassing to call it a hack.

In a nutshell, this gives your members the ability to select a font face in which all of their messages will appear. This includes not only new messages after they select the font, but also any of their old messages, too, because the font they select is applied to their messages in the postbit template at the time they are viewed.

Installing involves creating a new custom profile field and a modification to the postbit and/or postbit_legacy template(s).

NOTE: If anyone would like to show me how to auto-populate the font selection list with the currently installed fonts, I'd be glad for the tutorial. (As it is now, you have to copy the list of fonts from the style editor into the custom profile field, which works but is not elegant.)

Show Your Support

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

Comments
  #42  
Old 10-18-2005, 05:17 PM
TechDawgFan TechDawgFan is offline
 
Join Date: Apr 2004
Location: Louisiana
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #43  
Old 10-18-2005, 06:32 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #44  
Old 10-18-2005, 07:22 PM
weaver weaver is offline
 
Join Date: Mar 2004
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #45  
Old 10-18-2005, 08:31 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #46  
Old 10-18-2005, 08:53 PM
TechDawgFan TechDawgFan is offline
 
Join Date: Apr 2004
Location: Louisiana
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #47  
Old 10-18-2005, 09:15 PM
JJR512's Avatar
JJR512 JJR512 is offline
 
Join Date: Oct 2001
Location: Glen Burnie, MD, USA
Posts: 710
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #48  
Old 10-19-2005, 10:53 AM
TechDawgFan TechDawgFan is offline
 
Join Date: Apr 2004
Location: Louisiana
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

TDF
Reply With Quote
  #49  
Old 10-28-2005, 11:55 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

JJR, how can I change the font color hack to 'Single-Line Text Box' so users can have their own choice of colors.
Reply With Quote
  #50  
Old 10-29-2005, 06:42 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bump!
Reply With Quote
  #51  
Old 01-22-2006, 02:01 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works well...thanks...

the same request as Aftermath would be nice though
Any chance on a heads up?
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 04:14 PM.


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.07649 seconds
  • Memory Usage 2,302KB
  • 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_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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • 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