The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Personal Font/Color in Posts Details »» | |||||||||||||||||||||||||
Personal Font/Color in Posts
by gio~logist Allow users to change what color/font their posts are in threads Via UserCP [high]Step 1[/high] [high]Go to User Profile Fields >> Add New User Profile Field[/high] Choose A "Single-Line Text Box" [high]Title:[/high] "Your Font Color In Posts" [high]Description:[/high] This is the color of the font in which will appear in your posts. (Ex: #ff0000 is red) [high]Display Size:[/high] 11 [high]Max length of allowed user input:[/high] 8 [high]HIT SAVE[/high] [high]Step 2[/high] [high]Go to User Profile Fields >> Add New User Profile Field[/high] Choose A "Single-Line Text Box" [high]Title:[/high] "Your Font In Posts" [high]Description:[/high] This is the font in which will appear in your posts. (Ex: Tahoma) [high]Display Size:[/high] 15 [high]Max length of allowed user input:[/high] 20 [high]HIT SAVE[/high] [high]Step 3[/high] Now go to edit your postbit template and search for this code: HTML Code:
$post[message] HTML Code:
<if condition="$post['fieldx'] != '' OR $post['fieldx'] != ''"> <font style="font-family:$post[fieldx]; color:$post[fieldx];">$post[message]</font> <else /> $post[message] </if> [high]HIT SAVE[/high] [high]AND WE'RE DONE![/high] [high]Addons Already Made[/high] Glowing Posts For Mods, S.Mods, and Admins [high]Planned Addons For Next Release[/high] - Nothing So Far Feel Free to Post Any Ideas/Suggestions Supporters / CoAuthors Show Your Support
|
Comments |
#42
|
||||
|
||||
hello,
for font-family + color + size following code is working: PHP Code:
|
#43
|
|||
|
|||
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 |
#44
|
|||
|
|||
<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 |
#45
|
||||
|
||||
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 |
#46
|
|||
|
|||
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]"> <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new"><strong>$post[postcount]</strong></a> </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> </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> </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&type=post&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&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&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&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&userlist=buddy&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] --> HTML Code:
<div id="post_message_$post[postid]"><if condition="$post[fieldx]"><font face="$post[fieldx]"> |
#47
|
|||
|
|||
Quote:
|
#48
|
|||
|
|||
I also had to add this to my postbit_legacy but it works great thank you :thumb:
|
#49
|
|||
|
|||
how can I set this to make it italik, underline and bold
thnx |
#50
|
|||
|
|||
excellent !!! can i translate this mod in french just for vbulletin FR http://forum.vbulletin-fr.org thank you very much !
|
#51
|
|||
|
|||
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> 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> 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 ? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|