vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Who's in chat on forumhome.. (No eggdrop) (https://vborg.vbsupport.ru/showthread.php?t=65099)

OrangeFlea 09-07-2004 07:13 PM

Will this hack work with Digichat?

EvilLS1 09-07-2004 08:18 PM

I'm not familiar with digichat but this one works with all embedded IRC applets. If digichat can be embedded into a template then it should work.

OrangeFlea 09-08-2004 04:33 AM

I'm not familiar with the term: "irc applets"

Digichat is a java applet. It doesn't log onto IRC or use IRC servers from what I know of it.

Here's a site that uses it:

http://www.mswebpals.org/digi.htm

I'm seriously considering whether I should get digichat, and the only thing that's holding me back are questions regarding its "Who's Chatting" flexibility. If a good-quality chat program can't do it as you've illustrated in your hack, then I don't want it.

EvilLS1 09-08-2004 04:50 AM

Quote:

Originally Posted by OrangeFlea
I'm not familiar with the term: "irc applets"

Digichat is a java applet. It doesn't log onto IRC or use IRC servers from what I know of it.

Here's a site that uses it:

http://www.mswebpals.org/digi.htm

I'm seriously considering whether I should get digichat, and the only thing that's holding me back are questions regarding its "Who's Chatting" flexibility. If a good-quality chat program can't do it as you've illustrated in your hack, then I don't want it.

I should have said Java applet. Anyway, as long as the applet itself can be embedded into the template supplied in the hack instructions I can't think of any reason that it wouldn't work.

Like I said, I'm not familiar with digichat but I do know that some of the high dollar chat softwares such as realchat do provide a way to show who's in chat on remote pages. This hack is geared more toward people who use web based IRC clients such as jpilot or pjirc. It could work with other types aswell but the only way to find out is to try it.

Dewayne

Partybuster 09-27-2004 11:44 PM

Quote:

Correct me if I'm wrong, but I don't think VBXIRC is an actual chat software, but rather a hack that integrates PJIRC with vbulletin. The actual chat software is pjirc, so thats where you'd download the applet code. I don't know what all the integration hack does but it most likely embeds the code into a template just like this hack. Not sure if its compatible with this hack or not.
You are right I guess. It uses pjirc and integrates it with vbulletin.

I also use VBXirc which is in /forum/chat directory and I would like to know if I can make some modifications to use forum/chat/index.php instead of forum/chat.php and make it work. I guess it isn't easy because you need chat.php to make it work, right?

I'm satisfied with VBXirc and it would be great to keep it and use this hack at the same time.

EvilLS1 09-28-2004 12:38 AM

Quote:

Originally Posted by Partybuster
You are right I guess. It uses pjirc and integrates it with vbulletin.

I also use VBXirc which is in /forum/chat directory and I would like to know if I can make some modifications to use forum/chat/index.php instead of forum/chat.php and make it work. I guess it isn't easy because you need chat.php to make it work, right?

I'm satisfied with VBXirc and it would be great to keep it and use this hack at the same time.

I'm sure its possible to get them to work together but I have no way to test it b/c I don't use vbxirc, so you'd have to do some experimenting yourself.

I think all you'd really need to do is copy this section of code from chat.php:
Code:

if (!$bbuserinfo['userid'])
{
        print_no_permission();
}


$chatuser = $bbuserinfo[username];
$userid = $bbuserinfo[userid];
$time = intval(TIMENOW);

 $somestuff = $DB_site->query("SELECT * FROM " . TABLE_PREFIX . "chatters WHERE userid=$userid");

        if ($DB_site->num_rows($somestuff)!=0)
{
        $DB_site->query("UPDATE " . TABLE_PREFIX . "chatters SET chattime = $time WHERE userid = $userid");
} else {
  $DB_site->query("INSERT INTO " . TABLE_PREFIX . "chatters (username,chattime,userid) VALUES ('".addslashes($chatuser)."','$time','".intval($userid)."')");
}



// ########################## EXTEND CHAT SESSION #############################
if ($_GET['do'] == "extendsession") {
        echo "<META HTTP-EQUIV=Refresh CONTENT=\"60; URL=".$vboptions['bburl']."/chat.php?do=extendsession\">";
        exit;
}

...And paste it into your forums/chat/index.php.

Then you'd need to add this to the template that loads the chat applet:
Code:

<iframe src="$vboptions[bburl]/chat.php?do=extendsession" width=0 height=0 frameborder=0></iframe>
After that, you'd still need to run the query to create the table, add the chat_chatters template, do the edits to index.php and your forumhome template.

Partybuster 09-28-2004 10:34 AM

Thanks for the info, I will give it a try.

Partybuster 09-28-2004 03:33 PM

When you say : "add this to the template that loads the chat applet"
are you talking about the chat_chatbit template or the one which loads my chat (some template from vbxirc) ?

don't I need to modify all lines with /chat.php to /chat/index.php also?

EvilLS1 09-28-2004 07:31 PM

Quote:

Originally Posted by Partybuster
When you say : "add this to the template that loads the chat applet"
are you talking about the chat_chatbit template or the one which loads my chat (some template from vbxirc) ?

don't I need to modify all lines with /chat.php to /chat/index.php also?

You'd need to put it in the vbxirc template which loads the applet.

And yeah, you'd need to change all links that point to /chat.php to /chat/index.php.

JohnBee 11-24-2004 06:24 PM

I also use vbxirc
I am very interested in getting this hack working with vbxirc, alot of users
use it, your instructions are not very clear though.

could someone please work throug it and post the code?


All times are GMT. The time now is 08:07 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.01209 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete