View Full Version : Quick Question...
Hobbes
12-20-2002, 02:49 AM
I'm relatively new to hack installing, and I just had a quick question. I recently tried to install an older hack from a vB 2.2.2 onto my recent vB 2.2.9. Is it possible to install any older hacks onto my new 2.2.9? I tried to install the 'colored users online hack' only to realize that the code was completely different in my index.php, than the install.txt said. Well, that's my question...:D
Erwin
12-20-2002, 03:00 AM
It is possible, but you need to know which code to find. Things have changed since 2.2.2 :)
Hobbes
12-20-2002, 03:18 AM
in addtion to my previous post.....i just realized it was 2.2.0..:(...
well here's what i encountered...
i was looking for
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";");
}
while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
and all i could find, was...
if ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
if ($loggedin['invisible']==0 or $bbuserinfo['usergroupid']==6) {
$numbervisible++;
$userid = $loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
} else {
$invisibleuser = '';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
and soooooo my problem is
the instructions have if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";");
}
and my index.php has
$loggedins=$DB_site->query("SELECT DISTINCT session.userid,username,invisible,usergroupid
FROM session
LEFT JOIN user ON (user.userid=session.userid)
WHERE session.userid>0 AND session.lastactivity>$datecut
ORDER BY invisible ASC, username ASC");
yeah... :paranoid: :paranoid: and it was asking for a replacement of the code....but they didnt match up.... can i get any help? :stupidiam:
Herman
12-20-2002, 03:10 PM
You shouldn't use old hacks, just look at the code and make your own version, that's what I do when I run into an hold hack I want but is a way to early version.
Xenon
12-20-2002, 03:32 PM
normally older hacks also work for newer vb versions, but there are exceptions.
whenever a hack doesn'T work, try to ask in the supportthread if the author or someoneelse can make a working version for the newer one :)
Hobbes
12-22-2002, 10:58 PM
Eh, i dont suppose anyone could give me the code/instructions for a newer version? like 2.2.9 or 2.2.8 or anyone. eh? :(
Boofo
12-22-2002, 11:45 PM
Without the name of the hack you are trying to install, that would be impossible. :)
Hobbes
12-23-2002, 03:17 AM
Lol sorry, it's the colored online users hack. and I downloaded the v 2.2.2 of it....and i recently got 2.2.9, and the code between the 2.2.2 instructions is different between the 2.2.9. so if anyyyyyyone can help me i would be :D
DrkFusion
12-23-2002, 01:34 PM
You would have the link to the hack handy would you.
Most of all the hacks in 2.2.x should work for 2.2.9, there may be minor little code changes, but if you start comparing, you will find out where to put the code.
Hobbes
12-23-2002, 03:39 PM
I did compare, but seeing as to how i know <---> this much about PHP and hacking im kinda drawin a blank, but meh ok.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.