The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Adding to ForumInfo
Hello,
I see $ForumInfo in my templates for information about the forum that is being displayed. I want to add to the query and display that information, but I have having a very difficult time for some reason.. Here is what I am doing in the functions.php file (fetch_foruminfo function): Code:
$ForumInfoQuery = " SELECT forum.*,`AP`.`FirstInformation`, `AP`.`SecondInformation`, `AP`.`ThirdInformation`, NOT ISNULL(podcast.forumid) AS podcast FROM " . TABLE_PREFIX . "forum AS forum LEFT JOIN " . TABLE_PREFIX . "podcast AS podcast ON (forum.forumid = podcast.forumid AND podcast.enabled = 1) LEFT JOIN AP_ForumDetails as AP ON (AP.forumid = forum.forumid) WHERE forum.forumid = $forumid "; $vbulletin->forumcache["$forumid"] = $vbulletin->db->query_first_slave($forumInfoQuery); Code:
$foruminfo[FirstInformation] I am sure it is something stupid, but I just can't figure it out. What I am trying to accomplish: Give some extra information from a custom datatable about each forum. That information will be displayed in the ForumDisplay template when the user clicks on that forum. All the info will be either at the top of the forum or in a sidebar (haven't decided yet). Thanks in advance!!! |
#2
|
|||
|
|||
bump?
|
#3
|
||||
|
||||
Try:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|