The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
BBCode Parsing Question
How would one go and make "Custom Profile Fields" be parsed by bbcode?
I've been studying the code and can't seem to grasp it. So ideas will be appreciated. |
#2
|
||||
|
||||
well, you have to parse em where the output is generated, so fetch_postbit function as well as everywhere else you can view them (for example profile)
|
#3
|
|||
|
|||
Hmmm...
I'm not sure if I understand what you mean. Can you further clarify what you're saying? lol |
#4
|
||||
|
||||
Well, you have to use the parse_bbcode function on the custom profile fields on every instance where it appears as an output.
So to give an example. Here on vb.org we're showing the realname of a user in the postbit, so if i want to allow bbcode parsing there, i would have to manipulate fetch_postbit(). Also the realname is shown on a members profile, so a parse_bbcode call would be needed there as well |
#5
|
|||
|
|||
Wow, call me stupid but you lost me.
*laughs* No worries, I'm stupid anyway. I'm looking at member.php (at least I hope that's the right file) and I see between lines 484 to 530 (roughly)... I don't see "fetch_postbit". Or am I blind?? Thing is, I want the bbcode to be parsed on a member's profile, not in postbit. LOL Because I have a "Biography" field that my members can fill in. They've asked for bbcode parsing in the field and I was like, "Why not, that can't hurt anyone" |
#6
|
||||
|
||||
you're looking for the wron thing
fetch_postbit isn't in member.php if you just want it to show up in the profile, member.php is the correct file actually before that line: PHP Code:
(just pseudocode, not the correct implementation |
#7
|
|||
|
|||
Bahh....
You're making me work, aren't you?? LOL *goes back to crying* I know it just has to be a one-liner. |
#8
|
||||
|
||||
Yes i am
I think it's the best way to teach someone to help yourself I gave you enough tips right now. Just try around, i'm sure you'll find it out, and if not, then i will post the solution tomorrow |
#9
|
|||
|
|||
lol
Okay then!! *goes and takes 2 aspirins* Let's see here... LOL |
#10
|
||||
|
||||
*gg*
So how're you doing? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|