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 Color/Font In Posts Editable Via Profile Details »»
User Color/Font In Posts Editable Via Profile
Version: 1.00, by ShadowOne ShadowOne is offline
Developer Last Online: Aug 2012 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.6.x Rating:
Released: 01-10-2008 Last Update: Never Installs: 70
Template Edits
 
No support by the author.

Whats Up,
I was looking for something like this and couldnt find it for 3.6. But i do give most of the credit to gio~logist for the idea even though i knew how to do this, dont wanna look like im taking credit for something i didnt do.Its like his for 3.5 except i added a color wheel link pop up. I dont have alot of coding experience, but template mods are not hard. Just wanted to kinda share this.

Details: Allows users to edit their font color and their font type for when they post. It also puts a link where your users can find a colorwheel next to the description!

Installation: 5 Mins

First Thing You Need To Do:
Code:
Go to User Profile Fields > Add New User Profile Field

Choose:  Single-Line Text Box

Title: Font Color In Posts

Description: This will be your font color when posting.  (Ex: #000000 is black)<br /> <a href="http://html-color-codes.info/" onclick="window.open('http://html-color-codes.info/');
return false;" target="newWin"><b>Click Here For Color Codes</b></a>

Max length of allowed user input: 7

Click Save!


Second Thing You Need To Do:
Code:
Go to User Profile Fields > Add New User Profile Field

Choose: Single-Line Text Box

Title: Font In Posts

Description: This font will appear when posting. (Example: Verdana)

Max length of allowed user input: 15

Click Save!
Last Edit your postbit or postbit legacy Template whichever one you use.
Find this code:
Code:
$post[message]
Replace it with this code:
Code:
<if condition="$post['fieldX'] != '' OR $post['fieldX'] != ''">

<font style="font-family:$post[fieldX]; color:$post[fieldX];">$post[message]</font>

 <else />

$post[message]

</if>
Be sure to edit the X's with whatever field these are or this will not work! To edit, go to:
Profile > Edit Profile and it will probably be somewhere towards the bottom.

PLEASE CLICK INSTALL

ENJOY!

SCREENSHOT: The Red Blur Is The Link For The Colorwheel

Show Your Support

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

Comments
  #32  
Old 02-08-2008, 02:47 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by joeycano View Post
Looks like no support here?
Not understanding your problem... fonts change for me when i type in the font name...
Reply With Quote
  #33  
Old 02-10-2008, 01:02 AM
intricatic intricatic is offline
 
Join Date: Apr 2007
Location: Florida
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to do this with a dropdown box, and have it save the value to the database so it won't reset constantly?
Reply With Quote
  #34  
Old 02-10-2008, 11:51 PM
Thelonius Beck's Avatar
Thelonius Beck Thelonius Beck is offline
 
Join Date: Jan 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed this, but am having something of an issue.Members using IE do not see the changes in their posts. Any ideas?
Reply With Quote
  #35  
Old 02-11-2008, 04:15 AM
boomcar68 boomcar68 is offline
 
Join Date: Feb 2008
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be nice if there is an option where people can choose the availble fonts.
Reply With Quote
  #36  
Old 02-12-2008, 02:34 AM
Shaheen's Avatar
Shaheen Shaheen is offline
 
Join Date: Nov 2006
Location: Melbourne
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

doesnt work for me**
Reply With Quote
  #37  
Old 03-22-2008, 11:06 AM
gibigbig gibigbig is offline
 
Join Date: Jul 2007
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks i used this for my site: animedreamz.net/forums
worked perfectly
Reply With Quote
  #38  
Old 03-30-2008, 12:14 PM
LisaJH LisaJH is offline
 
Join Date: Nov 2007
Location: South Australia
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Damn its not working for me either :S
Reply With Quote
  #39  
Old 04-04-2008, 11:53 AM
Medina Medina is offline
 
Join Date: Oct 2006
Location: the Netherlands
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It`s not working. When a member posting, it`s seems to work. But when a member leave the topic and come back and look at his reaction. It doesn`t still the same color and/or font.

But a administrator or a moderator doesn`t have this problem..


help.
Reply With Quote
  #40  
Old 04-04-2008, 09:30 PM
ChU v2 ChU v2 is offline
 
Join Date: May 2007
Location: Chicago
Posts: 396
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very good idea, I'm going to try and tweak the code a little bit for usergroup permissions and other options, if you don't mind
Reply With Quote
  #41  
Old 04-05-2008, 08:50 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChU v2 View Post
Very good idea, I'm going to try and tweak the code a little bit for usergroup permissions and other options, if you don't mind
not at all, ive been busy working, sorry no help... but tweak as you may
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 10:53 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.07907 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
  • (4)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
  • (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