vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Quick Question... (https://vborg.vbsupport.ru/showthread.php?t=46825)

Hobbes 12-20-2002 02:49 AM

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...: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

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')."\";");
    }

and my index.php has
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... :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.


All times are GMT. The time now is 07:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01017 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete