vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Parse BBCode in Custom Profile Fields (https://vborg.vbsupport.ru/showthread.php?t=103460)

Kihon Kata 12-24-2005 07:48 PM

Quote:

Originally Posted by 7thgenCivic.Com
@TonysDesigns: I updated the code above

Well first of all, I updated the product to 1.1 and that didn't work for me.

I mean, [ b ]testing....[ /b ](spaces removed) is bbcode right? If so, it's not working for me

Also do I add this hook also?

Quote:

if($profilefieldname == "field1")
{
$profilefield['value'] = $bbcode_parser->parse($userinfo["$profilefieldname"],0, true);
}
I tried with and without the hook added. Can you help me to get this to work?

PS: You need to update the <version>1.0</version> to <version>1.1</version> in the XML.

Lizard King 12-24-2005 11:50 PM

Quote:

Originally Posted by TonysDesigns
Lizardking:

I modded my profile field #1 and it didn't work:

Is this correct?

http://www.makeuptalk.com/images/temp/bbcode.gif

Yes it is true. Can you paste your html code so let me check that.

Quote:

Originally Posted by 7thgenCivic.Com
you have to add a plugin for each field. thats kinda nasty if you have like 20+

You can add multiple field names in same plugin :) But yes your code is also another solution

ImportPassion 12-25-2005 02:36 AM

Quote:

Originally Posted by TonysDesigns
Well first of all, I updated the product to 1.1 and that didn't work for me.

I mean, [ b ]testing....[ /b ](spaces removed) is bbcode right? If so, it's not working for me

Also do I add this hook also?



I tried with and without the hook added. Can you help me to get this to work?

PS: You need to update the <version>1.0</version> to <version>1.1</version> in the XML.

I fixed the version. thx.

ok, so, if u ONLY want the ONE field, then edit the plugin remove the existing code and paste the new code I posted for you above. I did not try the one I made for you, but it should work. But I know the Product I created is working fine.

EDIT: Make sure you replce "field1" with the appropriate field number you are using. I believe it was field2.

Kihon Kata 12-25-2005 02:48 AM

Quote:

Originally Posted by 7thgenCivic.Com
I fixed the version. thx.

ok, so, if u ONLY want the ONE field, then edit the plugin remove the existing code and paste the new code I posted for you above. I did not try the one I made for you, but it should work. But I know the Product I created is working fine.

EDIT: Make sure you replce "field1" with the appropriate field number you are using. I believe it was field2.

so if I just add the product and do NO other modification, it will allow bbcode in all fields?

Would it make a dirfference if I have added this mod here? https://vborg.vbsupport.ru/showthread.php?t=101248

Cuz I did.

ImportPassion 12-25-2005 02:54 AM

Quote:

Originally Posted by TonysDesigns
so if I just add the product and do NO other modification, it will allow bbcode in all fields?

Correct

Quote:

Originally Posted by TonysDesigns
Would it make a dirfference if I have added this mod here? https://vborg.vbsupport.ru/showthread.php?t=101248

Cuz I did.

No difference at all since that is not a code mode, just template mod.

Kihon Kata 12-25-2005 02:55 AM

Quote:

Originally Posted by Lizard King
Yes it is true. Can you paste your html code so let me check that.

You can add multiple field names in same plugin :) But yes your code is also another solution

Lizard, which HTML code? To you mean the HTML in the member profile template?

Kihon Kata 12-25-2005 03:00 AM

Code:

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>Makeuptalk.com, makeup, beauty, beauty reviews, skin care, eyemakeup, eye makeup, hair care, and heath and fitness, talk and gossip for women - $vbphrase[view_profile]: $userinfo[username]
</head>
<body>
$header
$navbar

<!-- BIG USER TITLE -->
<table border="0" width="100%" cellspacing="3" cellpadding="2">
<tr>
<td>"$userinfo[usertitle]"

</td>
</tr>
</table>
<!-- /BIG USER TITLE -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
<table width="100%" border="0" cellspacing="5" cellpadding="0">
        <tr>
  <td width="75%" align="left" valign="top">
        <table width="100%" border="0" cellspacing="5" cellpadding="5">
  <tr>
 <td align="left" valign="top">

<!-- START USER AVATAR -->
<if condition="$show['avatar']">
<img src="$userinfo[avatarurl]" $userinfo[avatarsize] alt="" border="1" style="border:1px solid black $stylevar[tborder_bgcolor]; border-top:none" />
<!-- END USER AVATAR -->

<!-- Rank -->
<if condition="$userinfo['rank']">
$userinfo[rank]

<!-- /Rank -->

<!-- USER TITLE -->
<div align="left" class="smallfont">$userinfo[usertitle]

<a target="_blank" href="friends.php?$session[sessionurl]u=$post[userid]">$post[username]'s Friends
<!-- /USER TITLE -->
        </td>
 <td width="100%" align="left" valign="top">
<!-- USER INFORMATION -->                         
        <div style="font-size:18pt">$userinfo[musername] $userinfo[onlinestatus]

<!-- mood hack display start -->
<if condition="$userinfo[field26] != ''">Current Mood: [img]images/mood/$userinfo%5Bfield26%5D.gif[/img]

<!-- mood hack display end -->                               
       
                                  <div class="smallfont">
                          <b>$vbphrase[join_date]: $userinfo[datejoined]
<br />
<b>Hometown: $userinfo[field2]
<br />
<b>Country: $userinfo[field7]
<br />
                                <if condition="$show['age']">$vbphrase[age]: $userinfo[age]


                          <b>$vbphrase[total_posts]: $userinfo[posts] ($vbphrase[x_posts_per_day])

                                                          <if condition="$show['lastactivity']">
                                <div>Last Online At: $userinfo[lastactivitydate]
                                        <span class="time">$userinfo[lastactivitytime]
        </if>
        </div>
        </if>

<span class="smallfont" align="$stylevar[left]">
<if condition="$show['lastactivity']">                                               
                                        <div>$userinfo[action] $userinfo[where] - $vbphrase[offline]

<b>Contact: Send Private Message

</td>
                                </tr>
                          </table>
                        <div>
<!-- USER EXTRA PROFILE FIELD INFORMATION MODIFY THIS CODE -->

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top">

<!-- About ME Row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="1" width="100%" align="center">
<td class="thead">About Me:
</tr>
<tr>
<td class="alt1" bgcolor="#FFFFFF">$userinfo[field1]
</tr>
<!-- / About Me row -->

<br />

<!-- Occupation Row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<td class="thead">Occupation:
</tr>
<tr>
<td class="alt1" bgcolor="#FFFFFF">$userinfo[field4]
</tr>
<!-- / Occupation row -->

<br />

<!-- Type of Car I drive Row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<td class="thead">Type of Car I Drive:
</tr>
<tr>
<td class="alt1" bgcolor="#FFFFFF">$userinfo[field19]
</tr>
<!-- / Type of Car I Drive row -->

<br />

<!-- My Interests Row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<td class="thead">My Interests:
</tr>
<tr>
<td class="alt1" bgcolor="#FFFFFF">$userinfo[field3]
</tr>
<!-- / My ineterests row -->

<br />

<!-- Favorite Music Row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<td class="thead">My Favorite Music:
</tr>
<tr>
<td class="alt1" bgcolor="#FFFFFF">$userinfo[field21]
</tr>
<!-- / Favorite Music row -->

<br />

<!-- Favorite Movies Row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<td class="thead">My Favorite Movies:
</tr>
<tr>
<td class="alt1" bgcolor="#FFFFFF">$userinfo[field20]
</tr>
<!-- / Favorite Movies row -->

<br />

<!-- Favorite Books Row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<td class="thead">My Favorite Books:
</tr>
<tr>
<td class="alt1" bgcolor="#FFFFFF">$userinfo[field22]
</tr>
<!-- / Favorite Books row -->

<br />

<!-- Favorite Video Row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<td class="thead">Favorite Video:
</tr>
<tr>
<td class="alt1" bgcolor="#FFFFFF">
</tr>
<!-- / Favorite Video row -->

<br />

<!-- Favorite MU Brands Row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<td class="thead">My Favorite Makeup Brands:
</tr>
<tr>
<td class="alt1" bgcolor="#FFFFFF">$userinfo[field25]
</tr>
<!-- / Favorite MU Brands row -->

<br />

<!-- BEAUTY prod wishlist row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">My Beauty Product Wishlist:
</tr>
<tr>
<td class="alt1" bgcolor="#FFFFFF">$userinfo[field5]
</tr>
</table>
<!-- / BEAUTY prod wishlist -->

<br />

<!-- Intersting Facts row -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">One Interesting Fact About Me:
</tr>
<tr>
<td class="alt1" bgcolor="#FFFFFF">$userinfo[field24]
</tr>
</table>
<!-- / Interesting Facts -->

<br />

<!-- signature row -->
<if condition="$show['signature']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">$userinfo[username]'s $vbphrase[signature]
</tr>
<tr>
<td class="alt1" bgcolor="#FFFFFF" title="$vbphrase[signature]">$userinfo[signature]
</tr>
</table>
<!-- / signature row -->
<br />
</if>

</tr>
</table>

</td>

<!------ Start Profile Pic ------>
<td align="center" valign="top">
<if condition="$show['profilepic']">       
                <img src="$userinfo[profilepicurl]" $userinfo[profilepicsize] alt="This is $userinfo[username]! I Love MUT!!"
                border="1" style="border="1" style="border:1px solid black" /> <else /> http://www.makeuptalk.com/forums/ima...isc/no_pic.jpg
                </if> 
<!------ /Profile Pic ------>

<table>
<!------ Start Notepad table ------>
<if condition="$hasnotepad">
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="90%" bordercolor="#C0C0C0">
<tr>
<td style="text-align:center;background-color:#FFFFFF" onmouseover="this.style.backgroundColor='#B7DBFF'" onmouseout="this.style.backgroundColor='#FFFFFF'">$userinfo[username]'s Notepad
</td>
</tr>
</table>
<!------ /Notepad table ------>
</if>
<table>

<!------ Start Reviews table ------>
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="90%" bordercolor="#C0C0C0">
<tr>
<td align="center" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#B7DBFF'" onMouseOut="this.style.backgroundColor='#FFFFFF'" onClick="location.href='/reviews/showReviews.php?fromMyIndex=1&usernm=$userinfo[username]'" >$userinfo[username]'s Reviews ($totalreviews)
</td>
</table>
<!------ /Reviews table ------>

<table>

<!------ Start Swaps table ------>
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="90%" bordercolor="#C0C0C0">
<tr>
<font face="Verdana" size="1">
<a target="_blank" href="/swap/showSwaps.php?fromMyIndex=1&usernm=$userinfo[username]">$userinfo[username]'s Swaps: ($totalswaps)
</td>
</table>
<!------ /swaps table ------>

<table>

<!------ Start images table ------>
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="90%" bordercolor="#C0C0C0">
<tr>
<font face="Verdana" size="1">
<a target="_blank" href="/forums/gallery/browseimages.php?do=member&imageuser=$userinfo[userid]" title="View My Gallery">$userinfo[username]'s Gallery Images
</td>
</table>
<!------ /images table ------>

<table>

<!------ Start wishlist table ------>
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="90%" bordercolor="#C0C0C0">
<tr>
<font face="Verdana" size="1">
<a href="/swap/newestWishlist.php?usernm=$userinfo[username]" target="_blank">$userinfo[username]'s Wishlist:
<a href="/swap/newestWishlist.php?usernm=$userinfo[username]"target="_blank">($totalwishlist)
</font>
</td>
</table>
<!------ /wishlist table ------>

<table>

<!------ Start swap Notepad table ------>
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="90%" bordercolor="#C0C0C0">
<tr>
<font face="Verdana" size="1">
<a target="_blank" href="../swap/showEditor.php?usernm=$userinfo[username]">$userinfo[username]'s Swap Notepad
</font>
</td>
</table>
<!------ /swap notepad table ------>

<table>

<!------ Start swap rating table ------>
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="90%" bordercolor="#C0C0C0">
<tr>
<font face="Verdana" size="1">$userinfo[username]'s Feedback ($userinfo[ratetradetotal])
</td>
</table>
<!------ /swap rating table ------>

<table>

<!------ Start completed swaps table ------>
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="90%" bordercolor="#C0C0C0">
<tr>
<font face="Verdana" size="1">Leave Feedback for $userinfo[username]
</font>
</td>
</table>
<!------ /completed swaps table ------>

<table>

<!------ Show Attachments table ------>
<table border="1" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="90%" bordercolor="#C0C0C0">
<tr>
<font face="Verdana" size="1">
<a href="profile.php?$session[sessionurl]do=editattachments&u=$post[userid]&showthumbs=1">View $userinfo[username]'s Attachments
</font>
</td>
</table>
<!------ /attachments table ------>
  </div>

<table>

<!------ Start Buddy Lists ------>
<table border="1" width="90%" bordercolor="#C0C0C0" style="border-collapse: collapse">                   
<td align="center">
[img]$stylevar%5Bimgdir_misc%5D/addFriendIcon.gif[/img]
                                        <a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$userinfo[userid]">Add
                                        to Buddies</a>  Remove
                                        from Buddies</a>

                                <td>

                          </tr>
</table>
<!------ /Buddy Lists ------>

<table>

<!----- Start Last5 threads ----->
<table border="1" width="90%" bordercolor="#C0C0C0" style="border-collapse: collapse">

<tr>

<if condition="$numthread">
<tr class="tcat">
        <td align="center">
                $userinfo[username]'s Last $maxthread Threads</font>
        </td>
</tr>
$threadlist
</if>
</div>
</td>
</table>
</center>
<!----- /Last5 threads ----->

</td>
</tr>
<tr>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td align="center" valign="top" class"alt2">
                        <fieldset class="fieldset">
                        <legend>Posting Information
                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                          <if condition="$vboptions['profilelastpost']">
                          <tr>
                        <td>Most Recent Post:
 $userinfo[lastposttitle]

                                $userinfo[lastpostdate] <span class="time">$userinfo[lastposttime]
                                </td>
                          </tr>
                          </if>
                          <tr>
                        <td>$vbphrase[find_all_posts_by_x]
                          </tr>
                          <tr>
                        <td>$vbphrase[find_all_threads_started_by_x]

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

                  <td align="center" valign="top" class"alt2">
                        <fieldset class="fieldset">
                        <legend>Contact Information
                        <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                          <if condition="!$show['contactlinks']">
                          <tr>
                        <td>$vbphrase[x_has_no_contact_info]
                          </tr>
                          </if> 
                          <tr>
                        <td> $vbphrase[home_page]:

                                <a href="$userinfo[homepage]" target="_blank" dir="ltr">$userinfo[homepage]
MySpace URL:
$userinfo[field18]
                                </td>
                          </tr>
                          </if> 
                          <tr>
                        <td> $vbphrase[email]:
 $vbphrase[send_message_via_email_to_x]
                                </td>
                          </tr>
                          </if> 
                          <tr>
                        <td> $vbphrase[private_message]:
 $vbphrase[send_private_message_to_x]
                                </td>
                          </tr>
                          </if>
                          </fieldset>
                          </td>
                <td align="center" valign="top" class"alt2"> 
                        <fieldset class="fieldset">
                  <legend>$vbphrase[instant_messaging]
                  <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
                <if condition="$show['textimicons']"> 
                        <tr>
                          <td>$vbphrase[icq]
                          <td>
                          <td>$userinfo[icq]
                        </tr>
                        </if> 
                        <tr>
                          <td>$vbphrase[aim]
                          <td>
                          <td>$userinfo[aim]
                        </tr>
                        </if> 
                        <tr>
                          <td>$vbphrase[msn]
                          <td>
                          <td>$userinfo[msn]
                        </tr>
                        </if> 
                        <tr>
                          <td>$vbphrase[yahoo]
                          <td>
                          <td>$userinfo[yahoo]
                        </tr>
                        </if> 
                        <tr>
                          <td>$userinfo[icqicon]
                        <td>$userinfo[icq]
                        </tr>
                        </if> 
                        <tr>
                          <td>$userinfo[aimicon]
                        <td>$userinfo[aim]
                        </tr>
                        </if> 
                        <tr>
                          <td>$userinfo[msnicon]
                        <td>$userinfo[msn]
                        </tr>
                        </if> 
                        <tr>
                          <td>$userinfo[yahooicon]
                        <td>$userinfo[yahoo]
                        </tr>
                        </if> 
                  </table>
                  </fieldset>
                  </if>


          </div>
                </tr>
          </table>
  </tr>
</table>

<table width="100%" background="http://www.makeuptalk.com/forums/images/boxbackground.jpg">
        <tr>
                <td width="33%" align="center">
                        <div class="fieldset">
                        <div style="padding:$stylevar[formspacer]px"> $vbphrase[referrals]:
<b>$referrals

</div>
                <td width="33%" align="center">
  <div class="fieldset">
          <div style="padding:$stylevar[formspacer]px">
                  <if condition="$show['profileviewsother']">$vbphrase[profile_views]$vbphrase[profile_views]: $userinfo[profileviews]
          </div>
  </div>
  </if>

                        </if>
</td>
                <td width="33%" align="center">
                        <div class="fieldset">
                        <div style="padding:$stylevar[formspacer]px"> $vbphrase[user_notes]:
                        <if condition="$show['usernoteview']"> $usernote[total]
                        [<a href="usernote.php?$session[sessionurl]u=$userinfo[userid]">$vbphrase[view]]
                        </if>  [$vbphrase[post_user_note]]
                        </if> 

                        ($vbphrase[last_note]: $usernote[lastpostdate] <span class="time">$usernote[lastposttime])
                                </if>
                        </div>
                        </if>
        </tr>
</table>

<if condition="$profileimagebits">
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
        <td class="tcat" colspan="$vba_options[gallery_columns]">$userinfo[username]'s Latest Gallery Submissions
        </td>
</tr>
<tr>$profileimagebits
</table>
<br />
</if>
<br />
                <!-- comments part -->       

                                <table cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="thead">Comments for $userinfo[username]
        <td class="thead">Leave $userinfo[username] A Comment
</tr>
<tr>
        <td valign="top" class="alt1">
        <table cellpadding="3" cellspace="0" border="0" width="100%">
        $commentbits
        </table>
        </td>
        <td class="alt1" align="center">
        <if condition="$bbuserinfo[userid]">
        <form action="member.php" enctype="multipart/form-data" method="POST" name="vbform">
        <input type="hidden" name="do" value="addcomment" />
        <input type="hidden" name="userid" value="$bbuserinfo[userid]" />       
        <input type="hidden" name="profileid" value="$userinfo[userid]" />       
        <textarea class="bginput" name="comment" rows="5" cols="40" tabindex="1" />
        <br />
        <input type="submit" class="button" name="sbutton" value="Leave Comment" />
        </form>
        <else />
        <div class="smallfont">You need to be a registered member to leave comments for $userinfo[username].
        </if>
        </td>
</tr>
</table>
                                <!-- comments part -->
<br />

$buddyoutputsystem

<br />

<if condition="can_moderate()">
<div align="center" class="smallfont">Moderation Control: $vbphrase[user_options]
        </if>

$FRIENDSFOES
       
</td>
</tr>
</table>
$footer
</body>
</html>


Lizard King 12-25-2005 03:28 AM

It is strange did you add for each field as i mentioned ? Because it is working for mine.

Kihon Kata 12-25-2005 03:37 AM

Quote:

Originally Posted by 7thgenCivic.Com
Correct



No difference at all since that is not a code mode, just template mod.

7th: all I have installed is this product and when I add bbcode, it doesn't work. :/
I tried to add [ b ] testing [ /b ] and no workie

Lizard: Not yet, I am trying to get it to work like it's supposed to first. Should I?

Lizard King 12-25-2005 03:45 AM

Quote:

Originally Posted by TonysDesigns
Lizard: Not yet, I am trying to get it to work like it's supposed to first. Should I?

Yes you need to add for each field. Check this one which i have in profile
Code:

if ($userinfo['field2'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field2'] = $bbcode_parser->parse($userinfo['field2'],0, true);
}
 if ($userinfo['field25'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field25'] = $bbcode_parser->parse($userinfo['field25'],0, true);
}
 if ($userinfo['field22'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field22'] = $bbcode_parser->parse($userinfo['field22'],0, true);
}
 if ($userinfo['field21'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field21'] = $bbcode_parser->parse($userinfo['field21'],0, true);
}
 if ($userinfo['field20'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field20'] = $bbcode_parser->parse($userinfo['field20'],0, true);
}
 if ($userinfo['field24'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field24'] = $bbcode_parser->parse($userinfo['field24'],0, true);
}
 if ($userinfo['field6'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field6'] = $bbcode_parser->parse($userinfo['field6'],0, true);
}
 if ($userinfo['field7'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field7'] = $bbcode_parser->parse($userinfo['field7'],0, true);
}
 if ($userinfo['field8'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field8'] = $bbcode_parser->parse($userinfo['field8'],0, true);
}
 if ($userinfo['field10'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field10'] = $bbcode_parser->parse($userinfo['field10'],0, true);
}
 if ($userinfo['field11'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field11'] = $bbcode_parser->parse($userinfo['field11'],0, true);
}
 if ($userinfo['field12'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field12'] = $bbcode_parser->parse($userinfo['field12'],0, true);
}
 if ($userinfo['field13'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field13'] = $bbcode_parser->parse($userinfo['field13'],0, true);
}
 if ($userinfo['field14'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field14'] = $bbcode_parser->parse($userinfo['field14'],0, true);
}
 if ($userinfo['field16'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field16'] = $bbcode_parser->parse($userinfo['field16'],0, true);
}
 if ($userinfo['field17'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field17'] = $bbcode_parser->parse($userinfo['field17'],0, true);
}
 if ($userinfo['field19'])
{
if (!is_object($bbcode_parser))
{
    require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
}
$userinfo['field19'] = $bbcode_parser->parse($userinfo['field19'],0, true);
}

As you can see you have to add the same parser for each field.


All times are GMT. The time now is 01:23 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.01981 seconds
  • Memory Usage 1,919KB
  • 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
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete