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 |
#92
|
|||
|
|||
If anyone has a problem this might help them. I fixed upon a bit the code that gen.Scorpio posted. Everything seems to work. From what he posted, when he saw a post of someone with the field filled, it didnt parse the bb code they had in their post. But as I tested it out the fixed up code, everything seems to be fine, no errors. If anyone can improve upon it, go right ahead. Tested on 3.6.8. All you need to do is change the field8 to whatever field you set.
Here is the code. Code:
if ($userinfo['field8']) { if (!is_object($bbcode_parser)) { require_once(DIR . '/includes/class_bbcode.php'); $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); } $profilefield[value] = $bbcode_parser->do_parse($profilefield[value],true, true); } |
#93
|
||||
|
||||
In case anyone has been having problems with the other fixes and versions of this...
I've got 3.6.8 installed and the profile pages are pretty heavily customised and none of the above fixes worked properly for me, so in the end I tinkered around with the various bits until I came up with this one which works perfectly for me, so I thought i'd share it in case it could be of use to anyone else: Just replace the entire contents of the product file with this code, changing the 3 instances of field5 for which ever field you want to parse bbcode in and then do the normal install. Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="myspace_style_profile" active="1"> <title>Parse BBCode in Custom Profile Fields</title> <description>Give your users the full effect by letting them use BB Code in their profile.</description> <version>1.1</version> <codes> </codes> <templates> </templates> <plugins> <plugin active="1"> <title>Parse BBCode for Custom Profile Fields</title> <hookname>member_customfields</hookname> <phpcode><![CDATA[if ($userinfo['field5']) { require_once(DIR . '/includes/class_bbcode.php'); $parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list()); $userinfo['field5'] = $parser->do_parse($userinfo['field5'], true, true, true, true, false, false); };]]></phpcode> </plugin> </plugins> <phrases> </phrases> <options> </options> </product> |
#94
|
||||
|
||||
What do we do if we want to do more than one profile filed?
|
#95
|
||||
|
||||
Gah, I had this working perfectly before updating from 3.6.8 to 3.7 Gold a couple of days ago, now it's stopped working at all.
Anybody have any idea what bits in the code have changed that would mean this doesn't work any more? I dearly need this to work again. I've tried the CES parser permissions hack which is out there, but that is way too much for what I need and stops more working for me than is practical. If any pro coders out there have any ideas on this one please help me out, i'm well and trully stuck. |
#96
|
|||
|
|||
Is there a way to have it on vbulletin 3.7?
I think that will be more attractive for members to have images or slideshow in their details... Thanks |
#97
|
|||
|
|||
I need this mod to work too! any coders out there know how to put the WYSIWYG editor and BBCODE into profile fields?
|
#98
|
|||
|
|||
anyone who can get this working?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|