vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Default Posting Font (https://vborg.vbsupport.ru/showthread.php?t=97544)

Snake 10-14-2005 11:10 AM

Quote:

Originally Posted by JJR512
If you're referring to the colors request, see post #23 above. :)

Thanks but I was looking for a better version for the color hack... :)

JJR512 10-14-2005 12:14 PM

I haven't had the chance to actually install the version with the color selector, because I don't plan on using it myself. So I haven't really seen it in action. But I had assumed it was just another drop-down selector box, like the font name.

What, exactly, is it that you would like to see; how can it be made better?

Colejo 10-15-2005 02:24 AM

Is this not the same as this https://vborg.vbsupport.ru/showthrea...ight=user+font ?

I only ask because I want something like this but I want the one that works the best.

Snake 10-15-2005 07:16 PM

Quote:

Originally Posted by JJR512
I haven't had the chance to actually install the version with the color selector, because I don't plan on using it myself. So I haven't really seen it in action. But I had assumed it was just another drop-down selector box, like the font name.

What, exactly, is it that you would like to see; how can it be made better?

Well I am hoping to see it exactly like the way you've done for default font hack, with the drop-down list and all that kind of stuff.

Snake 10-15-2005 07:20 PM

Here's what I mean. If you could do something similar like the below image, that would be cooL!

http://img153.imageshack.us/img153/9...stcolor5sa.jpg

Colejo 10-18-2005 09:04 AM

Quote:

Originally Posted by The Wise One
this is what i did to get the color options. the file is attached.

*Note: this is an add on to the original mod. all i did was replicate the instructions from the original mod and modified where appropriate.

I added font size in the Profile Field also but I'm messing something up in the code to add to the postbit I'm probably missing an if or > when I tried to add the extra condition for the size. I'm sure if I try a few times I can get it but I was wondering if you can put in that 3rd condition?

The Wise One 10-18-2005 09:25 AM

Quote:

Originally Posted by Colejo
I added font size in the Profile Field also but I'm messing something up in the code to add to the postbit I'm probably missing an if or > when I tried to add the extra condition for the size. I'm sure if I try a few times I can get it but I was wondering if you can put in that 3rd condition?

this should work for the conditional in postbit:

Code:

<div id="post_message_$post[postid]"><if condition="$post[fieldX]"><font face="$post[fieldX]"<if condition="$post[fieldX]"> color="$post[fieldX]"</if><if condition="$post[fieldX]"> size="$post[fieldX]"</if>>$post[message]</font><else />$post[message]</if></div>
remember to change X to the field ID # of the field you created for size.

Colejo 10-18-2005 09:31 AM

Quote:

Originally Posted by The Wise One
this should work for the conditional in postbit:

Code:

<div id="post_message_$post[postid]"><if condition="$post[fieldX]"><font face="$post[fieldX]"<if condition="$post[fieldX]"> color="$post[fieldX]"</if><if condition="$post[fieldX]"> size="$post[fieldX]"</if>>$post[message]</font><else />$post[message]</if></div>
remember to change X to the field ID # of the field you created for size.

That did it thanks.

TechDawgFan 10-18-2005 02:27 PM

I got a question here. I've set up my custom fields for font face and size (not going to do color) and edited the postbit and postbit_legacy templates as described in post #37 (The Wise One). I noticed three things.

1. Not only do my new posts show up with my default font and size, but all of my previous posts do as well. Why? What if I don't WANT my old posts to have the new defaults applied?

2. If the default size, but NOT font is selected in my options, the post uses the board default with no change to size.

3. If I log out and view my new post with a default font and size applied, I see the board default, NOT the default, so I am the only one able to see my defaults. Why? Will guests and other members be able to see the formatted text or not?

TDF

JJR512 10-18-2005 03:46 PM

1. The font is applied to a message when it is displayed, that's why you make changes to the postbit and postbit_legacy templates. This is by design. The only other way I could think of to use a default font would be to put the font tags inside the message that gets stored in the database, which because of the permanence of that, I didn't want to do.

2. I don't know about this, I haven't actually used the version with the size option myself.

3. I'll look into that...


All times are GMT. The time now is 06:16 AM.

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.01148 seconds
  • Memory Usage 1,745KB
  • 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
  • (2)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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