The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#6
|
|||
|
|||
![]()
Hello,
I need a bit of help understanding how to place this code. I'm a bit new at this, so thank you for your patience. The code you gave me looks like you're assigning an array of data to the variable $threadinfo. I looked and found that the fetch_threadinfo() function appears in the functions.php document. I get a Fatal error: Call to undefined function: fetch_threadinfo() when I attempt to make this assignment in my test.php file. Code:
<?php chdir("../../../forums"); $threadinfo = fetch_threadinfo(2); // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); <snip> ?> I would expect that this would resolve correctly leaving $threadinfo to contain the aforementioned array of data. My next step would be to print just the $threadinfo[replycount] out in the php file somehow. I'd welcome suggestions on how to accomplish this as well. To be abundantly clear of my intentions: I want to create a function that outputs the number of responses to a given thread in a forum. I plan to have this appear in a line of text "(x comments)" and then include() the output of this php file in larger html/php file (which contains the news story pictures etc.) Again, thank you for the help. rob |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|