![]() |
I think I've found an anomaly, but I can't quite track down the sequence.
It's minor and I only noticed it after the code started showing in the "Who's on-Line" function, the fact that a user is in "Chat". I have noticed that on my system using v1.3 (also did it in v1.2), that it shows a "clickable" link to the Chatbox in the display, but under ""Who's on-Line", I'm always seeing myself and some others as being "in chat", when in fact, they never visited "Chat" at all during the current session? Anyone else seeing this? Thanks Regards, Badger |
Thanks so much! Love the upgrade ^^
|
Glad you liked it :)
Updated, version 1.4 Added Ajax! :) Now you can set your refresh rate to 3 seconds and make your server cry to mommy! |
Oops does someone have the old zip file? I want to keep a copy of the chatbox with no ajax in this thread.
|
Nice work! I was meaning to ask if you had considered using Ajax. :D
I was using Joomla/SMF before switching to vB, and used a really nice shoutbox as a module in Joomla. That one used Ajax. It also had another feature which I would like to see you implement. Since I have your chatbox as a side module in vBadvanced, the space is limited. So I've removed the code that outputs the date before every message. In the Joomla shoutbox the nice thing was that if you held your mouse over the username of a person that had sent a message, it showed how long since that message was entered. Would be cool to have that here too. :) Here's the previous version. |
Thanks arco! :)
I'll consider doing that. If you were able to remove the dates, you could well be able to add the dates as a mouseover on the user name in the code. |
Yeah I probably could. I'll experiment a little and see what happens. :)
|
Got this message when the window refreshed in the new version.
[object HTMLSpanElement] It appeared in a line on the top, above all the messages. |
Send me your forum address on a PM?
|
Try this chatbox.php
|
Seems to work fine now with the new file. Good work! :)
Edit: Noticed it added current time before the username/message even though I took out $time from the code. I have "Show Time?" off in options too, but that's only for the time before the input box I think. Edit2: Maybe you should make an option to turn of time completely in messages too? :) Edit3: LOL!! I went to another page, and when I went back to the page the chatbox is, the time I mentioned in my first Edit: is gone. |
Excuse the dumb question.....
What does the Ajax do? |
Found a bug while using Internet Explorer 7, use this chatbox.php while I work on a fix, or the "no ajax" version.
Arco, yeah it's ajax now, remember? :P you won't be affected by this bug, it's related to the time before the text input, it's not being updated correctly in IE7. |
Ajax means the page won't refresh when a user sends a new message, or updates the list of messages, it's all done by javascript in the background.
|
Seems I was using a variable with the same name as one used by vBulletin's javascript, and it gave errors just in IE7. I updated the zip, just update your chatbox.php if you installed before.
|
Thank you for the nice Mod. :)
I typed in Arabic Lang. and nothing came in the chat box, any help on this issue? |
Apologies. Wrong hack
|
Quote:
Cool hack anyways. Upgraded mine.. Thanks. |
Upgraded to 1.4 but had to go back to 1.3: In IE7 the Chatbox doesn't refresh either automatically or manually using the Refresh button. The only way is to refresh the whole page. But 1.4 works in IE6, Firefox and Opera. Ajax works on the rest of the board in IE7, i.e. edit post.
|
kewl, did you use the latest chatbox.php I updated?
|
Quote:
|
Quote:
Kewl, it's working fine for me here in IE7, do you know what javascript error you get? |
Quote:
The error is with Ajax not working so the whole page needs to be refreshed. Also another error seen by a member in Firefox is that when the auto refresh is set to a low number - 3 seconds - the refresh button flashes. |
You don't need to reinstall, just change chatbox.php from 1.3 to 1.4 or the other way.
I sent you a PM. |
Hi Dream,
I'm trying to get the time showing when hovering the mouse over a username. I tried changing the function chatbox_make_user_link($user) to this: Code:
function chatbox_make_user_link($user) { |
Arco, I don't know what HTML code to use to show mouse over text over text. It could be title, could be alt, and could need to be in <span> tags.
You need to update your chatbox.php too because of the IE7 bug, it actually affects you too. |
I wish people that rate my mods with 1 star would state a reason :/
|
Well, I rated it 5 stars.... clean simple install, efficient code, low system resource use and it gets the job done... good work and thanks again ... :up:
I did notice one thing... still wondering if it's just something on my system, or if others are seeing this.... Quote:
|
Thanks Badger :)
That happens to everyone, when a user loads the forum homepage, it loads the chatbox after, making the user appear on the chatbox in Who's Online. I'll see if I can add something to fix that. |
Quote:
That makes sense.... :) Thanks... Regards, Badger |
I did update the chatbox.php earlier. :)
Holy macaroni! I got it working! Changed the following: Code:
if ($tagarounduser) { Code:
if ($tagarounduser) { Code:
echo "\n".'<span id="shout'.$shout['shoutid'].'">['.$time.'] '.$tagopen.$username.$del."$tagclose: ".$parsed.'<br /></span>'; Code:
echo "\n".'<span id="shout'.$shout['shoutid'].'"> '.$tagopen.$username.$del."$tagclose: ".$parsed.'<br /></span>'; |
Nice grats! :D
I didn't know you could do that with <span>. I'll see to adding that in the next version so you won't need to edit it everytime. |
That would be nice Dream. And yeah, it's amazing what you can achieve by experimenting a little. :)
|
Quote:
|
I have to say I've been using this for a while now and it knocks spots off any other shoutbox....it's quick, clean, efficient, and doesn't get you nasty emails from your host about use of server resources!
The only modification I made to it was to adapt some of the code into a cron job so that shouts are pruned automatically every 48 hours via a vB scheduled task. |
Glad to hear it :) let me know if you have problems with the new ajax.
Did you like the smilies feature? |
Quote:
Quote:
|
nice work!
|
Great Work, thx from Germany.
Is there a way to post every hour a text with cron?? Is there a way then post please the script for this and post please to autoprune after 24 hour. Thx for this Chatbox i clicked install :) |
Hello, glad you liked it :)
This is possible, but you would have to code two php files to be called by vBcron every hour and another every 24 hours. I'm not sure how vBcron works, but maybe Mark. B could help you out, he made an auto prune file, send him a PM. Mark, could you share your cron script? I could add it to the zip file with instructions on how to set it up. |
All times are GMT. The time now is 04:42 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|