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)
-   -   Personal Font/Color in Posts (https://vborg.vbsupport.ru/showthread.php?t=93127)

Tulsa 10-17-2006 04:09 AM

To use this hack for 3.6.2

Look for this in your postbit or legacy...

Code:

<div id="post_message_$post[postid]">$post[message]</div>
</if>



Replace with this...

Code:

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

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

    <else />
        <div id="post_message_$post[postid]">$post[message]</div>
</if>


Don't forget to change the X's to whatever fields you specified originally.

Mysticales 10-17-2006 08:22 AM

I had to alter my code again.. something had messed things up... but not sure how many people use my version of the code here?

Mysticales 10-17-2006 10:31 AM

Updated my post! ^^
https://vborg.vbsupport.ru/showpost....1&postcount=76

Fixed the glitches, made it work right, now only selected usergroups can use the function, but everyone will be allowed to still see what they used. Just their own posts wont be changed unless they too are in that usergroup.

ShadowOne 10-20-2006 01:52 PM

Quote:

Originally Posted by Mysticales
Updated my post! ^^
https://vborg.vbsupport.ru/showpost....1&postcount=76

Fixed the glitches, made it work right, now only selected usergroups can use the function, but everyone will be allowed to still see what they used. Just their own posts wont be changed unless they too are in that usergroup.



When I Used Your Code... I Got An Illegal String In The Template... Oh Well... I Finally Fixed The Color And Font... Thanks Gio

Diva 10-20-2006 10:48 PM

Quote:

Originally Posted by Tulsa
To use this hack for 3.6.2

Look for this in your postbit or legacy...

Code:

<div id="post_message_$post[postid]">$post[message]</div>
</if>



Replace with this...

Code:

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

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

    <else />
        <div id="post_message_$post[postid]">$post[message]</div>
</if>


Don't forget to change the X's to whatever fields you specified originally.

Hi. I am trying to get this to work for VB3.6.2 and can't seem to figure out what I did wrong. I copied the codes, changed the fields and the font is the only thing that works. Unfortunately I want this for the color. Here is what I am using:

Code:

<!-- message -->
<if condition="$post['field8'] != '' OR $post['field8'] != ''">

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

    <else />
<div id="post_message_$post[postid]">$post[message]</div>
</if>
<!-- / message -->

Any help would be very appreciated!

Tulsa 10-21-2006 08:07 PM

Quote:

Originally Posted by Diva
Hi. I am trying to get this to work for VB3.6.2 and can't seem to figure out what I did wrong. I copied the codes, changed the fields and the font is the only thing that works. Unfortunately I want this for the color. Here is what I am using:

Code:

<!-- message -->
<if condition="$post['field8'] != '' OR $post['field8'] != ''">

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

    <else />
<div id="post_message_$post[postid]">$post[message]</div>
</if>
<!-- / message -->

Any help would be very appreciated!


You have your field#'s wrong. Try this...

Code:

<!-- message -->
<if condition="$post['field9'] != '' OR $post['field8'] != ''">

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

    <else />
<div id="post_message_$post[postid]">$post[message]</div>
</if>
<!-- / message -->


Diva 10-21-2006 10:38 PM

Quote:

Originally Posted by Tulsa
You have your field#'s wrong. Try this...

Oops! I can't believe I did that. Thank you so much Tulsa! :D

Caddyman 02-15-2007 04:10 PM

works in 3.6, thanks installed!

Mysticales 02-17-2007 11:28 PM

Quote:

Originally Posted by ShadowOne (Post 1100816)
When I Used Your Code... I Got An Illegal String In The Template... Oh Well... I Finally Fixed The Color And Font... Thanks Gio

Oh? What version? My code is for 3.5.x I mean you can see a working version on http://forums.qj.net which I have it all set. =D Added a nice feature to premium users.

TheMayhem 03-18-2007 04:18 PM

uhh, whenever I try to install this hack, it always disables Quick Edit, which sucks. Is there any way around it?


All times are GMT. The time now is 03:19 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.01298 seconds
  • Memory Usage 1,748KB
  • 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
  • (7)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