The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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:
|
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
I wanted to use it on the home page of my site, it's not a non-vb page.
|
#4
|
||||
|
||||
But the data is pulled from a vBulletin database?
|
#5
|
|||
|
|||
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. |
#6
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|