NEW VERSION updated 01/02/03!
- added support for halfops
- added commas (no comma on last nick either )
- added 'total nicks ever on ' specified #channel
to upgrade from the previous version, replace the code in mirc and the forumhome_loggedinusers template. you don't have to overwrite the ftp.mrc file or mess with global.php while upgrading, nothing's changed with those.
This hack shows a specified IRC channel's current userlist, total # of users, and status of each user
(opped, voiced, or normal, including bold/italics for each category), all on your vb forum's main page.
This hack ONLY requires ftp access to the forum server, and <a href="http://www.mirc.com">mIRC</a> 5.91 or above (constantly connected to the channel). No bots or java irc crap needed! (mirc script code can be added to mirc-based bots though.)
(Hack only tested on vb2.2.6, but should work on all other 2.2.* versions)
NOTE: This hack assumes the mirc user (yourself or someone else) has full access to your ftp server via ftp. I'm not held responsible if you accidentally give this hack to someone using mirc (which in turn you would have to give the mirc user your ftp login info).
Enjoy
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Wicked hack and worked first go!!! Thanks!!! Just one thing how can I call the $variables on a non vb page like on the main page of vbportal? I add the code and it just returns a blank space... Any Ideas?
Add the require("nicks.php"); code under where you have require("global.php"); on your vbportal index.php page (if I'm presuming it's like vbhome)
Any updates on this Supreemball? All I could really care for right now is to log the most users ever in the iRC channel, but Xiphoid added a method to removing the last comma above
Originally posted by Velocd Add the require("nicks.php"); code under where you have require("global.php"); on your vbportal index.php page (if I'm presuming it's like vbhome)
Thanks but it no work... I can't find where it calls global.php in Vbportal anywhere but I tried adding require("nicks.php"); to both my index and my header.php files to no avail..
Originally posted by xiphoid About the last comma in the line
Maybe you could do $len(%variablewithnicks) and then $calc(%resultoflen -1) on $left(%resultofcal)
set %mooA $len(%variableofthenicks)
set %mooB $calc(%mooA -1)
set %mooC $left(%mooA,%mooC)
echo -a All the nicks without the last , makes > %mooC
tada
The author of the script could probably update the ftp.mrc pretty quick for you since he is known with the tokens.
Sorry, but don?t get the comma-thing...
What exactly could i do to get commas after the users names??
Can someone please modify the ftp.mrc and attach it??
By the way cool hack, works like a charm...
Thanks but it no work... I can't find where it calls global.php in Vbportal anywhere but I tried adding require("nicks.php"); to both my index and my header.php files to no avail..
I can't imagine vBportal functioning without requiring global.php, but if it's non-existent then find:
PHP Code:
error_reporting(7);
And below it add:
PHP Code:
chdir("./forums");
require("nicks.php");
Change "forums" to whatever your forums directory is called.