Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

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
  #62  
Old 08-28-2002, 12:23 PM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow, awesome! Question though. How can i make it function in a way that the input is by the footer and the output (plain text and time) is at the top in for example a welcome panel?
Reply With Quote
  #63  
Old 08-28-2002, 01:22 PM
NuclioN's Avatar
NuclioN NuclioN is offline
 
Join Date: Aug 2002
Posts: 955
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

members are asking if it is possible to read passed messages. I know from a shoutbox that was working with Postnuke portal as a module that a javascript popup could display all messages. Is that possible with this to?
Reply With Quote
  #64  
Old 08-28-2002, 02:36 PM
jbear6 jbear6 is offline
 
Join Date: Oct 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First of all, Congratulations, this is a fantastic hack
I would really like to run both the TWTCommish shoutbox, and this chatbox at the same time (in two different areas of our forums).
If I changed all the names of the tables, and files in this hack from "shoutbox" to "chatbox", would this work? Is this realistic, or way too many changes?

Thanks
Jbear
Reply With Quote
  #65  
Old 08-28-2002, 03:05 PM
p0s3id0n p0s3id0n is offline
 
Join Date: Jun 2002
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ NuclioN : You can change the maximum posts in the box, on the admin CP.

@ jbear6 : it seems that i will have to make this hack work with the other box... and it seems it is this one that must be changed since the other one was here before .
So maybe i'll give a try soon to changing all the files, tables and calls names .
Reply With Quote
  #66  
Old 08-28-2002, 04:37 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anyway to keep unregistered from from posting in the chat?

I want them to be able to see the chat but I don't want them posting.

Thanks!
Reply With Quote
  #67  
Old 08-28-2002, 05:45 PM
jbear6 jbear6 is offline
 
Join Date: Oct 2001
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by p0s3id0n
[B@ jbear6 : it seems that i will have to make this hack work with the other box... and it seems it is this one that must be changed since the other one was here before .
So maybe i'll give a try soon to changing all the files, tables and calls names . [/B]
Thank you very much, you are a scholar and a gentleman I'll check this thread later for further developments.

Thanks Again,
Jbear
Reply With Quote
  #68  
Old 08-28-2002, 06:41 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also is there anyways when a user minimizes the window to show more then one shout? I would like them to see the last 5.

I figured out how to block non members from posting I banned the user (space) (Just pressed the Space bar and pressed save.)

Neat huh?
Reply With Quote
  #69  
Old 08-28-2002, 07:02 PM
p0s3id0n p0s3id0n is offline
 
Join Date: Jun 2002
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ scottct1 : Err... normaly the unregistered can't post, but i've already heard about unregistered being able to post with a username apearing as blank... Your idea to ban the ' ' user seems good to me .

As for having 5 'shouts/chats' visible when the chatbox is reduced, you will have to look at your root index.php and find :
PHP Code:
    $chat_result $DB_site->query("SELECT * FROM chatbox ORDER BY id DESC LIMIT 1");
    if(!
mysql_num_rows($chat_result)){
        eval(
"\$chatbit = \"".gettemplate('chatbox_bit_vide')."\";");
        eval(
"\$chatbox = \"".gettemplate('chatbox_fermee')."\";");
    }else{
        
$chat_row mysql_fetch_assoc($chat_result);
        
$name $chat_row["name"];
        
$comment $chat_row["comment"];
        
$date $chat_row["date"];
        
$date date("Y") . "-" substr($date42) . "-" substr($date12) . " " substr($date72) . ":" substr($date102);
        
$date date("[d/m|H:i]"strtotime($date) + ($bbuserinfo['timezoneoffset'] * 3600));
        
$comment parseurl($comment);
        
$comment ereg_replace("sessionhash=[a-z0-9]{32}"""$comment);
        
$comment ereg_replace("s=[a-z0-9]{32}"""$comment);
        
$comment bbcodeparse($comment);
        
$comment str_replace("<br />"," ",$comment);
        
$comment str_replace("<br>"," ",$comment);
        
$comment swear($comment);
        if(
substr($comment,0,3) == "/me"){
            
$comment stripslashes(substr($comment,3));
            eval(
"\$chatbit = \"".gettemplate('chatbox_bit_me')."\";");
        }else{
            
$colorirc $un_color_chat;
            
$comment stripslashes($comment);
            eval(
"\$chatbit = \"".gettemplate('chatbox_bit')."\";");
        } 
and replace it by that :
PHP Code:
    $chat_result $DB_site->query("SELECT * FROM chatbox ORDER BY id DESC LIMIT 5");
    if(!
mysql_num_rows($chat_result)){
        eval(
"\$chatbit = \"".gettemplate('chatbox_bit_vide')."\";");
        eval(
"\$chatbox = \"".gettemplate('chatbox_fermee')."\";");
    }else{
        while(
$chat_row mysql_fetch_assoc($chat_result)){
            
$name $chat_row["name"];
            
$comment $chat_row["comment"];
            
$date $chat_row["date"];
            
$date date("Y") . "-" substr($date42) . "-" substr($date12) . " " substr($date72) . ":" substr($date102);
            
$date date("[d/m|H:i]"strtotime($date) + ($bbuserinfo['timezoneoffset'] * 3600));
            
$comment parseurl($comment);
            
$comment ereg_replace("sessionhash=[a-z0-9]{32}"""$comment);
            
$comment ereg_replace("s=[a-z0-9]{32}"""$comment);
            
$comment bbcodeparse($comment);
            
$comment str_replace("<br />"," ",$comment);
            
$comment str_replace("<br>"," ",$comment);
            
$comment swear($comment);
            if(
substr($comment,0,3) == "/me"){
                
$comment stripslashes(substr($comment,3));
                eval(
"\$chatbit .= \"".gettemplate('chatbox_bit_me')."\";");
            }else{
                
$colorirc $un_color_chat;
                
$comment stripslashes($comment);
                eval(
"\$chatbit .= \"".gettemplate('chatbox_bit')."\";");
            }
        } 
I think it will work... tell me how it goes as it's just theory, I haven't tryed on an active forum .
Reply With Quote
  #70  
Old 08-28-2002, 07:47 PM
scottct1 scottct1 is offline
 
Join Date: Mar 2002
Location: Connecticut
Posts: 391
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope didnt work, still just one.

Only reason I want 5 is because guests are shown the box minimized. I want to to be able to watch the chat, and hopefully will consider registering as a member.
Reply With Quote
  #71  
Old 08-28-2002, 07:53 PM
p0s3id0n p0s3id0n is offline
 
Join Date: Jun 2002
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i edited the post on top of this one, everything is now ok
Reply With Quote
Reply


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 04:22 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.05090 seconds
  • Memory Usage 2,358KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (1)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
  • (1)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_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