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

Reply
 
Thread Tools
User selected default posting font and color Details »»
User selected default posting font and color
Version: 1.00, by Theoldwiz Theoldwiz is offline
Developer Last Online: Nov 2008 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.7.x Rating:
Released: 03-01-2008 Last Update: Never Installs: 85
Template Edits
 
No support by the author.

Hello,

This mod allows users to select their default posting font and color. You will have to select this at registration and can update it whenever you want in profile.

First you must make two new single selection menu user profile fields. Options for them are below.

Profile field one:

Title: Default Post Color

Description: What color your posts show up as?

Options:

Black
Blue
Green
Red
Pink
Orange
Purple

Set Default: Yes, but no first blank option

Display Order: Doesnt Matter

Field Requiried: Yes, at registration and profile updating

Field Editable by User: Yes

Private Field: No

Field Searchable on Members List: No

Show on Members List: No


Profile field two:

Title: Default Post Font

Description: What do you want your default post font to be?

Options:

Arial
Arial Black
Arial Narrow
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Fixedsys
Franklin Gothic Medium
Garamond
Georgia
Impact
Lucida Console
Microsoft Sans Serif
Palatino Linotype
System
Tahoma
Times New Roman
Tribuchet MS
Verdana

Set Default: Yes, but no first blank option

Display Order: Doesnt Matter

Field Requiried: Yes, at registration and profile updating

Field Editable by User: Yes

Private Field: No

Field Searchable on Members List: No

Show on Members List: No

Now go to the user profile field manager, and jot down the two field numbers of the new fields listed on the right side of the two fields. Along with that, write down what number goes with what field. Please note this is not the display number, its the number next to it that says fieldX

Template Edits:

Go to your styles postbit/postbit legacy (whatever you use)

Find:
Code:
<!-- message -->
After Add:
Code:
<font COLOR="$post[fieldX]"><font face="$post[fieldX]">

Replace: The first red X with your default text color field number
The second red X with your default font field number.



Find:
Code:
<!-- / message -->
Add Above:
Code:
</font></font>

You are done, hope you like it!

Show Your Support

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

Comments
  #32  
Old 04-10-2008, 08:06 PM
Breathex Breathex is offline
 
Join Date: Oct 2004
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fateL View Post
Works good, thanks man. How would I make an option for bold, italic font too?
Yes, this is important.
Reply With Quote
  #33  
Old 04-15-2008, 01:03 PM
Theoldwiz Theoldwiz is offline
 
Join Date: Nov 2007
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mblb View Post
I could only get mine to work on postbit legacy.
Just edit the legacy template
Reply With Quote
  #34  
Old 04-30-2008, 07:12 AM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=167487&highlight=font+color" target="_blank">https://vborg.vbsupport.ru/showt...ght=font+color</a>

thats the one i posted for 3.6 which works for 3.7 as well with no bugs...
Reply With Quote
  #35  
Old 05-01-2008, 10:14 AM
Fırtına Fırtına is offline
 
Join Date: Mar 2008
Location: Saudi Arabia / Turkey
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Teşekk?rler, Thanks
Reply With Quote
  #36  
Old 05-02-2008, 01:05 AM
SavvyPirates SavvyPirates is offline
 
Join Date: Apr 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the hack. I just installed this (on 3.7.0 Gold) and it works great.

Quote:
Originally Posted by Theoldwiz View Post
I didnt add size because I dont know why anyone would want every one of their posts to be the same size (except if its just the default size of 2)
I found a reason...some of the fonts (such as Garamond) at their default size are much smaller that what we are ued to with the Verdana default. Increasing the size is necessary to help people be able to read your post without a magnifying glass.

It appears that we can allow a default size to be selected by using the same method as you used for the font and color. Just need a third new profile field and a third font tag in the postbit.
Reply With Quote
  #37  
Old 05-03-2008, 09:22 PM
FLMom's Avatar
FLMom FLMom is offline
 
Join Date: Feb 2006
Location: Florida
Posts: 386
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Before I start messing around with this, it is possible for a user to use Bold, Italics or Underline if they want too? I would also like to see a size option. It would come in handy for those on my site with poorer vision

Thanks!
Reply With Quote
  #38  
Old 05-05-2008, 06:42 PM
Hams Hams is offline
 
Join Date: May 2007
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanx..
Reply With Quote
  #39  
Old 05-19-2008, 01:52 PM
ahayat ahayat is offline
 
Join Date: Mar 2008
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack , thanks. clicked at install and nomiated.

here it is some spell mistake in font list please Edit it, i have seen over many places,they just copy the same.

it is "Trebuchet MS" instead Tribuchet MS

Finally, i want to see in Quoted box same font as well,because someone does Quote you it does not show the same font we selected .

Can you find it please?

Cheers
Reply With Quote
  #40  
Old 06-01-2008, 08:36 PM
nymyth nymyth is offline
 
Join Date: Jun 2002
Location: New York
Posts: 367
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

cant get this to work....the font never changes....

Peace
Reply With Quote
  #41  
Old 06-03-2008, 06:43 AM
WDZaphod WDZaphod is offline
 
Join Date: Apr 2007
Location: Z?rich, Switzerland
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simple and VERY useful!

Thanks!!
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 01:08 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.05952 seconds
  • Memory Usage 2,312KB
  • 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
  • (4)bbcode_code
  • (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
  • (4)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