![]() |
getting post data from postid
Hello,
I am trying to load the data found in the $post variable during a postbit. I tried using fetch_postinfo but it does not return all the data found in $post. Is there a function I can use to retrive this data ( based on a postid or threadid ) or how can I get to this data? |
What "extra" data do you need?
The query for the posts is located in showthread.php, you should be able to grab the SQL from there and amend it to fit your needs. |
I gave the query a shot and noticed that I got back pagetext... I am not 100% sure what transformations it goes through before it becomes a $post['message']... some of them are like converting new lines into html line breaks as well as bbcode parsing... how do I deal with it from this point?
if I could run the functions to prepare the $post variable as if doing a postbit, that would be ideal... Mainly cuz otherwise I would be duplicating a lot of code on parsing, and such. Esepcailly like highlighting search results. |
showthread.php will hold all your answers then. Look through the comments in that PHP file, it should be fairly easy to recognise the SQL for the posts (its a big massive block of SQL :D).
Just follow what happens to it after that. |
Though I'd share what I came up with. Not sure what I might be able to trim from this function yet, but this will load a post data based on a $postid. It also needs to have a valid $vbulletin and $thread variable... so still trying to figure out how to load those when using this function completely outside of VB.
PHP Code:
|
All times are GMT. The time now is 06:22 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:
|