The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Parsing BBcode when grabbing posts from a forum
Ok, a little background, I run a forum at www.sitesyntax.com (Coincidentally it also has to do with coding websites, however, I haven't learned php yet)...
I've been coding a section where users can post a tutorial and have it show up. I've got the posting down, and I've got the list of tutorials down. I did it by making an invisible forum that it posts to. What I still have to do is use AJAX to make a post clicked on the list show up in the main area, and I have to make it grab the most recent post out of the database and display it. I can make it show the first (ie opposite of most recent) post show up, but it doesn't parse BBcode, and it does parse HTML. Of course, this is a big security risk (As any forum owner would know). Anyways, here's the code I use. message is entered as the name of a <textarea> form element. This is the php code for the display page PHP Code:
This is the php for the post page PHP Code:
The recent tutorial on there should read "<b> makes bold</b>" instead of "makes [ b]bold[/ b]" Anybody with an understanding of php,sql, and vb that can help me out with this? |
#2
|
||||
|
||||
[How-To] Parse BBCode may help with your "bbcode/html" problems. You will also find other tutorials in the 3.5 MODIFICATION TUTORIALS forum that may further help you.
|
#3
|
|||
|
|||
I'm using the same code as that How To Parse BBcode. I've tried it both on the page that submits the posts, and the page that displays the posts (Again, it shows up parsed correctly in the hidden forum, but not on the tutorials page)
|
#4
|
|||
|
|||
Bump for help
|
#5
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|