![]() |
How can I fetch a post?
How can I fetch a post to put on my custom page liek this:
HTML Code:
$stylevar[htmldoctype] |
You would have to write a query to grab the post. I assume you have a php page to go along with that template, so you would put the query into the php page.
|
Quote:
Code:
SELECT * And not only that, I'm pretty sure the post odesn't "jump" up on the page on it's own. I'm pretty sure I need to add soem type of code in the template as well. I hope you can help me. :) |
You would put the query after it says "Start Main Page".... or basically after the global.php page is included and before the template is evaled. You can see what a query should look like by looking at other modifications or in the vbulletin php pages. You just need to use the query_first type of query (like I said, look it up in the vbulletin php pages). Really, the best way to learn how to do this is to see how it is done in vbulletin or a modification.
|
yup, run your select query, and then do something like a:
PHP Code:
|
Quote:
$post = fetch_postinfo($postid); |
All times are GMT. The time now is 05:12 PM. |
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:
|