The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Parse BBCode in Custom Profile Fields Details »» | |||||||||||||||||||||||||||
Parse BBCode in Custom Profile Fields
Developer Last Online: Oct 2008
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:
PHP Code:
################################################## ## 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
|
Comments |
#22
|
|||
|
|||
Quote:
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:
PS: You need to update the <version>1.0</version> to <version>1.1</version> in the XML. |
#23
|
|||
|
|||
Quote:
Quote:
|
#24
|
|||
|
|||
Quote:
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. |
#25
|
|||
|
|||
Quote:
Would it make a dirfference if I have added this mod here? https://vborg.vbsupport.ru/showthread.php?t=101248 Cuz I did. |
#26
|
|||
|
|||
Quote:
Quote:
|
#27
|
|||
|
|||
Quote:
|
#28
|
|||
|
|||
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']"> |
#29
|
|||
|
|||
It is strange did you add for each field as i mentioned ? Because it is working for mine.
|
#30
|
|||
|
|||
Quote:
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? |
#31
|
|||
|
|||
Quote:
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); } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|