![]() |
How to Insert Version Number in Footer
I'm looking into using the version number from one of my projects in the footer. I can cope with phrasing, and know how to edit the template to add what I need, but I'm stuck on how to extract the number from PT that I need.
How can I collect the latest version number, and then add it as a variable to the template? Thanks for any help in advance... :) |
You need to use a query like:
Code:
SELECT version FROM product WHERE productid = 'vbprojecttools'; |
Thanks for the help. So far, I've been able to get this query to work:
Code:
$version = $db->query_first(" Am I missing something obvious? Thanks again for the help, I'm a total noobie when it comes to programming... :) |
Quote:
Code:
vB_Template::preRegister('footer',array('txuversion' => $version['versioname'])); |
I got it working by doing this:
Code:
$version = $db->query_first(" Now just to select the right row... :D PS, thanks for the help :) |
All times are GMT. The time now is 09:13 PM. |
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:
|