The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Quick Question...
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...
|
#2
|
||||
|
||||
It is possible, but you need to know which code to find. Things have changed since 2.2.2
|
#3
|
||||
|
||||
in addtion to my previous post.....i just realized it was 2.2.0.....
well here's what i encountered... i was looking for Code:
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... Code:
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 Code:
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')."\";"); } Code:
$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... aranoid: aranoid: and it was asking for a replacement of the code....but they didnt match up.... can i get any help? :stupidiam: |
#4
|
|||
|
|||
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.
|
#5
|
||||
|
||||
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 |
#6
|
||||
|
||||
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?
|
#7
|
||||
|
||||
Without the name of the hack you are trying to install, that would be impossible.
|
#8
|
||||
|
||||
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
|
#9
|
||||
|
||||
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. |
#10
|
||||
|
||||
I did compare, but seeing as to how i know <---> this much about PHP and hacking im kinda drawin a blank, but meh ok.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|