Sven
03-08-2002, 10:00 PM
Not a "real" Hack, more a kind of code modification.
As I'm in the process of importing a large UBB Board (1200+ Members) into a large vBulletin Board (800+ Members) with a lot of double users I needed a script that would help me to identify the Usernames and IDs of the existing vBulletin Users.
There is an option to display this list built in the bbimport.php but it will present a form and you have to scroll alot to identify a userID from a given username.
What I wanted is a printable version and here is what I coded:
<?php
error_reporting(7);
chdir ("./../admin");
include ("./../admin/global.php");
echo "<b>$bbtitle Members:</b>";
$vbusers = $DB_site->query("SELECT userid,username,importuserid FROM user ORDER BY username");
echo "<table border=1><tr><td><b>Username</b></td><td><b>UserID</b></td></tr>";
while ($vbuser = $DB_site->fetch_array($vbusers)) {
echo "<tr><td><font size=2>$vbuser[username]</font></td><td><font size=2>$vbuser[userid]</font></td></tr>";
}
echo "</table>";
?>
Eventually this may help some of you if you're facing a situation as I'm currently doing ;)
Place attached file into the vBulletin/admin directory
As I'm in the process of importing a large UBB Board (1200+ Members) into a large vBulletin Board (800+ Members) with a lot of double users I needed a script that would help me to identify the Usernames and IDs of the existing vBulletin Users.
There is an option to display this list built in the bbimport.php but it will present a form and you have to scroll alot to identify a userID from a given username.
What I wanted is a printable version and here is what I coded:
<?php
error_reporting(7);
chdir ("./../admin");
include ("./../admin/global.php");
echo "<b>$bbtitle Members:</b>";
$vbusers = $DB_site->query("SELECT userid,username,importuserid FROM user ORDER BY username");
echo "<table border=1><tr><td><b>Username</b></td><td><b>UserID</b></td></tr>";
while ($vbuser = $DB_site->fetch_array($vbusers)) {
echo "<tr><td><font size=2>$vbuser[username]</font></td><td><font size=2>$vbuser[userid]</font></td></tr>";
}
echo "</table>";
?>
Eventually this may help some of you if you're facing a situation as I'm currently doing ;)
Place attached file into the vBulletin/admin directory