The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
external php parse bb code
Hi guys,
currently, I'm writing sql queries to bring out pagetext from postid's... However, it has bb code in it... How can I parse bb code with an external php file? Any kind of help would be appreciated! Thank you so much in advance. |
#2
|
||||
|
||||
Look for the tutorial "Adding Editor". You can take out the part where it parses the BB Code.
|
#3
|
|||
|
|||
where is the tutorial located? here? or vbulletin.com?
|
#4
|
||||
|
||||
If you searched here anyway, you'd find it. I dug it out for you since I'd waste more time if I had to keep coming back.
PHP Code:
|
#5
|
|||
|
|||
Thank so much! Can I give you a thank you hug?
weird, this is what I got in return: Fatal error: Class 'vBulletinHook' not found |
#6
|
||||
|
||||
Have you included the backend (global.php)?
|
#7
|
|||
|
|||
sorry, I didn't know I was supposed to... You know, i find it very tough to include these files when the php files is in a whole seperate directory... what is your recommendation on doing this when your vb directory is is /news and your php files are in /files...
after adding global.php to the mix, I get init.php requirements, but that is configured inside global.php... |
#8
|
||||
|
||||
You need to chdir() to the forum directory, require the files, then chdir() back to the current one.
|
#9
|
|||
|
|||
thank you so much!
|
#10
|
|||
|
|||
is there anyway we can specify the bbcode to a set attachment/image width to display? in the forum it can display as big as it want, but with external pages, we can limit it to 400px?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|