![]() |
Using vbdate
How would I use vbdate to format the date/time of a 'lastpost' number from the DB table called 'thread'?
|
PHP Code:
|
I've done this:
PHP Code:
But the dates don't appear... |
Firstly, if you including vB's global.php then there is no need to use mysql_query, use the builtin MySQL functions that coem with vB :)
PHP Code:
PHP Code:
|
Quote:
I am using global.php on this page for user identification purposes, but the above code doesn't print out the dates. Does the page automatically recognize vbdate() when you require global.php? |
Yes, if you haven't included global.php you will see and error saying something saying call to undefined function vbdate() on line x in file x.php.
Are you using echo/print and HTML within the PHP file or are you using templates for the page? |
Quote:
I'm using HTML/PHP rather than the vB templates for the page. The site is separate from the forum content-wise (aside from displaying recent threads), but is integrated with the vB user database via global.php, and most of the pages are structured like this: PHP Code:
|
All times are GMT. The time now is 02:54 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:
|