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
  #32  
Old 08-26-2002, 06:29 AM
zootsuit's Avatar
zootsuit zootsuit is offline
 
Join Date: May 2002
Location: CA
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love this hack!

Just have a question...Is there any way this can be put in the footer so we can see it on every page? Or maybe on the Active Threads page since that's where all of my members hangout anyway?
Reply With Quote
  #33  
Old 08-26-2002, 07:07 AM
p0s3id0n p0s3id0n is offline
 
Join Date: Jun 2002
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ zootsuit : to move the shoutbox to any place you want, you just have to change the position of the $shoutbox var in the forumhome template, and you can put it in the footer if you like.
But if in the footer, the shoutbox wont be reduceable (i know this word doesnt exist ).
It could work if the part added to index.php was an include and it was included in each script calling the footer... errr... or maybe if someone has another idea .
Or if you added that part to showthread.php... and err... some other scripts ...

@ erwin : for the timstamps part, i will make an update this evening, since in france it is 10am and i must work to earn a living . I think i can do this change to the script relatively easily (i hope i will ).
Reply With Quote
  #34  
Old 08-26-2002, 07:31 AM
zootsuit's Avatar
zootsuit zootsuit is offline
 
Join Date: May 2002
Location: CA
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried to place the $shoutbox in the actual footer template and all it showed was the word "open." Weird.

Any ideas so it can show on every page [not just index]?
Reply With Quote
  #35  
Old 08-26-2002, 11:09 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by zootsuit
I tried to place the $shoutbox in the actual footer template and all it showed was the word "open." Weird.

Any ideas so it can show on every page [not just index]?
Are you sure? You'd be adding a couple of queries and an iframe to all your pages. That may slow down your site somewhat. Remember, each time you move to a different page, shoutbox.php has to be called again. Why not popup a shoutbox window rather than putting it in the footer?
Reply With Quote
  #36  
Old 08-26-2002, 12:12 PM
p0s3id0n p0s3id0n is offline
 
Join Date: Jun 2002
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup, i think the popup would be a good idea if some of
your members want to keep an eye on the shoutbox
while surfing the forum...

I added an option on mine where the members can add the
shoutbox as a desktop element , so they can have a look
at what's happening on the forum when they reduce their
windows.
Reply With Quote
  #37  
Old 08-26-2002, 01:31 PM
p0s3id0n p0s3id0n is offline
 
Join Date: Jun 2002
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

by the way how does a hack change from beta to full release ??
I mean, do i have to post it again in the full release section or
is it better to wait for a mod to move the thread ??

just asking he .
Reply With Quote
  #38  
Old 08-26-2002, 07:19 PM
p0s3id0n p0s3id0n is offline
 
Join Date: Jun 2002
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ erwin : here you are with the timezoneoffset modification
for each user to see the shouts in their time zone :
In shoutbox.php, look for :
PHP Code:
$date $get["date"]; 
and in index.php , look for :
PHP Code:
$date $shout_row["date"]; 
and add just after each :
PHP Code:
$date date("Y")."-".substr($date,4,2)."-".substr($date,1,2)." ".substr($date,7,2).":".substr($date,10,2);
$date date("[d/m|H:i]",strtotime($date)+($bbuserinfo['timezoneoffset']*3600)); 
and here you are ... maybe you are not used to my frenchie
way of writing datetimes, you could modify the way it is written
by changing the "[d/m|H:i]" part and looking that page from the
php manual if you need : http://www.php.net/manual/en/function.date.php
Reply With Quote
  #39  
Old 08-27-2002, 12:35 AM
zootsuit's Avatar
zootsuit zootsuit is offline
 
Join Date: May 2002
Location: CA
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by p0s3id0n
Yup, i think the popup would be a good idea if some of
your members want to keep an eye on the shoutbox
while surfing the forum...

I added an option on mine where the members can add the
shoutbox as a desktop element , so they can have a look
at what's happening on the forum when they reduce their
windows.


I have absolutely no idea how to do that.

Is there a thread here that would show me? Because having it on the main page is really not what I was looking for...

What you just described...a popup of some kind would be phenomenal! Then I could just link to that on the index page, right? or...err... :cross-eyed:
Reply With Quote
  #40  
Old 08-27-2002, 12:40 AM
Vile's Avatar
Vile Vile is offline
 
Join Date: Apr 2002
Location: Arizona, USA
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack, installed just fine. Question...What would I need to edit to change the background color?

Thanks.
Reply With Quote
  #41  
Old 08-27-2002, 04:18 AM
p0s3id0n p0s3id0n is offline
 
Join Date: Jun 2002
Posts: 55
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@ Knightmare : Just go to the admin CP and in the shoutbox
section choose configuration. There you have all you need
to change the background color, and some other colors too .

[edit]errr. for the background of the reduced shoutbox... the
colors are those from your styles.... so maybe you can change
the font colors of the shoutbox for it to be more 'readable' (argh
frenchie cant write ).[/edit]

@zootsuit : I'll have a look on the changes you have to make
for the shoutbox to be in a popup .

[edit]here we are ...
i think that, for the shoutbox to be in a popup, you just have
to add, on the footer, for example, something like :
Code:
<center><a href="javascript:window.open('shoutbox.php','left=100,top=100,height=130,width=150,scrollbars=0,status=0, location=0,resizable=0,menubar=0');">Shoutbox popup</a></center>
Don't forget to get rid of the space between java and script .

I cant remember if the top bar is included in the size of a popup
or if the size is the internal size so you will maybe have to change
the height parameter ...

Tell me if it fits [/edit]
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 05:11 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.04796 seconds
  • Memory Usage 2,329KB
  • 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
  • (1)bbcode_code
  • (3)bbcode_php
  • (2)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