vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - User Color/Font In Posts Editable Via Profile (https://vborg.vbsupport.ru/showthread.php?t=167487)

ChU v2 04-06-2008 03:50 PM

Quote:

Originally Posted by ChU v2 (Post 1483166)
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

My version here: https://vborg.vbsupport.ru/showthread.php?t=175282

za3bour 04-20-2008 11:45 AM

does is support font size ?

xtracate 09-21-2008 04:41 AM

This is wonderful, I cannot tell you how helpful this is I was pulling my hair out trying to make font colors work.

Thanks so much for this.

woffie 02-17-2009 09:36 AM

This works for 3.8 also. I am trying to figure out how to add font size. And, you can do a dropdown menu for the font. It makes it much easier for the members to choose a font.

woffie 02-22-2009 01:51 AM

Not sure if anyone can help me here. I did get this to work on 3.8.1. I tried to add font size and got some success, but not complete success.

I create a profile field called font size. I did a drop down menu just like I did for the font. A little different than this mod, but it makes it much easier for the members instead of writing in the font. Anyway. I changed the code to the following

PHP Code:

<if condition="$post['field10'] != '' OR $post['field12'] != '' OR $post['field13'] != ''"> <font style="font-size:$post[field13]; font-family:$post[field12]; color:$post[field10]; ">$post[message]</font> <else /> $post[message] </if> 

That replaces
$post[message]
in postbit or postbit legacy

It works if you post in the quick reply, but when the page is refreshed, it goes back to normal. It is not staying the font size. I am not a coder at all. I just tried to duplicate what was done for the other two fields. If anyone can tell me what is wrong with the code, I would greatly appreciate it.

Bigpheonix 02-22-2009 11:31 PM

Thanks, i like it a lot

oldfart22 03-26-2009 02:45 AM

First off I'm not at all a coder but messed with this for days till I got font size to work.. I made a 3rd custom field for the font size and added to the code.. Its working fine for me..

Title = Font Size In Posts
Description = This font size will appear when posting. Example: 2pt, 3pt, 4pt, 5pt, 6pt, 7pt
Max length = 15
Field Length = 25
Single-Line Text Box
Field Required = no
Field Searchable on Members List = yes
Show on Members List = yes

Last Edit your postbit or postbit legacy Template whichever one you use.
Find this code:

Code:
$post[message]Replace it with this code:

Code:
Code:

<div id="post_message_$post[postid]">
                        $ad_location[ad_showthread_firstpost_start]
                        <if condition="$post['fieldx']!= '' OR $post['fieldx']!= '' OR $post['fieldx']!= ''">
<font style="font-family:$post[fieldx];color:$post[fieldx];font style="font-size:$post[fieldx];">$post[message]</font> <else />
$post[message]

</if>

        </div>



When you edit the font size in usercp enter value like this <font size = 3pt> Not sure if you need the pt or not but it works for me..


All times are GMT. The time now is 03:32 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01113 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete