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
  #12  
Old 01-11-2008, 08:41 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I just got the chance to get back online, i was at work. Well I dont know how to make plugins but i could probably make it usergroup permissions. I will have it up tonight.
Reply With Quote
  #13  
Old 01-11-2008, 08:41 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Legendery. View Post
thanks
Please press install if you are using it.
Reply With Quote
  #14  
Old 01-11-2008, 08:55 PM
Forum Lover Forum Lover is offline
 
Join Date: Jun 2007
Location: Sydney
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ShadowOne View Post
Please press install if you are using it.
okay. clicked install. now make the usergroup permission please.
Reply With Quote
  #15  
Old 01-11-2008, 09:22 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Forum Lover View Post
okay. clicked install. now make the usergroup permission please.
Working on it right now...
Reply With Quote
  #16  
Old 01-11-2008, 11:26 PM
elviejoepu elviejoepu is offline
 
Join Date: Feb 2007
Location: Dominican Republic
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a problem,

my field6: Color de letras (color)
My field7: Tipo de fuente (font)

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

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

<else />

$post[message]

</if></div>

is not working... what im doing wrong?
Reply With Quote
  #17  
Old 01-12-2008, 10:49 AM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by elviejoepu View Post
I have a problem,

my field6: Color de letras (color)
My field7: Tipo de fuente (font)

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

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

<else />

$post[message]

</if></div>

is not working... what im doing wrong?
Try This...
Code:
<if condition="$post['field6'] != '' OR $post['field7'] != ''">

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

 <else />

$post[message]

</if></div>
Reply With Quote
  #18  
Old 01-12-2008, 10:50 AM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh and uhm the usergroup permissions may take a lil longer than expected. Its not as easy as one may think. But I am working on it
Reply With Quote
  #19  
Old 01-12-2008, 03:00 PM
UncoderMom UncoderMom is offline
 
Join Date: May 2006
Location: My office chair!
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I dont know how to make a plug in either but Im sure there is a nifty TUT somewhere here on the org.

Cant wait to install later! This with usergroup permissions is JUST what I need! teehee
Reply With Quote
  #20  
Old 01-12-2008, 05:14 PM
elviejoepu elviejoepu is offline
 
Join Date: Feb 2007
Location: Dominican Republic
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok , Work Excelente... gracias
Reply With Quote
  #21  
Old 01-12-2008, 07:16 PM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by elviejoepu View Post
ok , Work Excelente... gracias
Your Welcome... Still Working On User Permissions.... Not Lookin Good...
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 06:44 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.04952 seconds
  • Memory Usage 2,310KB
  • 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
  • (5)bbcode_code
  • (5)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