The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
![]() Quote:
Ah. Thanks, that worked. But then I got a fatal error saying that I can't pass a variable as a reference. I hacked at it and finally figured out that Code:
$threadinfo = fetch_threadinfo(2); Code:
$threadWanted = 2; $threadinfo = fetch_threadinfo($threadWanted); Code:
// ####################################################################### // ####################### Begin My Page ################################# $comment_news = "Comment on this News"; $comment_article = "Comment on this Article"; // Thread ID $threadWanted = 2; // URL to Thread Top $thread_URL = 'http://www.weeklydavespeak.com/forums/showthread.php?t=2'; // Pull array of thread info from database $threadinfo = fetch_threadinfo($threadWanted); // Output Text and Hyperlink echo "<a href='$thread_URL'>"; echo "$comment_news"; echo "</a>"; echo " ($threadinfo[replycount]", ' Comments)'; echo "<br>"; // ####################### End My Page ################################### // ####################################################################### Thanks to those of you who took the time to help me along. This is really my first php work, and first experience doing anything with vB. I'd welcome comments on the above code or other suggestions. My next step is to convert my SSI/SHTML pages into php and add lines like this to my story pages i.e.: The news article attached to the above code Oh, and overhall my forum's look and about a dozen other things. ![]() rob |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|