The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
How would I use vbdate to format the date/time of a 'lastpost' number from the DB table called 'thread'?
|
#2
|
||||
|
||||
![]() PHP Code:
|
#3
|
|||
|
|||
![]()
I've done this:
PHP Code:
But the dates don't appear... |
#4
|
||||
|
||||
![]()
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:
|
#5
|
|||
|
|||
![]() 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? |
#6
|
||||
|
||||
![]()
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? |
#7
|
|||
|
|||
![]() 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:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|