![]() |
Parse BBCode In Member.php
Parse BBCode in Member.php! HELP!
I've tried this tutorial to no avail, please help! This is what I've tried. I have a custom field that I want parsed .. that's it! Thanks to anyone that can help me. |
<i>corrected</i> You should be passing arguments to the function.
|
Corrected?? Where???
|
i rewrote my post, sorry.
there are multiple arguments that need to be passed to do_parse to make sure it does what you want. its all said on the first page of the thread you use. |
Quote:
|
Correct.
|
I am so confused, I think it's just a matter of communication and I can't for the life of me figure out what to do to get it right.
|
1 Attachment(s)
Honestly, I don't understand your problem - the code you posted works fine.
I would just split it into two Plugins for performance reasons, see attached XML. |
Sorry, i read the users post wrong (in andreas' thread) :(
|
Quote:
Still doesn't work (installed your plugin): http://www.absolutepunk.net/member.p...e=jason%20tate See? Is it because I'm trying to pull the data via: $userinfo[field27] ? |
Yep. With this code, $vbulletin->userinfo['fieldx'] is not parsed - only visible fields ($customfields in the template) are parsed.
|
Quote:
|
<a href="https://vborg.vbsupport.ru/showthread.php?t=82693" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=82693</a>
This explains how to parse BBCode |
Couldn't you just add this (changing the 7 to what field you need):
PHP Code:
PHP Code:
|
The issue with that is you'll parse the viewing users profile field, which is not what the original request is about. They want to parse the viewed users profile field. :) (ps i havent forgotten about you :()
|
How would you do it to include ALL fieldx variables or would you have to do them one by one on each line?
But is the idea right and in the right spot anyway? ;) (hehe np on the not forgetting. I understand. ;)) |
Wrong location, wrong array :)
If it's only a few, I'd use member_complete and list them one by one. |
So is there anyway to do this? I don't care if every userinfo[fieldx] is parsed right now .. I just need something that works. Haha.
|
You can find a tutorial for parsing bbcode here: https://vborg.vbsupport.ru/showthread.php?t=82693
|
Quote:
https://vborg.vbsupport.ru/showpost....8&postcount=25 https://vborg.vbsupport.ru/showpost....5&postcount=30 I obviously don't know the right variable to pass or something ($userinfo[field27] is what I need parsed); that's why I came to this forum to ask for some help. Please? can you just help me figure out what the right code? $userinfo[field27] = $parser->do_parse($userinfo[field27]); Doesn't work. So I don't know what to do. |
Quote:
|
Quote:
HTML Code:
&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;l t;b&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; amp;amp; amp;amp; amp;amp; amp;amp; amp;amp; amp;gt;S pread the AbsolutePunk.net Banner!&amp;amp;amp;amp;amp;amp;amp;amp;amp;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;am p;lt ;/b&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp; amp;amp; amp;amp; amp;amp; amp;amp; amp;amp; amp;lt;b r /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;a mp;g t;&amp;amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;a mp;g t;&amp;amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;a mp;g t;&amp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;a mp;g t;&amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;g t;&a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&a mp;amp;a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&a mp;amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;a mp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;a mp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;a mp;amp;l t;br /&amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;l t;br /&amp;amp;amp;amp;gt;&amp;amp;amp;lt;br /&amp;amp;amp;gt;&amp;amp;lt;br /&amp;amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;<br /><br /> |
Lot's of entities ;)
What's the content of field27? |
Quote:
Code:
[.b]Spread the AbsolutePunk.net Banner![./b] You can see it not working in action here: http://www.absolutepunk.net/member.php?u=1083 However: $userinfo[field27] = $parser->do_parse($userinfo[field27], 1, 1, 1, 1, 0, 0); Works because it allows HTML (right?) (fixing those weird errors above); however, I really don't want to allow HTML on the profile pages - only BBCode. Edit: It appears that code (above) doesn't allow HTML ... |
1 Attachment(s)
I've attached a small script that should give you an idea of what you did wrong ;)
|
Quote:
|
1 Attachment(s)
Quote:
|
The XML looks strange (how did you manage to export this? doesn't import ...), but yeah - that's the way to go :)
|
Quote:
HTML is turned off by default, isn't it? |
Yes, HTML is off be default.
I thought you manually edited it and somehow managed to screw it up :D |
1 Attachment(s)
Well, I did. But I managed to redeem myself now and made it into a product which IS correct now. ;)
|
All times are GMT. The time now is 01:41 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|