vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   jPilot hack (https://vborg.vbsupport.ru/showthread.php?t=25230)

TigerLily 09-02-2001 12:37 AM

I decided to go with the hack already posted and see if I could alter it enough to get it to work. I am showing "Nobody in the chat room at this time" which is correct, but I am pretty sure I still have something messed up.

Under this line (around line 143):

Code:

          eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";");
    }
  }

I put this:

Code:

// CHAT HACK
// Ok Get Users and Stats

  $location=$loggedin['location'];
          if ($location['forumid']==105) { //chatuser hack
        $chatuser=$loggedin['username'];
                }
  if ($chatuser=$DB_site->fetch_array($loggedins))
      {
    $numchatusers = $DB_site->query("SELECT DISTINCT session.userid,username,invisible FROM session LEFT JOIN user ON (user.userid=session.userid) WHERE session.userid>0 AND forumid='$foruminfo[105] AND session.lastactivity>$datecut ORDER BY invisible ASC, username ASC");
  $numchatuser = $numchatusers[chatcount];
    $chatusername=$chatuser[username];
    $activechatusers=$chatusername;
  while ($chatuser=$DB_site->fetch_array($loggedins)) {
      $chatusername=$chatuser[username];
      $activechatusers.=", ".$chatusername;
    }
    if ($numchatuser == 1) {
      $numchatuser = "There is ".$numchatuser." person in the chat room";
    } else {
      $numchatuser = "There are ".$numchatuser." people in the chat room";
    }
    $lightbulb = 'on';
  } else {
    $lightbulb='off';
    $numchatuser = "Nobody is in the chat room at this time.";
  }
  eval("\$chatinfo .= \"".gettemplate("chatloggedin")."\";");

// END CHAT HACK

I made a simple template called chatloggedin:

Code:

<BR><BR>
<img src="images/$lightbulb.gif" border="0" alt=""><B>Who's in Chat:</b>
<BR>
$numchatuser
<BR> $activechatusers

Or a little fancier:

Code:

<tr id="cat">
        <td bgcolor="{categorybackcolor}" colspan="6"><a href="online.php?s=$session[sessionhash]"><normalfont color="{categoryfontcolor}"><img src="{imagesfolder}/$lightbulb.gif" border="0" alt=""><b>Who's In Chat: </b></A></normalfont><smallfont>&nbsp;&nbsp;$numchatuser</td>
</tr>
<tr>
        <td bgcolor="{firstaltcolor}" colspan="6"><smallfont>
<BR> $activechatusers

I will probably have to make the chat room live before I can tell if this is working, but it's a start. I think I need to majorly crack open some PHP books and start learning!

TigerLily:)

itzsnider 09-15-2001 07:06 PM

I copied the template and changed things so it would make it connect to my server etc. Now when I try to connect I get this message

sometimes it gets ident response sometimes it doesnt

but I always get
***User Not enough parameters

any help would be appreciated


thanks


http://24.3.25.212/forums/forumdisplay.php?forumid=11

here is the link

itzsnider 09-17-2001 02:28 AM

hello anyone know what I need to do to fix this problem?

ladyfire 09-20-2001 06:11 AM

Just fyi....if you are looking at jpilot, there is an add-on i just found and implemented on my site that ROCKS for jpilot....

http://jirc.webt.dk there is the site for downloading it, and Here is my implementation of it.

It is an outstanding front end, plus gives you the required code to let your users auto generate code to add chat room access to your chat to their own sites (great traffic builder).

Just thought i would throw that in, while everyone was discussing Jpilot :)


All times are GMT. The time now is 08:21 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.01010 seconds
  • Memory Usage 1,727KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete