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)

ImportPassion 12-20-2005 10:00 PM

Parse BBCode in Custom Profile Fields
 
Why? Cause I think this should be the norm and others in this thread seem to want it. https://vborg.vbsupport.ru/showthread.php?t=101248

Be nice to also have WYSIWYG on the textareas, but that's another hack.

There are 2 versions of this.
The first one, product-parse_bbcode_in_profile_1.1.xml, is for anyone that does not have the MySpace style profile template hack installed. You can find that hack here https://vborg.vbsupport.ru/showthread.php?t=101248

The second, product-myspace_style_profile_version.xml, is for users that are using that template hack.

INSTALLATION:
Install the Product and that's it. Will install 1 new plugin. I tested as best I can, but see what happens. Can't provide 100% support, but I will see what I can do.

For non-MySpace profile template users, some options:
--------------------------------------------------------------------------
Optionally remove some code.
https://vborg.vbsupport.ru/showpost....4&postcount=18
--------------------------------------------------------------------------
If you only want certain fields, put this code for EACH fieldx u want parsed in member_customfields hook location.
https://vborg.vbsupport.ru/showpost....5&postcount=19

--------------------------------------------------------------------------

If you did this code change for 1.01, u can now remove it as it is not needed for 1.1.
v.1.01 Code Change

in admincp/profilefield.php find

PHP Code:

// #################### PRE-CACHE TEMPLATES AND DATA ###################### 

add above that

PHP Code:

define('THIS_SCRIPT''profile_admin'); 

end 1.01 code change

################################################## ##
Non-MySpace template hack
v.1.00 - Original Release
v.1.01 - Update to fix some weird issue in admincp when going to profile field manager.
v.1.1 - re-written - totally works. :o

MySpace Template hack version:
1.0 - Original release.

Kihon Kata 12-21-2005 06:13 PM

w00t! im first. pee pee now

ImportPassion 12-21-2005 06:17 PM

seems there is a small bug when u go to the profile fields manager. Looking into it.

ImportPassion 12-21-2005 08:35 PM

Updated the XML and added a code change, for now. Will try to get away from that in next release.

msimplay 12-21-2005 11:16 PM

Quote:

Originally Posted by 7thgenCivic.Com
Be nice to also have WYSIWYG on the textareas, but that's another hack.

Can you make this too ? :D

ImportPassion 12-22-2005 04:13 AM

ya, i may look into it.

Kihon Kata 12-22-2005 05:21 AM

Quote:

Originally Posted by TonysDesigns
w00t! im first. pee pee now

This is strange. I installed it and used things like [ b] and [ /b], but then when I 'rededit' the usercp, it sets them to <b> and </b>

What is thatall about?

msimplay 12-22-2005 10:58 AM

Yeah i'm getting the same too the bbcode is not getting converted back to bbcode instead its being left as html

Kihon Kata 12-23-2005 12:52 AM

Quote:

Originally Posted by msimplay
Yeah i'm getting the same too the bbcode is not getting converted back to bbcode instead its being left as html

Bump? Is someone going to fix the problem?

ImportPassion 12-24-2005 03:21 AM

sorry. was building new puter and had no access.

anyway, I will check it out.

Kihon Kata 12-24-2005 03:24 AM

Quote:

Originally Posted by 7thgenCivic.Com
sorry. was building new puter and had no access.

anyway, I will check it out.

Yes please :)

Wordplay 12-24-2005 10:45 AM

uninstalled it because of that bug.

is there anyway to whip up a background bbcode?

Lizard King 12-24-2005 11:08 AM

If anyone needs this for custom profile fields just add a plugin with the following content :
hook location : member_complete
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);
}

Change field2 to suit your needs.

Kihon Kata 12-24-2005 02:12 PM

Quote:

Originally Posted by Lizard King
If anyone needs this for custom profile fields just add a plugin with the following content :
hook location : member_complete
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);
}

Change field2 to suit your needs.

Lizardking:

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

Is this correct?

https://vborg.vbsupport.ru/

ImportPassion 12-24-2005 04:20 PM

you have to add a plugin for each field. thats kinda nasty if you have like 20+

ImportPassion 12-24-2005 05:12 PM

Ok, I updated the Plugin. It is all rewritten and in a different hook location.

Kihon Kata 12-24-2005 05:15 PM

Quote:

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

But what if I only want it to work for ONE field?

ImportPassion 12-24-2005 05:16 PM

i u want to, u can remove this section from the plugin as it seems it is not necessary. But won't hurt or slow down if you keep it in there.

PHP Code:

if (!is_object($bbcode_parser))
    {
        require_once(
DIR '/includes/class_bbcode.php');
        
$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());
    } 


ImportPassion 12-24-2005 05:18 PM

Quote:

Originally Posted by TonysDesigns
But what if I only want it to work for ONE field?

try this

PHP Code:

    if($profilefieldname == "field1")
    {
     
$profilefield['value'] = $bbcode_parser->parse($userinfo["$profilefieldname"],0true);
    } 

in the same hook location

ImportPassion 12-24-2005 05:26 PM

@TonysDesigns: I updated the code above

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.

Kihon Kata 12-25-2005 03:48 AM

Quote:

Originally Posted by Lizard King
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.

Ohhh ok, let me try that.

Exitilus 12-25-2005 08:38 PM

Ok I'm a bit confused. I was looking for this. Well I installed the plugin ... But it doesn't work :wataf .. looked through and I don't see any other configuration or setup needed to get this working. So am I missing something?

ImportPassion 12-25-2005 11:22 PM

well, it's a product, not just a plugin. although it adds the plugin, and yes, that is all that is needed since all it is is one line of code. Ignore all the stuff from Lizard, my thread got jacked. It does work as it is working on mine. Make sure the hook location is member_customfields.

I registered on your forum and went and edited my profile and then looked at my profile, but it says I don't have permission. Also, all your debug code is showing.

EDIT: Do you have any other plugins using the same hook location? member_customfields

ImportPassion 12-25-2005 11:24 PM

Just an FYI for Lizard and Tony, u don't need to put this line for each one...

PHP Code:

if (!is_object($bbcode_parser))
{
    require_once(
DIR '/includes/class_bbcode.php');
    
$bbcode_parser =& new vB_BbCodeParser($vbulletinfetch_tag_list());


it's a huge waste. Put it once at the top and that's it, done. if you even need it at all, cause my Product doesn't.

Exitilus 12-25-2005 11:28 PM

Quote:

Originally Posted by 7thgenCivic.Com
well, it's a product, not just a plugin. although it adds the plugin, and yes, that is all that is needed since all it is is one line of code. Ignore all the stuff from Lizard, my thread got jacked. It does work as it is working on mine. Make sure the hook location is member_customfields.

I registered on your forum and went and edited my profile and then looked at my profile, but it says I don't have permission. Also, all your debug code is showing.

I verified it is member_customfields.

I also went through and activated your account :) most likely the access denied thing :)

ImportPassion 12-25-2005 11:31 PM

Quote:

Originally Posted by Exitilus
I verified it is member_customfields.

I also went through and activated your account :) most likely the access denied thing :)

I edited my message above, but do you have any other plugins using the same hook location?

ImportPassion 12-25-2005 11:33 PM

would u mind giving me admin access to check it out? I went as far as to remove mine and install the one here and it still works for me.

Exitilus 12-25-2005 11:41 PM

We have a plugin thing that puts all the plugins / products together. Just looked through a couple times and I don't see anything using that specific field

Boofo 12-25-2005 11:47 PM

Will this work on 3.5 RC 3?

ImportPassion 12-25-2005 11:50 PM

no idea, won't hurt to try as long as that hook location exists. But surely no one is still using an RC release?


All times are GMT. The time now is 02:42 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.01921 seconds
  • Memory Usage 2,034KB
  • 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
  • (5)bbcode_code_printable
  • (5)bbcode_php_printable
  • (21)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