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)

thorzzzten 10-10-2005 11:12 AM

hello,

for font-family + color + size following code is working:

PHP Code:

<!-- message -->
        <
div id="post_message_$post[postid]">
                                                     <if 
condition="$post['field11'] != '' OR $post['field12'] != '' OR $post[field13] != ''">
                                                     <
font size="size:$post[field13];"</font>
                                                     <
font style="font-family:$post[field12]; color:$post[field11];">$post[message]</font>

 

     <else />

$post[message]

</if></
div>
        <!-- / 
message --> 

maybe someone can use it ;)

nymyth 10-18-2005 08:43 PM

Is there anyway we can have an option to overide that setting. For example: if my users want to use a different color in their posts then fine, however if i just want to see all posts in black, i would like to overide the color option...just for myself....its been done somewhere in a vb 3.0.6 version....

Peace

nymyth 10-18-2005 08:44 PM

<a href="https://vborg.vbsupport.ru/showthread.php?t=60031&highlight=font+color" target="_blank">https://vborg.vbsupport.ru/showt...ght=font+color</a>

Thats the one im talking about...

Peace

kallelm 10-22-2005 09:47 PM

I had to put this in my postbit legacy to get it to work, but now looks great!
Thanks for the hack!...and I did change the size too, it was a bit small at first.

INSTALL

Extreme John 11-03-2005 02:37 AM

for some reason I cant get this to work, I have another hack installed (but can't find it here to try and get rid of it), not sure if thats the issue, here's my postbit template, maybe you can help.

HTML Code:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
        $spacer_open
        <div style="padding:0px 0px $stylevar[cellpadding]px 0px">
        <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>
<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead" $scrolltothis>
                <div class="normal" style="float:$stylevar[right]">
                        &nbsp;
                        <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a> &nbsp;</if>
                        <if condition="$show['reputationlink']"><a href="#" onclick="return reputation($post[postid])"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> &nbsp;</if>
                        <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> &nbsp;</if>
                        $post[iplogged]
                </div>

                <div class="normal">
                        <!-- status icon and date -->
                        <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
                        <if condition="!$show['announcement']">
                                $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                                                                <!-- favorites -->
                                                                <if condition="$show['member'] AND (THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'showpost')"> - <a href="vbfavorites.php?$session[sessionurl]do=addentry&amp;type=post&amp;id=$post[postid]">$vbphrase[add_post_to_favorites]</a></if>
                                                                <!-- favorites -->
                        <else />
                                <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
                        </if>
                        $post[firstnewinsert]
                        <!-- / status icon and date -->
                </div>
        </td>
</tr>
<tr>
        <td class="alt2" style="padding:0px">
                <!-- user info -->
                <table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
                <tr>
                        <td nowrap="nowrap" valign="top"><table cellspacing="15" cellpadding="0" border="0"><tr><td>
                        <if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>                                <if condition="$post['uttstore_glow']"><div id="postmenu_$post[postid]" style="width:100%; filter:Glow(color=$post[uttstore_glow], strength=5);"><else /><div id="postmenu_$post[postid]"></if>
                                        <if condition="$show['profile']">
                                        <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]"><b><if condition="$post['field7'] != '' ">
<font style="font-family:$post[field8]; color:$post[field7];">$post[musername]</font>
        <else />
$post[musername]
</if></b></a>
                                        <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
                                        <else />
                                        $post[musername]
                                        </if>
                                </div>
                                <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
                                <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
                                <br>
                                <div class="smallfont">
<if condition="$post['lastactivity']"><div>$vbphrase[last_seen_loo_postbit]: $post[lastseen_date] $post[lastseen_time]</div></if>
                                        <if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
                    <if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
                                        <if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
                                        <div>
                                                $vbphrase[posts]: $post[posts]
<!-- time on board -->
<div>
<div>Threads: $post[threads]</div>
                                        <strong>Time spent on board:</strong><br /> $post[timeonboard]
                                </div>
<!-- time on board -->
<!-- gender -->
<if condition="$post[field6] != ''"><div>
                                        Gender: <img src="images/gender/$post[field6].gif" title="$post[field6]" align="center">
                                </div></if>
<!-- gender -->
<br> <if condition="$bbuserinfo['usergroupid'] == '6'"><a href="ushop.php?do=a&shortname=admindonate&userid=$post[userid]" target="_blank">$vbphrase[ucs_points]</a><else />$vbphrase[ucs_points]</if>: $points (<a href="ushop.php?do=a&shortname=donate&userid=$post[userid]" target="_blank">Donate</a>)
                                        </div>
                                        <!-- online/offline status -->
                                        <br>$post[onlinestatus]<br>
                                        <!-- /online/offline status -->
                                                                                <!--
                                        <if condition="$show['reputation']">
<if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
                                        -->

<!-- repo points -->
<if condition="$show['reputation']"><div><if condition="$show['reppower']"></div></if>
Reputation: $post[reputation] Pts | $post[reputationdisplay]
</if>
<!-- rep points -->
                                                                                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
                                </div>
                        </td></tr></table>
                        </td>
                        <td width="75%" valign="top">
                        <!-- begin -->

                                <!-- message, attachments, sig -->
                <if condition="$show['messageicon'] OR $post['title']">
                        <!-- icon and title
                        <div class="smallfont">

                                <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
                                <if condition="$post['title']"><strong>$post[title]</strong></if>
                        </div>
                        <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                        / icon and title -->

                </if>

                <!-- message -->
                <div id="post_message_$post[postid]"><if condition="$post[fieldx]"><font face="$post[fieldx]"><!-- <if condition="$post['field9'] != '' OR $post['field9'] != ''">

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

 

    <else />

$post[message]

</if> -->

<if condition="$post[deffont] || $post[defsize] || $post[defcolor]">
    <font face="$post[deffont]" size="$post[defsize]" color="$post[defcolor]">$post[message]</font>
    <else />
    $post[message]
    </if>
</font><else />$post[message]</if></div>
                <!-- / message -->

                <if condition="$show['attachments']">
                <!-- attachments -->
                        <div style="padding:$stylevar[cellpadding]px">

                        <if condition="$show['thumbnailattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_thumbnails]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[thumbnailattachments]
                                        </div>
                                </fieldset>
                        </if>

                                <if condition="$show['imageattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <div style="padding:$stylevar[formspacer]px">
                                        $post[imageattachments]
                                        </div>
                                </fieldset>
                        </if>

                        <if condition="$show['imageattachmentlink']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_images]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[imageattachmentlinks]
                                        </table>
                                        </fieldset>
                        </if>

                        <if condition="$show['otherattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attached_files]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[otherattachments]
                                        </table>
                                </fieldset>
                        </if>

                        <if condition="$show['moderatedattachment']">
                                <fieldset class="fieldset">
                                        <legend>$vbphrase[attachments_pending_approval]</legend>
                                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                                        $post[moderatedattachments]
                                        </table>
                                </fieldset>
                        </if>

                        </div>
                <!-- / attachments -->
                </if>

                <if condition="$post['signature']">
                <!-- sig -->
                        <div>
                                __________________<br />
                                $post[signature]
                        </div>
                <!-- / sig -->
                </if>
                <!-- message, attachments, sig -->
                        </td>
                </tr>
                </table>
                <!-- / user info -->

                <!-- / end -->
        </td>
</tr>
<tr>
        <td class="alt1">
                <if condition="$show['postedited']">
                <!-- edit note -->
                        <div class="smallfont">                <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
                                <em>
                                <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
                                <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
                                </em>
                        </div>
                <!-- / edit note -->
                </if>

                <div align="$stylevar[right]">
                        <!-- controls -->
                        <if condition="$post['editlink']">
                                <a href="$post[editlink]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" align="middle" border="0" /></a>
                        </if>
                        <if condition="$post['forwardlink']">
                                <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" align="middle" border="0" /></a>
                        </if>
                        <if condition="$post['replylink']">
                        <a href="$post[replylink]"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" align="middle" border="0" /></a>
                        </if>
                        <if condition="$SHOWQUICKREPLY AND !$show['threadedmode']">
                                <a href="$post[replylink]" onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" align="middle" border="0" /></a>
                        </if>

                        <!-- / controls -->
                </div>

        </td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr>
                <td class="thead">$post[username]</td>
        </tr>
        <if condition="$show['profile']">
                <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]userid=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
        </if>
        <if condition="$show['pmlink']">
                <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['emaillink']">
                <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
        </if>
        <if condition="$show['homepage']">
                <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
        </if>
        <if condition="$show['search']">
                <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
        </if>
        <if condition="$post['userid']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
        </if>
<!-- Edit popup menu by Snowy -->
<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=editsig&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><b>Edit $post[username]'s Signature</b></span></td></tr>
</if>

<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=avatar&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><b>Edit $post[username]'s Avatar</b></span></td></tr>
</if>

<if condition="$post[usergroupid]!=6 AND $post[usergroupid]!=5 AND $post[usergroupid]!=7 AND can_moderate($forum[forumid], '', $bbuserinfo[userid])">
<tr><td class="vbmenu_option"><span onmouseover="this.style.cursor='hand';" onClick="window.open('modcp/user.php?do=profilepic&userid=$post[userid]','edit','width=500,height=350,scrollbars=yes')"><b>Edit $post[username]'s Profile Picture</b></span></td></tr>
</if>
<!-- / Edit popup menu by Snowy -->
        </table>
</div>
<!-- / post $post[postid] popup menu -->
<if condition="$show['spacer']"><if condition="!$post['islastshown']"></div></if>$spacer_close</if>
<!-- / post #$post[postid] -->

I also tried removing this but than I get an error when I go to Save Changes:
HTML Code:

<div id="post_message_$post[postid]"><if condition="$post[fieldx]"><font face="$post[fieldx]">

CSGG 11-14-2005 11:16 AM

Quote:

Originally Posted by gio~logist
I do not have time to do the admin option thing. Why not just make field/dont make field editable in order to enable/disable the hack?

You want only certain usergroups to be allowed to do this?

What about so they can have bold and italics etc for future addons?

Elly 01-20-2006 01:21 AM

I also had to add this to my postbit_legacy but it works great thank you :thumb:

guv2000 01-22-2006 12:02 AM

how can I set this to make it italik, underline and bold

thnx

rom56 01-28-2006 02:25 PM

excellent !!! can i translate this mod in french just for vbulletin FR http://forum.vbulletin-fr.org thank you very much !

rom56 01-28-2006 03:27 PM

i have edit it for bold/unbold (sorry for my english i'am french ) i can do it for italic and underline if you like my bold 's add-on !

-----
Allow users to change bold/unbold in all their posts.

----
Go to User Profile Fields >> Add New User Profile Field

Choose a "Single-Line Text Box"

Title: "your text in bold ?""

Description: "write "yes" in the field if you want your text in bold" ( ex : yes )

Display Size: 11

Max length of allowed user input: 3

-----------------
In your postbit template find :
Code:

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

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

 

    <else />

$post[message]

</if>

replace with :

Code:

<if condition="$post['fieldX'] != '' OR $post['fieldX'] != '' OR $post['fieldY'] != ''">
<font face="$post[fieldX]" color="$post[fieldX]"><if condition=" $post['fieldY'] == 'yes'"><b></if>$post[message]<if condition=" $post['fieldY'] == 'yes'"></b></if></font>

 

    <else />

$post[message]

</if>

Replace the first x in the condition statement with the ID of the ?Your Font Color In Posts? profile field, and replace the second with the ?Your Font In Posts? profile field. The X in font-family will be the id for the field in which you created in the first step and the X in color will be the id for the field in which you created in the first step. Replace Y with the ID of "your text in bold?".To view the id of the field created go to the "Profile Field Manager" and find the field ID of the field you made. (This appears under the "Name" column). It should show as fieldx where x is the ID.

gio~logist say me it this modification interest you. You can post it in your hack :) can i translate it for vbulletin FR ? http://forum.vbulletin-fr.org ?

Smiry Kin's 02-09-2006 09:59 PM

work with 3.5.2 and 3.5.3?

guv2000 02-09-2006 11:38 PM

thnx much room56. it's perfect hack

BabyNameAddict 03-06-2006 03:50 AM

Beautiful!

Installed, works like a charm.

I edited it to only have users change color only.

Thanks so much! :nervous:

sunnycher 03-09-2006 05:23 PM

this didn't work for me! I did the changes.
Then went into my profile and changed my settings and then went to a new thread and typed something andit's not showing my color and font.

sunnycher 03-09-2006 05:30 PM

ok, I fixed it! Thank you!!!!!

UncoderMom 06-19-2006 03:03 AM

PHP Code:

<!-- message -->
        <
div id="post_message_$post[postid]"><if condition="$post['field6'] != '' OR $post['field7'] != '' OR $post['field8'] != ''">
<
font face="$post[field7]color="$post[field6]"><if condition=$post['field8'] == 'yes'"><b></if>$post[message]<if condition=$post['field8'] == 'yes'"></b></if></font

 

     <else />

$post[message]

</if></
div>
        <!-- / 
message --> 




Could someone tell me were to put this....font-size: 9pt; My font size shrunk!

Also, Firefox doesnt pick up the color...is there an answer for this? I notice there is a lot firefox doesnt do these days agh!

RNCS Hosting 06-29-2006 06:18 PM

Took a few tweaks but finally got it to work thank you :)

SpaceStar 07-01-2006 05:17 PM

It's not working for me either :(

tried everything mentined here - in different skins but stilllll....

SpaceStar 07-13-2006 03:45 PM

Quote:

Originally Posted by rom56
i have edit it for bold/unbold (sorry for my english i'am french ) i can do it for italic and underline if you like my bold 's add-on !


Excellent - it wasn't working for me, after replacing code described in your reply, it works fine - thanks... Your can add code for italic and underline as well please... thanks

Bubble #5 07-13-2006 07:29 PM

Quote:

Originally Posted by SpaceStar
can add code for italic and underline as well please...

Directions? :surprised:

Snake 07-14-2006 11:26 AM

Thanks!

Jeordie015 07-18-2006 10:52 PM

Is there a way to keep it from showing what color you're using in the user profile?

Morrighan256 07-20-2006 10:20 AM

I don't know if anyone has mentioned this yet, but you can also make the font option a pull-down menu. Keep in mind I know almost nothing, but instead of this:

Quote:

Step 2
Go to User Profile Fields >> Add New User Profile Field

Choose A "Single-Line Text Box"

Title: "Your Font In Posts"

Description: This is the font in which will appear in your posts. (Ex: Tahoma)

Display Size: 15

Max length of allowed user input: 20
I did:

Quote:

Step 2
Go to User Profile Fields >> Add New User Profile Field

Choose A "Single-Selection Menu"

Title: Your font in posts

Description: Select the font you would like to set as default for your posts.

Options:

Arial
Arial Black
Arial Narrow
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Franklin Gothic Medium
Garamond
Georgia
Impact
Lucida Console
Lucida Sans Unicode
Microsoft Sans Serif
Palatino Linotype
System
Tahoma
Times New Roman
Trebuchet MS
Verdana

Set default: Yes, but No First Blank Option

Field Required: No

Field editable by user: Yes
It's easier, because (from my understanding) they don't have to try to guess what fonts are available. They just click the pull-down and select. Everything else is the same.

It's working in my forum, anyway. ;)

Bubble #5 07-20-2006 08:31 PM

Quote:

Originally Posted by Morrighan256
It's easier, because they don't have to try to guess what fonts are available.

Great improvement Morrighan256 :)

Bubble #5 07-20-2006 11:07 PM

Quote:

Originally Posted by thorzzzten
for font-family + color + size following code is working

Not for 3.6 it's not :( Size part is what doesn't work.

Cithiz 08-13-2006 08:06 PM

this is working on 3.5.4?

Cybertims 08-14-2006 07:49 AM

Quote:

Originally Posted by Morrighan256
I don't know if anyone has mentioned this yet, but you can also make the font option a pull-down menu. Keep in mind I know almost nothing, but instead of this:



I did:



It's easier, because (from my understanding) they don't have to try to guess what fonts are available. They just click the pull-down and select. Everything else is the same.

It's working in my forum, anyway. ;)

Any chance of a drop down for the colours too?

Cheers.

forzablues 08-16-2006 06:10 PM

<div id="post_message_$post[postid]"><if condition="$post['field9'] != '' OR $post['field10'] != ''">

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

hmm not working for me.

Font colour = field 9
Font = field10

if i done it wrong can u correct it for me please

cOuNtErFiET 08-16-2006 10:25 PM

anyway to get this applied to the vbShout some members have been complaining that they want the font color they pick to stay instead of having to re-pick the color when they refresh or click on another forum and all of that...im sure just have to edit the vbshout code to call the if statement right? Below is what im thinkning...

Code:

<if condition="$post['fieldx'] != '' OR $post['fieldx'] != ''">
<font style="font-family:$post[fieldx]; color:$post[fieldx];">POST_SHOUTBOX_MESSAGE</font>
<else />
POST_SHOUTBOX_MESSAGE
</if>


Cithiz 08-18-2006 10:03 AM

this hack most important for me!
this hack use together 3.5.4, and then give me your add commands code please

Mysticales 08-19-2006 10:03 PM

Hey I studied all replies here and combinded it one step more.
In your post bit, find the <!-- message --> bars and take it from there with the code below to replace the whole section.

Code:

<!-- message -->
                <div id="post_message_$post[postid]">
        <if condition="$post['fieldX'] != '' OR $post['fieldY'] != '' AND is_member_of($bbuserinfo, Z)">
<font style="font-family:$post[fieldX]; color:$post[fieldY];">$post[message]</font>
</div>

    <else />

$post[message]

</if>

</div>
                <!-- / message -->

What this is designed for? Forums that like to use usergroups (Secondary or primary!) for unlockable bonuses (Paid subscription, point store bought usergroups etc)

Meaning, long as your a active status in "x" usergroup, it will then display your other font edits.

I tested it out, fully works, changed all my posts etc, then tested it when I removed the usergroup status, and back to default everything went. =)

I "might" add bold or italic function to it too. I know I could ALSO do mod/admin type setups.. however, I rather not force my mods/admins to be stuck with what I give em. ;) Then glow looks ugly some.. not to mention most everyone on forums is a FireFox user.

Anyways hope this can help someone too. =)

Cithiz 08-20-2006 06:16 AM

Thanks Mysticales,

working now :)

tandy 08-24-2006 04:59 PM

Is there a chance we have this hack for vb 3.60

Harley-Heaven 08-25-2006 07:50 AM

Not working for me in 3.5.4, have posted my postbit template here with the changed code in red.... can anyone tell me where I am going wrong please???

Thanks.

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
$spacer_open
<div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px">
<if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if>
</if>


<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead" $post[scrolltothis]>
<div class="normal" style="float:$stylevar[right]">
&nbsp;
<if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a> &nbsp;</if>
<if condition="$show['reputationlink']"><a href="reputation.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" border="0" /></a> &nbsp;</if>
<if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a> &nbsp;</if>
$post[iplogged]
<if condition="$show['inlinemod']">
<input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" />
</if>
</div>

<div class="normal">
<!-- status icon and date -->
<a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a>
<if condition="!$show['announcement']">
$post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
<else />
<phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
</if>
$post[firstnewinsert]
<!-- / status icon and date -->
</div>
</td>
</tr>
<tr>
<td class="alt2" style="padding:0px">
<!-- user info -->
<table cellpadding="0" cellspacing="$stylevar[cellpadding]" border="0" width="100%">
<tr>
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td></if>
<td nowrap="nowrap">

<!-- vbPlaza start -->
<div id="postmenu_$post[postid]" <if condition="$post['namestyle']">style="$post[namestyle]"</if>>
<!-- vbPlaza end -->
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
$post[onlinestatus]
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

<!-- vbPlaza start -->
<if condition="$post['usertitle']"><div class="smallfont" <if condition="$post['titlestyle']">style="$post[titlestyle]"</if>>$post[usertitle]</div></if>
<!-- vbPlaza end -->
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>

</td>
<td width="100%">&nbsp;</td>
<td valign="top" nowrap="nowrap">

<div class="smallfont">
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
<!-- vbPlaza start -->
<if condition="$show['pointsinpostbit']"><br />
$vbphrase[vbbux_points]: $post[points]<br />
$vbphrase[vbbux_bank]: $post[bank]<br />
<phrase 1="$vbphrase[vbbux_points]">$vbphrase[vbbux_total_points]</phrase>: $post[totalpoints]<br />
<a href="vbplaza.php?do=donate&amp;userid=$post[userid]">$vbphrase[vbplaza_donate]</a><br />
</if>
<!-- vbPlaza end -->
</div>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower] </if><div>$post[reputationdisplay]</div></if>
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
<if condition="$show['sports_icons']"><div>$post[sportsicons]</div><br /></if>
<!-- vbPlaza start -->
<if condition="$post['giftsdisplay']"><div class="smallfont">$post[giftsdisplay]</div></if>
<if condition="$post['ribbonsdisplay']"><div class="smallfont">$post[ribbonsdisplay]</div></if>
<!-- vbPlaza end -->
</div>

</td>
</tr>
</table>
<!-- / user info -->
</td>
</tr>
<tr>
<td class="alt1" id="td_post_$post[postid]">
<!-- message, attachments, sig -->

<if condition="$show['messageicon'] OR $post['title']">
<!-- icon and title -->
<div class="smallfont">
<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
<if condition="$post['title']"><strong>$post[title]</strong></if>
</div>
<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<!-- / icon and title -->
</if>

<!-- message -->
<div id="post_message_$post[postid]"><if condition="$post['field23'] != '' OR $post['field24'] != ''">
<font style="font-family:$post[field24]; color:$post[field23];">$post[message]</font>

+
++++ <else />
$post[message]
</if>]</div>
<!-- / message -->

<if condition="$show['attachments']">
<!-- attachments -->
<div style="padding:$stylevar[cellpadding]px">

<if condition="$show['thumbnailattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_thumbnails]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[thumbnailattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<div style="padding:$stylevar[formspacer]px">
$post[imageattachments]
</div>
</fieldset>
</if>

<if condition="$show['imageattachmentlink']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_images]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[imageattachmentlinks]
</table>
</fieldset>
</if>

<if condition="$show['otherattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attached_files]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[otherattachments]
</table>
</fieldset>
</if>

<if condition="$show['moderatedattachment']">
<fieldset class="fieldset">
<legend>$vbphrase[attachments_pending_approval]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
$post[moderatedattachments]
</table>
</fieldset>
</if>

</div>
<!-- / attachments -->
</if>

<if condition="$post['signature']">
<!-- sig -->
<div>
<br />
$post[signature]
</div>
<!-- / sig -->
</if>

<if condition="$show['postedited']">
<!-- edit note -->
<div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
<em>
<phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>.
<if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if>
</em>
</div>
<!-- / edit note -->
</if>

<div align="$stylevar[right]">
<!-- controls -->
<if condition="$post['editlink']">
<a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a>
</if>
<if condition="$post['forwardlink']">
<a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a>
</if>
<if condition="$post['replylink']">
<a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a>
</if>
<if condition="$show['quickreply'] AND !$show['threadedmode']">
<a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a>
</if>
<if condition="$show['moderated']">
<img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" />
</if>
<!-- / controls -->
</div>

<!-- message, attachments, sig -->

</td>
</tr>
</table>

<!-- post $post[postid] popup menu -->
<div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$post[username]</td>
</tr>
<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid'] AND $show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr>
</if>
</table>
</div>
<!-- / post $post[postid] popup menu -->




<if condition="$show['spacer']">
</div>
$spacer_close
</if>
<!-- / post #$post[postid] -->

Cithiz 08-25-2006 03:53 PM

<!-- message -->
<div id="post_message_$post[postid]"><if condition="$post['field23'] != '' OR $post['field24'] != ''">
<font style="font-family:$post[field23]; color:$post[field24];">$post[message]</font>
+
++++ <else />
$post[message]
</if>]</div>
<!-- / message -->

you use this. if your font field number 23 , color 24.. or change numbers.

Mysticales 08-25-2006 11:48 PM

I have made a "slight" modification.
As most of you know, when making the "New profile field" use the option "Single drop down menu" and for the list. (See below)
Then "Set Default, Yes, But No First Blank Option"
Then just do your normal title, desc etc, and in the options field, paste this list.
Code:

DoNotUse
Arial
Arial Black
Arial Narrow
Book Antiqua
Century Gothic
Comic Sans MS
Courier New
Franklin Gothic Medium
Garamond
Georgia
Impact
Lucida Console
Lucida Sans Unicode
Microsoft Sans Serif
Palatino Linotype
System
Tahoma
Times New Roman
Trebuchet MS
Verdana

Updated Code.

Code:

<!-- message -->
                <div id="post_message_$post[postid]">
<if condition="is_member_of($post, X)">
<if condition="$post['fieldY] != 'DoNotUse' OR $post['fieldZ'] !=' '">
<font style="font-family:$post[fieldY]; color:$post[fieldZ];">
$post[message]
</font></div></if>

    <else />

$post[message]
</div>
</if>

                <!-- / message -->

This was a fix I did the same night because some users told me that once you select a font.. you cant get back to "Default" which is what you have your browser set to. (maybe you have a custom one?) etc, so the new code and list will allow users to choose not to use it and the code will reconize that and restore the default based on the user themself.

I may update again if I add bold and italic options to the list, but so far, my Premium users are loving this exclusive feature. =)

OCT 17 2006 Update:

I updated the above code. This time.. I believe it is stable, I changed it to look at the POSTERS usergroup vs the bbuser flag which caused some issues... The change? Well... BEFORE it turned out that ONLY members OF that allowed usergroup were able to see others with custom font/color, whereas regular users/guests would only see black. Which was in error. Now ANYONE can see the "allowed" usergroups custom color/font. Long as the user of the "x" post is part of the "x" assigned usergroup, the forums will pull the data from that users field profile on custom font/color and apply it.

If they are not part of the "x" allowed group, then it will just be a normal looking post. So NOW its working as intended for a special or paid usergroup, where everyone else can see they have custom stuff, but cant use it themselves unless they are also in that group.

Jeordie015 09-01-2006 10:54 PM

How would you be able to add the bold or italics feature, but without having to type in "yes" in a text box? Is it possible to do it so you'd have yes and no radio buttons?

Like this:

Bold Font? oYes oNo

Zelos 09-06-2006 10:20 PM

Does this work with 3.6?

Joe Gronlund 10-13-2006 02:50 PM

Any chance of getting this updated for vB 3.6.x??

UncoderMom 10-14-2006 03:19 PM

Quote:

Originally Posted by Joe Gronlund
Any chance of getting this updated for vB 3.6.x??

Same ?


All times are GMT. The time now is 09:20 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.01864 seconds
  • Memory Usage 2,078KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (9)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
  • (40)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