The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
repeating an array from db in a template??
I'm creating a simple news mod for my site but I'm having some problems.. I can access the database and get the threads I need, but don't know how to repeat them in a template (eg. using a similar technique as $threadbits, $adv_portal_newsbits). Here's the code:
PHP Code:
the news_bits template contains: HTML Code:
title: $news[title]<br /> author: $news[username]<br /> replies: $news[replycount]<br /> --------------- Added [DATE]1194350102[/DATE] at [TIME]1194350102[/TIME] --------------- I've done some basic testing, and if I use echo it does work, but of course that's not what i'm after, here's the "working" code: PHP Code:
--------------- Added [DATE]1194355336[/DATE] at [TIME]1194355336[/TIME] --------------- I've managed to fix the problem by using some code from this article, instead of using: PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|