The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I need to find a way to get this to work in vbulletin. I'm working with a friend of mine on his site, and he needs a section added, that will list the top 10 of certain things, as well as a full list of some other data. normally, all I have to do is something like
$msResult=mysql_query("select * from my_table order by created desc;"); while($msData=mysql_fetch_array($msResult)) { echo $msData['created'] . "<br>"; } and it will echo out all the data in a nice (ugly) list. I'm trying to do this in a vbulletin template, and any code that escapes into php gets ignored. I tried to create two templates, and print out one template, perform my code in the php file itself, and print out another template, but it would neve print the second template. what is the best way to add your own code to step through a database, but still keep it in the template format that all the other pages use? |
#2
|
||||
|
||||
![]()
For vB2
PHP Code:
For vB3: PHP Code:
|
#3
|
|||
|
|||
![]()
thanks man, works like a charm, don't know why I didn't think of that earlier.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|