![]() |
Top 5 posts on home page
Hi can anyone help me with this? I have code that show the top 5 posts.
It only shows date and post. I would like it to show Title, Date, posted by, post. here is what I have PHP Code:
|
I see 2 BIG mistakes rightaway.
1. You don't use a dateline cut in your first query. Just that will make your server go to it's knees, if you have a busy board. 2. You use a query in the loop. That is simply kill, also. Do you plan to use this into a vBulletin environment? There are better ways to do it. |
I wanted to use it on the home page of my site, it's not a non-vb page.
|
But the data is pulled from a vBulletin database?
|
yes, I had someone write this for me a few years ago and it worked but if it's bad, can you tell me if there is another way to do or point me in the right direction?
Thanks. |
Sure. Visit this thread:
https://vborg.vbsupport.ru/showthread.php?t=99570 Everyone should have it bookmarked, if they care to stay here at vb.org site. What you are looking for exacly is this: vBulletin API Basics: Creating Custom Pages & Misc. https://vborg.vbsupport.ru/showthread.php?t=98009 That should get you started in no time. If you have questions, feel free to ask, we will help you. |
All times are GMT. The time now is 02:25 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:
|