The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#6
|
||||
|
||||
![]()
It's true that just running queries and saving the data to the database would be more efficient, however I need to stress -- this file is written to text via a chat server (as miz noted, though not IRC) to allow webpages to update room numbers in real time. Seeing as it's real time, to me, it'd be more problematic and time/resource consuming to write the file to the database and then output those numbers each time the page was viewed for those real-time numbers. This is why I'm attempting to just display the file as is in a sorted method to keep things conventionally under control in as fast of a way possible.
Here's the setup in a hasty reveal: [1] = name. [2] = http address. [3] = current users (what I'm attempting to sort). Code:
$nameoutput = "<table width=100% cellpadding=4 cellspacing=0>"; $file = "<path>names.txt"; $lines = file($file); for ($i = 0; $i < count($lines); $i++) { $roominfo = explode("\t",$lines[$i]); $nameoutput .= "<tr><td><a href=\"" . $roominfo[2] . "\"><strong>" . $roominfo[1] . "</strong></a>, <b>" . $roominfo[3] . "</b> users.</td></tr>"; } $nameoutput .= "</table>"; (Btw guys, thanks for all your replies. I know your trying to help. ![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|