Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Parse BBCode in Custom Profile Fields Details »»
Parse BBCode in Custom Profile Fields
Version: 1.1, by ImportPassion ImportPassion is offline
Developer Last Online: Oct 2008 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-20-2005 Last Update: 12-26-2005 Installs: 38
Uses Plugins
 
No support by the author.

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.

MySpace Template hack version:
1.0 - Original release.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 12-24-2005, 07:48 PM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #23  
Old 12-24-2005, 11:50 PM
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Location: Mersin
Posts: 907
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TonysDesigns
Lizardking:

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

Is this correct?

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
Reply With Quote
  #24  
Old 12-25-2005, 02:36 AM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #25  
Old 12-25-2005, 02:48 AM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 12-25-2005, 02:54 AM
ImportPassion ImportPassion is offline
 
Join Date: Mar 2002
Location: Gilbert, AZ
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #27  
Old 12-25-2005, 02:55 AM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #28  
Old 12-25-2005, 03:00 AM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 /> </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>
Reply With Quote
  #29  
Old 12-25-2005, 03:28 AM
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Location: Mersin
Posts: 907
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is strange did you add for each field as i mentioned ? Because it is working for mine.
Reply With Quote
  #30  
Old 12-25-2005, 03:37 AM
Kihon Kata Kihon Kata is offline
 
Join Date: Nov 2003
Posts: 763
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #31  
Old 12-25-2005, 03:45 AM
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Location: Mersin
Posts: 907
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:32 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.06283 seconds
  • Memory Usage 2,388KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_php
  • (11)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete