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)

Gio~Logist 07-28-2005 10:00 PM

Personal Font/Color in Posts
 
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]
Replace it with this

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>

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. 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.


[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

Gio~Logist 07-29-2005 11:10 AM

Zip Updated.....Hope You All Like

yoyoyoyo 07-29-2005 11:11 AM

how is this different than the one you released yesterday?
Users Choose Username Font/Color Posts
https://vborg.vbsupport.ru/showthread.php?t=93099

Gio~Logist 07-29-2005 11:32 AM

Quote:

Originally Posted by yoyoyoyo
Users Choose Username Font/Color Posts

You just answered your own Q.

That hack changes the color/font of your USERNAME in posts, this hack changes the color/font of your POSTS themselves.

pimpery 07-29-2005 11:36 AM

Quote:

Originally Posted by gio~logist
You just answered your own Q.

That hack changes the color/font of your USERNAME in posts, this hack changes the color/font of your POSTS themselves.

why not combine the two hacks while you are at it?

yoyoyoyo 07-29-2005 11:39 AM

Quote:

Originally Posted by pimpery
why not combine the two hacks while you are at it?

that's why I was confused... these should probably both be in the same hack, with the admin option to install one or the other or both features, as well as WOL. Also, usergroup permissions to only allow pre-specified usergroups to have the option appear in the user cp options would be nice.

Gio~Logist 07-29-2005 11:49 AM

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?

yoyoyoyo 07-29-2005 11:56 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?

Yes, I think that would be a much-needed option. Any perks you can give to Mods/certain usergroups are a bonus.

normandyq8 07-30-2005 11:07 AM

thank you

sweet i will installed :D

Gio~Logist 07-30-2005 03:14 PM

Quote:

Originally Posted by yoyoyoyo
Yes, I think that would be a much-needed option. Any perks you can give to Mods/certain usergroups are a bonus.

Glowing Font In Posts


[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] "Glow For Moderators and Admins"

[high]Description:[/high] This is the glow color of the font in which will appear in your posts. (Ex: #ff0000 is red) <font color="red"> This Will Only Work For Moderators and Administrators.

[high]Display Size:[/high] 11

[high]Max length of allowed user input:[/high] 8


[high]HIT SAVE[/high]

[high]Step 3[/high]
Now go to edit your postbit template and search for this code:

HTML Code:

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

HTML Code:

<if condition="$bbuserinfo['usergroupid'] == '6' OR $bbuserinfo['usergroupid'] == '7' OR $bbuserinfo['usergroupid'] == '5'">
<div style="font-style:normal;filter:Glow(color=$post[fieldx],strength=1);height:14px;">
<font style="font-family:$post[fieldx]; color:$post[fieldx];">$post[message]</font>
</div>

    <else />

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

</if>


Replace the X in the <div style= tag with the field ID for the field we just created.


[high]HIT SAVE[/high]

[high]AND WE'RE DONE![/high]


This will make it so that mods, s mods, and admins can have glowing posts.

Brinnie 08-03-2005 08:02 PM

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?


hello!
some of us don't know how to do that kind of ++++ yet.
some of us just installed vB last week!
not everyone is a php guru like u. :p


That said, does this hack effect text formating used in the posts?

Brinnie 08-03-2005 08:41 PM

Quote:

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. 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.
x, x, x,x... Got somethin again y?

Gio~Logist 08-04-2005 01:19 AM

Lmao you can't use Y in fields... atleast i don't think so... i will get to work on the admin option thing ASAP, i've been extremely busy lately

Brinnie 08-04-2005 01:27 AM

Quote:

Originally Posted by gio~logist
Lmao you can't use Y in fields... atleast i don't think so... i will get to work on the admin option thing ASAP, i've been extremely busy lately

before the admin thing, you might wanna make it work in quotes. :ninja:

Brinnie 08-04-2005 01:47 AM

btw, do you know why some colors (#540000) don't work?

Gio~Logist 08-04-2005 01:04 PM

i dont see why a certain color woulrnd work as long as you make sure to put the # (for firefox). why doesn't that one work? what happens?

jesus likes pie 08-16-2005 01:11 AM

/me installs

Bubble #5 08-18-2005 09:24 PM

THANK YOU gio~logist for all of your hard work and effort that you've put into this. It IS appreciated :)

Extreme John 08-23-2005 11:55 PM

For whatever reason mine's not working...

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

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

Is this right??

Gio~Logist 08-24-2005 11:14 PM

Quote:

Originally Posted by Bubble #5
THANK YOU gio~logist for all of your hard work and effort that you've put into this. It IS appreciated :)

Thank you, i appreciate that

Gio~Logist 08-24-2005 11:15 PM

Quote:

Originally Posted by Extreme John
For whatever reason mine's not working...

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

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


Is this right??


It depends.... is field 5 and 6 the fields you made? Also, what happens when you install?

HHU 09-16-2005 05:07 AM

This is greatly appreciated Gio.... one thing... when I do change it, it makes the font smaller.

But this is exactly what I was looking for thanks

eNforce 09-16-2005 06:37 PM

Anyone know why only Administrators can see the custom fonts?

Gio~Logist 09-16-2005 06:59 PM

Lol what code did you use?

eNforce 09-16-2005 07:00 PM

I followed the exact instructions in the first post, on my board only administrators can see the custom colors and fonts.

Gio~Logist 09-16-2005 07:34 PM

Post your whole postbit file and i will take a look.

Also, did you make this field a private field?

eNforce 09-16-2005 07:36 PM

Yeah I did make it private, both fields.

Code:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
        $spacer_open
        <if condition="!$post['islastshown']">
                <div style="padding:0px 0px 0px 0px">
        <else />
        <if condition="$post['toppadding']">
                <div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
        </if>
        </if>
        <div id="edit$post[postid]">
</if>

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr valign="top">
        <td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" width="200">
                       
                        <div id="postmenu_$post[postid]">
                                <if condition="$show['profile']">
                                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</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>
                        <if condition="$show['avatar']">
                                <div class="smallfont">
                                        &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                                </div>
                        </if><br>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<if condition="$post[field8] != Undisclosed"><div>Country: <img src="$stylevar[imgdir_misc]/flags/$post[field8].gif" alt="$post[field8]" align="center" /></if><if condition="$post[field8] == 'United States' AND $post[field9] != 'Undisclosed'"> | <img src="$stylevar[imgdir_misc]/flags/states/$post[field9].gif" alt="$post[field9]" align="center" /></if>
<if condition="$post[field9] == 'Austria' OR $post[field9] == 'Belgium' OR $post[field9] == 'Cyprus' OR $post[field9] == 'Czech Republic' OR $post[field9] == 'Denmark' OR $post[field9] == 'Estonia' OR $post[field9] == 'Finland' OR $post[field9] == 'France' OR $post[field9] == 'Germany' OR $post[field9] == 'Greece' OR $post[field9] == 'Hungary' OR $post[field9] == 'Ireland' OR $post[field9] == 'Italy' OR $post[field9] == 'Latvia' OR $post[field9] == 'Lithuania' OR $post[fieldY] == 'Luxembourg' OR $post[fieldY] == 'Malta' OR $post[fieldY] == 'The Netherlands' OR $post[field9] == 'Poland' OR $post[field9] == 'Portugal' OR $post[field9] == 'Slovakia' OR $post[field9] == 'Slovenia' OR $post[field9] == 'Spain' OR $post[field9] == 'Sweden' OR $post[field9] == 'United Kingdom'"> | <img src="$stylevar[imgdir_misc]/flags/European Union.gif" alt="European Union" align="center" /></if><if condition="$post[field8] == 'Canada' AND $post[field10] != 'Undisclosed'"> | <img src="$stylevar[imgdir_misc]/flags/provinces/$post[field10].gif" alt="$post[field10]" align="center" /></if></div>
                <if condition="$show['warning']"><br /><br /><div class="smallfont">$post[warning]</div></if>               
                        <div class="smallfont">
                                &nbsp;<br />
  <!-- checks for warning system -->
  <if condition="THIS_SCRIPT=='showthread' AND $buttons=='Text'">
        <if condition="$showwarnlink==1">
        <if condition="$vboptions['warn_allownotes']==1">
  <a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'>Add Note for $post[username]</a>&nbsp;</if>
                <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a>&nbsp;
        </if>
        <if condition="$showviewwarnlink==1">
                <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View  Warnings</a>&nbsp;
        </if>
        <if condition="$showviewyourslink==1">
                <a href='Warn.php?do=ViewMyWarnings'>View Warnings</a> &nbsp;
        </if>
  </if>
  <if condition="THIS_SCRIPT=='showthread' AND $buttons=='Buttons'">
        <if condition="$showwarnlink==1">
        <if condition="$vboptions['warn_allownotes']==1">
        <a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Add Note for $post[username]" accesskey="n" onClick="window.location='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
        </if>
                <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="window.location='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
        </if>
        <if condition="$showviewwarnlink==1">
                <a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View  Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$post[userid]'"></a>&nbsp;
        </if>
        <if condition="$showviewyourslink==1">
                <a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View My Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a>&nbsp;
        </if>
  </if>
  <!-- end of warning system -->
                                                               
                                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
                        </div>                                       
               
        </td>
  <if condition="$show['moderated']">
  <td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" id="td_post_$post[postid]">
  <else />
  <td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" id="td_post_$post[postid]">
  </if>
        <if condition="$show['messageicon'] OR $post['title'] OR (THIS_SCRIPT=='showthread' AND $showwarnsignmgm==1) OR (THIS_SCRIPT=='showthread' AND $showwarnsign==1)">
                <TABLE width=100%><TR>
                        <TD width=90%>
                        <!-- 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>
                        <!-- / icon and title -->
                        </td>
                        <TD width=10% align="$stylevar[right]">
                        <!-- Show warned sign -->
                        <if condition="THIS_SCRIPT=='showthread'">
                                <if condition="$showwarnsignmgm==1">
                                      <!-- Mgm can click on the stop sign to see the warnings -->
                                      <A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
                                </if>
                               
                                <if condition="$showwarnsign==1">
                                      <!-- Simple Users can only see the warn sign but not the warnings -->
                                      <img src="images/misc/warn.gif" border=0>
                                </if>
                        </if>
                        <!-- End of show warned sign -->
                        </td>
                </tr></table>
                <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
        </if>       
               
                <!-- message -->
  <if condition="$pnotes!='' AND $vboptions['warn_allownotes']==1">
  <table border="1" width="100%" align="center" class="alt2">
  <tr>
  <td align="center" class="thead" colspan="4">
  <div class="smallfont">The following notes have been entered for this user</div>
  </td>
  </tr>
  <tr>
  <td align="center" class="smallfont" width="10%">
  Moderator
  </td>
  <td align="center" class="smallfont" width="15%">
  Time
  </td>
  <td align="center" class="smallfont">
  Moderator Note
  </td>
  <td width="5%" class='smallfont' align='center'>
  Remove
  </td>
  </tr>
  $pnotes
  </table>
  <br>
  </if>       
                <div id="post_message_$post[postid]"><if condition="$post['field11'] != '' OR $post['field12'] != ''">

<font style="font-family:$post[field12]; color:$post[field11];">$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>
       
        </td>
</tr>
<tr>
        <td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>">
                $post[onlinestatus]
                <if condition="$show['reputationlink']"><a href="#" onclick="reputation($post[postid]); return false;"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></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></if>
                $post[iplogged]
                &nbsp;
                        <span class="smallfont">
                        <if condition="!$show['start_until_end']">
                                $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        <else />
                                <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
                        </if>
                        </span>
        </td>
        <if condition="$show['moderated']">
        <td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" align="$stylevar[left]">
        <else />
        <td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" align="$stylevar[left]">
        </if>
                <!-- 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>
<if condition="$show['postcount']">#&nbsp;<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow"><strong>$post[postcount]</strong></a></if>
                        <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>
                </td>
                <!-- / controls -->
        </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]"><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_more_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><if condition="!$post['islastshown']"></div></if>$spacer_close</if>
<!-- / post #$post[postid] -->


Gio~Logist 09-16-2005 07:41 PM

Quote:

Originally Posted by eNforce
Yeah I did make it private, both fields.

Code:

<!-- post #$post[postid] -->
<if condition="$show['spacer']">
        $spacer_open
        <if condition="!$post['islastshown']">
                <div style="padding:0px 0px 0px 0px">
        <else />
        <if condition="$post['toppadding']">
                <div style="padding:$stylevar[cellpadding]px 0px 0px 0px">
        </if>
        </if>
        <div id="edit$post[postid]">
</if>

<table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr valign="top">
        <td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" width="200">
                       
                        <div id="postmenu_$post[postid]">
                                <if condition="$show['profile']">
                                <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</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>
                        <if condition="$show['avatar']">
                                <div class="smallfont">
                                        &nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
                                </div>
                        </if><br>
<if condition="$show['reputation']"><div><if condition="$show['reppower']">$vbphrase[reppower]: $post[reppower]</if>$post[reputationdisplay]</div></if>
<if condition="$post[field8] != Undisclosed"><div>Country: <img src="$stylevar[imgdir_misc]/flags/$post[field8].gif" alt="$post[field8]" align="center" /></if><if condition="$post[field8] == 'United States' AND $post[field9] != 'Undisclosed'"> | <img src="$stylevar[imgdir_misc]/flags/states/$post[field9].gif" alt="$post[field9]" align="center" /></if>
<if condition="$post[field9] == 'Austria' OR $post[field9] == 'Belgium' OR $post[field9] == 'Cyprus' OR $post[field9] == 'Czech Republic' OR $post[field9] == 'Denmark' OR $post[field9] == 'Estonia' OR $post[field9] == 'Finland' OR $post[field9] == 'France' OR $post[field9] == 'Germany' OR $post[field9] == 'Greece' OR $post[field9] == 'Hungary' OR $post[field9] == 'Ireland' OR $post[field9] == 'Italy' OR $post[field9] == 'Latvia' OR $post[field9] == 'Lithuania' OR $post[fieldY] == 'Luxembourg' OR $post[fieldY] == 'Malta' OR $post[fieldY] == 'The Netherlands' OR $post[field9] == 'Poland' OR $post[field9] == 'Portugal' OR $post[field9] == 'Slovakia' OR $post[field9] == 'Slovenia' OR $post[field9] == 'Spain' OR $post[field9] == 'Sweden' OR $post[field9] == 'United Kingdom'"> | <img src="$stylevar[imgdir_misc]/flags/European Union.gif" alt="European Union" align="center" /></if><if condition="$post[field8] == 'Canada' AND $post[field10] != 'Undisclosed'"> | <img src="$stylevar[imgdir_misc]/flags/provinces/$post[field10].gif" alt="$post[field10]" align="center" /></if></div>
                <if condition="$show['warning']"><br /><br /><div class="smallfont">$post[warning]</div></if>               
                        <div class="smallfont">
                                &nbsp;<br />
  <!-- checks for warning system -->
  <if condition="THIS_SCRIPT=='showthread' AND $buttons=='Text'">
        <if condition="$showwarnlink==1">
        <if condition="$vboptions['warn_allownotes']==1">
  <a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'>Add Note for $post[username]</a>&nbsp;</if>
                <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'>Warn $post[username]</a>&nbsp;
        </if>
        <if condition="$showviewwarnlink==1">
                <a href='Warn.php?do=ViewWarnings&id=$post[userid]'>View  Warnings</a>&nbsp;
        </if>
        <if condition="$showviewyourslink==1">
                <a href='Warn.php?do=ViewMyWarnings'>View Warnings</a> &nbsp;
        </if>
  </if>
  <if condition="THIS_SCRIPT=='showthread' AND $buttons=='Buttons'">
        <if condition="$showwarnlink==1">
        <if condition="$vboptions['warn_allownotes']==1">
        <a href='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Add Note for $post[username]" accesskey="n" onClick="window.location='Warn.php?do=NoteUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
        </if>
                <a href='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'><input type="button" class="button" name="warn" value="Warn $post[username]" accesskey="w" onClick="window.location='Warn.php?do=WarnUser&id=$post[userid]&post=$post[postid]'"></a> &nbsp;
        </if>
        <if condition="$showviewwarnlink==1">
                <a href='Warn.php?do=ViewWarnings&id=$post[userid]'><input type="button" class="button" name="warn" value="View  Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewWarnings&id=$post[userid]'"></a>&nbsp;
        </if>
        <if condition="$showviewyourslink==1">
                <a href='Warn.php?do=ViewMyWarnings'><input type="button" class="button" name="warn" value="View My Warnings" accesskey="v" onClick="window.location='Warn.php?do=ViewMyWarnings'"></a>&nbsp;
        </if>
  </if>
  <!-- end of warning system -->
                                                               
                                <div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div>
                        </div>                                       
               
        </td>
  <if condition="$show['moderated']">
  <td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" id="td_post_$post[postid]">
  <else />
  <td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" id="td_post_$post[postid]">
  </if>
        <if condition="$show['messageicon'] OR $post['title'] OR (THIS_SCRIPT=='showthread' AND $showwarnsignmgm==1) OR (THIS_SCRIPT=='showthread' AND $showwarnsign==1)">
                <TABLE width=100%><TR>
                        <TD width=90%>
                        <!-- 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>
                        <!-- / icon and title -->
                        </td>
                        <TD width=10% align="$stylevar[right]">
                        <!-- Show warned sign -->
                        <if condition="THIS_SCRIPT=='showthread'">
                                <if condition="$showwarnsignmgm==1">
                                      <!-- Mgm can click on the stop sign to see the warnings -->
                                      <A HREF="Warn.php?do=ViewPostWarnings&post=$post[postid]"  onclick="window.open('Warn.php?do=ViewPostWarnings&post=$post[postid]','','width=1000, height=500, resizable=yes, scrollbars=yes'); return false;" target="_blank"><img src="images/misc/warn.gif" border=0></a>
                                </if>
                               
                                <if condition="$showwarnsign==1">
                                      <!-- Simple Users can only see the warn sign but not the warnings -->
                                      <img src="images/misc/warn.gif" border=0>
                                </if>
                        </if>
                        <!-- End of show warned sign -->
                        </td>
                </tr></table>
                <hr size="1" style="color:$stylevar[tborder_bgcolor]" />
        </if>       
               
                <!-- message -->
  <if condition="$pnotes!='' AND $vboptions['warn_allownotes']==1">
  <table border="1" width="100%" align="center" class="alt2">
  <tr>
  <td align="center" class="thead" colspan="4">
  <div class="smallfont">The following notes have been entered for this user</div>
  </td>
  </tr>
  <tr>
  <td align="center" class="smallfont" width="10%">
  Moderator
  </td>
  <td align="center" class="smallfont" width="15%">
  Time
  </td>
  <td align="center" class="smallfont">
  Moderator Note
  </td>
  <td width="5%" class='smallfont' align='center'>
  Remove
  </td>
  </tr>
  $pnotes
  </table>
  <br>
  </if>       
                <div id="post_message_$post[postid]"><if condition="$post['field11'] != '' OR $post['field12'] != ''">

<font style="font-family:$post[field12]; color:$post[field11];">$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>
       
        </td>
</tr>
<tr>
        <td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>">
                $post[onlinestatus]
                <if condition="$show['reputationlink']"><a href="#" onclick="reputation($post[postid]); return false;"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></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></if>
                $post[iplogged]
                &nbsp;
                        <span class="smallfont">
                        <if condition="!$show['start_until_end']">
                                $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if>
                        <else />
                                <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase>
                        </if>
                        </span>
        </td>
        <if condition="$show['moderated']">
        <td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" align="$stylevar[left]">
        <else />
        <td class="<if condition="$post[postcount] % 2">alt2<else />alt1</if>" align="$stylevar[left]">
        </if>
                <!-- 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>
<if condition="$show['postcount']">#&nbsp;<a href="showpost.php?$session[sessionurl]p=$post[postid]&amp;postcount=$post[postcount]" target="new" rel="nofollow"><strong>$post[postcount]</strong></a></if>
                        <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>
                </td>
                <!-- / controls -->
        </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]"><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_more_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><if condition="!$post['islastshown']"></div></if>$spacer_close</if>
<!-- / post #$post[postid] -->



There you go..... only admins can view private fields...

eNforce 09-16-2005 07:50 PM

It only works right after posting, after refreshing it goes back to default white text... when the profile fields are set to private.

When not set to private it's fine :ermm:

If you find the problem could you please post what code you change, for future reference? :)

Gio~Logist 09-16-2005 08:26 PM

<font size="7">WHY ARE YOU SETTING IT TO PRIVATE!?!?!?</font>

eNforce 09-16-2005 08:33 PM

Wow ok caps locks.

I like to have a clean forum without visual junk all over the place.

Surely there is a way to make it invisible in member profiles but have it work in posts.

Nevermind, sorry for wasting your time.

Gio~Logist 09-16-2005 08:42 PM

Quote:

Originally Posted by eNforce
Wow ok caps locks.

I like to have a clean forum without visual junk all over the place.

Surely there is a way to make it invisible in member profiles but have it work in posts.

Nevermind, sorry for wasting your time.


Lol no you're not wasting my time. You have to take out $customfields from memberinfo and manually insert each field that you want to show.

HHU 09-16-2005 11:01 PM

Is there a reason that my font goes small

And the font part of things is actually not working correctly...

HHU 09-21-2005 04:35 PM

Guess Unsure Why?

Is There A Simple Way Then Just To Add A Default Size Field

Gio~Logist 09-29-2005 02:57 PM

Yes there is.

Add this to the end of the <font tag.
HTML Code:

font-size: 9pt;
Replace 9 with whatever size you wish.

Kyderoy 09-29-2005 04:24 PM

When ever I post it reverts back to the regular fonts and color I can't get my font and color to show in my posts.....

michaelbenson 09-29-2005 04:27 PM

I think you need to a) calm down and b) adopt a more linient and friendly attitude.
If you want more people to use your modifications at least.

HHU 09-29-2005 04:42 PM

Quote:

Originally Posted by Kyderoy
When ever I post it reverts back to the regular fonts and color I can't get my font and color to show in my posts.....

The font option doesnt work

Color does though

VaaKo 09-30-2005 03:56 PM

any demo?
screenshots?

KurtBMX 10-06-2005 01:36 PM

Im trying to install this with the glow addon, but cant find the code requested in step 3, any ideas please? ^^.


All times are GMT. The time now is 04:44 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.01786 seconds
  • Memory Usage 2,044KB
  • 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_html_printable
  • (13)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