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)

guydogg 02-23-2005 09:08 PM

Can someone post an uninstaller

Zero Tolerance 02-24-2005 07:31 AM

Thanks sv1cec/John, they will be definatly something i consider.

Current v2.0 Features Completed:
- Iframe Refresh Abolished
--- The system now uses hidden iframes to gather data, then uses Javascript to transport the HTML to the display iframe, which never reloads, and never flashes white when recieving chat messages or posting, just like any of chat system like MSN etc...

- Users Currently In vBChat Reformatted
--- The display of users is now more formal, showing the there chat status here, also displaying a link to send a private message instead of clicking there username

- Timestamp in messages
--- The timestamp has been put back, it was removed in an earlier release due to the user chat status, however this has been moved to Users Currently In vBChat Display

- vBChat Preferences Redesigned
--- The vBChat Preferences form has been re-designed to be a more neater and easier to use form.

- Smilies Animation Problem
--- Before when clicking to insert an emoticon, the animation of any current ones would come to a complete pause, this has been fixed, you can click on them continually and the animations will continue to play onwards.

- Improved Users In vbChat
--- The users in vbchat display is now more correct, and works towards your forums session cut-off time, where as before it may of displayed a user offline, but still showed them within vBChat, this is no longer a case, improving accuracy more :)

That's it for now, i'll get working on more things to stuff into this thing. Thanks to everyone who has supported this modification.

- Zero Tolerance

iSpanish 02-24-2005 07:42 AM

Quote:

Originally Posted by guydogg
Can someone post an uninstaller

i want uninstaller too

Zero Tolerance 02-24-2005 07:48 AM

Quote:

Originally Posted by Marboosh.Net
I'll make an un-installer come with v2.0 :)

I'll make an un-installer come with v2.0 :)

- Zero Tolerance

sv1cec 02-24-2005 07:50 AM

Zero, good to have you back, your programming skills are certainly very welcome here.

The new features take away most of the problems. I would like to suggest something, as far as the Chat rooms are concerned, and which has been discussed here a few posts back.

The chat rooms can be divided in two categories, those created by the admin and those initiated by users, in order to have private discussions or whatever. The ones the admin creates should be permanent, while the others should get erased (according to my opinion) automatically, as soon as the last member logs off. That takes care of the wishes of some admins for permanent rooms, while in the same time reduces the admin work, who does not have to go around erasing private rooms which were created and then abandoned.

Of course, the thing that remains to deal with, is the log out, which is a problem. In my board, the log out button has made the users list neater, no more users showing there, if they are not really there. But if you have any idea on how to disable or forbid users from closing the chat window, that would be really neat.

I am looking forward to ... re-patch your new version for AWS.

Kind rgds

Zero Tolerance 02-24-2005 07:55 AM

Well that's a good idea, however i think an alternative method would be more appropriate, let me hear what you think.

When an admin create's a room, they can choose for it to be permanent or not, as for rooms getting deleted after the creator logs out, kinda bad, people would be annoyed if they are still chatting inside that room. So..

How about rooms that are *not* permanant are pruned after 1 hour of inactivity, this prune time would ofcourse be admin controllable, but i think if the room has had no messages inside it for the last 60 minutes, or whatever time the admin specifies, it should then be automatically pruned.

That's my thoughts on this anyway, i think it would be the most appropriate and liked method.

- Zero Tolerance

iSpanish 02-24-2005 08:05 AM

Quote:

Originally Posted by Zero Tolerance
I'll make an un-installer come with v2.0 :)

- Zero Tolerance

i am asking about unisntaller for v1.0.1???


to install a new Version.

sv1cec 02-24-2005 08:08 AM

Quote:

Originally Posted by Zero Tolerance
Well that's a good idea, however i think an alternative method would be more appropriate, let me hear what you think.

When an admin create's a room, they can choose for it to be permanent or not, as for rooms getting deleted after the creator logs out, kinda bad, people would be annoyed if they are still chatting inside that room. So..

How about rooms that are *not* permanant are pruned after 1 hour of inactivity, this prune time would ofcourse be admin controllable, but i think if the room has had no messages inside it for the last 60 minutes, or whatever time the admin specifies, it should then be automatically pruned.

That's my thoughts on this anyway, i think it would be the most appropriate and liked method.

- Zero Tolerance

Oh no, you got me wrong, I never suggested that the room should be deleted when the creator logs out. What I suggested was that the room gets deleted when the last user from that room logs out. In that way, there will be no one left to .... be annoyed.

The time-out feature, where rooms get deleted after some time of inactivity is a nice backup feature, in case the last user of that room didn't hit the logout button.

Suggestions only my friend, act according to your own judgement.

Rgds

Zero Tolerance 02-24-2005 08:31 AM

Quote:

Originally Posted by sv1cec
Oh no, you got me wrong, I never suggested that the room should be deleted when the creator logs out. What I suggested was that the room gets deleted when the last user from that room logs out. In that way, there will be no one left to .... be annoyed.

The time-out feature, where rooms get deleted after some time of inactivity is a nice backup feature, in case the last user of that room didn't hit the logout button.

Suggestions only my friend, act according to your own judgement.

Rgds

You can just download the version currently in this thread, and choose to upgrade from v1.0.1 -> v1.1.1, then when the new one is released you can upgrade from 1.1.1 -> 2.0

But if you really want to un-install then...
Run these queries to un-install the DB modifications:
Code:

drop table `vb3_vbchat_datastore`
Code:

drop table ` vb3_vbchat_store`
Code:

alter table `vb3_user` drop
vbchat_pref_font_face,
vbchat_pref_font_color,
vbchat_pref_user_ignore,
vbchat_pref_status,
vbchat_pref_auto_on,
vbchat_pref_auto_msg,
vbchat_pref_in_room;

Change vb3_ to your Forum Prefix :)
Then "un-do" all file edits made during the installation.

@ sv1cec - Ah yes, sorry, guess im still asleep. That is a good method, but some users may want to keep rooms active, so i think if they are deleted after a certain length of time of been in-active, then it will cause less problems. Thanks for the suggestion in any case. :)

- Zero Tolerance

iSpanish 02-24-2005 10:12 AM

Quote:

You can just download the version currently in this thread, and choose to upgrade from v1.0.1 -> v1.1.1,
there no choose like that:
upgrade from v1.0.1 -> v1.1.1

there is only upgrade from v1.1.0 -> v1.1.1

Zero Tolerance 02-24-2005 11:28 AM

Ah yes, i forgot about that update. Anyway the uninstall instructions are above, just follow them, then you can install v1.1.1 fresh :)

- Zero Tolerance

Zero Tolerance 02-24-2005 01:06 PM

Update...

Current v2.0 Features Completed:
- Iframe Refresh Abolished
--- The system now uses hidden iframes to gather data, then uses Javascript to transport the HTML to the display iframe, which never reloads, and never flashes white when recieving chat messages or posting, just like any of chat system like MSN etc...

- Users Currently In vBChat Reformatted
--- The display of users is now more formal, showing the there chat status here, also displaying a link to send a private message instead of clicking there username

- Timestamp in messages
--- The timestamp has been put back, it was removed in an earlier release due to the user chat status, however this has been moved to Users Currently In vBChat Display

- vBChat Preferences Redesigned
--- The vBChat Preferences form has been re-designed to be a more neater and easier to use form.

- Smilies Animation Problem
--- Before when clicking to insert an emoticon, the animation of any current ones would come to a complete pause, this has been fixed, you can click on them continually and the animations will continue to play onwards.

- Improved Users In vbChat
--- The users in vbchat display is now more correct, and works towards your forums session cut-off time, where as before it may of displayed a user offline, but still showed them within vBChat, this is no longer a case, improving accuracy more :)

- Chat Now In Pop Up Window
--- The chat will be displayed as a pop now instead of a normal page, allowing users to chat & browse at the same time

- Inactive Rooms Auto Pruned
--- This is admin controllable, you may set if rooms with inactivity will be auto pruned, you can select from 1 to 24 hours, if rooms havn't had any inactivity in the last x hours, they will automatically be removed.

- Permanent Rooms
--- When admins/smods create a chat room, they have the option to make it permanent, doing this will stop the room from been pruned due to inactivity, the only way to remove it then is via the ACP.

- What Room Are You In
--- The main chat page will now display which room you're chatting within

- Total Users
--- The main chat page will now display the total amount of users currently within that chat room

- User Joining Rooms
--- Upon first joining vBChat, the chat will display: "[user] Joins Room"

- User Changing Rooms
--- Upon changing rooms, the previous room you were in will display "[user] Leaves Room" and the new room will display "[user] Joins Room"


- Zero Tolerance

vishalsachar 02-24-2005 01:19 PM

Zero -- this is absolutely awesome! Where can we download the new version?

You have made a major addition! Awesome!!

Zero Tolerance 02-24-2005 01:21 PM

Quote:

Originally Posted by vishalsachar
Zero -- this is absolutely awesome! Where can we download the new version?

You have made a major addition! Awesome!!

Version 2 is currently under production, you can expect to see it very soon :)

- Zero Tolerance

vishalsachar 02-24-2005 01:32 PM

Thank You!

May I humbly make one small suggestion? When all users leave the chat room, can it be automatically pruned? That was the only thing I wish could be there.

If you would make this feature, I would be extremely grateful. It can be a bit weird for people to come into the chat room and be able to read whta was being discussed before (I only wish to have one room)

It seems the new version waits from 1-24 hours to auto prune. Can this be instant? As soon as the room is empty everything is pruned?

Thank you for all your hard work.

Zero Tolerance 02-24-2005 01:37 PM

Hmm, but if a user was to join/leave rooms all the time, it could cause high server load.

And that feature doesn't prune the messages after x hours of inactivity, it removes the actual chat room, unless it is ofcourse the default room or a parmanent room :)

- Zero Tolerance

sv1cec 02-24-2005 01:43 PM

Quote:

Originally Posted by Zero Tolerance
Hmm, but if a user was to join/leave rooms all the time, it could cause high server load.

And that feature doesn't prune the messages after x hours of inactivity, it removes the actual chat room, unless it is ofcourse the default room or a parmanent room :)

- Zero Tolerance

Stop the chit-chat here and start coding! LoL

We are anxiously waiting for V.2.0

Rgds

Zero Tolerance 02-24-2005 03:36 PM

Lol...

Update...

Current v2.0 Features Completed:
- Iframe Refresh Abolished
--- The system now uses hidden iframes to gather data, then uses Javascript to transport the HTML to the display iframe, which never reloads, and never flashes white when recieving chat messages or posting, just like any of chat system like MSN etc...

- Users Currently In vBChat Reformatted
--- The display of users is now more formal, showing the there chat status here, also displaying a link to send a private message instead of clicking there username

- Timestamp in messages
--- The timestamp has been put back, it was removed in an earlier release due to the user chat status, however this has been moved to Users Currently In vBChat Display

- vBChat Preferences Redesigned
--- The vBChat Preferences form has been re-designed to be a more neater and easier to use form.

- Smilies Animation Problem
--- Before when clicking to insert an emoticon, the animation of any current ones would come to a complete pause, this has been fixed, you can click on them continually and the animations will continue to play onwards.

- Improved Users In vbChat
--- The users in vbchat display is now more correct, and works towards your forums session cut-off time, where as before it may of displayed a user offline, but still showed them within vBChat, this is no longer a case, improving accuracy more :)

- Chat Now In Pop Up Window
--- The chat will be displayed as a pop now instead of a normal page, allowing users to chat & browse at the same time

- Inactive Rooms Auto Pruned
--- This is admin controllable, you may set if rooms with inactivity will be auto pruned, you can select from 1 to 24 hours, if rooms havn't had any inactivity in the last x hours, they will automatically be removed.

- Permanent Rooms
--- When admins/smods create a chat room, they have the option to make it permanent, doing this will stop the room from been pruned due to inactivity, the only way to remove it then is via the ACP.

- What Room Are You In
--- The main chat page will now display which room you're chatting within

- Total Users
--- The main chat page will now display the total amount of users currently within that chat room

- User Joining Rooms
--- Upon first joining vBChat, the chat will display: "[user] Joins Room"

- User Changing Rooms
--- Upon changing rooms, the previous room you were in will display "[user] Leaves Room" and the new room will display "[user] Joins Room"

- Exit vBChat Link
--- Upon clicking, chat automatically closes and a message is left in the room saying "[user] Leaves Room"

- /status Command
--- Change your vBChat Status by typing: "/status YOUR STATUS HERE"

- /exit Command
--- Same as the Exit vBChat link, only you may type it in as a command

- vBChat Help
--- Displays all chat commands, descriptions and examples of using them


- Zero Tolerance

ambrosious 02-24-2005 03:51 PM

Quote:

Originally Posted by ambrosious
I put the above in and got a parse error, unexpected else on a line way down. If you dont mind, would you look to see what is wrong with this code? Have I mucked it up?

PHP Code:

while ($loggedin $DB_site->fetch_array($forumusers))
        {
                
$userid $loggedin['userid'];
                if (!
$userid)
                {        
// Guest
                        
$numberguest++;
                        
$inforum["$loggedin[inforum]"]++;
                }
                else if (empty(
$userinfos["$userid"]['lastactivity']) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
                {
                        
$userinfos["$userid"] = $loggedin;
                        
$numberregistered++;
                        if (
$userid != $bbuserinfo['userid'])
                        {
                                
$inforum["$loggedin[inforum]"]++;
                        }
                        
$loggedin['musername'] = fetch_musername($loggedin);

                        if (
fetch_online_status($loggedin))
                        {
                                
$numbervisible++;
                                eval(
'$activeusers .= ", ' fetch_template('forumhome_loggedinuser') . '";');
                        }
                }
        }

        
// memory saving
        
unset($userinfos$loggedin);

        
$activeusers substr($activeusers 2); // get rid of initial comma

        
$DB_site->free_result($loggedins);

        
$totalonline $numberregistered $numberguest;
        
$numberinvisible $numberregistered $numbervisible;

        
// ### MAX LOGGEDIN USERS ################################
        
$maxusers unserialize($datastore['maxloggedin']);
        if (
intval($maxusers['maxonline']) <= $totalonline)
        {
                
$maxusers['maxonline'] = $totalonline;
                
$maxusers['maxonlinedate'] = TIMENOW;
                
build_datastore('maxloggedin'serialize($maxusers));
        }

        
$recordusers $maxusers['maxonline'];
        
$recorddate vbdate($vboptions['dateformat'], $maxusers['maxonlinedate'], true);
        
$recordtime vbdate($vboptions['timeformat'], $maxusers['maxonlinedate']);

        
$show['loggedinusers'] = true;
}
else
{
        
$show['loggedinusers'] = false;


Thanks for all your help on this so far!


Anyone? Anyone?

Zero Tolerance 02-24-2005 03:56 PM

Start with a fresh index.php, and then try modify it again for the vbChat edits, if you still get an error post saying so :)

- Zero Tolerance

Zero Tolerance 02-24-2005 07:08 PM

I've spent quite some time and i've actually managed to conjour up a way of telling if the red "X" was pressed in the corner via Javascript, the method is working for firefox aswell as internet explorer, so now if a user closes the window without pressing the exit link or using the exit command, it will still say they have left as soon as they close the window :)

I think this gathers up all of what is needed for v2.0, expect to see the release later tonight or tomorrow afternoon, depending on what random events fire-up :)

- Zero Tolerance

sv1cec 02-24-2005 07:44 PM

Quote:

Originally Posted by Zero Tolerance
I've spent quite some time and i've actually managed to conjour up a way of telling if the red "X" was pressed in the corner via Javascript, the method is working for firefox aswell as internet explorer, so now if a user closes the window without pressing the exit link or using the exit command, it will still say they have left as soon as they close the window :)

I think this gathers up all of what is needed for v2.0, expect to see the release later tonight or tomorrow afternoon, depending on what random events fire-up :)

- Zero Tolerance

I knew I could trust you to solve the difficult issues.

Please let us know when 2.0 is out. I have work to do!

Rgds

Zero Tolerance 02-24-2005 08:07 PM

Version 2.0 has been released :)

- Zero Tolerance

yoyoyoyo 02-24-2005 08:37 PM

Quote:

Originally Posted by Zero Tolerance
Version 2.0 has been released :)

- Zero Tolerance

very cool! thanks much!

smsmasters 02-24-2005 08:37 PM

This hack is awesome man!!!

Zero Tolerance 02-24-2005 08:41 PM

Thanks, hey i just noticed something very funny *points to attachment below* Look at # of replies :p

- Zero Tolerance

rainyleaves 02-24-2005 09:16 PM

Awesome,Awesome,Awesome,Awesome, Thanks^^

MB Dreamz 02-24-2005 09:19 PM

First off, thank you for such a great hack! :)

Now, I have a tiny problem. I just upgraded from v1.1.1 to v2.0. Tested it in both Firefox and IE, and they're working, except for the smilies. I cannot use them unless I manually key them in.

www.CafeTrends.com

Please help...thanks.

Zero Tolerance 02-24-2005 09:24 PM

Quote:

Originally Posted by DanKao
First off, thank you for such a great hack! :)

Now, I have a tiny problem. I just upgraded from v1.1.1 to v2.0. Tested it in both Firefox and IE, and they're working, except for the smilies. I cannot use them unless I manually key them in.

www.CafeTrends.com

Please help...thanks.

I'll look into the problem, if it is a problem and not an error on your part, i'll release an update tomorrow, i'd do it now but i'm very tired indeed ... sorry :p

- Zero Tolerance

SVTOA 02-24-2005 09:28 PM

ZT, I get this error, I think I may have missed an upgrade version?

Invalid SQL: update vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups= '',d_bannedusers='',d_chat_ord er='bottom',d_smiliedisplay='1',d_smilieamount='10 ',d_allowbantag='1',d_maxrooms ='3',d_smilequery='1',d_autoprune='0',d_autopruned ays='0',d_roomprune='1' where did='1'
mysql error: Unknown column 'd_smilequery' in 'field list'

Zero Tolerance 02-24-2005 09:29 PM

Quote:

Originally Posted by SVTOA
ZT, I get this error, I think I may have missed an upgrade version?

Invalid SQL: update vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups= '',d_bannedusers='',d_chat_order='bottom',d_smilie display='1',d_smilieamount='10',d_allowbantag='1', d_maxrooms='3',d_smilequery='1',d_autoprune='0',d_ autoprunedays='0',d_roomprune='1' where did='1'
mysql error: Unknown column 'd_smilequery' in 'field list'

SVTOA - Which version were you using before you upgraded? The upgrader was built on the idea that users were using v1.1.1

- Zero Tolerance

SVTOA 02-24-2005 09:37 PM

Ruh Roh... I ***think*** it was 1.0.1 :(
My bad for not paying closer attention.

Zero Tolerance 02-24-2005 09:43 PM

Alright, run the following queries, change vb3_ to your table prefix :)
If you get any mySQL errors while doing any, just ignore them, it means you already have that part installed.

Code:

alter table vb3_vbchat_datastore
add d_smiliedisplay tinyint(2) not null default '1',
add d_smilieamount int(15) not null default '10',
add d_allowbantag tinyint(2) not null default '1',
add d_chatrooms text not null default '',
add d_maxrooms int(15) not null default '5';

Code:

alter table vb3_user
add vbchat_pref_status varchar(10) not null default '',
add vbchat_pref_auto_on tinyint(2) not null default '0',
add vbchat_pref_auto_msg varchar(255) not null default '',
add vbchat_pref_in_room int(15) not null default '0';

Code:

alter table vb3_vbchat_store
add s_forroom int(15) not null default '0';

Code:

alter table vb3_vbchat_datastore
add d_smilequery tinyint(2) not null default '0',
add d_autoprune tinyint(2) not null default '1',
add d_autoprunedays int(15) not null default '1';

After doing those, re-check all area's of the system, things should be working just fine for ya :)

- Zero Tolerance

RMS-Chef 02-24-2005 09:49 PM

Thanks for the update, I will check it out soon. I had moved to the SigmaChat integration system because the users were not digging the page refresh thingy. I will give this another try to keep as much as posible locally hosted. Thanks again.

SVTOA 02-24-2005 10:01 PM

Seems to work now ZT, thanks much. :)

Zero Tolerance 02-24-2005 10:01 PM

Quote:

Originally Posted by RMS-Chef
Thanks for the update, I will check it out soon. I had moved to the SigmaChat integration system because the users were not digging the page refresh thingy. I will give this another try to keep as much as posible locally hosted. Thanks again.

Well one of the great things about this version is the refresh system, the chat iframes are no longer refreshed, hidden iframes get the data and transport it to viewable one's, which means there is no more flashing of white backgrounds when it reloads the message's :)

- Zero Tolerance

SVTOA 02-24-2005 10:22 PM

Quote:

Exit vBChat Link
--- Upon clicking, chat automatically closes and a message is left in the room saying "[user] Leaves Room"

One thing I do not see is the exit link?

SVTOA 02-24-2005 10:27 PM

Also, upon exit, I see a small, non-resizable window that appears to have a cut-off message, perhaps a "credits" window?

iSpanish 02-24-2005 10:35 PM

hello

nice upgrade to this hack Zero Tolerance..

tody i will un-install the old one
then install the new Version

thanks.

HC. 02-24-2005 10:47 PM

just installed this hack for first time but the pop up window is huge

I had to drag over 8 times to see it all I run 1280x1024

Is there a way to chenge the default popup window size?


All times are GMT. The time now is 04:48 PM.

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.04730 seconds
  • Memory Usage 1,912KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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