Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

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
  #52  
Old 09-04-2006, 09:06 AM
SnapOff Racing SnapOff Racing is offline
 
Join Date: Apr 2006
Posts: 336
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how could you make the default font bold? would this be difficult?
Reply With Quote
  #53  
Old 01-17-2007, 07:48 PM
The Librarian's Avatar
The Librarian The Librarian is offline
 
Join Date: Dec 2006
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #54  
Old 10-21-2007, 06:01 PM
cartooner cartooner is offline
 
Join Date: Sep 2005
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.....
Reply With Quote
  #55  
Old 10-22-2007, 04:00 PM
The Librarian's Avatar
The Librarian The Librarian is offline
 
Join Date: Dec 2006
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cartooner View Post
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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 08:07 AM.


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.10033 seconds
  • Memory Usage 2,251KB
  • Queries Executed 21 (?)
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
  • (2)bbcode_code
  • (2)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
  • (2)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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