View Full Version : vBChat v2.3
Zero Tolerance
10-26-2004, 10:00 PM
NOTCE: ALL SUPPORT SHALL NOW BE ANSWERED HERE (https://vborg.vbsupport.ru/forumdisplay.php?f=107)
This is a php/mySQL powered chat system, just brought into production. It's features for v1.0.0 are wide but more are to follow i future versions, this version has the following features:
Key:
White Text - Original Features
ColorA Text - v1.0.1 Features
ColorB Text - v1.1.0 Features
ColorC Text - v1.1.1 Features
vBChat Page
Shows All Messages
Shows Users Currently In The Chat
Click usersname to auto add /msg into post field
Ability To Post A Message
"/me" is also available to be used
"/msg [USERNAME] msg here" command added
Auto scrolling to bottom of page (If msg's set to latest at bottom)
vBChat User Preferences Page
Ability to choose desired font color when posting in the chat
Ability to choose desired font face when posting in the chat
Ability to ignore as many user's as desired in the chat
Ignore users will not display any messages by those users specified on the vBChat page
The inputs for ignoring users are "Auto Creating", baisically when you have filled all the inputs in, 2 more will automatically create to allow the user to input more users without having to submit and reload the page, the inputs are added aslong as the rest are filled in. This requires javascript to be enabled, but it is compatible in IE/FireFox/Netscape
Admin Controls
vBChat Options
Turn the chat system on/offline
Allow users to enter bbcode
Ban specific usergroups from accessing the vBChat system
Ban specific members from accessing the vBChat system
Choose which way msg's are displayed, newest at top or newest at bottom
vBChat Prune Options
Prune By Days - Prunes messages older than number of days inputted
Prune By Member - Prunes all messages by member inputted
Pune By Private MSG's Sent By User - Prunes All Private MSG's sent by user
Pune By Private MSG's Recieved By User - Prunes All Private MSG's recieved by user
Complete Prune - Removes All Messages
[u]v1.0.1 FEATURES
Smilie Box - Smilies Are displayed above the chat input
Additional Features
ACP - Select if the smilies are displayed
ACP - Select amount of smilies shown
Query Reduction - No extra queries are required for the smilies to be loaded
User Status - User status is displayed in the vBChat Page (in replace of time/date)
Additonal Features
User can edit there user status in the vBChat User Preferences page
User Auto Responder - User can choose to have an auto message auto sent to anyone that Private MSG's them on vBChat
Additional Features
User can input a message that will be displayed with the auto responder
User can select if the auto responder is on or off
Private MSG Link Updated (When you press people's names at the side on vBChat, the command to private msg them pop's into the input box)
Additional Features
If using internet explorer, the text "<Your Private MSG Here>" will automatically be highlighted
Admin/SMod Ban/Unban Abilities - Type in /ban or /unban [Username] to ban/unban members
Additonal Features
ACP - Choose if unban/ban tags are operational
Chat Rooms
Additonal Features
ACP - Edit/Remove Chat Rooms
ACP - Delete "All" Inactive Rooms
ACP - Set max number of rooms that can be open at the same time
Optional Password Protection
Display Users In Chat On Forum Index Page
Additional Features
None
[u]New v1.1.1 Features:
Ability to change smilie information to DB Call to stop Red X's (Optional because setting it to yes will cause 1 extra query, and should only be set to yes if you have the Red X's problem)
vBChat Auto Pruning - Ability to turn auto pruning on, and set how many days old messages that will be deleted to be
Version 2.0 Features
- 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
- Close Chat Window
--- Upon closing the chat window, the system recognizes this and displays a message in the chat saying you have left: "[user] Leaves Room"
Version 2.1 Updates:
- Uncached template "chat_iframe_blank" has now been cached
- Clicking smilies will now enter the code into the post field
- Upon exiting vBChat, your session will be deleted so other users will instantly see you removed from "Users Currently In vBChat"
- Internet Explorer may delete your message half way through typing, this has been fixed
vBChat v2.2 Updates:
- Bug Fix: Window too large upon opening
- Bug Fix: Other vBChat Links Didn't Open Pop Up For vBChat
- Admin CP interface for Usergroup & User banning completely re-designed, no more manual inputting of id's, the system will use a new format to add/remove banned usergroups/users to make it even easier.
- Usergroup Permissions
--- Group Can Create Custom Rooms (Yes/No)
--- Group Can Join Custom Rooms (Yes/No)
--- Group Can Join Permanent Rooms (Yes/No
--- Permissions removed if usergroup is banned
- Upon changing room you are redirected straight to vBChat instead of been stuck at the room select page
- Upon deleting chat rooms (via ACP or Auto Prune) all chat messages inside are deleted for good
- When editing a chat room via ACP you may choose if it is a permanent room or not
vBChat v2.3 Updates:
- Now only 1 refreshing iframe, eliminating a minimum of 8 queries per page refresh, cutting the system resources needed by nearly half!
- Several queries have been optomized, selecting data which wasn't required.
Note: This was a maintenance update, to optomize the system, no new features have been made.
Installation Update For v2.3
You may install v2.3 fresh
You may upgrade from v2.2 -> 2.3
(Archived versions included for those who missed updates!)
The install has an automatic script to add templates and database modifcations.
Previews are available below showing the vBChat system and admin controls.
Branding Free Option
Should you wish to have the visible copyright removed from vBChat, please send me a private message here on vbulletin.org, the price is $30. If you require any other details on this, please make sure all enquiries are put into a PM, and not the thread itself. Note: Payment method must be via PayPal
Donations
All donations great or small are appreciated to the greatest extent, wether it's for the modification itself or just a little incentive for myself, if you would like to donate then you can do so via PayPal, my email to send to is: webmaster@gzevolution.net
Thanks to all those who have currently donated for this modification!
Enjoy :)
- Zero Tolerance
Skyline_GT
10-27-2004, 06:55 AM
very nice ZT:)
* Skyline_GT installed:)
ice chrono
10-27-2004, 06:58 AM
Sweet code man
i installed it in less than 7 minuts :-D
bendigo-tech
10-27-2004, 07:22 AM
Fantastic work buddy! Installed in a matter of minutes.
Cheers :)
mrcancel
10-27-2004, 08:01 AM
installed !!! thanks for this mod !
HiDeo
10-27-2004, 08:14 AM
Thanks for this nice hack ;)
It looks veeeeeeeery nice ZT!! Bravo!! And I must compliment you on the excellent instructions. Worded very clearly and with examples for those who are not experienced in code modifying.
One question - If I ban specific usergroups will they be aware that the chat is present? In other words is it possible for me to upload this for use by administrators and moderators only without the other forum members aware of it?
AlexanderT
10-27-2004, 02:16 PM
Wooow!
Bolas
10-27-2004, 03:08 PM
very nice!
But Are U able to let people (by usergroup or not...) to create private chat rooms with or without password (or filter by username)? :D
SVTOA
10-27-2004, 03:39 PM
Awesome, well done!
nautiqeman
10-27-2004, 03:41 PM
/me installs
TheRealFragger
10-27-2004, 04:01 PM
/me installs the crap outta it
I need a new chat, good job man all my users thank you
Red Blaze
10-27-2004, 04:11 PM
Works well for VB 3.0.0. *clicks install* :)
TheRealFragger
10-27-2004, 04:37 PM
there is one thing so far that i do not like, its the fact that if there are enough messages to warrent a scroll bar it pops back to the top of the page so i have to scroll back down. When it gets populated it might be a problem
EDIT: It also does this when it refreshes too
EDIT2: my little temp fix is to limit the number of messages i changed in vbchat.php;
left join ".TABLE_PREFIX."user u on (u.userid = m.s_postby) order by m.s_postime desc limit 0,15");
into
left join ".TABLE_PREFIX."user u on (u.userid = m.s_postby) order by m.s_postime desc limit 0,13");
mrcancel
10-27-2004, 05:56 PM
very nice!
But Are U able to let people (by usergroup or not...) to create private chat rooms with or without password (or filter by username)? :D
Ya, me too !
I want to creat private chat rooms !!!
NuclioN
10-27-2004, 06:34 PM
Nice :) The refresh is a flash of white, can this be dark so a refresh is not so...noticable?
Red Blaze
10-27-2004, 07:53 PM
there is one thing so far that i do not like, its the fact that if there are enough messages to warrent a scroll bar it pops back to the top of the page so i have to scroll back down. When it gets populated it might be a problem
EDIT: It also does this when it refreshes too
Well, I think it'd be better if the messages were from top to bottom rather bottom to top. In other words, instead of the new messages being the bottom ones, make the new messages appear at the top.
SVTOA
10-27-2004, 07:58 PM
there is one thing so far that i do not like, its the fact that if there are enough messages to warrent a scroll bar it pops back to the top of the page so i have to scroll back down. When it gets populated it might be a problem
EDIT: It also does this when it refreshes too
EDIT2: my little temp fix is to limit the number of messages i changed in vbchat.php;
left join ".TABLE_PREFIX."user u on (u.userid = m.s_postby) order by m.s_postime desc limit 0,15");
into
left join ".TABLE_PREFIX."user u on (u.userid = m.s_postby) order by m.s_postime desc limit 0,13");
I had to set it to 10 to work for me... There must be a line we can chage so it will not go to the top, as this is the only complaint members have, although your solution seems to work ok. As long as nobody posts a picture that is. :D
TheRealFragger
10-27-2004, 08:22 PM
i have it set to 13 because of the fact that i have quite a few in there and some of the messages got lost
EDIT: and i agree with bolth of you
bendigo-tech
10-27-2004, 10:02 PM
there is one thing so far that i do not like, its the fact that if there are enough messages to warrent a scroll bar it pops back to the top of the page so i have to scroll back down. When it gets populated it might be a problem
That is the only thing I don't like about it as well. Thanks for your little workaround. Worked a treat!
Cheers :)
Zero Tolerance
10-27-2004, 10:25 PM
Yeah i have updated the one on my forum so it auto scrolls down., part of v1.0.1
I will be including other features such as:
Create Rooms
/noicon command (cancels out emoticons)
Choose message order (top-bottom / bottom-top)
Display Name's for the chat
/msg {user} command (only the user inputted will see the message)
As for th flash of white, im afraid that cant be changed, on load the webpage is white, this will only occur for people on slower modems tho.
- Zero Tolerance
SVTOA
10-27-2004, 10:31 PM
Zero T- Will there be an upgrade script as well? I have other forums I would like to install this on, perhaps i should wait for the update?
Very nice work, thank you sharing this with us.
Zero Tolerance
10-27-2004, 10:34 PM
Yes there will be an update script and a fresh install script when new versions are released :)
- Zero Tolerance
SVTOA
10-27-2004, 10:38 PM
Yes there will be an update script and a fresh install script when new versions are released :)
- Zero Tolerance
Spoken like a true professional. :)
Sypher
10-27-2004, 10:39 PM
nice hack zt!
dndog
10-27-2004, 11:33 PM
Awesome.
/me clicks install
Skaterscafe.com
10-27-2004, 11:38 PM
Awsome.
ZT, I have one question....I have the vBadvanced CMPS v1.0.0 and in the AdminCP/index.php there's really nothing there just a few statements, nothing like should be...any suggestions?
Here is what's in the file:
<?php
// ++================================================ =========================++
// || vBadvanced CMPS v1.0 RC2 ||
// || ? 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved ||
// || This file may not be redistributed in whole or significant part. ||
// || http://vbadvanced.com ||
// ++ ================================================== ======================++
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'adv_index');
define('VBA_PORTAL', true);
// ============================================
// Enter the full path to your forum here
// Example: /home/vbadvanced/public_html/forum
// ============================================
http://www.skaterscafe.com/public.html
// ============================================
// No Further Editing Necessary!
// ============================================
require_once('./global.php');
print_portal_output($home);
?>
Zero Tolerance
10-28-2004, 01:03 AM
Well i havnt used the vBAdvanced Portal cms thingy, but are you sure your admin files are not in another directory, or the admin index.php is renamed to something else when you install this? If so then edit the renamed file.
vBChat v1.0.1 40% Done
- Zero Tolerance
SVTOA
10-28-2004, 03:13 AM
ZT, you are top-notch. Upgrade worked perfectly.
Zero Tolerance
10-28-2004, 03:27 AM
Good to hear :)
Enjoy the new features.
- Zero Tolerance
Blam Forumz
10-28-2004, 04:04 AM
Installed v1.0.0, but it doesnt show up on any skin but the default, any ideas?
bendigo-tech
10-28-2004, 04:06 AM
Upgraded to 1.0.1 and that went nicely. I get the following error though when I try and change where the newest message appears:
Warning: Cannot modify header information - headers already sent by (output started at /home/raywells/public_html/forums/includes/adminfunctions.php:223) in /home/raywells/public_html/forums/admincp/admin_vbchat.php on line 126
yinyang
10-28-2004, 04:30 AM
excellent work *clicks install*. is it possible to put to create a vbadvanced module and put this chat in there instead of having it's own page? then it can be left on in the home portal page and people can instantaneously join and see what's going on.
Zero Tolerance
10-28-2004, 05:57 AM
Installed v1.0.0, but it doesnt show up on any skin but the default, any ideas?
Change your "default skin" in your vb options, then run the skin installer part, it will then install on that skin :)
Upgraded to 1.0.1 and that went nicely. I get the following error though when I try and change where the newest message appears:
Warning: Cannot modify header information - headers already sent by (output started at /home/raywells/public_html/forums/includes/adminfunctions.php:223) in /home/raywells/public_html/forums/admincp/admin_vbchat.php on line 126
I decided not to go with redirects with this acp control, so i used the header(); function, now default the vb acp does not echo/output any html before the script has executed, so a modification has changed this, you will have to find out what im afraid.
excellent work *clicks install*. is it possible to put to create a vbadvanced module and put this chat in there instead of having it's own page? then it can be left on in the home portal page and people can instantaneously join and see what's going on.
I arn't familiar with the system but ill look to see what i can do :)
- Zero Tolerance
Blam Forumz
10-28-2004, 08:07 AM
Change your "default skin" in your vb options, then run the skin installer part, it will then install on that skin :)
Thanks,
0_0
I have to do alot of non-lazy mans work now ??
Blam Forumz
10-28-2004, 08:30 AM
Ok, sorry for the trouble, but how would i do these? (Attached image)
Blam Forumz
10-28-2004, 01:33 PM
Also
why doesnt the child style inherit the templates from the parent style when it comes to this hack?
Lethal
10-28-2004, 02:05 PM
can you show users currently in chat on forumhome?
Bolas
10-28-2004, 03:13 PM
SuperHack! :)
I'm sure that Zero is reserving us lot of features for the next upgrade! ;)
Zero Tolerance
10-28-2004, 04:17 PM
@Blam Forumz:
You need to change your skin to get rid of the background, the chat uses iframes, and also modify the templates to merge the menu's.
And the templates added get inherited to child styles, if you install it on the parent style.
______________________________________________
@Lethal
It is a possibility for future versions
______________________________________________
@Bolas
Seems your 1 step ahead.
______________________________________________
- Zero Tolerance
TheRealFragger
10-28-2004, 04:20 PM
ZT i thank you for the quick response and fixes. This great hack just got better :)
NuclioN
10-28-2004, 05:17 PM
Zero, is it possible to transform this so it will function as a shoutbox alternative in the forumhome template? It then needs to be smaller. I've tried this but can't modify it as it sould be. Maybe it has to have a refreshbutton because people are complaining about the flash-refresh.
Nordinho
10-28-2004, 05:44 PM
Heya,
The hack looks great, but can it be used on busy boards/does it use a lot of server resources??
Greets,
Blam Forumz
10-28-2004, 06:35 PM
@Blam Forumz:
You need to change your skin to get rid of the background, the chat uses iframes, and also modify the templates to merge the menu's.
And the templates added get inherited to child styles, if you install it on the parent style.
- Zero Tolerance
I did instal it on the parent style :| maybe i just messed up somewhere
Thanks for the advice on the first one though (I like my background :( oh well)
I tried modifying the templates, but i couldnt ;| Everytime i tried, i messed up
thanks Zero Tolerance i may give it a try :)
khaleel
10-28-2004, 07:39 PM
Looks AWESOME! Just what ive been looking for ill post back once ive installed it and give some feedback thanks mate :D
crashys
10-28-2004, 08:55 PM
hi there, i?m kinda new to these things, so i?m having a little problem, I need to change the vBChat scrollbar colors to the ones I have in my website, can you guys point me out the code to do it? I don?t know, maybe ZT knows it, or any of you guys? Thanks in advance :)
Zero Tolerance
10-28-2004, 11:31 PM
Zero, is it possible to transform this so it will function as a shoutbox alternative in the forumhome template? It then needs to be smaller. I've tried this but can't modify it as it sould be. Maybe it has to have a refreshbutton because people are complaining about the flash-refresh.
The whole idea is that this program is a chat client, not a shoutbox. If you desire a shoutbox i suggest you actually install a shoutbox, theres a few floating around here on vbulletin.org
Heya,
The hack looks great, but can it be used on busy boards/does it use a lot of server resources??
Greets,
vBChat Page uses 1 extra query to the default vb amount, so thats 6, iframes use 1-3 queries. So id say it uses hardly any resources what so ever.
hi there, i?m kinda new to these things, so i?m having a little problem, I need to change the vBChat scrollbar colors to the ones I have in my website, can you guys point me out the code to do it? I don?t know, maybe ZT knows it, or any of you guys? Thanks in advance
On your website no doubt your scroll bar colours are structured something like this:
BODY {
scrollbar-arrow-color: #121E2E;
scrollbar-3dlight-color: #213B60;
scrollbar-highlight-color: #3B5C8F;
scrollbar-face-color: #213B60;
scrollbar-shadow-color: #3B5C8F;
scrollbar-track-color: #213B60;
scrollbar-darkshadow-color: #3B5C8F;
}
Change the "BODY" to "HTML" and stick it in your forums skin css additional css. If your not sure where that is then follow these guidelines:
ACP -> Styles & Templates -> Style Manager -> Main CSS -> Scroll To Very Bottom To See: Additional CSS Definitions -> Paste CSS In There.
Hope that helps you,
- Zero Tolerance
hey Zero Tolerance, few words :
i have downloaded this hack (didnt installed it yet) and took a look on the code
i must say it is a very clean and impressive coding, also from what i see around no problems or any major bugs. very good work and only 1 word to say
wow.
Thank you for sharing your great work with us.
MiZ.
Red Blaze
10-29-2004, 02:08 AM
Ah, so much better. Do you have other plans for this?
Question: Where do I edit to change the background of the IFrame? o.O;
OrangeFlea
10-29-2004, 02:39 AM
One of the questions I would like to have seen an answer to went largely ignored. Is there a way to show the users in chat (or at least how many are in chat) on the forumhome? If so, then you've answered my 3 month-long prayers.
Squally
10-29-2004, 03:05 AM
First of all, great job man. Question though, I seem to be having a problem with the users online, it keeps taking everyone off except for me. So people are in there but they aren't showing up on my screen.
Zero Tolerance
10-29-2004, 03:57 AM
hey Zero Tolerance, few words :
i have downloaded this hack (didnt installed it yet) and took a look on the code
i must say it is a very clean and impressive coding, also from what i see around no problems or any major bugs. very good work and only 1 word to say
wow.
Thank you for sharing your great work with us.
MiZ.
Thanks, small code so it was easy to tidy up to look presentable :)
Ah, so much better. Do you have other plans for this?
Question: Where do I edit to change the background of the IFrame? o.O;
Modify your skins css in the acp, change the body background attributes so it has no image, but this will cause the bg image to be removed on all pages.
One of the questions I would like to have seen an answer to went largely ignored. Is there a way to show the users in chat (or at least how many are in chat) on the forumhome? If so, then you've answered my 3 month-long prayers.
Im pretty sure i answered the same question a couple of pages back, anyway, as i said before, this is a feature to be in a possible future versions.
First of all, great job man. Question though, I seem to be having a problem with the users online, it keeps taking everyone off except for me. So people are in there but they aren't showing up on my screen.
Depending on the user's browser and ISP this may occur, to get the users in chat a query is ran to see who is on the vBChat page, if there browser/ISP is causing the session to delete and recreate on every page load then it may result in users in chat appearing and disapearing over and over.
- Zero Tolerance
StevenIsProek
10-29-2004, 07:16 AM
thanks bro
Nordinho
10-29-2004, 09:20 AM
vBChat Page uses 1 extra query to the default vb amount, so thats 6, iframes use 1-3 queries. So id say it uses hardly any resources what so ever.
Just installed it...excellent instructions and easy install (5 min)..thanks a lot!!
Greets Nordinho,
Red Blaze
10-29-2004, 02:31 PM
*hrm* So there is no body tag in these templates for it? Thing is my bg clashes with the text and you can't see it that well unless highlighted.
Also a suggestion: How about having an option to make the chat page a pop up. No navigation bar or address bar. Just the window alone with the Iframes. That would work well when users want to surf the forums and chat at the same time.
crashys
10-29-2004, 05:04 PM
Okay, thanks for the scrollbar info, i?m going to try it out. :)
djjeffa
10-29-2004, 10:01 PM
damm even a newb like me installed it no problem
lisagriff
10-31-2004, 02:38 AM
Great chat however,
I changed the iframe background color to white so the whole background doesn't flash everytime it refreshes and that helped. Is there anyway to refresh and not have the text flash? It is SO distracting and difficult to look at for very long. Or did I do something wrong when I installed it?
Lisa
Wential
10-31-2004, 03:30 AM
How did you change the background color to white? I'd like to do the same.
lisagriff
10-31-2004, 10:53 AM
to change background to white:
chat_iframe template
change
<body class='alt2'>
to
<body class=' '>
Lisa
RWDF1
10-31-2004, 01:19 PM
it is installed and working fine. I wanted a chat room for my forum for a while, but most were external and not intigrated with the forum, and I had no control over who would use them. This one is different, it meets all my needs and I can control who uses it, IE only members.
THANK YOU.
djjeffa
10-31-2004, 02:38 PM
Great chat however,
I changed the iframe background color to white so the whole background doesn't flash everytime it refreshes and that helped. Is there anyway to refresh and not have the text flash? It is SO distracting and difficult to look at for very long. Or did I do something wrong when I installed it?
Lisa
As for th flash of white, im afraid that cant be changed, on load the webpage is white, this will only occur for people on slower modems tho.
- Zero Tolerance
Now I need to figer out how to ad a smilly menue on the template and also I would like too add a whos in chat on the index but I searched with no luck
Besides that its awsome
madhouse
10-31-2004, 05:32 PM
Zero Tolerance,
Just a suggestion or an idea is to actually have like an announcement script to post to the vbchat system sorta like a news post that runs thru every 2 to 3 minutes like irc does.
If its possible then this would be a great add-on for it.
Red Blaze
10-31-2004, 07:41 PM
to change background to white:
chat_iframe template
change
<body class='alt2'>
to
<body class=' '>
Lisa
That didn't really fix it. o.o;
Zero Tolerance
10-31-2004, 09:45 PM
Try changing
<body class='alt2'>
To:
<body bgcolor='#000000'>
Announcement idea sounds good, i was thinking of implementing when i thought about multiple-rooms, since then it would post it all rooms.
User's currently in chat on the index page will be in the next version btw peeps :)
- Zero Tolerance
Hi,
Thank you for this great hack, I've been waiting for this.
* arpy clicks install ;)
A few post above there was the suggestion to show how many people are online on "whoisonline".
Because this type of chat uses many resources on server, a max. user count would be very nice.
Another suggestion is to update the "who is in chat" only every 60 seconds (maybe include a button to refresh immediatly...
arpy
Ganon
10-31-2004, 11:48 PM
Hmm, looks interesting. Does it have an option to show who'se online in chat near the forum who'se online list by any chance?
lisagriff
11-01-2004, 12:24 AM
Quote:
Originally Posted by Zero Tolerance
As for th flash of white, im afraid that cant be changed, on load the webpage is white, this will only occur for people on slower modems tho.
- Zero Tolerance
The white flashed even on my DSL until I changed the background to white. But what I was really referring to in my previous post was that not only did the white flash, but the text also flashes when it refreshes.
So now the background doesn't flash but the text does!
<body class=' '>
I knew I could change the bgcolor instead of hte class but I wanted to leave it there for the time being until all was set up the way I wanted it to so that I wouldn't forget where to change it back if I wanted to.
Lisa
SVTOA
11-01-2004, 01:02 AM
Hmm, looks interesting. Does it have an option to show who'se online in chat near the forum who'se online list by any chance?
Yes it does clearly show who is in chat if one views "Who's Online" (and has proper permissions to do so)
One of the filemods is to includes/functions_online.php
SVTOA
11-01-2004, 01:06 AM
Just re-read your request, sorry, it sounds like you mean in addition to the forumhome listing of who is on line you want to see who is in chat without having to click the who's online detail link. There is no option for that.
Red Blaze
11-01-2004, 02:48 AM
For some reason it still doesn't work. I'll figure out what I'm doing wrong eventually.
TwinsForMe
11-01-2004, 02:54 AM
Thanks. Great hack!
lisagriff
11-01-2004, 06:30 AM
So now the background doesn't flash but the text does!
I just want to make sure that this is the way it is suppose to be working as I am not familiar with any other chat programs other than ICQ, MSN, etc... and they don't do this.
Is the text suppose to "blink" when the screen refreshes?
Thanks,
Lisa
djjeffa
11-01-2004, 10:38 AM
I just want to make sure that this is the way it is suppose to be working as I am not familiar with any other chat programs other than ICQ, MSN, etc... and they don't do this.
Is the text suppose to "blink" when the screen refreshes?
Thanks,
Lisa
Yes :nervous:
djjeffa
11-01-2004, 10:40 AM
I just want to make sure that this is the way it is suppose to be working as I am not familiar with any other chat programs other than ICQ, MSN, etc... and they don't do this.
Is the text suppose to "blink" when the screen refreshes?
Thanks,
Lisa
Yes it dose
coldpride
11-01-2004, 02:16 PM
Very good ZT :) 2/5 of my users use netscape/firefox so :)
TheRealFragger
11-01-2004, 03:17 PM
quick question: when does the "Users Currently In vBChat" refresh. It seems to take forever. For example one of my members that Whos Online doesnt show to be on the forums is somehow still in chat. Its kinda odd to be chatting to someone who isnt there anymore
Zero Tolerance
11-01-2004, 06:49 PM
The text may blink for slow modems because the page has to refresh, remember php outputs an HTML page and is not an applet, so cant dynamicly change, so a reload is needed im afraid.
And to the person who said this uses a lot of server resources needs to re-check the code, it barely uses anything at all, an additional 1 query on the page, the users in chat iframe uses 1 query, and the chat itself uses 1 query (possibly an extra few for extra msg's and such), but barely anything compared to the rest of the default page's on vBulletin forums itself.
As for refresh taking forever, possibly your server loading slow perhaps, both frames are set to refresh every 8 seconds.
As for giving me the code for the chat in forum-index, no need, its only a simple bit of php to draw out the data already loaded and a template edit, thanks for the offer but i prefer to do things on my own :)
- Zero Tolerance
TheRealFragger
11-01-2004, 06:58 PM
plus the /me is screwed up with bbcode is on like:
[11-01-2004 03:55 PM] Gdog4evr: * is scratching himself
[11-01-2004 03:55 PM] Warlord140: * is playing burnout 3
[11-01-2004 03:54 PM] TheRealFragger: +5 zing
[11-01-2004 03:54 PM] Warlord140: oh ok
TwinsForMe
11-01-2004, 07:36 PM
How do I uninstall this?
Bounce
11-01-2004, 07:53 PM
User's currently in chat on the index page will be in the next version btw peeps :)
- Zero Tolerance
when's the next version https://vborg.vbsupport.ru/external/2005/04/3.gif
TwinsForMe
11-01-2004, 08:48 PM
Can anyone tell me how to uninstall it?
Blam Forumz
11-01-2004, 08:52 PM
run the /admincp/vbchat_install.php then click uninstall
TwinsForMe
11-01-2004, 08:56 PM
I tried that but it doesn't have an uninstall option.
sounds like a good script, will install. One option people will ask for, sound when a new message appears or when someone enters the room
Bounce
11-01-2004, 09:03 PM
The text may blink for slow modems because the page has to refresh, remember php outputs an HTML page and is not an applet, so cant dynamicly change, so a reload is needed im afraid.
And to the person who said this uses a lot of server resources needs to re-check the code, it barely uses anything at all, an additional 1 query on the page, the users in chat iframe uses 1 query, and the chat itself uses 1 query (possibly an extra few for extra msg's and such), but barely anything compared to the rest of the default page's on vBulletin forums itself.
As for refresh taking forever, possibly your server loading slow perhaps, both frames are set to refresh every 8 seconds.
As for giving me the code for the chat in forum-index, no need, its only a simple bit of php to draw out the data already loaded and a template edit, thanks for the offer but i prefer to do things on my own :)
- Zero Tolerance
Hi Zero
Quality hack mate
Is there a way to change it from 8secs to longer, i'm on 1.5 meg connection speeds and it blinks every 4-5 secs and is quite annoying - althou you do get used to it :nervous:
TwinsForMe
11-01-2004, 09:12 PM
I figured it out.
Rambo
11-01-2004, 09:18 PM
Installed and works a charm!
lisagriff
11-01-2004, 11:04 PM
I just found out that the text blinks on my LCD monitor, but not on my regular monitor and both computers are hooked up to DSL (1.5 meg). Must be the difference in the way the screens are refreshed or in the refresh rates. Or could it possibly be the video card? Anybody know?
I will need to be able to explain this in case anyone complains about it after my site goes live.
Thanks,
Lisa
Red Blaze
11-02-2004, 01:19 AM
It's actually the performance of your computer. Has nothing to do with monitors. :p For me, it sometimes blinks, but that's because of my server.
Here's a little something I wiped up. A few template edits to make it a pop up. Hope I didn't forget anything. I put a warning there saying to back up your templates. So do so. :p
If I'm brakin' some rule, I apologize and will take down the files. ._.'
lisagriff
11-02-2004, 03:08 AM
Would you care to elaborate on the reasoning why it has to do with my computer? I am really curious. This computer is the best one out of all the ones I tried and none of the others had any problems.
Lisa
Red Blaze
11-02-2004, 03:52 AM
No no, you said about it being your monitor or something. Or perhaps I misunderstood somewhere. But yeah, it's rather the performance of your computer, the browser, or the server your on. As far as I know, one of those could be it, but I'm sure there's other reasons that I'm not aware of.
qwertzu
11-02-2004, 12:40 PM
This is a php/mySQL powered chat system, just brought into production. It's features for v1.0.0 are wide but more are to follow i future versions, this version has the following features:
Key:
White Text - Original Features
ColorA Text - v1.0.1 Features
vBChat Page
Shows All Messages
Shows Users Currently In The Chat
Click usersname to auto add /msg [username] into post field
Ability To Post A Message
"/me" is also available to be used
"/msg [USERNAME] msg here" command added
Auto scrolling to bottom of page (If msg's set to latest at bottom)
vBChat User Preferences Page
Ability to choose desired font color when posting in the chat
Ability to choose desired font face when posting in the chat
Ability to ignore as many user's as desired in the chat
Ignore users will not display any messages by those users specified on the vBChat page
The inputs for ignoring users are "Auto Creating", baisically when you have filled all the inputs in, 2 more will automatically create to allow the user to input more users without having to submit and reload the page, the inputs are added aslong as the rest are filled in. This requires javascript to be enabled, but it is compatible in IE/FireFox/Netscape
Admin Controls
vBChat Options
Turn the chat system on/offline
Allow users to enter bbcode
Ban specific usergroups from accessing the vBChat system
Ban specific members from accessing the vBChat system
Choose which way msg's are displayed, newest at top or newest at bottom
vBChat Prune Options
Prune By Days - Prunes messages older than number of days inputted
Prune By Member - Prunes all messages by member inputted
Pune By Private MSG's Sent By User - Prunes All Private MSG's sent by user
Pune By Private MSG's Recieved By User - Prunes All Private MSG's recieved by user
Complete Prune - Removes All Messages
The install has an automatic script to add templates and database modifcations.
Upgraders from 1.0.0 To 1.0.1 use an "automatic" upgrader script, makes everything so easy
4 Previews are available below showing the vBChat system and admin controls
Enjoy :)
- Zero Tolerance
thanks a lot
a least a good chat for vb3
qwertzu
11-02-2004, 01:36 PM
hi ZT
i got a problem with the refresh.......... how can i change it in 20 sec for example?
thanks a lot
Bounce
11-02-2004, 07:39 PM
Would you care to elaborate on the reasoning why it has to do with my computer? I am really curious. This computer is the best one out of all the ones I tried and none of the others had any problems.
Lisa
Our chat room is the same, its blinks contantly and the users don't like it
I've had to revert back to the sigma chat room i have also :ermm:
I liked the look about the vB one thou
Still maybe future versions will iron out the probs :rolleyes:
SuperGLS
11-03-2004, 01:28 AM
Thanks for the hack.
I'm eagerly awaiting the new versions.
Zero Tolerance
11-03-2004, 02:15 AM
The blinking text cannot be fixed, as i have explained before the page requires to reload, which may or may not result in blinking text, which depends on a few factors, mainly been:
Server speed, connection speed, cpu processor speed.
And for those wishing to change the refresh rate timer, edit the template "chat_main"
Find:
setInterval("chatFrameReload()",8000)
Change the 8000 to what you want it to be.
Troobleshooting: 8000 = 8 Seconds, Thus 10000 = 10 Seconds.
And new versions will be released when new versions have been completed, thats the best answer i can give to that question =)
- Zero Tolerance
Wayne2k1.com
11-03-2004, 09:11 AM
Installed, and works fine :D
Good job ;)
Wayne2k1.com
11-03-2004, 09:20 AM
One question, since my chat will (probably) be kinda crowded: is there a way to make the admin name both in the chat window and in the user window differently colored?
:)
cclaerhout
11-03-2004, 11:09 AM
Great thanks for this hack ! It's really good.
I've just seen a little problem after the installation : the automatic install process doesn't create templates in the other styles than the main one. I did it manualy.
Except this little problem, congratulations ! Just need the possibility to create private rooms and it woud be perfect :-)
Blam Forumz
11-03-2004, 05:20 PM
Will this ever turn into a flash style chat or a irc style at all? :/
No offence, but its kinda slow atm, still good though
Red Blaze
11-03-2004, 08:38 PM
No, this is only php/MySQL driven. And.. what do you mean slow? o.o? Could be your server. Mine works out fine.
Blam Forumz
11-04-2004, 04:13 AM
No, this is only php/MySQL driven. And.. what do you mean slow? o.o? Could be your server. Mine works out fine.
No, I mean slow as in it has to refresh each time, its web based ><
allhandl
11-04-2004, 12:24 PM
That didn't really fix it. o.o;
snikku, its appears as though you found a fix to the infamous white background issue. What was the key? I tried everything in every template (at least i think) and Im still getting the page bg color. I dont want to change my main css for it will change most of the site.
any help will be appreciated
Red Blaze
11-04-2004, 03:04 PM
heh, I just did my own CSS portion on the chat_iframe template. I deleted the $headinclude, and typed in the css coding for text only. Here, gimmie a few and I'll post a txt file.
EDIT: I just copy/pasted my chat_iframe template in a txt file and attached it.
What I did, is I took $headinclude off, and replaced it with my own CSS coding. You can change the link font color, and/or background. Hope it came in handy! ^^
allhandl
11-04-2004, 03:36 PM
heh, I just did my own CSS portion on the chat_iframe template. I deleted the $headinclude, and typed in the css coding for text only. Here, gimmie a few and I'll post a txt file.
EDIT: I just copy/pasted my chat_iframe template in a txt file and attached it.
What I did, is I took $headinclude off, and replaced it with my own CSS coding. You can change the link font color, and/or background. Hope it came in handy! ^^
Thank you very much. This was driving me up the wall. I changed a lot of the coding around but never even thought to start over with the css.
You just saved me $5.49 on advil. :o)
Red Blaze
11-04-2004, 08:04 PM
Well it took me more than a few ideas and attempts, then I thought "It's the damned CSS." And then viola, I fixed my problem. ^-^
kaotic
11-05-2004, 02:20 AM
What were you guys trying to do? Change the chat bg color to white?
Blam Forumz
11-05-2004, 05:32 AM
Can we have an ETA of the next version? Im really looking forward to it ^^
Also heres a few suggestions :D
Smilie Box
PM Box (When you click on their name a small javascript popup appears for pming them :P)
Allow admin to kick a user out of the chat
Rooms can have passwords (If thats not already a standard feature in the next version)
A few IRC commands like /emote and /me :P
Extra formatting controls via commands (also like irc, e.g ctrl+k to change font colour)
User away messages
User auto responders when they get PM'd
Thanks
/Blam
Red Blaze
11-05-2004, 02:42 PM
Smilie Box
PM Box (When you click on their name a small javascript popup appears for pming them :P)
Allow admin to kick a user out of the chat
Rooms can have passwords (If thats not already a standard feature in the next version)
A few IRC commands like /emote and /me :P
Extra formatting controls via commands (also like irc, e.g ctrl+k to change font colour)
User away messages
User auto responders when they get PM'd
Smilie Box - I dunno if tha's a good idea, it would take up space. But to make everyone happy, an on/off switch for a smilie box would do fine.
PM Box - You can send private messages by clicking on their names already.
Allow Admin to kick a user out - You can ban individual user or a user group via the admincp.
Rooms having pw's - that could be a good idea.
IRC Commands - the /ignore feature could be an easy short cut. But the /me feature is already there.
Format controls - You can do that under Chat Preference.
User Away Message and auto response - eh, maybe a way to add "|away" or something next to the username like some people do it on IRC.
I would like to see some of these ideas too. Is it possible for it to be done?
Blam Forumz
11-05-2004, 03:02 PM
Smilie Box - I dunno if tha's a good idea, it would take up space. But to make everyone happy, an on/off switch for a smilie box would do fine.
PM Box - You can send private messages by clicking on their names already.
Allow Admin to kick a user out - You can ban individual user or a user group via the admincp.
Rooms having pw's - that could be a good idea.
IRC Commands - the /ignore feature could be an easy short cut. But the /me feature is already there.
Format controls - You can do that under Chat Preference.
User Away Message and auto response - eh, maybe a way to add "|away" or something next to the username like some people do it on IRC.
I would like to see some of these ideas too. Is it possible for it to be done?
I know i know but but when i said a PM box i meant like, a mini chat box just to pm them ;) And quick format controls (I know it can be done in chat preference), but wuick ones are just more convenient
Zero Tolerance
11-06-2004, 03:20 PM
Can we have an ETA of the next version? Im really looking forward to it ^^
Also heres a few suggestions :D
Smilie Box
PM Box (When you click on their name a small javascript popup appears for pming them :P)
Allow admin to kick a user out of the chat
Rooms can have passwords (If thats not already a standard feature in the next version)
A few IRC commands like /emote and /me :P
Extra formatting controls via commands (also like irc, e.g ctrl+k to change font colour)
User away messages
User auto responders when they get PM'd
Thanks
/Blam
Hopefully within the next few days the next version will be released.
* Smilie Box - I was thinking the same, perhaps just display a random 15 or so in a line below the msg input box, you press them and the code for them gets inserted into the msg box? Sounds good to me =)
* PM Box - Kinda pointless, how about just a link to the PM screen in a new window?
* Admin Abilities, yes i was thinking - /ban [Username] and /unban [Username]
* Yes, members can create rooms and make them pass protected if they wish, inactive rooms are auto deleted after 2 hours, and rooms are controllable in the acp.
* /me is already included, i guess /emote is just the same really, just type "/me is sad" or w/e you desire
* User status is another thing, i was going to get rid of the time/date before the username and add (Status: xxx) (status would be changed in the vB user preferences page)
* User auto responders .. hmm sounds good, perhaps i make it so if you put a private msg to them and they have auto respond on, it auto private msg's them back with the message of there choice?
They all sound like good ideas and will prolly be included in the next version, 1.1.0
- Zero Tolerance
Blam Forumz
11-06-2004, 06:48 PM
Hopefully within the next few days the next version will be released.
* Smilie Box - I was thinking the same, perhaps just display a random 15 or so in a line below the msg input box, you press them and the code for them gets inserted into the msg box? Sounds good to me =)
* PM Box - Kinda pointless, how about just a link to the PM screen in a new window?
* Admin Abilities, yes i was thinking - /ban [Username] and /unban [Username]
* Yes, members can create rooms and make them pass protected if they wish, inactive rooms are auto deleted after 2 hours, and rooms are controllable in the acp.
* /me is already included, i guess /emote is just the same really, just type "/me is sad" or w/e you desire
* User status is another thing, i was going to get rid of the time/date before the username and add (Status: xxx) (status would be changed in the vB user preferences page)
* User auto responders .. hmm sounds good, perhaps i make it so if you put a private msg to them and they have auto respond on, it auto private msg's them back with the message of there choice?
They all sound like good ideas and will prolly be included in the next version, 1.1.0
- Zero Tolerance
A PM Box would be useful (When i say box i mean window) - so you can keep track of PM's if you ahve many users in that chat at once.
Also, my Users in Chat iframe doesnt have all my users in chat :\
Galadrium
11-06-2004, 11:26 PM
Just installed it on my forum. Looks great! Thanks.
calvinnguyen
11-06-2004, 11:50 PM
I can't wait to see for next release from Zero Tolerance. Thanks Zero Tolerance for your great work. I will wait for next release.
Guy G
11-07-2004, 04:25 PM
erm i searched for version 1.0.0... whre is it? or i can just install this one on a clean install ?
Zero Tolerance
11-07-2004, 06:38 PM
erm i searched for version 1.0.0... whre is it? or i can just install this one on a clean install ?
You can simply install v1.0.1 fresh :)
- Zero Tolerance
TunerNetwork
11-08-2004, 03:54 PM
how do i change the defalt text color, i have a dark background on my forum, and I want to change it so the text etc is white so u can red it, and the users in chat name colors are dark too. Thanks
Guy G
11-08-2004, 08:08 PM
In the middle of the installation, i clicked 'Apply Database Modifications' to go next, but then i had a gateway timeout.. As I know this is nothing serious, so i went back and again clicked 'Apply Database Modifications', but then i got SQL Server errors that the table allready exists(mysql error: Table 'vb3_vbchat_store' already exists & mysql error: Table 'vb3_vbchat_datastore' already exists), so i went back and deleted all tables with the words 'VbChat' in them (vb3_vbchat_store & vb3_vbchat_datastore) BUT then when i try again i get a Collumn error ( mysql error: Duplicate column name 'vbchat_pref_font_face' )........ What can i do to fix this? I did not backup the database before i started the installation (sorry)
:S:S:S
Mijae
11-08-2004, 09:32 PM
Gah, I get this when I submit the vBchat settings:
Warning: Cannot modify header information - headers already sent by (output started at /home/invoid/public_html/forum/includes/adminfunctions.php:223) in /home/invoid/public_html/forum/admincp/admin_vbchat.php on line 126
Line 223 should be somewhere in there:
// get the appropriate <title> for the page
switch(VB_AREA)
{
case 'AdminCP': $titlestring = iif($title, "$title - ") . "$vboptions[bbtitle] - vBulletin $vbphrase[admin_control_panel]"; break;
case 'ModCP': $titlestring = iif($title, "$title - ") . "$vboptions[bbtitle] - vBulletin $vbphrase[moderator_control_panel]"; break;
case 'Upgrade': $titlestring = iif($title, "vBulletin $title - ") . "$vboptions[bbtitle]"; break;
case 'Install': $titlestring = iif($title, "vBulletin $title - ") . "$vboptions[bbtitle]"; break;
default: $titlestring = iif($title, "$title - ") . "$vboptions[bbtitle]";
}
// if there is an onload action for <body>, set it up
$onload = iif($onload != '', " $onload");
// set up some options for nav-panel and head frames
if (defined('IS_NAV_PANEL'))
{
$htmlattributes = ' class="navbody"';
$bodyattributes .= ' class="navbody"';
$headinsert .= '<base target="main">';
}
else
{
$htmlattributes = '';
}
No idea what is wrong. I did a clean install on a 3.0.3 of 1.0.1
Thanks for any help.
EDIT: Possible little bug, you can private message yourself. It doesnt do any harm, but I want to let you know anyway.
EDIT2: As a suggestion for next version, could you make it so the chat recognizes who is admin/mod/regular user? To show the different color ranks and stuff?
And as for the chat, impressive work. I most definetly like it.
taffy056
11-09-2004, 12:14 AM
Hi,
Install went okay no problems, but when I go to the chat I get a white screen with nothing on it, what have I done wrong?
Regards
taffy
AKINCI
11-09-2004, 01:20 AM
Thanks for nice hack.
I get also this error
______________
Warning: Cannot modify header information - headers already sent by (output started at /home/avaralar/public_html/includes/adminfunctions.php:222) in /home/avaralar/public_html/admincp/admin_vbchat.php on line 126
______________
Sorry, does not understand this post .
I decided not to go with redirects with this acp control, so i used the header(); function, now default the vb acp does not echo/output any html before the script has executed, so a modification has changed this, you will have to find out what im afraid.
What exactly here do I have to change?
greets
Harley D
11-09-2004, 04:47 AM
heh, I just did my own CSS portion on the chat_iframe template. I deleted the $headinclude, and typed in the css coding for text only. Here, gimmie a few and I'll post a txt file.
EDIT: I just copy/pasted my chat_iframe template in a txt file and attached it.
What I did, is I took $headinclude off, and replaced it with my own CSS coding. You can change the link font color, and/or background. Hope it came in handy! ^^
Your addition to this hack made it acceptable to use.
thanks to both the creator and yourself.
Can someone please help me & zorobz? we had a little problem :
In the middle of the installation, i clicked 'Apply Database Modifications' to go next, but then i had a gateway timeout.. As I know this is nothing serious, so i went back and again clicked 'Apply Database Modifications', but then i got SQL Server errors that the table allready exists(mysql error: Table 'vb3_vbchat_store' already exists & mysql error: Table 'vb3_vbchat_datastore' already exists), so i went back and deleted all tables with the words 'VbChat' in them (vb3_vbchat_store & vb3_vbchat_datastore) BUT then when i try again i get a Collumn error ( mysql error: Duplicate column name 'vbchat_pref_font_face' )........ What can i do to fix this? I did not backup the database before i started the installation (sorry)
How can we fix this? :S:S:S
Zero Tolerance
11-09-2004, 01:44 PM
Can someone please help me & zorobz? we had a little problem :
In the middle of the installation, i clicked 'Apply Database Modifications' to go next, but then i had a gateway timeout.. As I know this is nothing serious, so i went back and again clicked 'Apply Database Modifications', but then i got SQL Server errors that the table allready exists(mysql error: Table 'vb3_vbchat_store' already exists & mysql error: Table 'vb3_vbchat_datastore' already exists), so i went back and deleted all tables with the words 'VbChat' in them (vb3_vbchat_store & vb3_vbchat_datastore) BUT then when i try again i get a Collumn error ( mysql error: Duplicate column name 'vbchat_pref_font_face' )........ What can i do to fix this? I did not backup the database before i started the installation (sorry)
How can we fix this? :S:S:S
Then it means the database modifications were successful, by doing that it means the install has finished, comtinue with the file edits and you'll be done with it :)
[quote=AKINCI]Warning: Cannot modify header information - headers already sent by (output started at /home/avaralar/public_html/includes/adminfunctions.php:222) in /home/avaralar/public_html/admincp/admin_vbchat.php on line 126[/code]
Open admincp/admin_vbchat.php
Find:
// ----------------------------
// Globalize CP Header
// ----------------------------
print_cp_header("vBChat v1.0.1 Control [Created By Zero Tolerance]");
Replace It With:
// ----------------------------
// Globalize CP Header
// ----------------------------
if($_POST['do'] == "" && ($_GET['do'] == "" || $_GET['do'] == "prune")) {
print_cp_header("vBChat v1.0.1 Control [Created By Zero Tolerance]");
}
Save & Upload admincp/admin_vbchat.php
That should fix the error :)
- Zero Tolerance
ok, but what 2 files do i need to delete? (after i get error i need 2 dl install files)
Mijae
11-09-2004, 02:49 PM
Then it means the database modifications were successful, by doing that it means the install has finished, comtinue with the file edits and you'll be done with it :)
[quote=AKINCI]Warning: Cannot modify header information - headers already sent by (output started at /home/avaralar/public_html/includes/adminfunctions.php:222) in /home/avaralar/public_html/admincp/admin_vbchat.php on line 126[/code]
Open admincp/admin_vbchat.php
Find:
// ----------------------------
// Globalize CP Header
// ----------------------------
print_cp_header("vBChat v1.0.1 Control [Created By Zero Tolerance]");
Replace It With:
// ----------------------------
// Globalize CP Header
// ----------------------------
if($_POST['do'] == "" && ($_GET['do'] == "" || $_GET['do'] == "prune")) {
print_cp_header("vBChat v1.0.1 Control [Created By Zero Tolerance]");
}
Save & Upload admincp/admin_vbchat.php
That should fix the error :)
- Zero Tolerance
Should it say Settings Saved after you click the Save vBChat Options?
Zero Tolerance
11-09-2004, 02:50 PM
Should it say Settings Saved after you click the Save vBChat Options?
Nah it just simply reloads =)
- Zero Tolerance
Zero Tolerance
11-09-2004, 02:51 PM
ok, but what 2 files do i need to delete? (after i get error i need 2 dl install files)
Delete the xml file and the install_vbchat.php
- Zero Tolerance
Guy G
11-09-2004, 03:32 PM
how can i change the chat background or the text color permently?
yay works ^^ only 1 prob.. it uses the forums background.. i dont want that :S:S plus its hard to see text... hwo can i change the background of the messages and connected users list area?
Zero Tolerance
11-09-2004, 05:02 PM
Edit the template chat_iframe and modify the html tag <body>
- Zero Tolerance
Zero Tolerance
11-09-2004, 05:03 PM
vBChat 1.1.0 Under Construction - Expected Feature List:
Smilie Box - Smilies Are displayed above the chat input
Additional Features
ACP - Select if the smilies are displayed
ACP - Select amount of smilies shown
Query Reduction - No extra queries are required for the smilies to be loaded
Current Condition: Completed!
User Status - User status is displayed in the vBChat Page (in replace of time/date)
Additonal Features
User can edit there user status in the vBChat User Preferences page
Current Condition: Completed!
User Auto Responder - User can choose to have an auto message auto sent to anyone that Private MSG's them on vBChat
Additional Features
User can input a message that will be displayed with the auto responder
User can select if the auto responder is on or off
Current Condition: Completed!
Private MSG Link Updated (When you press people's names at the side on vBChat, the command to private msg them pop's into the input box)
Additional Features
If using internet explorer, the text "<Your Private MSG Here>" will automatically be highlighted
Current Condition: Completed!
Admin/SMod Ban/Unban Abilities - Type in /ban [Username] or /unban [Username] to ban/unban members
Additonal Features
ACP - Choose if unban/ban tags are operational
Current Condition: Not Completed
Chat Rooms
Additonal Features
ACP - Create/Edit/Remove Chat Rooms
ACP - Delete "All" Inactive Rooms
ACP - Set max number of rooms that can be open at the same time
Optional Password Protection
Current Condition: Not Completed
Display Users In Chat On Forum Index Page
Additional Features
None
Current Condition: Not Completed
4/7 Features Completed - vBChat 1.1.0 56% Completed
- Zero Tolerance
Mijae
11-09-2004, 05:15 PM
Nah it just simply reloads =)
- Zero Tolerance
Great :D Working fine now :P
Great hack.
Oo wow cant wait for that one!! :O
bdw what do i need to do to change the background white?
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
$headinclude
</head>
<body class='alt2'>
$chat_page
</body>
<if condition="$do_scroll_auto == '1'">
<script type="text/javascript">
<!--
scroll(0,999999999)
-->
</script>
</if>
</html>
Blam Forumz
11-09-2004, 05:40 PM
Looking extremely forward to v 1.1.0
Zero Tolerance
11-09-2004, 05:41 PM
Oo wow cant wait for that one!! :O
bdw what do i need to do to change the background white?
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
$headinclude
</head>
<body class='alt2'>
$chat_page
</body>
<if condition="$do_scroll_auto == '1'">
<script type="text/javascript">
<!--
scroll(0,999999999)
-->
</script>
</if>
</html>
Change
<body class='alt2'>
To:
<body bgcolor='#ffffff'>
- Zero Tolerance
used this:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<meta http-equiv="Cache-Control" content="no-cache" />
$headinclude
</head>
<body bgcolor='#ffffff'>
$chat_page
</body>
<if condition="$do_scroll_auto == '1'">
<script type="text/javascript">
<!--
scroll(0,999999999)
-->
</script>
</if>
</html>
As u can se it still doesnt work :(
Zero Tolerance
11-09-2004, 06:31 PM
Try removing the $headinclude :)
- Zero Tolerance
Zero Tolerance
11-09-2004, 06:31 PM
vBChat 1.1.0 Under Construction - Expected Feature List:
Smilie Box - Smilies Are displayed above the chat input
Additional Features
ACP - Select if the smilies are displayed
ACP - Select amount of smilies shown
Query Reduction - No extra queries are required for the smilies to be loaded
Current Condition: Completed!
User Status - User status is displayed in the vBChat Page (in replace of time/date)
Additonal Features
User can edit there user status in the vBChat User Preferences page
Current Condition: Completed!
User Auto Responder - User can choose to have an auto message auto sent to anyone that Private MSG's them on vBChat
Additional Features
User can input a message that will be displayed with the auto responder
User can select if the auto responder is on or off
Current Condition: Completed!
Private MSG Link Updated (When you press people's names at the side on vBChat, the command to private msg them pop's into the input box)
Additional Features
If using internet explorer, the text "<Your Private MSG Here>" will automatically be highlighted
Current Condition: Completed!
Admin/SMod Ban/Unban Abilities - Type in /ban [Username] or /unban [Username] to ban/unban members
Additonal Features
ACP - Choose if unban/ban tags are operational
Current Condition: Completed
Chat Rooms
Additonal Features
ACP - Create/Edit/Remove Chat Rooms
ACP - Delete "All" Inactive Rooms
ACP - Set max number of rooms that can be open at the same time
Optional Password Protection
Current Condition: Not Completed
Display Users In Chat On Forum Index Page
Additional Features
None
Current Condition: Not Completed
5/7 Features Completed - vBChat 1.1.0 71% Completed
- Zero Tolerance
Now the whole style is gone and everything looks like .. ugh... is there any way to remove the bg but still have a style?
BDW i have a few suggestions for the 1.1.0 system
*Background changer color/image in admincp
Blam Forumz
11-09-2004, 06:41 PM
Ooooooh the suspense is building up!
Do you think you can be done by tonight? :D
Zero Tolerance
11-09-2004, 07:06 PM
Ooooooh the suspense is building up!
Do you think you can be done by tonight? :D
Possibly, no garentee.
vBChat 1.1.0 Under Construction - Expected Feature List:
Smilie Box - Smilies Are displayed above the chat input
Additional Features
ACP - Select if the smilies are displayed
ACP - Select amount of smilies shown
Query Reduction - No extra queries are required for the smilies to be loaded
Current Condition: Completed!
User Status - User status is displayed in the vBChat Page (in replace of time/date)
Additonal Features
User can edit there user status in the vBChat User Preferences page
Current Condition: Completed!
User Auto Responder - User can choose to have an auto message auto sent to anyone that Private MSG's them on vBChat
Additional Features
User can input a message that will be displayed with the auto responder
User can select if the auto responder is on or off
Current Condition: Completed!
Private MSG Link Updated (When you press people's names at the side on vBChat, the command to private msg them pop's into the input box)
Additional Features
If using internet explorer, the text "<Your Private MSG Here>" will automatically be highlighted
Current Condition: Completed!
Admin/SMod Ban/Unban Abilities - Type in /ban [Username] or /unban [Username] to ban/unban members
Additonal Features
ACP - Choose if unban/ban tags are operational
Current Condition: Completed
Display Users In Chat On Forum Index Page
Additional Features
None
Current Condition: Completed
Chat Rooms
Additonal Features
ACP - Create/Edit/Remove Chat Rooms
ACP - Delete "All" Inactive Rooms
ACP - Set max number of rooms that can be open at the same time
Optional Password Protection
Current Condition: Not Completed
6/7 Features Completed - vBChat 1.1.0 85% Completed
Only 1 more feature to complete
- Zero Tolerance
Zero Tolerance
11-09-2004, 07:22 PM
The css overrides any settings in the body tag, the problem is that your style has a picture as a background, try putting this "under" $headinclude to override the css:
<style type="css/text">
<!--
BODY {
background-color: #ffffff;
background-image:;
}
-->
</style>
Blam Forumz
11-09-2004, 07:24 PM
Wow, 15% for 1 more feature 0_0 That must be some pretty big feature
G/l with it
Zero Tolerance
11-09-2004, 07:49 PM
Wow, 15% for 1 more feature 0_0 That must be some pretty big feature
G/l with it
(100 / 7) * 6 = 85.xxxxx = 85%
Simple maths :p
- Zero Tolerance
Mijae
11-09-2004, 08:08 PM
(100 / 7) * 6 = 85.xxxxx = 85%
Simple maths :p
- Zero Tolerance
Pfft, stop giving explanations and get working :P
Zero Tolerance
11-09-2004, 09:27 PM
Hehe okay.
Status on the last feature:
Create Rooms/Join Rooms completed
Pending:
ACP Control For Rooms
Expected ETA:
2 Hours
- Zero Tolerance
wattieuk
11-09-2004, 09:32 PM
Hehe okay.
Status on the last feature:
Create Rooms/Join Rooms completed
Pending:
ACP Control For Rooms
Expected ETA:
2 Hours
- Zero Tolerance
Nice work - thanks a lot for the mod.
wattieuk
11-09-2004, 09:50 PM
Just one question - how can I make the chat messages appear right after the username. At the moment they are all in a separate column (which is quite small).
Zero Tolerance
11-09-2004, 10:24 PM
Just one question - how can I make the chat messages appear right after the username. At the moment they are all in a separate column (which is quite small).
Change these 4 templates:
chat_row
chat_row_me
chat_row_special_recieved
chat_row_special_sent
Change the html table structure to how you desire :)
vBChat 1.1.0 Completed!
Pending:
Install / Upgrade Script / ReadMe
ETA:
30 Mins or less
- Zero Tolerance
Mijae
11-09-2004, 10:41 PM
Change these 4 templates:
chat_row
chat_row_me
chat_row_special_recieved
chat_row_special_sent
Change the html table structure to how you desire :)
vBChat 1.1.0 Completed!
Pending:
Install / Upgrade Script / ReadMe
ETA:
30 Mins or less
- Zero Tolerance
Nice.
Zero Tolerance
11-09-2004, 10:52 PM
v1.1.0 RELEASED
- Zero Tolerance
Deimos
11-09-2004, 11:02 PM
Ran the upgrade script to upgrade from 1.0.1 to 1.1.0 and it said
Database error in vBulletin 3.0.3:
Invalid SQL: 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';
mysql error: Table 'kiareese_uof.vb3_vbchat_datastore' doesn't exist
This was when clicking the "Apply database modifications"
hmm, now the chat window comes up with
Database error in vBulletin 3.0.3:
Invalid SQL: select m.*,u.* from vbchat_store m
left join user u on (u.userid = m.s_postby) where m.s_forroom = '0' order by m.s_postime desc limit 0,15
mysql error: Unknown column 'm.s_forroom' in 'where clause'
mysql error number: 1054
wattieuk
11-09-2004, 11:10 PM
I got exactly the same error.
Zero Tolerance
11-09-2004, 11:11 PM
Ack, i tried to get it done so fast and forgot the simplist of things.
Updated the zip guys, redownload, re-upload install_vbchat.php and run it again, sorry about that.
- Zero Toerance
SVTOA
11-09-2004, 11:14 PM
this just happened to me too... Will try again!
wattieuk
11-09-2004, 11:15 PM
I get this error now:
Database error in vBulletin 3.0.3:
Invalid SQL: alter table chat_store
add s_forroom int(15) not null default '0';
mysql error: Table 'user_pneodb.chat_store' doesn't exist
Deimos
11-09-2004, 11:16 PM
Ok I got rid of those errors by modifying the install file, but now it's installed, the random smilies don't show up on the bottom, they show up as red x's
SVTOA
11-09-2004, 11:17 PM
Well... did as instructed, now get this error instead:
Invalid SQL: alter table chat_store
add s_forroom int(15) not null default '0';
mysql error: Table 'sfx-1co_vbthree.chat_store' doesn't exist
Deimos
11-09-2004, 11:17 PM
I get this error now:
Database error in vBulletin 3.0.3:
Invalid SQL: alter table chat_store
add s_forroom int(15) not null default '0';
mysql error: Table 'user_pneodb.chat_store' doesn't exist
I think the install file is wrong, when installing it sets the name as "Vbchat_Store", but later on during the modifying part, it looks for "chat_store"
Mijae
11-09-2004, 11:20 PM
I think the install file is wrong, when installing it sets the name as "Vbchat_Store", but later on during the modifying part, it looks for "chat_store"
Yep, here too:
Database error in vBulletin 3.0.3:
Invalid SQL: alter table chat_store
add s_forroom int(15) not null default '0';
mysql error: Table 'invoid_vb3.chat_store' doesn't exist
mysql error number: 1146
Date: Tuesday 09th of November 2004 08:18:37 PM
Script: xxx/forum/admincp/install_vbchat.php
Referer: xxx/forum/admincp/install_vbchat.php
Username: Mijae
IP Address: xxx
wattieuk
11-09-2004, 11:20 PM
Tried it again and I now get this:
Invalid SQL: alter table 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';
mysql error: Duplicate column name 'd_smiliedisplay'
mysql error number: 1060
Zero Tolerance
11-09-2004, 11:21 PM
For those that got the error:
alter table chat_store
add s_forroom int(15) not null default '0';
mysql error: Table 'XXXX.chat_store' doesn't exist
Run this query:
alter table TABLE_PREFIXvbchat_store
add s_forroom int(15) not null default '0';
(Change TABLE_PREFIX to your settings)
Then continue with the installation steps.
Remind me to test the install next time i release a new version =P
- Zero Tolerance
Mijae
11-09-2004, 11:26 PM
For those that got the error:
alter table chat_store
add s_forroom int(15) not null default '0';
mysql error: Table 'XXXX.chat_store' doesn't exist
Run this query:
alter table TABLE_PREFIXvbchat_store
add s_forroom int(15) not null default '0';
(Change TABLE_PREFIX to your settings)
Then continue with the installation steps.
Remind me to test the install next time i release a new version =P
- Zero Tolerance
There is another error in the instructions:
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['userid']] = $loggedin;
}
}
I dont have that in index.php :P
wattieuk
11-09-2004, 11:27 PM
Ran query as suggested and still get:
Invalid SQL: alter table 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';
mysql error: Duplicate column name 'd_smiliedisplay'
Zero Tolerance
11-09-2004, 11:29 PM
There is another error in the instructions:
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['userid']] = $loggedin;
}
}
I dont have that in index.php :P
Your supposed to add that, just ignore the lines you dont have and continue, while i go smash my head against a wall.
- Zero Tolerance
SVTOA
11-09-2004, 11:30 PM
I ran the query now get this:
Invalid SQL: alter table 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';
mysql error: Duplicate column name 'd_smiliedisplay'
Zero Tolerance
11-09-2004, 11:32 PM
Ran query as suggested and still get:
Invalid SQL: alter table 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';
mysql error: Duplicate column name 'd_smiliedisplay'
You were supposed to run the query and continue with steps, not the install file, thats done now.
- Zero Tolerance
wattieuk
11-09-2004, 11:33 PM
Bugger! What do i do now then? Do i just delete the install files and then make the code modifications?
SVTOA
11-09-2004, 11:35 PM
"Once finished you will be prompted to delete 2 specific file's, you must do this"
You never get to that point because of the SQL errors...
Zero Tolerance
11-09-2004, 11:35 PM
Bugger! What do i do now then? Do i just delete the install files and then make the code modifications?
Yep :)
- Zero Tolerance
Zero Tolerance
11-09-2004, 11:35 PM
"Once finished you will be prompted to delete 2 specific file's, you must do this"
You never get to that point because of the SQL errors...
Well just delete vbchat.xml and install_vbchat.php
- Zero Tolerance
Deimos
11-09-2004, 11:36 PM
Hey Zero, did you read my post about the missing smilies?
I didn't realise you could set your own status, so ignore that "problem" :P
hehe
wattieuk
11-09-2004, 11:36 PM
Thanks ZT - the two files I delete are installvbchat and vbchat.xml - is that right?
SVTOA
11-09-2004, 11:36 PM
Bugger! What do i do now then? Do i just delete the install files and then make the code modifications?
I guess we delete the install file and the vbchat.xml and continue...
SVTOA
11-09-2004, 11:37 PM
ZeroT, you are working overtime here and I really appreciate it, will check back after the code mods...
Zero Tolerance
11-09-2004, 11:37 PM
wattieuk @ Yes they are.
Deimos @ Missing smilies? vBChat loads the smilies in the datastore, which is the same function used when posting threads.
- Zero Tolerance
Deimos
11-09-2004, 11:40 PM
Yea it's odd, it randomly shows one smiley, but the rest are red x's
Hrm, the smileys are all working on posts etc, but not showing up in the chat.
Is it because I have two groups of smilies? Standard set and a secondary set perhaps?
Zero Tolerance
11-09-2004, 11:41 PM
Yea it's odd, it randomly shows one smiley, but the rest are red x's
Hrm, the smileys are all working on posts etc, but not showing up in the chat.
Is it because I have two groups of smilies? Standard set and a secondary set perhaps?
Give me an example url of one of the smilies that have a red-x please :)
- Zero Tolerance
Deimos
11-09-2004, 11:43 PM
I wish I could!
I can get the URL's for the ones that WORK, but the others just have my forum addess.
This is the forum chat URL
http://www.uoforums.com/forums/vBChat.php?
If I right click on a faulty one and choose "Show picture", it just refreshes ALL the red x's
Zero Tolerance
11-09-2004, 11:47 PM
I wish I could!
I can get the URL's for the ones that WORK, but the others just have my forum addess.
This is the forum chat URL
http://www.uoforums.com/forums/vBChat.php?
If I right click on a faulty one and choose "Show picture", it just refreshes ALL the red x's
Ok, we'll talk in your vbchat :)
- Zero Tolerance
SVTOA
11-09-2004, 11:48 PM
ZT, I'm afraid I'm going to screw up my index.php file- I am not sure where to stop as far as what to replace-
My file does not look like the instructions do-
Zero Tolerance
11-09-2004, 11:51 PM
Yeah re-download the zip and reopen the install, it had some code which wasn't supposed to be found. I updated it about 5 mins ago
- Zero Tolerance
SVTOA
11-09-2004, 11:53 PM
ok, will do.
wattieuk
11-09-2004, 11:55 PM
Change these 4 templates:
chat_row
chat_row_me
chat_row_special_recieved
chat_row_special_sent
Change the html table structure to how you desire :)
It doesn't make any sense to me! Any idea how I can make the chat appear straight after the username?
Zero Tolerance
11-09-2004, 11:57 PM
It doesn't make any sense to me! Any idea how I can make the chat appear straight after the username?
Change the html structure, make it just 1 <td> instead of 2 <td>'s
- Zero Tolerance
SVTOA
11-09-2004, 11:57 PM
This is how it looks in my index.php file:
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') . '";');
}
}
}
So where do I put this?
// Get the users in vBChat
$vbchat_users = array();
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}
// Configure Peeps In vBChat
$invBChat = "";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
// Get Username Style
$invbc['musername'] = fetch_musername($invbc);
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
Zero Tolerance
11-10-2004, 12:17 AM
Change
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') . '";');
}
}
}
TO:
// Get the users in vBChat
$vbchat_users = array();
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') . '";');
}
}
}
// Configure Peeps In vBChat
$invBChat = "";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
// Get Username Style
$invbc['musername'] = fetch_musername($invbc);
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
- Zero Tolerance
Mijae
11-10-2004, 12:36 AM
One of my users is chatting without a username, so he probably found a bug :P
I'll try to make him talk...
SVTOA
11-10-2004, 12:40 AM
ugh... Now it seems that the forumhome "who's online" is fubared. It will only show yourself (your username) as online, but when you click the "who's online" then you see everyone... Any ideas?
SVTOA
11-10-2004, 12:42 AM
Yup, something isn't right. If I revert to the old index (I backed it up) then the who's online works correctly...
SVTOA
11-10-2004, 01:25 AM
Well ZT, the chat itself works great, all features wrok fine. But It would be nice to get that "who's in VB CHat" to work correctly on the forumhome...
Any ideas? I have been comparing code between the edit and the original, I can't locate the problem.
SVTOA
11-10-2004, 01:55 AM
I found some slight differences and altered the code and now at least I can make WHO'S online work again but the "who's in Chat" dispays nobody when there are several. (I guess I'm talking to myself here now!)
bendigo-tech
11-10-2004, 02:57 AM
Excellent work. I have the previous version installed and will install this version once a few bugs have been sorted out.
Thanks ZT :D
Blam Forumz
11-10-2004, 03:53 AM
Upgraded, except only 1 smilie shwos up each time
I found a missing ; in the directions, it will give you a parse error when trying to login to admin panel.
thought you might want to know, its highlight in red, its at the bottom of the code file
:: Open File - ROOT FORUM DIRECTORY/admincp/index.php
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
FIND:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
// *************************************************
$printhr = false;
if (can_administer('canadminsettings'))
{
$printhr = true;
construct_nav_option($vbphrase['vbulletin_options'], 'options.php?null=0', '<br />');
if ($debug == 1)
{
construct_nav_option($vbphrase['admin_help_manager'], 'help.php?do=manage&script=NOSCRIPT');
}
construct_nav_group($vbphrase['vbulletin_options'], '<hr />');
}
if ($printhr == true)
{
construct_nav_spacer();
}
// *************************************************
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
UNDERNEATH ADD:
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++
$printhr = true ;
construct_nav_option ( 'vBChat Options', 'admin_vbchat.php', '<br />' ) ;
construct_nav_option ( 'vBChat Room Control', 'admin_vbchat.php?do=room', '<br />' ) ;
construct_nav_option ( 'vBChat Prune Options', 'admin_vbchat.php?do=prune', '<br />' ) ;
construct_nav_group ( 'vBChat Control', '<hr />' ) ; (would be this one here)
$printhr = false;
Delw
BTW nice job on the chat board,
it took about 20 mins to install and that included finding out about the problem above.
Other than that I found no problems with it.
I do notice the page refreshs alot(every 1-2 seconds) is there a way to slow it down? I am just curius about bandwidth and if the refresh rate will add to it.
Delw
SVTOA
11-10-2004, 10:07 AM
Has anyone who did the most recent upgrade been able to get your "who is currently in chat" to work on your forumhome?
My index.php looks different.. what to change it to? Oo
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}
foreach($userinfos AS $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') . '";');
}
}
SVTOA
11-10-2004, 10:47 AM
My index.php looks different.. what to change it to? Oo
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}
foreach($userinfos AS $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') . '";');
}
}
I think this is the reason I am having trouble with the online users in chat function. When I followed the instructions I was given in my other post, that caused the "Who's online" display to stop working on forumhome, but I was able to correct that myself by comparing code between the additon and the replacement. Now that works again, however the who is currently in chat does not and I am sure it's related to the forumhome code change.
do u in other words know what i need to change? Oo
SVTOA
11-10-2004, 11:23 AM
Well, since it does not work, I would not alter your index.php yet. That is not a requirement for the VB CHat to work, it's to have the "who is in chat" function. I'd wait until we get an answer on this.
lol kk np.. cant wait for him to fix it ^^
EDIT: Installed ^^ Just need 2 more things
*The Index.php replacement (code above)
*How to change message and connected users area BG without killing the style sheet
*How to make Smileys appear not randomly, and only from a selected smileys group
Other than that this is a great hack Zero Tolerance, Awesome job!!
IMO ur hacks are the most usefull ever! especially the warning system.. and u make them so well ^^
I used his latest release ( I believe I dloaded it last night at 6 pm mountain standard time) the whos online works for me just fine. I ran it right out of the box so to speak.
the only edit I had to make was in the admincp/index.php file mentioned above.
Delw
NVM i got it myself :) scroll down :P
SVTOA
11-10-2004, 01:24 PM
I used his latest release ( I believe I dloaded it last night at 6 pm mountain standard time) the whos online works for me just fine. I ran it right out of the box so to speak.
the only edit I had to make was in the admincp/index.php file mentioned above.
Delw
You must have had to edit your forum index.php file, because otherwise the online function would not work?! I'm not talking about the "regular" who's online, I am talking about the "xx users in VB Chat" portion. If you didn't edit index.php then nothing would be effected.
It works on ZT's website so this must be fixable. :D Maybe it's the version of the forum I am using this on? (3.00)
Sorry my bad , I'm still half asleep
Delw
NVM i got it myself well, I stile have 2 more things that I really need, please if you could help me
*How to change message and connected users area BG without killing the style sheet
*How to make Smilies appear not randomly, and only from a selected smilies group (Generic Smilies)
wattieuk
11-10-2004, 05:05 PM
Got this working this morning - thank you very much for all the help and for developing the mod - it's much appreciated. The only thing I would like to change is the size of the messages window which at the moment needs to scroll to the right to be able to see all of the posted messages.
Is there any way to stop this from happening? Cheers.
Yes there is... This will not only mak ethe messages table bigger, it wil even it out with the connected users table...
Go to template chat_man
Find:
<td class='alt2' align='center' width='80%' height='300' rowspan='2'>
<iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatFrame' name='vBChatFrame' onload='checkInp()'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
</td>
<td class='alt2' align='center' width='20%' height='300'>
<iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatUser' name='vBChatUser'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
</td>
Replace With:
<td class='alt2' align='center' width='80%' height='345' rowspan='2'>
<iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatFrame' name='vBChatFrame' onload='checkInp()'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
</td>
<td class='alt2' align='center' width='20%' height='300'>
<iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatUser' name='vBChatUser'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
</td>
I ALSO NEED HELP PLEASE!!!!
*How to change message and connected users area BG without killing the style sheet
*How to make Smilies appear not randomly, and only from a selected smilies group (Generic Smilies)
Very fine addon! Our users love it!
*clicks install*
One question, would it be possible to change the admin panel to make it work in a way that I do not ban usergroup, but allow them? I'd like to let only certain groups in, and at the moment it seems as if the script is only looking at primary user groups. I'd love it if it would be possible to have a secondary usergroup where I can set if users are allowed to chat or now.
I've got my secondary usergroups setup like "feature_arcade" and "feature_chat" etc, so I'll just drop users in he right group to let them have a certain feature.
Thanks a lot,
adp
Galadrium
11-10-2004, 06:17 PM
Thanks for a great hack. Just updated to 1.1.0. Is there anyway to get the time/date stamp back? My users seemed to like that better.
this is important:
I ALSO NEED HELP PLEASE!!!!
*How to change message and connected users area BG without killing the style sheet
*How to make Smilies appear not randomly, and only from a selected smilies group (Generic Smilies)
My users cant see what they write even if they use a diff color.. my forum BG isnt good for this
wattieuk
11-10-2004, 06:32 PM
Yes there is... This will not only mak ethe messages table bigger, it wil even it out with the connected users table...
Go to template chat_man
Find:
<td class='alt2' align='center' width='80%' height='300' rowspan='2'>
<iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatFrame' name='vBChatFrame' onload='checkInp()'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
</td>
<td class='alt2' align='center' width='20%' height='300'>
<iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatUser' name='vBChatUser'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
</td>
Replace With:
<td class='alt2' align='center' width='80%' height='345' rowspan='2'>
<iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatFrame' name='vBChatFrame' onload='checkInp()'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
</td>
<td class='alt2' align='center' width='20%' height='300'>
<iframe width='100%' height='100%' frameborder='0' border='0' src='vBChat.php?&do=chatUser' name='vBChatUser'>Your Browser Does Not Support Iframe's, Get One That Does!</iframe>
</td>
That didnt work - the window still wanted to scroll to the right so you could see all the message.
Guy G
11-10-2004, 06:48 PM
having problems with the show connected users thing... it doesnt show :/
Sweet Evil
11-10-2004, 06:53 PM
Nice, Thanks!
yeah whats wrong here? (same as zorobz question)
// ### LOGGED IN USERS #################################################
$activeusers = '';
if ($vboptions['displayloggedin'])
{
$datecut = TIMENOW - $vboptions['cookietimeout'];
$numbervisible = 0;
$numberregistered = 0;
$numberguest = 0;
$forumusers = $DB_site->query("
SELECT
user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > $datecut
" . iif($vboptions['displayloggedin'] == 1, "ORDER BY username ASC") . "
");
if ($bbuserinfo['userid'])
{
// fakes the user being online for an initial page view of index.php
$bbuserinfo['joingroupid'] = iif($bbuserinfo['displaygroupid'], $bbuserinfo['displaygroupid'], $bbuserinfo['usergroupid']);
$userinfos = array
(
$bbuserinfo['userid'] => array
(
'userid' => $bbuserinfo['userid'],
'username' => $bbuserinfo['username'],
'invisible' => $bbuserinfo['invisible'],
'inforum' => 0,
'lastactivity' => TIMENOW,
'usergroupid' => $bbuserinfo['usergroupid'],
'displaygroupid' => $bbuserinfo['displaygroupid'],
)
);
}
else
{
$userinfos = array();
}
$inforum = array();
// Get the users in vBChat
$vbchat_users = array();
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['userid']] = $loggedin;
}
}
// Configure Peeps In vBChat
$invBChat = "";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
// Get Username Style
$invbc['musername'] = fetch_musername($invbc);
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
foreach($userinfos AS $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 ################################
And also How to change message and connected users area BG without killing the style sheet ?
SVTOA
11-10-2004, 11:22 PM
I got mine to work myself, there was some code missing from the instructions...
djjeffa
11-11-2004, 01:55 AM
anybody figer out whats up with the smillies? half are red x's and how could i close rooms?
SVTOA
11-11-2004, 02:09 AM
Everything works on mine now.
Great hack.
*installed*
You're missing a semicolon in one of the instructional code bits BTW. ;)
yeah whats wrong here? (same as zorobz question)
// ### LOGGED IN USERS #################################################
$activeusers = '';
if ($vboptions['displayloggedin'])
{
$datecut = TIMENOW - $vboptions['cookietimeout'];
$numbervisible = 0;
$numberregistered = 0;
$numberguest = 0;
$forumusers = $DB_site->query("
SELECT
user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > $datecut
" . iif($vboptions['displayloggedin'] == 1, "ORDER BY username ASC") . "
");
if ($bbuserinfo['userid'])
{
// fakes the user being online for an initial page view of index.php
$bbuserinfo['joingroupid'] = iif($bbuserinfo['displaygroupid'], $bbuserinfo['displaygroupid'], $bbuserinfo['usergroupid']);
$userinfos = array
(
$bbuserinfo['userid'] => array
(
'userid' => $bbuserinfo['userid'],
'username' => $bbuserinfo['username'],
'invisible' => $bbuserinfo['invisible'],
'inforum' => 0,
'lastactivity' => TIMENOW,
'usergroupid' => $bbuserinfo['usergroupid'],
'displaygroupid' => $bbuserinfo['displaygroupid'],
)
);
}
else
{
$userinfos = array();
}
$inforum = array();
// Get the users in vBChat
$vbchat_users = array();
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['userid']] = $loggedin;
}
}
// Configure Peeps In vBChat
$invBChat = "";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
// Get Username Style
$invbc['musername'] = fetch_musername($invbc);
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
foreach($userinfos AS $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 ################################
And also How to change message and connected users area BG without killing the style sheet ?
Doesnt anyone know how to fix this?
:ermm:
Red Blaze
11-11-2004, 03:52 AM
Upgraded mine with no problems, excellent. ^_^
Zero Tolerance
11-11-2004, 08:00 AM
Im at college at this moment, so when i get home ill fix the semi-colon error and update the index.php edits so it will work for everyone else, then i'll take a looksy at some of your idea's :)
Sorry for any problems, but with a little patience i will fix them.
- Zero Tolerance
Cornolio
11-11-2004, 08:52 AM
it's a great hack, but.. i've got this error:
Parse error: parse error, unexpected T_VARIABLE in /web/htdocs/www.discutere.it/home/admincp/index.php on line 567 :confused:
at that line there's $printhr = false;
can you help me?
tnx :)
Yeah i have this prob also.. Also,
I have some ideas...
1) Smiley caegory under vBChat options to organize how many smileys, witch smilies, ect..
2)In the options category page add a "BG editor" and a place to insert html wrap tags (like in usergroup editor) so we can put any image/color we want in the bg..
ih and also... Whats wrong here?
// ### LOGGED IN USERS #################################################
$activeusers = '';
if ($vboptions['displayloggedin'])
{
$datecut = TIMENOW - $vboptions['cookietimeout'];
$numbervisible = 0;
$numberregistered = 0;
$numberguest = 0;
$forumusers = $DB_site->query("
SELECT
user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > $datecut
" . iif($vboptions['displayloggedin'] == 1, "ORDER BY username ASC") . "
");
if ($bbuserinfo['userid'])
{
// fakes the user being online for an initial page view of index.php
$bbuserinfo['joingroupid'] = iif($bbuserinfo['displaygroupid'], $bbuserinfo['displaygroupid'], $bbuserinfo['usergroupid']);
$userinfos = array
(
$bbuserinfo['userid'] => array
(
'userid' => $bbuserinfo['userid'],
'username' => $bbuserinfo['username'],
'invisible' => $bbuserinfo['invisible'],
'inforum' => 0,
'lastactivity' => TIMENOW,
'usergroupid' => $bbuserinfo['usergroupid'],
'displaygroupid' => $bbuserinfo['displaygroupid'],
)
);
}
else
{
$userinfos = array();
}
$inforum = array();
// Get the users in vBChat
$vbchat_users = array();
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['userid']] = $loggedin;
}
}
// Configure Peeps In vBChat
$invBChat = "";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
// Get Username Style
$invbc['musername'] = fetch_musername($invbc);
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
foreach($userinfos AS $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 ################################
And also How to change message and connected users area BG without killing the style sheet ?
manguish
11-11-2004, 10:34 AM
Great chat room mod.
BUT : I have a number of usergroups banned from the chat - it bans them ok, and shows the right error message - HOWEVER - they still show within the chat room who's in the chat box while they are reading the error message.
Any ideas?
manguish
11-11-2004, 10:50 AM
FOR ALL THOSE HAVING PROBLEMS WITH THE WHOs IN THE CHAT ROOM ON THE INDEX :
If you haven't got the code as stated in the instructions use this - it is working on my board (3.0.0) :
// Get the users in vBChat
$vbchat_users = array();
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') . '";');
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid'])
{
$vbchat_users[$loggedin['userid']] = $loggedin;
}
}
}
// Configure Peeps In vBChat
$invBChat = "";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
// Get Username Style
$invbc['musername'] = fetch_musername($invbc);
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
Replace the bit it says in the instructions with that ;)
jeremy
11-11-2004, 02:16 PM
it's a great hack, but.. i've got this error:
Parse error: parse error, unexpected T_VARIABLE in /web/htdocs/www.discutere.it/home/admincp/index.php on line 567 :confused:
at that line there's $printhr = false;
can you help me?
tnx :)
change
$printhr = true ;
construct_nav_option ( 'vBChat Options', 'admin_vbchat.php', '<br />' ) ;
construct_nav_option ( 'vBChat Room Control', 'admin_vbchat.php?do=room', '<br />' ) ;
construct_nav_option ( 'vBChat Prune Options', 'admin_vbchat.php?do=prune', '<br />' ) ;
construct_nav_group ( 'vBChat Control', '<hr />' )
$printhr = false;
to
$printhr = true ;
construct_nav_option ( 'vBChat Options', 'admin_vbchat.php', '<br />' ) ;
construct_nav_option ( 'vBChat Room Control', 'admin_vbchat.php?do=room', '<br />' ) ;
construct_nav_option ( 'vBChat Prune Options', 'admin_vbchat.php?do=prune', '<br />' ) ;
construct_nav_group ( 'vBChat Control', '<hr />' ) ;
$printhr = false;
Cornolio
11-11-2004, 03:07 PM
omg, it was just ";" :surprised:
thanks :)
owen100
11-11-2004, 03:37 PM
Looking forward to getting this installed but a BIG problem for me ....
I've changed all the php files other than the admin/index.php file. If I add that extra code, when I try log on to my admin control panel, I don't get a log-in box or access, just a blank screen. The rest of the forum works fine. What's wrong with my admin/index.php file?
This is what it is currently without the extra code added
<?php
/*================================================= =====================*\
|| ################################################## ################## ||
|| # vBulletin 3.0.3 - Licence Number xxxxxxx
|| # ---------------------------------------------------------------- # ||
|| # Copyright ?2000?2004 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| ################################################## ################## ||
\*================================================ ======================*/
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// ##################### DEFINE IMPORTANT CONSTANTS #######################
define('CVS_REVISION', '$RCSfile: index.php,v $ - $Revision: 1.211 $');
define('NO_REGISTER_GLOBALS', 1);
// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('cphome');
$specialtemplates = array('maxloggedin');
// ########################## REQUIRE BACK-END ############################
require_once('./global.php');
// ################################################## ###########################
// ########################### START MAIN SCRIPT ###############################
// ################################################## ###########################
if (empty($_REQUEST['do']))
{
log_admin_action();
}
// ################################################## ###########################
globalize($_REQUEST, array(
'redirect' => STR,
'nojs' => INT,
'loc' => STR_NOHTML
));
// ################################################## ###########################
// ################################## REDIRECTOR ###############################
// ################################################## ###########################
if (!empty($redirect))
{
require_once('./includes/functions_login.php');
$redirect = fetch_replaced_session_url($redirect);
print_cp_header($vbphrase['redirecting_please_wait'], '', "<meta http-equiv=\"Refresh\" content=\"0; URL=$redirect\">");
echo "<p> </p><blockquote><p>$vbphrase[redirecting_please_wait]</p></blockquote>";
print_cp_footer();
exit;
}
// ################################################## ###########################
// ############################### LOG OUT OF CP ###############################
// ################################################## ###########################
if ($_REQUEST['do'] == 'cplogout')
{
vbsetcookie('cpsession', '', 0);
$DB_site->query("DELETE FROM " . TABLE_PREFIX . "cpsession WHERE userid = $bbuserinfo[userid] AND hash = '" . addslashes($_COOKIE[COOKIE_PREFIX . 'cpsession']) . "'");
vbsetcookie('customerid', '', 0);
exec_header_redirect("index.php?$session[sessionurl_js]");
}
// ################################################## ###########################
// ################################# SAVE NOTES ################################
// ################################################## ###########################
if ($_POST['do'] == 'notes')
{
globalize($_POST, array('notes' => STR));
$DB_site->query("
UPDATE " . TABLE_PREFIX . "administrator
SET notes = '" . addslashes(htmlspecialchars_uni($notes)) . "'
WHERE userid = $bbuserinfo[userid]
");
$bbuserinfo['notes'] = htmlspecialchars_uni($notes);
$_REQUEST['do'] = 'home';
}
// ################################################## ###########################
// ############################### SAVE NAV PREFS ##############################
// ################################################## ###########################
if ($_REQUEST['do'] == 'navprefs')
{
globalize($_REQUEST, array('numgroups' => INT, 'expand' => INT));
if ($expand)
{
$_REQUEST['navprefs'] = array();
for ($i = 0; $i < $numgroups; $i++)
{
$_REQUEST['navprefs'][] = $i;
}
$_REQUEST['navprefs'] = implode(',', $_REQUEST['navprefs']);
}
else
{
$_REQUEST['navprefs'] = '';
}
$_REQUEST['do'] = 'savenavprefs';
}
if ($_REQUEST['do'] == 'buildnavprefs')
{
globalize($_REQUEST, array('prefs' => STR, 'dowhat' => STR, 'id' => INT));
$_tmp = preg_split('#,#', $prefs, -1, PREG_SPLIT_NO_EMPTY);
$_navprefs = array();
foreach ($_tmp AS $_val)
{
$_navprefs["$_val"] = $_val;
}
unset($_tmp);
if ($dowhat == 'collapse')
{
// remove an item from the list
unset($_navprefs["$id"]);
}
else
{
// add an item to the list
$_navprefs["$id"] = $id;
ksort($_navprefs);
}
$_REQUEST['navprefs'] = implode(',', $_navprefs);
$_REQUEST['do'] = 'savenavprefs';
}
if ($_REQUEST['do'] == 'savenavprefs')
{
globalize($_REQUEST, array('navprefs' => STR));
if (preg_match('#^[0-9,]*$#', $navprefs))
{
$DB_site->query("
UPDATE " . TABLE_PREFIX . "administrator
SET navprefs = '" . addslashes($navprefs) . "'
WHERE userid = $bbuserinfo[userid]
");
}
$_NAVPREFS = preg_split('#,#', $navprefs, -1, PREG_SPLIT_NO_EMPTY);
$_REQUEST['do'] = 'nav';
}
// ################################################## ###########################
// ################################ BUILD FRAMESET #############################
// ################################################## ###########################
if ($_REQUEST['do'] == 'frames' OR empty($_REQUEST['do']))
{
$navframe = "<frame src=\"index.php?$session[sessionurl]do=nav" . iif($nojs, '&nojs=1') . "\" name=\"nav\" scrolling=\"yes\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" border=\"no\" />\n";
$headframe = "<frame src=\"index.php?$session[sessionurl]do=head\" name=\"head\" scrolling=\"no\" noresize=\"noresize\" frameborder=\"0\" marginwidth=\"10\" marginheight=\"0\" border=\"no\" />\n";
$mainframe = "<frame src=\"" . iif(!empty($loc) AND !preg_match('#^[a-z]+:#i', $loc), $loc, "index.php?$session[sessionurl]do=home") . "\" name=\"main\" scrolling=\"yes\" frameborder=\"0\" marginwidth=\"10\" marginheight=\"10\" border=\"no\" />\n";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html dir="<?php echo $stylevar['textdirection']; ?>" lang="<?php echo $stylevar['languagecode']; ?>">
<head>
<script type="text/javascript">
<!--
// get out of any containing frameset
if (self.parent.frames.length != 0)
{
self.parent.location.replace(document.location.hre f);
}
// -->
</script>
<title><?php echo $vboptions['bbtitle'] . ' ' . $vbphrase['admin_control_panel']; ?></title>
</head>
<?php
if ($stylevar['textdirection'] == 'ltr')
{
// left-to-right frameset
?>
<frameset cols="195,*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
<?php echo $navframe; ?>
<frameset rows="20,*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
<?php echo $headframe; ?>
<?php echo $mainframe; ?>
</frameset>
</frameset>
<?php
}
else
{
// right-to-left frameset
?>
<frameset cols="*,195" framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
<frameset rows="20,*" framespacing="0" border="0" frameborder="0" frameborder="no" border="0">
<?php echo $headframe; ?>
<?php echo $mainframe; ?>
</frameset>
<?php echo $navframe; ?>
</frameset>
<?php
}
?>
<noframes>
<body>
<p><?php echo $vbphrase['no_frames_support']; ?></p>
</body>
</noframes>
</html>
<?php
}
// ################################ MAIN FRAME #############################
if ($_REQUEST['do'] == 'home')
{
print_cp_header($vbphrase['welcome_to_the_vbulletin_admin_control_panel']);
// there have been problems reported with fsockopen() in some PHP versions.
// this should work around it though
if (phpversion() < '4.3.0' OR phpversion() > '4.3.2' OR @ini_get('allow_url_fopen') != 1)
{
$fp = @fsockopen('version.vbulletin.com', 80, $errno, $errstr, 3);
}
else
{
$fp = @fopen('http://version.vbulletin.com', 'r');
}
if ($fp)
{
fclose($fp);
?>
<script type="text/javascript" src="http://version.vbulletin.com/versioncheck.js"></script>
<script type="text/javascript" src="http://version.vbulletin.com/version.js?id=16448fc3"></script>
<script type="text/javascript">
<!--
if (typeof(vb_version) != "undefined" && isNewerVersion("<?php echo $vboptions['templateversion']; ?>", vb_version))
{
var current_version = "<?php echo $vboptions['templateversion']; ?>";
var latest_string = "<?php echo $vbphrase['latest_version_available_x']; ?>";
var current_string = "<?php echo $vbphrase['you_are_running_vbulletin_version_x']; ?>";
var download_string = "<?php echo $vbphrase['download_vbulletin_x_from_members_area']; ?>";
document.writeln('<table cellpadding="4" cellspacing="0" border="0" align="center" width="90%" class="tborder"><tr><td class="tcat" align="center"><b><?php echo $vbphrase['there_is_a_newer_vbulletin_version']; ?></b></td></tr><tr><td class="alt1" align="center">');
document.writeln('<p><b><a href="http://www.vbulletin.com/forum/showthread.ph' + 'p?postid=' + vb_announcementid + '" target="_blank">' + construct_phrase(latest_string, vb_version) + "</a></b></p>");
document.writeln('<p>' + construct_phrase(current_string, current_version.bold()) + '</p>');
document.writeln('<p><a href="http://www.vbulletin.com/members/" target="_blank">' + construct_phrase(download_string, vb_version.bold()) + '</a></p>');
document.writeln('</td></tr></table>');
}
//-->
</script>
<?php
}
// *******************************
// Admin Quick Stats -- Toggable via the CP
if ($vboptions['adminquickstats'])
{
$waiting = $DB_site->query_first("SELECT COUNT(*) AS users FROM " . TABLE_PREFIX . "user WHERE usergroupid = 4");
$starttime = mktime(0, 0, 0, date('m'), date('d'), date('Y'));
$attach = $DB_site->query_first("SELECT SUM(filesize) AS size FROM " . TABLE_PREFIX . "attachment");
$avatar = $DB_site->query_first("SELECT SUM(filesize) AS size FROM " . TABLE_PREFIX . "customavatar");
$profile = $DB_site->query_first("SELECT SUM(filesize) AS size FROM " . TABLE_PREFIX . "customprofilepic");
$newusers = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE joindate >= $starttime");
$newthreads = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "thread WHERE dateline >= $starttime");
$newposts = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "post WHERE dateline >= $starttime");
$users = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE lastactivity >= $starttime");
$mysqlversion = $DB_site->query_first("SELECT VERSION() AS version");
$indexsize = 0;
$datasize = 0;
if ($mysqlversion['version'] >= '3.23')
{
$DB_site->reporterror = 0;
$tables = $DB_site->query("SHOW TABLE STATUS");
$errno = $DB_site->errno;
$DB_site->reporterror = 1;
if (!$errno)
{
while ($table = $DB_site->fetch_array($tables))
{
$datasize += $table['Data_length'];
$indexsize += $table['Index_length'];
}
if (!$indexsize)
{
$indexsize = $vbphrase['n_a'];
}
if (!$datasize)
{
$datasize = $vbphrase['n_a'];
}
}
else
{
$datasize = $vbphrase['n_a'];
$indexsize = $vbphrase['n_a'];
}
}
$DB_site->reporterror = 0;
if ($variables = $DB_site->query_first("SHOW VARIABLES LIKE 'max_allowed_packet'"))
{
$maxpacket = $variables['Value'];
}
else
{
$maxpacket = $vbphrase['n_a'];
}
$DB_site->reporterror = 1;
$attachcount = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "attachment WHERE visible = 0");
$eventcount = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "event WHERE visible = 0");
if (SAPI_NAME == 'apache' AND preg_match('#(Apache)/([0-9\.]+)\s#siU', $_SERVER['SERVER_SOFTWARE'], $wsregs))
{
$webserver = "$wsregs[1] v$wsregs[2]";
}
else
{
$webserver = SAPI_NAME;
}
$serverinfo = iif(ini_get('safe_mode') == 1 OR strtolower(ini_get('safe_mode')) == 'on', "<br />$vbphrase[safe_mode]");
$serverinfo .= iif(ini_get('file_uploads') == 0 OR strtolower(ini_get('file_uploads')) == 'off', "<br />$vbphrase[file_uploads_disabled]");
$postcount = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "moderation WHERE type='reply'");
$threadcount = $DB_site->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "moderation WHERE type='thread'");
$memorylimit = ini_get('memory_limit');
print_form_header('index', 'home');
print_table_header($vbphrase['welcome_to_the_vbulletin_admin_control_panel'], 6);
$firstrow = array(
$vbphrase['server_type'], PHP_OS . $serverinfo,
$vbphrase['web_server'], $webserver,
$vbphrase['mysql'], $mysqlversion['version'],
);
print_cells_row($firstrow, 0, 0, -4, 'top', 1, 1);
print_cells_row(array(
'PHP', PHP_VERSION,
$vbphrase['php_max_post_size'], iif(ini_get('post_max_size'), ini_get('post_max_size'), $vbphrase['n_a']),
$vbphrase['php_memory_limit'], iif($memorylimit AND $memorylimit != '-1', $memorylimit, $vbphrase['none']),
), 0, 0, -4, 'top', 1, 1);
print_cells_row(array(
$vbphrase['mysql_max_packet_size'], convert_kb_to_mb($maxpacket),
$vbphrase['database_data_usage'], convert_kb_to_mb($datasize),
$vbphrase['database_index_usage'], convert_kb_to_mb($indexsize),
), 0, 0, -4, 'top', 1, 1);
print_cells_row(array(
$vbphrase['attachment_usage'], convert_kb_to_mb($attach['size']),
$vbphrase['custom_avatar_usage'], convert_kb_to_mb($avatar['size']),
$vbphrase['custom_profile_picture_usage'], convert_kb_to_mb($profile['size']),
), 0, 0, -4, 'top', 1, 1);
print_cells_row(array(
$vbphrase['events_awaiting_moderation'], vb_number_format($eventcount['count']) . ' ' . construct_link_code($vbphrase['view'], "../$modcpdir/moderate.php?$session[sessionurl]do=events"),
$vbphrase['users_awaiting_moderation'], vb_number_format($waiting['users']) . ' ' . construct_link_code($vbphrase['view'], "user.php?$session[sessionurl]do=moderate"),
$vbphrase['attachments_awaiting_moderation'], vb_number_format($attachcount['count']) . ' ' . construct_link_code($vbphrase['view'], "../$modcpdir/moderate.php?$session[sessionurl]do=attachments"),
), 0, 0, -4, 'top', 1, 1);
print_cells_row(array(
$vbphrase['posts_awaiting_moderation'], vb_number_format($postcount['count']) . ' ' . construct_link_code($vbphrase['view'], "../$modcpdir/moderate.php?$session[sessionurl]do=posts#postlist"),
$vbphrase['threads_awaiting_moderation'], vb_number_format($threadcount['count']) . ' ' . construct_link_code($vbphrase['view'], "../$modcpdir/moderate.php?$session[sessionurl]do=posts"),
$vbphrase['new_users_today'], vb_number_format($newusers['count']),
), 0, 0, -4, 'top', 1, 1);
print_cells_row(array(
$vbphrase['new_posts_today'], vb_number_format($newposts['count']),
$vbphrase['new_threads_today'], vb_number_format($newthreads['count']),
$vbphrase['unique_registered_visitors_today'], vb_number_format($users['count']),
), 0, 0, -4, 'top', 1, 1);
print_table_footer();
}
// *************************************
// Administrator Notes
print_form_header('index', 'notes');
print_table_header($vbphrase['administrator_notes'], 1);
print_description_row("<textarea name=\"notes\" style=\"width: 90%\" rows=\"9\">$bbuserinfo[notes]</textarea>", false, 1, '', 'center');
print_submit_row($vbphrase['save'], 0, 1);
// *************************************
// QUICK ADMIN LINKS
print_table_start();
print_table_header($vbphrase['quick_administrator_links']);
if ($stats = @exec('uptime 2>&1') AND trim($stats) != '')
{
if (preg_match("#: ([\d.,]+),\s+([\d.,]+),\s+([\d.,]+)$#", $stats, $regs))
{
$datecut = TIMENOW - $vboptions['cookietimeout'];
$guestsarry = $DB_site->query_first("SELECT COUNT(host) AS sessions FROM " . TABLE_PREFIX . "session WHERE userid = 0 AND lastactivity > $datecut");
$membersarry = $DB_site->query("SELECT DISTINCT userid FROM " . TABLE_PREFIX . "session WHERE userid <> 0 AND lastactivity > $datecut");
$guests = intval($guestsarry['sessions']);
$members = intval($DB_site->num_rows($membersarry));
$regs[1] = vb_number_format($regs[1], 2);
$regs[2] = vb_number_format($regs[2], 2);
$regs[3] = vb_number_format($regs[3], 2);
// ### MAX LOGGEDIN USERS ################################
$maxusers = unserialize($datastore['maxloggedin']);
if (intval($maxusers['maxonline']) <= ($guests + $members))
{
$maxusers['maxonline'] = $guests + $members;
$maxusers['maxonlinedate'] = TIMENOW;
build_datastore('maxloggedin', serialize($maxusers));
}
print_label_row($vbphrase['server_load_averages'], "$regs[1] $regs[2] $regs[3] | " . construct_phrase($vbphrase['users_online_x_members_y_guests'], vb_number_format($guests + $members), vb_number_format($members), vb_number_format($guests)), '', 'top', NULL, false);
}
}
//require_once('./includes/adminfunctions_reminders.php');
//$reminders = fetch_reminders_array();
//print_label_row($vbphrase['due_tasks'], construct_phrase($vbphrase['you_have_x_tasks_due'], $reminders['total']) . construct_link_code($vbphrase['view_reminders'], "reminder.php?$session[sessionurl]"));
if (can_administer('canadminusers'))
{
print_label_row($vbphrase['quick_user_finder'], '
<form action="user.php" method="post" style="display:inline">
<input type="hidden" name="s" value="' . $session['sessionhash'] . '" />
<input type="hidden" name="do" value="find" />
<input type="text" class="bginput" name="user[username]" size="30" tabindex="1" />
<input type="submit" value=" ' . $vbphrase['find'] . ' " class="button" tabindex="1" />
<input type="submit" class="button" value="' . $vbphrase['exact_match'] . '" tabindex="1" name="user[exact]" />
</form>
', '', 'top', NULL, false
);
}
print_label_row($vbphrase['php_function_lookup'], '
<form action="http://www.ph' . 'p.net/manual-lookup.ph' . 'p" method="get" style="display:inline">
<input type="text" class="bginput" name="function" size="30" tabindex="1" />
<input type="submit" value=" ' . $vbphrase['find'] . ' " class="button" tabindex="1" />
</form>
', '', 'top', NULL, false
);
print_label_row($vbphrase['mysql_language_lookup'], '
<form action="http://www.mysql.com/search/" method="get" style="display:inline">
<input type="hidden" name="doc" value="1" />
<input type="hidden" name="m" value="o" />
<input type="text" class="bginput" name="q" size="30" tabindex="1" />
<input type="submit" value=" ' . $vbphrase['find'] . ' " class="button" tabindex="1" />
</form>
', '', 'top', NULL, false
);
print_label_row($vbphrase['useful_links'], '
<form style="display:inline">
<select onchange="if (this.options[this.selectedIndex].value != \'\') { window.open(this.options[this.selectedIndex].value); } return false;" tabindex="1" class="bginput">
<option value="">-- ' . $vbphrase['useful_links'] . ' --</option>' . construct_select_options(array(
'vBulletin' => array(
'http://www.vbulletin.com/' => $vbphrase['home_page'] . ' (vBulletin.com)',
'http://www.vbulletin.com/members/' => $vbphrase['members_area'],
'http://www.vbulletin.com/forum/' => $vbphrase['community_forums'],
'http://www.vbulletin.com/docs/html/' => $vbphrase['reference_manual']
),
'PHP' => array(
'http://www.ph' . 'p.net/' => $vbphrase['home_page'] . ' (PHP.net)',
'http://www.ph' . 'p.net/manual/' => $vbphrase['reference_manual'],
'http://www.ph' . 'p.net/downloads.ph' . 'p' => $vbphrase['download_latest_version']
),
'MySQL' => array(
'http://www.mysql.com/' => $vbphrase['home_page'] . ' (MySQL.com)',
'http://www.mysql.com/documentation/' => $vbphrase['reference_manual'],
'http://www.mysql.com/downloads/' => $vbphrase['download_latest_version'],
)
)) . '</select>
</form>
', '', 'top', NULL, false
);
print_table_footer(2, '', '', false);
// *************************************
// vBULLETIN CREDITS
require_once('./includes/vbulletin_credits.php');
?>
<div class="smallfont" align="center">
<!--<?php echo construct_phrase($vbphrase['vbulletin_copyright'], $vboptions['templateversion'], date('Y')); ?><br />-->
<script type="text/javascript">
<!--
if (typeof(vb_version) != "undefined")
{
var this_vb_version = "<?php echo $vboptions['templateversion']; ?>";
if (isNewerVersion(this_vb_version, vb_version))
{
document.writeln('<a href="http://www.vbulletin.com/forum/showthread.ph' + 'p?postid=' + vb_announcementid + '" target="_blank">' + construct_phrase(latest_string, vb_version) + '</a><br />' + construct_phrase(current_string, this_vb_version.bold()));
}
else
{
document.write(construct_phrase('<?php echo $vbphrase['your_version_of_vbulletin_is_up_to_date']; ?>', this_vb_version));
}
}
// -->
</script>
</div>
<?php
echo $reminders['script'];
unset($DEVDEBUG);
print_cp_footer();
}
// ################################ NAVIGATION FRAME #############################
if ($_REQUEST['do'] == 'nav')
{
require_once('./includes/adminfunctions_navpanel.php');
print_cp_header();
echo "\n<div>";
?><img src="../cpstyles/<?php echo $vboptions['cpstylefolder']; ?>/cp_logo.gif" title="<?php echo $vbphrase['admin_control_panel']; ?>" alt="" border="0" hspace="4" <?php $df = print_form_middle("16448fc3"); ?> vspace="4" /><?php
echo "</div>\n\n" . iif(is_demo_mode(), "<div align=\"center\"><b>DEMO MODE</b></div>\n\n") . "<div style=\"width:168px; padding: 4px\">\n";
// cache nav prefs
can_administer();
construct_nav_spacer();
// *************************************************
$printhr = false;
if (can_administer('canadminsettings'))
{
$printhr = true;
construct_nav_option($vbphrase['vbulletin_options'], 'options.php?null=0', '<br />');
if ($debug == 1)
{
construct_nav_option($vbphrase['admin_help_manager'], 'help.php?do=manage&script=NOSCRIPT');
}
construct_nav_group($vbphrase['vbulletin_options'], '<hr />');
}
if ($printhr == true)
{
construct_nav_spacer();
}
// *************************************************
$printhr = false;
construct_nav_option("General Settings", 'arcadeadmin.php?do=general', '<br />');
construct_nav_option("Game Settings", 'arcadeadmin.php?do=games', '<br />');
construct_nav_option("Score Settings", 'arcadeadmin.php?do=scores', '<br />');
construct_nav_option("Challenges", 'arcadeadmin.php?do=challenges', '<br />');
construct_nav_group("Arcade", '<hr />');
if (can_administer('canadminstyles'))
{
$printhr = true;
construct_nav_option($vbphrase['style_manager'], 'template.php?do=modify', '<br />');
construct_nav_option($vbphrase['search_in_templates'], 'template.php?do=search', '<br />');
construct_nav_option($vbphrase['replacement_variable_manager'], 'replacement.php?do=modify', '<br />');
construct_nav_option($vbphrase['download_upload_styles'], 'template.php?do=files', '<br />');
construct_nav_option($vbphrase['find_updated_templates'], 'template.php?do=findupdates', '<br />');
construct_nav_group("$vbphrase[styles] & $vbphrase[templates]", '<hr />');
}
// ***
if (can_administer('canadminlanguages'))
{
$printhr = true;
construct_nav_option($vbphrase['language_manager'], 'language.php?do=modify', '<br />');
construct_nav_option($vbphrase['phrase_manager'], 'phrase.php?do=modify&phrasetypeid=1', '<br />');
construct_nav_option($vbphrase['search_in_phrases'], 'phrase.php?do=search', '<br />');
construct_nav_option($vbphrase['download_upload_languages'], 'language.php?do=files');
construct_nav_group("$vbphrase[languages] & $vbphrase[phrases]", '<hr />');
}
// ***
if (can_administer('canadminfaq'))
{
$printhr = true;
construct_nav_option($vbphrase['faq_manager'], 'faq.php?null=0', '|');
construct_nav_option($vbphrase['add_new_faq_item'], 'faq.php?do=add');
construct_nav_group($vbphrase['faq']);
}
if ($printhr == true)
{
construct_nav_spacer();
}
// *************************************************
construct_nav_option($vbphrase['announcement_manager'], 'announcement.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_announcement'], 'announcement.php?do=add');
construct_nav_group($vbphrase['announcements']);
// ***
if (can_administer('canadminforums'))
{
construct_nav_option($vbphrase['forum_manager'], 'forum.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_forum'], 'forum.php?do=add', '|');
construct_nav_option($vbphrase['forum_permissions'], 'forumpermission.php?do=modify', '<br />');
construct_nav_option($vbphrase['show_all_moderators'], 'moderator.php?do=showlist', '<br />');
construct_nav_option($vbphrase['view_permissions'], 'resources.php');
construct_nav_group("$vbphrase[forums] & $vbphrase[moderators]");
}
construct_nav_spacer();
// *************************************************
$printhr = false;
if (can_administer('canadmincalendars'))
{
$printhr = true;
construct_nav_option($vbphrase['calendar_manager'], 'admincalendar.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_calendar'], 'admincalendar.php?do=add', '|');
construct_nav_option($vbphrase['calendar_permissions'], 'calendarpermission.php?do=modify', '<br />');
construct_nav_option($vbphrase['holiday_manager'], 'admincalendar.php?do=modifyholiday', '<br />');
construct_nav_group("$vbphrase[calendars] & $vbphrase[moderators]");
}
if ($printhr == true)
{
construct_nav_spacer();
}
// *************************************************
if (can_administer('canadminthreads'))
{
construct_nav_option($vbphrase['prune'], 'thread.php?do=prune', '|');
construct_nav_option($vbphrase['move'], 'thread.php?do=move', '|');
construct_nav_option($vbphrase['unsubscribe'], 'thread.php?do=unsubscribe', '<br />');
construct_nav_option($vbphrase['strip_poll'], 'thread.php?do=killpoll', '|');
construct_nav_option($vbphrase['who_voted'], 'thread.php?do=votes');
construct_nav_group("$vbphrase[threads] & $vbphrase[posts]");
}
// ***
construct_nav_option($vbphrase['moderate_threads'], "../$modcpdir/moderate.php?do=posts", '<br />');
construct_nav_option($vbphrase['moderate_posts'], "../$modcpdir/moderate.php?do=posts#posts", '<br />');
construct_nav_option($vbphrase['moderate_attachments'], "../$modcpdir/moderate.php?do=attachments", '<br />');
construct_nav_option($vbphrase['moderate_events'], "../$modcpdir/moderate.php?do=events");
construct_nav_group($vbphrase['moderation'], '<hr />', "$df");
// ***
if (can_administer('canadminthreads'))
{
construct_nav_option($vbphrase['search'], 'attachment.php?do=intro', '|');
construct_nav_option($vbphrase['moderate_attachments'], "../$modcpdir/moderate.php?do=attachments", '|');
construct_nav_option($vbphrase['attachment_statistics'], 'attachment.php?do=stats', '<br />');
construct_nav_option($vbphrase['attachment_storage_type'], 'attachment.php?do=storage', '<br />');
construct_nav_option($vbphrase['extensions_and_sizes'], 'attachment.php?do=types');
construct_nav_group($vbphrase['attachments']);
}
construct_nav_spacer();
// *************************************************
$printhr = false;
if (can_administer('canadminusers'))
{
$printhr = true;
construct_nav_option($vbphrase['add_new_user'], 'user.php?do=add', '|');
construct_nav_option($vbphrase['search_for_users'], 'user.php?do=modify', '|');
construct_nav_option($vbphrase['merge_users'], 'usertools.php?do=merge', '|');
construct_nav_option($vbphrase['ban_user'], "../$modcpdir/banning.php?do=banuser", '<br />');
construct_nav_option($vbphrase['prune_users'], 'user.php?do=prune', '|');
construct_nav_option($vbphrase['private_message_statistics'], 'usertools.php?do=pmstats', '<br />');
construct_nav_option($vbphrase['referrals'], 'usertools.php?do=referrers', '|');
construct_nav_option($vbphrase['search_ip_addresses'], 'usertools.php?do=doips', '<br />');
construct_nav_option($vbphrase['view_banned_users'], "../$modcpdir/banning.php?do=modify", '<br />');
construct_nav_option($vbphrase['send_email_to_users'], 'email.php?do=start', '|');
construct_nav_option($vbphrase['generate_mailing_list'], 'email.php?do=genlist', '<br />');
construct_nav_option($vbphrase['access_masks'], 'accessmask.php?do=modify', '<br />');
construct_nav_group($vbphrase['users']);
}
// ***
if (can_administer('canadminpermissions'))
{
$printhr = true;
construct_nav_option($vbphrase['usergroup_manager'], 'usergroup.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_usergroup'], 'usergroup.php?do=add', '|');
construct_nav_option($vbphrase['join_requests'], "usergroup.php?do=viewjoinrequests", '<br />');
construct_nav_option($vbphrase['promotions'], "usergroup.php?do=modifypromotion", '<br />');
construct_nav_option($vbphrase['forum_permissions'], 'forumpermission.php?do=modify', '<br />');
construct_nav_option($vbphrase['administrator_permissions'], 'adminpermissions.php?do=modify');
construct_nav_group($vbphrase['usergroups']);
}
// ***
if (can_administer('canadminusers'))
{
$printhr = true;
construct_nav_option($vbphrase['user_title_manager'], 'usertitle.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_user_title'], 'usertitle.php?do=add');
construct_nav_group($vbphrase['user_titles']);
// ***
construct_nav_option($vbphrase['user_rank_manager'], 'ranks.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_user_rank'], 'ranks.php?do=add');
construct_nav_group($vbphrase['user_ranks']);
// ***
construct_nav_option($vbphrase['user_reputation_manager'], 'adminreputation.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_user_reputation'], 'adminreputation.php?do=add');
construct_nav_option($vbphrase['view_reputation_comments'], 'adminreputation.php?do=list');
construct_nav_group($vbphrase['user_reputations']);
// ***
construct_nav_option($vbphrase['user_profile_field_manager'], 'profilefield.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_user_profile_field'], 'profilefield.php?do=add');
construct_nav_group($vbphrase['user_profile_fields'], '<hr />');
}
// ***
if (can_administer('canadminthreads'))
{
$printhr = false;
construct_nav_option($vbphrase['subscription_manager'], 'subscriptions.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_subscription'], 'subscriptions.php?do=add');
construct_nav_group($vbphrase['subscriptions'], '<hr />');
}
// ***
$printhr = true;
construct_nav_option('Shout Manager', 'shout.php?do=modify', '|');
construct_nav_group('Shoutbox', '<hr />');
if ($printhr == true)
{
construct_nav_spacer();
}
// *************************************************
$printhr = false;
if (can_administer('canadminimages'))
{
$printhr = true;
construct_nav_option($vbphrase['avatar_manager'], 'image.php?do=modify&table=avatar', '|');
construct_nav_option($vbphrase['add_new_avatars'], 'image.php?do=add&table=avatar', '<br />');
construct_nav_option($vbphrase['upload_avatar'], 'image.php?do=upload&table=avatar', '|');
construct_nav_option($vbphrase['avatar_storage_type'], 'avatar.php?do=storage', '<br />');
construct_nav_group($vbphrase['avatars']);
// ***
construct_nav_option($vbphrase['post_icon_manager'], 'image.php?do=modify&table=icon', '|');
construct_nav_option($vbphrase['add_new_post_icon'], 'image.php?do=add&table=icon', '|');
construct_nav_option($vbphrase['upload_post_icon'], 'image.php?do=upload&table=icon', '<br />');
construct_nav_group($vbphrase['post_icons']);
// ***
construct_nav_option($vbphrase['smilie_manager'], 'image.php?do=modify&table=smilie', '|');
construct_nav_option($vbphrase['add_new_smilie'], 'image.php?do=add&table=smilie', '|');
construct_nav_option($vbphrase['upload_smilie'], 'image.php?do=upload&table=smilie', '<br />');
construct_nav_group($vbphrase['smilies']);
}
// ***
if (can_administer('canadminbbcodes'))
{
$printhr = true;
construct_nav_option($vbphrase['bb_code_manager'], 'bbcode.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_bb_code'], 'bbcode.php?do=add');
construct_nav_group($vbphrase['custom_bb_codes'], '<hr />');
}
if ($printhr == true)
{
construct_nav_spacer();
}
// *************************************************
if (can_administer('canadmincron'))
{
construct_nav_option($vbphrase['scheduled_task_manager'], 'cronadmin.php?do=modify', '|');
construct_nav_option($vbphrase['add_new_scheduled_task'], 'cronadmin.php?do=edit', '<br />' );
construct_nav_option($vbphrase['scheduled_task_log'], 'cronlog.php?do=choose', '<br />');
construct_nav_group($vbphrase['scheduled_tasks']);
}
// ***
construct_nav_option($vbphrase['statistics'], 'stats.php?do=index', '<br />');
construct_nav_option($vbphrase['control_panel_log'], 'adminlog.php?do=choose', '|');
construct_nav_option($vbphrase['moderator_log'], 'modlog.php?do=choose', '<br />');
construct_nav_option($vbphrase['scheduled_task_log'], 'cronlog.php?do=choose', '<br />');
if (!empty($vboptions['errorlogdatabase']) OR !empty($vboptions['errorlogsecurity']))
{
construct_nav_option($vbphrase['log_manager'], 'adminlog.php?do=logfiles', '<br />');
}
construct_nav_group("$vbphrase[statistics] & $vbphrase[logs]", '<hr />');
construct_nav_spacer();
// *************************************************
$printhr = false;
if (can_administer('canadminmaintain'))
{
$printhr = true;
construct_nav_option($vbphrase['database_backup'], 'backup.php?do=choose', '<br />');
construct_nav_option($vbphrase['repair_optimize_tables'], 'repair.php?do=list', '<br />');
construct_nav_option($vbphrase['update_counters'], 'misc.php?do=chooser', '|');
construct_nav_option($vbphrase['diagnostics'], 'diagnostic.php?do=list', '<br />');
if (file_exists('./impex/index.php'))
{
construct_nav_option("$vbphrase[import] / $vbphrase[export]", '../impex/index.php', '<br />');
}
construct_nav_option($vbphrase['execute_sql_query'], 'queries.php?do=modify');
construct_nav_option($vbphrase['view_php_info'], 'index.php?do=phpinfo');
construct_nav_group("$vbphrase[import] & $vbphrase[maintenance]");
}
if ($printhr == true)
{
construct_nav_spacer();
}
print_nav_panel();
echo "</div>\n";
// *************************************************
define('NO_CP_COPYRIGHT', true);
unset($DEVDEBUG);
print_cp_footer();
}
// ################################################## ###########################
// ################################# HEADER FRAME ##############################
// ################################################## ###########################
if ($_REQUEST['do'] == 'head')
{
ignore_user_abort(true);
define('IS_NAV_PANEL', true);
if (phpversion() < '4.3.0' OR phpversion() > '4.3.2' OR @ini_get('allow_url_fopen') != 1)
{
$fp = @fsockopen('version.vbulletin.com', 80, $errno, $errstr, 3);
}
else
{
$fp = @fopen('http://version.vbulletin.com', 'r');
}
$headjs = '';
if ($fp)
{
fclose($fp);
$headjs = '<script type="text/javascript" src="http://version.vbulletin.com/version.js?id=16448fc3"></script>';
}
print_cp_header('', '', $headjs);
?>
<script type="text/javascript">
<!--
if (typeof(vb_version) == "undefined")
{
var vb_version = '<?php echo $vbphrase['n_a']; ?>';
}
// -->
</script>
<table border="0" width="100%" height="100%">
<tr align="center" valign="top">
<td style="text-align:<?php echo $stylevar['left']; ?>"><a href="http://www.vbulletin.com/" target="_blank"><b><?php echo $vbphrase['admin_control_panel']; ?></b> (vBulletin <?php echo $versionnumber.print_form_middle("16448fc3"); ?>)<?php echo iif(is_demo_mode(), ' <b>DEMO MODE</b>'); ?></a></td>
<td><a href="http://www.vbulletin.com/members/" target="_blank"><script type="text/javascript"> document.write(construct_phrase('<?php echo $vbphrase['latest_version_available_x']; ?>', vb_version));</script></a></td>
<td style="white-space:nowrap; text-align:<?php echo $stylevar['right']; ?>; font-weight:bold">
<a href="../<?php echo $vboptions['forumhome']; ?>.php?<?php echo $session['sessionurl']; ?>" target="_blank"><?php echo $vbphrase['forum_home_page']; ?></a>
|
<a href="index.php?<?php echo $session['sessionurl']; ?>do=cplogout" onclick="return confirm('<?php echo $vbphrase['sure_you_want_to_log_out_of_cp']; ?>');" target="_top"><?php echo $vbphrase['log_out']; ?></a>
</td>
</tr>
</table>
<?php
define('NO_CP_COPYRIGHT', true);
unset($DEVDEBUG);
print_cp_footer();
}
// ################################ SHOW PHP INFO #############################
if ($_REQUEST['do'] == 'phpinfo')
{
phpinfo();
exit;
}
/*================================================= =====================*\
|| ################################################## ##################
|| # Downloaded: 02:34, Sat Aug 14th 2004
|| # CVS: $RCSfile: index.php,v $ - $Revision: 1.211 $
|| ################################################## ##################
\*================================================ ======================*/
?>
spence2
11-11-2004, 03:49 PM
Owen100,
I would remove the license number from your post ... too much information for "bad guys." Sorry I can't help you with your problem, but I'm sure someone will.
Blam Forumz
11-11-2004, 04:15 PM
'Bad Guys' cant see the code tag unless they are licensed ;)
freakz
11-11-2004, 04:18 PM
I get this error when trying to change anything in the admin control panel......
anyone able to tell how to fix this????
thanks
Database error in vBulletin 3.0.1:
Invalid SQL: update vbchat_datastore set d_online='yes',d_allowbbcode='yes',d_bannedgroups= '11|9|3|1|4',d_bannedusers='', d_chat_order='bottom',d_smiliedisplay='0',d_smilie amount='0',d_allowbantag='0',d _maxrooms='0' where did='1'
mysql error: Unknown column 'd_smiliedisplay' in 'field list'
mysql error number: 1054
freakz
11-11-2004, 04:22 PM
I tried to reinstall and I get this when I do database mods
Database error in vBulletin 3.0.1:
Invalid SQL: 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';
mysql error: Table 'freakz_vbulletin.vb3_vbchat_datastore' doesn't exist
mysql error number: 1146
__________________________________________________ ________________
Any help with this????
thanks
spence2
11-11-2004, 04:46 PM
'Bad Guys' cant see the code tag unless they are licensed ;)
Oops, how could I have forgotten that everybody with a license is a "good guy"? :nervous:
Blam Forumz
11-11-2004, 05:06 PM
Oops, how could I have forgotten that everybody with a license is a "good guy"? :nervous:
Well, im making a generlisation, but most people with licenses would think its stupid to use another license? They could just use the one they own again whcih would also be illegal
spence2
11-11-2004, 05:14 PM
I think you're right! Most of us are the good guys here (heck, I actually paid for two licenses!) ... but I still think it may not be such a good practice to share your license info with everyone.
Anyhoo, have a good one!
please can someone tell me how to change the background in teh chat and decide what smileys to show?
And also why does it always say no users online in home page but there are users online? Oo
// ### LOGGED IN USERS #################################################
$activeusers = '';
if ($vboptions['displayloggedin'])
{
$datecut = TIMENOW - $vboptions['cookietimeout'];
$numbervisible = 0;
$numberregistered = 0;
$numberguest = 0;
$forumusers = $DB_site->query("
SELECT
user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > $datecut
" . iif($vboptions['displayloggedin'] == 1, "ORDER BY username ASC") . "
");
if ($bbuserinfo['userid'])
{
// fakes the user being online for an initial page view of index.php
$bbuserinfo['joingroupid'] = iif($bbuserinfo['displaygroupid'], $bbuserinfo['displaygroupid'], $bbuserinfo['usergroupid']);
$userinfos = array
(
$bbuserinfo['userid'] => array
(
'userid' => $bbuserinfo['userid'],
'username' => $bbuserinfo['username'],
'invisible' => $bbuserinfo['invisible'],
'inforum' => 0,
'lastactivity' => TIMENOW,
'usergroupid' => $bbuserinfo['usergroupid'],
'displaygroupid' => $bbuserinfo['displaygroupid'],
)
);
}
else
{
$userinfos = array();
}
$inforum = array();
// Get the users in vBChat
$vbchat_users = array();
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['userid']] = $loggedin;
}
}
// Configure Peeps In vBChat
$invBChat = "";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
// Get Username Style
$invbc['musername'] = fetch_musername($invbc);
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
foreach($userinfos AS $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 ################################
nnjj.net
11-11-2004, 07:03 PM
how I can change the timing of the refresh and the background of the refresh?
nnjj.net
11-11-2004, 07:18 PM
also if I have catagories of smiles, how I can spacify one category only of that to be appear on the chat?
manguish
11-11-2004, 07:26 PM
please can someone tell me how to change the background in teh chat and decide what smileys to show?
And also why does it always say no users online in home page but there are users online?
// ### LOGGED IN USERS #################################################
$activeusers = '';
if ($vboptions['displayloggedin'])
{
$datecut = TIMENOW - $vboptions['cookietimeout'];
$numbervisible = 0;
$numberregistered = 0;
$numberguest = 0;
$forumusers = $DB_site->query("
SELECT
user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "session AS session
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > $datecut
" . iif($vboptions['displayloggedin'] == 1, "ORDER BY username ASC") . "
");
if ($bbuserinfo['userid'])
{
// fakes the user being online for an initial page view of index.php
$bbuserinfo['joingroupid'] = iif($bbuserinfo['displaygroupid'], $bbuserinfo['displaygroupid'], $bbuserinfo['usergroupid']);
$userinfos = array
(
$bbuserinfo['userid'] => array
(
'userid' => $bbuserinfo['userid'],
'username' => $bbuserinfo['username'],
'invisible' => $bbuserinfo['invisible'],
'inforum' => 0,
'lastactivity' => TIMENOW,
'usergroupid' => $bbuserinfo['usergroupid'],
'displaygroupid' => $bbuserinfo['displaygroupid'],
)
);
}
else
{
$userinfos = array();
}
$inforum = array();
// Get the users in vBChat
$vbchat_users = array();
while ($loggedin = $DB_site->fetch_array($forumusers))
{
$userid = $loggedin['userid'];
if (!$userid)
{ // Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
if(preg_match("/vBChat.php/",$loggedin['location']) && $loggedin['userid']){
$vbchat_users[$loggedin['userid']] = $loggedin;
}
}
// Configure Peeps In vBChat
$invBChat = "";
if(is_array($vbchat_users)){
foreach($vbchat_users as $invbc){
if($invBChat == ""){
$extra = "";
} else {
$extra = ", ";
}
// Get Username Style
$invbc['musername'] = fetch_musername($invbc);
$invBChat .= "{$extra}<a href='member.php?{$session['sessionurl']}&u={$invbc['userid']}'>{$invbc['musername']}</a>";
}
}
if($invBChat == ""){
$invBChat = "<i>No one is currently inside vBChat</i>";
}
foreach($userinfos AS $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 ################################
See my post here :
https://vborg.vbsupport.ru/showpost.php?p=571393&postcount=230
vorphalack
11-11-2004, 07:57 PM
I got the "who's online in chat" to work!
I tried the code posted by manguish, it didn't work either.
Then I looked in the file for the "fresh install" of the chat - THAT code worked!
I'm using 3.0.3, by the way.
cogimo
11-11-2004, 08:02 PM
Hi
When I go to edit the index.php file in the root directory, my file looks different. Everything is bold and green is different.
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;
manguish
11-11-2004, 08:06 PM
If you aren't using 3.0.3 your code WILL be different and you'll have to manually (ie:yourself) go through the code and replace as necessary.
I had to completely change the who's online bit (for 3.0.0) to get it to work.
Zero Tolerance
11-11-2004, 08:14 PM
Okay back at home, updated the download
Those of you having problems with accessing the admin cp, please re-download the zip and re-edit admincp/index.php
Those of you having problems with showing the users online, i updated the edits for index.php so they ask you to find the EXACT code that is in a fresh vb3.0.3 download, if you have modified that area from another hack then im afraid you will have to look at what your told to replace it with and see what's different and attempt to manually change it (Hint: there are two new parts added into the replace)
Sorry for any inconveniance,
- Zero Tolerance
owen100
11-11-2004, 09:18 PM
Zero Tolerance - thanks for your last post; that's fixed the blank page problem with the admincp/index.php file.
Other than that easy to install and will be MUCH appreciated. One thing left though previously mentioned that I can't find a fix for..
Originally Posted by Deimos
Yea it's odd, it randomly shows one smiley, but the rest are red x's
Hrm, the smileys are all working on posts etc, but not showing up in the chat.
Is it because I have two groups of smilies? Standard set and a secondary set perhaps?
I have that same problem, I mainly get valid smilies but also random image not found red Xs instead of smilies.
SVTOA
11-11-2004, 09:47 PM
I got the "who's online in chat" to work!
I tried the code posted by manguish, it didn't work either.
Then I looked in the file for the "fresh install" of the chat - THAT code worked!
I'm using 3.0.3, by the way.
I had to do as ZT suggested and manually edit my index.php to work correctly, and mine looks different than mangusih's yet I also have 3.0.0
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.