View Full Version : Parse BBCode for Custom User Profile Fields for Postbit also?
red-dna
09-26-2010, 07:31 AM
Hello,
I have found this mod: https://vborg.vbsupport.ru/showthread.php?t=231267&highlight=Parse+BBCode
It works perfectly for the profile of the member, but anyone knows how to enable this or anyhow in general, to have bbcode in Postbit Legacy template? So when someone use it via Custom Profile Fields, to actually work the bbcode.
Thnx in advance :)
Bundle
12-10-2010, 01:13 PM
I've not figured out how to do this, however, depending on what you want to do I have figured out a simple workaround for parsing things like images in the postbit.
The basic thing to remember is, that whilst things within the custom field won't parse (either BBcode or HTML), HTML on the template will parse. So, for example, whilst you can't make an image display by having:
{vb:raw post.field5} in the template and
[im]http://www.example.com/myimage.gif[/img] in profile field 5, you CAN generate the same effect by having:
<img src="{vb:raw post.field5}"> in the template and
http://www.example.com/myimage.gif
e.g. what I was doing on my site was allowing permitted users to have space for an advertising banner above their signature, which is in the template as:
<vb:if condition="$post['field5']"><a href="{vb:raw post.field6}" target=_blank><img src="{vb:raw post.field5}"></a></vb:if>
which allows them to input the URL of their banner image into custom field 5, plus the URL to their site in field 6, resulting in a clickable banner when parsed in the postbit.
Don't know if that helps you at all...
lovelyyou
06-28-2011, 02:21 AM
I'm using bbcode in custom profile field for markup a text, so i'm really need a method to parse bbcode in vb4.
Anyone can help me pls?
grey_goose
06-28-2011, 03:31 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=211102" target="_blank">CES Parser Permissions</a>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.