Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 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.6.8 Rating:
Released: 03-01-2008 Last Update: Never Installs: 14
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]" 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>

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
  #12  
Old 03-03-2008, 07:35 PM
yoksito yoksito is offline
 
Join Date: Nov 2006
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

example for color of usernames:

go to: usergroups -> usergroups manager -> choce a title -> Username HTML Markup, in text box1: <span style='color:red' font:'bold'> and text box2 </span>

and done
Reply With Quote
  #13  
Old 03-03-2008, 09:44 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yoksito View Post
example for color of usernames:

go to: usergroups -> usergroups manager -> choce a title -> Username HTML Markup, in text box1: <span style='color:red' font:'bold'> and text box2 </span>

and done
All that does is gives usergroups a colour. Doesn't let them choose their own color.

This is how you let them choose their own username color and font:

PHP Code:
 <class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">
    <if 
condition="$post['field14'] != '' ">
<
font style="font-family:$post[field28]; color:$post[field14];">$post[username]</font>
    <else />
<if 
condition="$post['field27']"><span style="font-weight: bold; $post[field27]">$post[username]</span><else />
$post[musername]
</if></if></
a
What I would like to know is, if it is possible like on the default selective font & color on posts, to have that for the username font and color. Instead of just a box, use a drop down list of fonts and colors.
Reply With Quote
  #14  
Old 03-04-2008, 01:42 AM
Chachacha's Avatar
Chachacha Chachacha is offline
 
Join Date: Jul 2006
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way you can make this work in quotes?
Reply With Quote
  #15  
Old 03-04-2008, 10:03 AM
leannet leannet is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I add a default size aswell, because all the posts are now showing up tiny.
Reply With Quote
  #16  
Old 03-04-2008, 10:09 AM
leannet leannet is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please dis-regard my last post I made my own code and it worked.
Reply With Quote
  #17  
Old 03-12-2008, 05:04 AM
Chachacha's Avatar
Chachacha Chachacha is offline
 
Join Date: Jul 2006
Posts: 173
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Chachacha View Post
Is there any way you can make this work in quotes?
Judging by the lack of a reply, I'm guessing that the answer is NO.
Reply With Quote
  #18  
Old 03-12-2008, 08:37 PM
Shaheen's Avatar
Shaheen Shaheen is offline
 
Join Date: Nov 2006
Location: Melbourne
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks .. works Great waiting for font size update
Reply With Quote
  #19  
Old 03-14-2008, 03:15 AM
Baldilocks's Avatar
Baldilocks Baldilocks is offline
 
Join Date: Jan 2008
Location: Delaware, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would be nice if you could choose the default color too...especially if you havea lot of skins.
Reply With Quote
  #20  
Old 03-16-2008, 07:29 PM
mystic10 mystic10 is offline
 
Join Date: Sep 2007
Posts: 298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is what i put in my postbit and postlegacy but still not working dont know why..can someone tell me what i am doing wrong
<!-- message -->
<font COLOR="$post[field16]" face="$post[field17]">

<div id="post_message_$post[postid]">$post[message]</div>

</font>

<!-- / message -->
Reply With Quote
  #21  
Old 03-20-2008, 08:00 AM
jellybaby jellybaby is offline
 
Join Date: Jul 2005
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit: I have this working now.
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 03:32 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.14599 seconds
  • Memory Usage 2,316KB
  • 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
  • (1)bbcode_php
  • (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
  • (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