Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
vB Chatbox 1.2.4 Details »»
vB Chatbox 1.2.4
Version: 1.00, by p0s3id0n p0s3id0n is offline
Developer Last Online: Apr 2006 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 08-24-2002 Last Update: Never Installs: 212
 
No support by the author.

What this hack does : Adds a box on top of your vB home page
where all members can chat/shout in an IRC like way, with all the
vB options added (smilies, vBcodes....)

I started this hack by modifying the shoutbox made by Doug
Tanner for phpnuke (i think).. And it went far far from his original
code. As far as i think he wouldn't recognize it .

I integrated it as far as i could with vB, and in the admin CP,
with every bit of it being possible to modify trough the admin
CP (prune, ban, censure...)...

SCREENSHOT

This hack has been tested and used by some people out
there in france .

1.2.4 changes :
Install problems with the mysql reserved words solved,
Uninstalling option added to the install script,
Possibility to automaticaly add the templates to the
templatesets you chose in the install script,
IE6 problem with divs solved,
timezoneoffset mod integrated,
text input limited to 255 characters.

1.2.3 changes :
security hole on the pruning of the admin part fixed.

1.2.2 changes :
templatesused var filled with all templates used by the
script in the shoutbox.php file and in the index.php file.
And chmod 777 made on the admin/shoutbox_config.php file
by the install script. Thanks to erwin

Name changed from shoutbox to chatbox, because some people
thought of this hack as related with TWT-commish's shoutbox...
no more excuses


Here is some sort of [high]FAQ[/high] from all the thread,
hope this helps, and prevents you from reading all that i just read :

[high]#----------------------------------------------------------#[/high]
Erwin : limit of smilies a person can post in the shoutbox.
This is to prevent smilie spamming : HERE
[high]#----------------------------------------------------------#[/high]
Erwin : Another tip for installers - instead of manually having to
ban users in the shoutbox, to automatically ban users who
you have already banned from the forums : HERE
[high]#----------------------------------------------------------#[/high]
For the shoutbox to be in a popup : HERE
[high]#----------------------------------------------------------#[/high]
To have 5 'shouts/chats' visible when the chatbox is reduced :
HERE
[high]#----------------------------------------------------------#[/high]
SpeedStreet : This simply creates a link for people to click on so
that they can easily view the 'Who's Online' page without
having to dig for it : HERE
[high]#----------------------------------------------------------#[/high]
ThoughtDiver: if you want the date format on the shout timestamps
to read Month/Day instead of Day/Month : HERE
[high]#----------------------------------------------------------#[/high]

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #312  
Old 04-19-2003, 09:32 PM
kevin_r1 kevin_r1 is offline
 
Join Date: Oct 2002
Location: Tampa
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Below is a database error message received when one of my user's attempts to minimize the chatbox:

Quote:
Database error in vBulletin 2.3.0:

Invalid SQL: UPDATE user SET chatbox=0 WHERE username='User's Name' mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 's Name'' at line 1

mysql error number: 1064
Let's say the user's name is User's Name. The error invokes because there is an apostrophe in the name itself. How do I account for this? Wouldn it be better to reference the user ID # as opposed to the actual name? If so, how do I do this.
Reply With Quote
  #313  
Old 04-20-2003, 04:30 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

kevin - the solution is just a few posts above yours.
Reply With Quote
  #314  
Old 04-20-2003, 03:38 PM
kevin_r1 kevin_r1 is offline
 
Join Date: Oct 2002
Location: Tampa
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 05:30 AM Erwin said this in Post #313
kevin - the solution is just a few posts above yours.
Indeed it is. My bad. Thanks.
Reply With Quote
  #315  
Old 04-21-2003, 02:36 AM
kevin_r1 kevin_r1 is offline
 
Join Date: Oct 2002
Location: Tampa
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm at a loss. Even after implementing the suggested code fix, I still get the same error. Is there an error in my syntax?
$result = $DB_site->query("SELECT user FROM chatbox_ban WHERE user = '" .addslashes($bbuserinfo[username])."'");
Reply With Quote
  #316  
Old 04-26-2003, 03:01 AM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
04-14-03 at 11:52 AM Coyii said this in Post #311
I have been trying to modify the chatbox so that it is in a popup instead of on the main page. I tried using the code on pg 4 but I just keep getting "error on page" I did modify the code from shoutbox.php to chatbox.php and removed the space between "java script" and changed 'shout' to 'chat', cant seem to figure out what I am doing wrong.

I looked through all 21 pages of this thread and cant seem to find updated instructions on how to do this.

Has anyone done this?
Can anyone Help?
There's another extra space in there - just go through and take out any extra spaces and it should work
Reply With Quote
  #317  
Old 04-26-2003, 11:42 PM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a bit of a weird thing. When users submit their comment, when the page refreshes, the input box is gone so they have to reopen the chat to post another comment.

I'm sure I must jsut have missed some code, but I can't find it. If anyone would be so kind to take a look, I'd appreciate it

http://www.lotr-boards.com

username: test
password: test

Edit: Okay, here's the problem. I have it so that it shows minimized on my main page, and then when you click on the link it opens the chatbox in a new window.

For some people the chat is maximized on the main page and works fine. But if you close it, then click on the link again it opens the new window and that's where the problem is.

If that made any sense...

Edit Again:

The plot thickens. I believe I have something wrong in my popup code, because if you just type in domain/chatbox.php in the browser window it works fine.

This is what I have for the link to the popup:

<a href="javascript:"; onclick="window.open('chatbox.php','chat','status= 0,directories=0,toolbar=0,location=0,menuBar=0,scr ollbars=0,resizable=0,width=650,height=130,left=10 0,top=100');">
Reply With Quote
  #318  
Old 04-27-2003, 06:06 AM
noelmd2001 noelmd2001 is offline
 
Join Date: Feb 2003
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i did a complete search on thir threa but did not seem to find any solution...

my shoutbox is workign great... right layout of the 'go' and icon buttons, members can post messages, right timestamp, smileys showing up in the pop-up box when the smiley icon is clicked...

however, only one problem ..

the smileys do not appear in the shoutbox box itself... but only their short cut words (eg. : ) , : ( , etc)?

i ahve checked everything and seemed to have everything right... but those smiling smileys don't appear where they should be smiling .. in the shoutbox itself...

btw... i put the shoutbox.php in an iframe to a frontpage that i am putting up.. so please excuse the page .. it is just a testing site for the frontpage to be set up...

http://www.ustexchange.com/index2.php

anyway, i hope anybody can help me.. thanks..

:surprised: :classic:
Reply With Quote
  #319  
Old 04-28-2003, 05:32 PM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

(I got mine to work - thanks to everyone who tried to help! )
Reply With Quote
  #320  
Old 04-29-2003, 09:10 AM
barriedale barriedale is offline
 
Join Date: Apr 2003
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1)Got the same question as Dennis - How do I make the chatbox appear in reduced mode evertime someone is logging in?

2) is there a way to make the frame of the chatbox dynamic or will that screw things up?

Thanks a lot for this hack - a lot better than Java stuff that wouldn't quite work on Macs! Is anyone working on an update of this one?

Cheers
Michael
Reply With Quote
  #321  
Old 05-01-2003, 02:33 AM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got this error:

Quote:
Database error in vBulletin 2.3.0:

Invalid SQL: SELECT user FROM chatbox_ban WHERE user = 'SSmokin' Joe'
mysql error: You have an error in your SQL syntax near 'Joe'' at line 1

mysql error number: 1064
Tried the fix on the previous page, didn't fix it. Help?


Also, I'm trying to get the Chat into a Popup.. I tried the code on previous pages, and it doesn't work either. Has anyone tested these "fixes" in 2.3.0 (which I am using). Thanks.

Otherwise, the hack is working excellent.. the users love it.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02807 seconds
  • Memory Usage 2,314KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete