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)
-   -   vBChat v2.3 (https://vborg.vbsupport.ru/showthread.php?t=71049)

FASherman 01-31-2005 04:14 AM

Suggestions to add:

Prune all when room is empty (via cron)
On Join message
Room title
Built in responsebot

PKRWUD 01-31-2005 05:36 AM

Quote:

Originally Posted by KPalicz
Does anyone have a chat set up somewhere I can try out before I decide to install this?

Have the bugs all been fixed?

You can check it out on my site. I have it set up so there is only one room, and it works great, but I would like to know how to review the days posts. For some reason, as of today, when I post in there, the text and the user name aren't lined up properly. Probably just my browser. Really, though, this Chat program is much better than any of the others I've tried, which is most of them.

http://www.ricehatersclub.com/vbulletin/vBChat.php?

You can log in as: Guest One
Password: one

Or as: Guest Two
Password: two

Eagle Creek 01-31-2005 11:20 AM

chat seems nice :)

sv1cec 01-31-2005 01:56 PM

Well, for one reason or another, I decided to give it a try. I installed it last night and it works OK. Some minor issues with IE (it spreads the first lines over the whole table, trying to space them out evenly over the whole height of the table), but these were not significant.

Some of the complaints I've read here, and which I've managed to fix are:

- Show the number of users in chat in FORUMHOME.
- Make the users column, show the right users, not users who are gone, for hours. This requires a "Logout" button of some sort, that the users have to press instead of just closing the browser window, when done (yes, I open a new window for the chat). This removes their session in the chat from the database, so they no longer show up on the list. At the moment, I am trying to figure out how to prevent them from pressing the X at the top right corner, instead of the log out button, that would need some more searching.
- I didn't exactly like the way the members could create new rooms and then leave them there for the admin to erase. That looked stupid to me, so I changed the hack to delete these rooms, when the last member in them logs out.
- with some changes in the cron job, I made the hack erase the posts which are older than a few minutes. I changed the autoprune parameter to specify minutes instead of days, and I have the cron job running every 15 minutes.
- I also didn't like the way the hack acted when you created a new room, or asked to join a room. If you go to the Select a room to join screen and you select a room, you are immediately transfered to that room. If you ask to create a new room, as soon as you create it, you are transfered to the Select a room to join.

If someone is interested in my changes, I could post them here. But do not take it for granted I'll provide support, in place of ZT.

Rgds

Big Kahuna 01-31-2005 04:08 PM

Well I like the way it was implimented on the Rice Haters club and sure could use it -- but I don't know if I'm willing to take the plunge in something that appears to have been abandon. I've seldom required any support on any of the many hacks I've installed -- but I am concerned when a hack or addin gets abandon.

If you don't mind posting your changes -- I might give it a shot on my test board.

guydogg 01-31-2005 07:54 PM

Is there a way to refresh the user list? I have 6 people in chat, but i know that only two are there, and the others havent been there in awhile.

Thanks in advance.

sv1cec 01-31-2005 08:30 PM

The only way to have a correct user list, is if you force your users to log out, from the chat session. If they do not, they session stays in the list (I think there is a time limit, after that the session is erased). Until it gets erased, you see them in the list.

I added a log out button in my forms, so that the users can log out. In the vBChat.php file, you need to add something like this:

Find:

PHP Code:

// ---------------------------------------------------
// Start Page Output
// --------------------------------------------------- 

Above that, add:

PHP Code:


    
// ---------------------------------------------------
    // Start Logout
    // ---------------------------------------------------

    
if($_GET['do']=="logout")
    {
        
$DB->query("delete from ".TABLE_PREFIX."session WHERE userid=$bbuserinfo[userid] AND location like '%vBChat.php%'");
        eval(
'print_output("' fetch_template('chat_close') . '");');
        exit;
    } 

The template chat_close can be something like:

HTML Code:

<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript"><!--
function winClose() {
    setTimeout('self.close()',8000);
}
//-->
</SCRIPT>
<title>$vboptions[bbtitle] - $pagetitle</title>
$headinclude
</HEAD>

<BODY>
$header
<br><br><br><br>
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
        <td class="tcat" colspan="3"><center>Thank you for using our Chat</center></td>
</tr>
<tr>
        <td class="alt1"><CENTER>This window will now close.<br>Please come back at your convenience.</center></td>
</tr>
</table>

<SCRIPT LANGUAGE="JavaScript"><!--

//and at the end of the page place this call
 
winClose()

//-->
</SCRIPT>
</BODY>
</HTML>

I do that, because I have the chat open in a new window, which I want it to close after the user logs out.

As for the log out link, in your chat_main template, find:

HTML Code:

<b>Post Message:</b>
<input type='text' name='message' class='button' size='70'> <input type='submit' value=' Post ' class='button'>
</td>

Below that, add:

HTML Code:

<td align='right' class='tfoot'><a href='vBChat.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]'>
<input type="submit" class="button" name="logout" value="Log Out" accesskey="l" onClick="window.location='vBChat.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]'">
</a>
</td>


marster37 01-31-2005 09:13 PM

When more messages are added they disappear from the box message area. I get about 14 one line messages before it starts with the new message. Any way to have all the messages stay on the screen. When I scroll up there isnt anything more than 14 messages at a time

sv1cec 01-31-2005 09:45 PM

Quote:

Originally Posted by marster37
When more messages are added they disappear from the box message area. I get about 14 one line messages before it starts with the new message. Any way to have all the messages stay on the screen. When I scroll up there isnt anything more than 14 messages at a time

In vBChat.php find:

PHP Code:

$chat_page .= "<table height='100%' border='0'>";

        
// Get All Chat Messege's If Any
        
$Get_Chat_MSG $DB->query("select m.*,u.* from ".TABLE_PREFIX."vbchat_store m
        left join "
.TABLE_PREFIX."user u on (u.userid = m.s_postby) where m.s_forroom = '{$bbuserinfo['vbchat_pref_in_room']}' order by m.s_postime desc limit 0,15"); 

The last number there, at the last line, that 15, is the number of messages that it shows you. I changed that to 30 in my site. If you want all messages to show, remove the " limit 0,15" part. But it's useless, if you scroll up to read the previous messages, and the screen refreshes, you will be thrown back at the bottom again, so I do not see it very useful.

Rgds

Eagle Creek 01-31-2005 10:51 PM

Are these nice alternatives:

https://vborg.vbsupport.ru/showthrea...highlight=chat

https://vborg.vbsupport.ru/showthrea...ight=Flashchat

?


All times are GMT. The time now is 06:36 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.03117 seconds
  • Memory Usage 1,766KB
  • 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
  • (3)bbcode_html_printable
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (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