The Arcive of vBulletin Modifications Site. |
|
How can I parse this easily? (vb 2.3) Details »»
|
|||||||||||||||||||||||||
I have this code:
PHP Code:
As you can tell, its my pagetext. This appears on a non-vb page. What is the best way for this echo to adhere to vB codes, smilies, etc? Is there a function I should include from elsewhere? I'm already including global.php in this code, so any help additionally would be greatly appreciated and shared. Thanks in advance! Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
I believe you need to look into the bbcodeparse and bbcodeparse2 functions
|
|
#3
|
||||
|
||||
|
Using the bbcodeparse2 function directly works fine.
|
|
#4
|
|||
|
|||
|
Quote:
Now, how would I edit the echo to parse it? Thanks Mist, you seem to answer everyones' issues in this section!
|
|
#5
|
|||
|
|||
|
Quote:
|
|
#6
|
|||
|
|||
|
I've altered my code as such;
PHP Code:
Can anyone throw me a bone so that I can work this out? I think we should post this as a hack as well, since there seem to be alot of people who have requested this, but nobody ever finishes it up. |
|
#7
|
||||
|
||||
|
PHP Code:
The numbers after the variable is, allowhtml,allowsmilies,allowimages and allowbbcode
|
|
#8
|
|||
|
|||
|
Quote:
Now, I got bbcode parsing (I had to add an echo to the beginning, but that is neither here nor there). The only problem I am having now, is that my htmlcode within posts is not registering now...is there a way to fix this issue, or am I going to have make due with just vbcode only? |
|
#9
|
|||
|
|||
|
Here is what my HTML is outputting as:
PHP Code:
PHP Code:
|
|
#10
|
|||
|
|||
|
Quote:
grr. |
![]() |
|
|