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

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
  #2  
Old 01-11-2008, 05:56 AM
bokmade bokmade is offline
 
Join Date: Feb 2002
Location: Doha
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Install for Sure ..

Thanks You VM ..
Reply With Quote
  #3  
Old 01-11-2008, 11:09 AM
UncoderMom UncoderMom is offline
 
Join Date: May 2006
Location: My office chair!
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I set this for just certain usergroups?
Reply With Quote
  #4  
Old 01-11-2008, 11:33 AM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is great, thanks alot.
Reply With Quote
  #5  
Old 01-11-2008, 01:28 PM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would be nice to have this as a product and with usergroup restrictions.
Reply With Quote
  #6  
Old 01-11-2008, 05:40 PM
Legendery. Legendery. is offline
 
Join Date: Jun 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #7  
Old 01-11-2008, 07:36 PM
johnrizz's Avatar
johnrizz johnrizz is offline
 
Join Date: Apr 2006
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.

I'm not to sure on what go's where so could you please be more specific? Thanks!

Font Color In Posts >>field11
Font In Posts >>field12

<if condition="$post['fieldX'] != '' OR $post['fieldX'] != ''">

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

<else />

$post[message]

</if>
Reply With Quote
  #8  
Old 01-11-2008, 07:56 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stone0075 View Post
I'm not to sure on what go's where so could you please be more specific? Thanks!

Font Color In Posts >>field11
Font In Posts >>field12

<if condition="$post['fieldX'] != '' OR $post['fieldX'] != ''">

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

<else />

$post[message]

</if>

<if condition="$post['field11'] != '' OR $post['field12'] != ''">

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

Hope that helped
Reply With Quote
  #9  
Old 01-11-2008, 08:23 PM
johnrizz's Avatar
johnrizz johnrizz is offline
 
Join Date: Apr 2006
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it did, thanks alot!
Reply With Quote
  #10  
Old 01-11-2008, 08:34 PM
TCE Killa TCE Killa is offline
 
Join Date: Dec 2007
Posts: 330
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No problem.
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 06:37 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.04768 seconds
  • Memory Usage 2,292KB
  • Queries Executed 23 (?)
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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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