The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi guys,
First post here, i apologise for it being a request for help. Here is some background information: Me and some friends have been working on a website/forum for about a month now, and unfortunately the person who was supposed to be coding a website for us has dropped out. Leaving us with noone experienced in PHP to create the site. So, i decided to learn PHP. Ive been learning for the last week (therefore im still very new) but im pleased with what i have done so far. So far, ive made a small area on the homepage called "Latest News", which reads the titles of the 5 newest threads in the Announcements section of the forum (by reading from the vbulletin database) Next to this, there is a link which says "read". When this is clicked, it sends the Post ID through the URL, which is read on the next page. On the next page i look up the post in the database, and display it - as well as who posted it, date, comments, etc. In essence, it shows the thread titles in one panel, and when clicked, displays the post in another panel. The problem is, the text of the post is showing up as one big block of text when in the thread itself, there is spacing, bold text, italics, etc. My 2 questions are: 1. am i going about this whole situation correctly, by reading straight from the database? 2. how on earth can i keep the formatting from the thread on my main page? Thanks in advance, and remember, im very new at PHP, so try to keep answers quite newb-friendly ![]() |
#2
|
|||
|
|||
![]()
You will need to run the post through the parsers.
Please see how showthread.php/showpost.php are using the Postbit_Factory. |
#3
|
|||
|
|||
![]()
youll need to use bbcode parser if you want to format it the same. Look for external vbulletin pages and it will give you an idea on where to start to make an external page so you still have the classes and functions from vbulletin you can use.
|
#4
|
|||
|
|||
![]()
lol Looking for the same thing >< a script which pulls posts from a certain forum section and Adds them in a certain style/format i set up on a external non-vb page ><
|
#5
|
||||
|
||||
![]()
Won't Logicians WebTemplates help you accomplish this?
|
#6
|
||||
|
||||
![]()
Wish there was a step by step tutorial available for this
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|