Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
User Font/Color Post Addon Details »»
User Font/Color Post Addon
Version: 1, by Neo_Angelo Neo_Angelo is offline
Developer Last Online: Oct 2013 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.4 Rating:
Released: 12-03-2006 Last Update: 12-03-2006 Installs: 15
Template Edits
 
No support by the author.

This is my first ever Mod i've ever written, i'm very new to PHP and template modding so don't expect an Uber code :P

There was a thread released on a mod that allowed users to change the font color and font of their posts. with this addon your users will be able to choose how big their font will be.

How it works:

To prevent users from using overly sized fonts, i've tried to limit font sizes to just double figures, yes i know you can still put 72 for a huge font but i'm not advanced enough yet to provide a solution to this.

What you need to do:

Ok firstly Log into your ACP and create a new custom field.

Option: Single Line Text Box
Title: Post Font Size
Description: Change the Size of your Post font here (EG 8,12,14).
Private: NO
Default Value: 12
Field Required: NO
Searchable: NO
Editable By Users: YES
Max User Input: 2
Field Length: 3
Show on Memeber List: No

Now Note Down the Field Number (example Field ID: 12)

Next Open up you Postbit_legacy template and find the following:
Code:
$post[message]
Replace with:
Code:
<div id="post_message_$post[postid]"><if condition="$post['fieldX'] != ''>
<font style="font-size:
$post[fieldX]px;">$post[message]</font>

<else />

$post[message]
and your done, Replace X with the field ID of your custom field.

If your using the Mod for changing Color of text and font then do the following.

Find:
Code:
<div id="post_message_$post[postid]"><if condition="$post['fieldX'] != '' OR $post['fieldX'] != ''">
and Replace With:
Code:
<div id="post_message_$post[postid]"><if condition="$post['fieldX'] != '' OR $post['fieldX'] != '' OR $post['fieldX'] != ''">
then find:
Code:
<font style="font-family:$post[fieldX]; color:$post[fieldX];"></font>

 

     <else />

$post[message]
And Replace with:
Code:
<font style="font-family:$post[fieldX]; color:$post[fieldX]; font-size:
$post[fieldX]px;">$post[message]</font>

 

     <else />

$post[message]
Remember to change the X's to the ID's of your custom fields.

Enjoy!

Show Your Support

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

Comments
  #2  
Old 12-04-2006, 08:07 PM
Ntfu2 Ntfu2 is offline
 
Join Date: Feb 2006
Posts: 1,247
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Creative, good work
Reply With Quote
  #3  
Old 12-04-2006, 08:10 PM
Neo_Angelo's Avatar
Neo_Angelo Neo_Angelo is offline
 
Join Date: Dec 2005
Location: Ober Dere!
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, i know its not something special but its a starting point of me learning to code properly. hopefully now i know this i can use it to master other things. its main purpose is an addon for the other hack. otherwise its only worth installing if you needed something like that.
Reply With Quote
  #4  
Old 12-05-2006, 04:08 PM
UncoderMom UncoderMom is offline
 
Join Date: May 2006
Location: My office chair!
Posts: 567
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!!!!

Me clicks install!!
Reply With Quote
  #5  
Old 01-12-2007, 03:33 AM
obmob obmob is offline
 
Join Date: Nov 2001
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm... i think it can be quite special
I'll try it, thanks.
Reply With Quote
  #6  
Old 01-25-2007, 07:42 PM
Neo_Angelo's Avatar
Neo_Angelo Neo_Angelo is offline
 
Join Date: Dec 2005
Location: Ober Dere!
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

glad to see its come in useful ^_^
Reply With Quote
  #7  
Old 02-13-2007, 10:24 AM
BBF BBF is offline
 
Join Date: Dec 2006
Location: Israel, Netanya.
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks alot, Going to Install it
Reply With Quote
  #8  
Old 02-22-2007, 01:41 PM
X-Rated X-Rated is offline
 
Join Date: Jan 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this cod only font size setting but dont change colour or font but thread title is user font color post add on :S:S:S help me
Reply With Quote
  #9  
Old 09-19-2007, 03:25 PM
Neo_Angelo's Avatar
Neo_Angelo Neo_Angelo is offline
 
Join Date: Dec 2005
Location: Ober Dere!
Posts: 289
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This mod will not change the color of your posts nor the font of posts, it'll only change the SIZE of the font.
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 02:43 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.04832 seconds
  • Memory Usage 2,277KB
  • Queries Executed 22 (?)
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
  • (6)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete