PDA

View Full Version : vB Chatbox 1.2.4


Pages : [1] 2

p0s3id0n
08-24-2002, 10:00 PM
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 (https://vborg.vbsupport.ru/attachment.php?s=&postid=290126)

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 FAQ from all the thread,
hope this helps, and prevents you from reading all that i just read ;) :

#----------------------------------------------------------#
Erwin : limit of smilies a person can post in the shoutbox.
This is to prevent smilie spamming : HERE (https://vborg.vbsupport.ru/showthread.php?postid=290534#post290534)
#----------------------------------------------------------#
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 (https://vborg.vbsupport.ru/showthread.php?postid=367949#post367949)
#----------------------------------------------------------#
For the shoutbox to be in a popup : HERE (https://vborg.vbsupport.ru/showthread.php?postid=291112#post291112)
#----------------------------------------------------------#
To have 5 'shouts/chats' visible when the chatbox is reduced :
HERE (https://vborg.vbsupport.ru/showthread.php?postid=292014#post292014)
#----------------------------------------------------------#
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 (https://vborg.vbsupport.ru/showthread.php?postid=325766#post325766)
#----------------------------------------------------------#
ThoughtDiver: if you want the date format on the shout timestamps
to read Month/Day instead of Day/Month : HERE (https://vborg.vbsupport.ru/showthread.php?postid=329367#post329367)
#----------------------------------------------------------#

p0s3id0n
08-25-2002, 09:48 AM
screenshot 1

p0s3id0n
08-25-2002, 09:52 AM
The same but reduced to accelerate the page loading

screenshot2

p0s3id0n
08-25-2002, 09:54 AM
the admin CP part

screenshot3

p0s3id0n
08-25-2002, 09:55 AM
admin part pruning option :)

screenshot4

p0s3id0n
08-25-2002, 09:57 AM
and in the admin CP the part where you can chose words to be replaced :).

screenshot 5

p0s3id0n
08-25-2002, 09:59 AM
And last but not least, the banning options in the admin cp

screenshot 6

Erwin
08-25-2002, 10:10 AM
Mmm... looks nice... how many queries does this add to your index page? Can you link to a working demo? I'm currently using TWTCommish's excellent version here:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=38698

p0s3id0n
08-25-2002, 10:17 AM
it adds when reduced 2 querys.. one for the shout and
one for the swear list, that's all.

But when it's opened there's a frameset inside an Iframe, so
it does not add more querys to you're database, but it
adds 3 requests to your web server.



err.. for the working demo... maybe you can have a look here : www.vbressources.com/forums but you have to register (not on the head, not on the head !!! :p), and it is a french forum :).

and for the comparison with the great hack from twt-comish : i think this shoutbox, is more like a chatbox...

thefreestyler
08-25-2002, 10:43 AM
wow look nice p0s3id0n

Floris
08-25-2002, 11:54 AM
nice! :)

Tok Muda
08-25-2002, 12:23 PM
this kinda cool ;)

currently i'm also using TWT shoutbox, if wanna use this one
just simply overwrite the files right?

[D]Vincent
08-25-2002, 12:55 PM
Looks great but last time I added a shoutbox my bandwidth got killed overnight =\

p0s3id0n
08-25-2002, 07:19 PM
@ Tok Muda : if i were you, i'd make a choice between the two
and if my choice was to try this one, i'd completely uninstall the
other one :)... Just in case :).

@ [D]Vincent : this shoutbox really adds load to the web server
when full sized. But when reduced it does only add two small
queries per home page view ;).
And it doesn't add any load on other pages.

DemiNeo0101
08-25-2002, 10:57 PM
this is extra nice!

Me clicks install.

I dont think im going to install it on Mine JUST b/c i run an irc network and this is to much like irc(i need all the user i can get on the ircd :)). if i din't though i would defintly have this on. You deserve that install though. GREAT first hack.

Erwin
08-26-2002, 01:52 AM
2 extra bits of instructions:

1) Chmod shoutbox_config.php to 777
2) In your index.php, place these templates into your

templatesused ="shoutbox,shoutbox_bit_me,shoutbox_bit,shoutbox_fer mee,shoutbox_bit_vide,..."

section to reduce your queries substantially.

:)

I'm installing it as you can see...

p0s3id0n
08-26-2002, 02:13 AM
@ erwin : that was the point of me posting this here erwin :)
(apart from having people installing it all over the world and
making screenshots of their forums for my momy to be proud ;) ),
I wanted to be sure my code was correct, and you just helped
me going the right way, when i upgraded my templates system
i forgot to add all the new templates to the var
$templatesused in the index.php and the shoutbox.php where
there are some missing :)...

I will change it as soon as i get some sleep :).

And i will also add the chmod in the install file, with a bit of
instruction in case it doesnt make it on its own ;).


@ DemiNeo0101 : thanks for the kind words ;)

Erwin
08-26-2002, 03:03 AM
I'm running into some major problems.

1) The icons to click on the smilies and close/ open the shoutbox is located on top of the "Go" button. I have enlarged the iframe with no improvements.

2) When I close the shoutbox, I get a blank spot with the word "Close" in it.

Any suggestions?

Erwin
08-26-2002, 03:35 AM
Okay, figured it out. :)

Thanks, looks nice. I'm customizing it to suit my site. Curious - why do you use < div> tags for the icons? Why not leave them out?

p0s3id0n
08-26-2002, 04:33 AM
I use div because the body tags of the default header of vBulletin
has a 10px margin all around. And since i'm using the default
header because i dont want to create another template ;), and
i dont want this box to be too large, it permits me to have
everything fit in the room, with absolute positionning :D.

Oh and by the way, i am just upgrading to 1.2.2 with $templatesused
var filled and chmod made by the install script :D.

Erwin
08-26-2002, 04:34 AM
Update: It's all working beautifully at the moment. My members all love it - they like it better than TWT's hack.

In fact, the number of queries has been slashed by 90%. Why? Because now when members use the shoutbox to chat, all they are refreshing is the new shoubox.php file in an iframe, rather than refreshing the previous TWT's shoutbox.php file which included headers etc. as well as 20 queries and a whole lot of other stuff.

Thanks for the nice port. :) You can move this to the "Full Releases" once you update your install text files.

Erwin
08-26-2002, 04:37 AM
Do you mind posting in this thread what I should do to upgrade to 1.2.2? Just tell me what to add to the templatesused bits in case I'm missing something. :)

p0s3id0n
08-26-2002, 04:41 AM
here is the start of the shoutbox.php file upgraded to 1.2.2 :
<?
error_reporting(7);

$templatesused = 'shoutbox,shoutbox_bit,shoutbox_bit_me,shoutbox_bi t_vide,shoutbox_chat,shoutbox_fermee,shoutbox_fram e,shoutbox_popup_smilbox,shoutbox_popup_smilboxbit s,shoutbox_saisie,shoutbox_vbcodes';

require("./global.php");
require("./admin/shoutbox_config.php");

and here is the line i added just under the definition of the $templatesused var at the top of the index.php file of the root folder of the forum :
$templatesused .= ',shoutbox,shoutbox_bit,shoutbox_bit_me,shoutbox_b it_vide,shoutbox_chat,shoutbox_fermee,shoutbox_fra me,shoutbox_popup_smilbox,shoutbox_popup_smilboxbi ts,shoutbox_saisie,shoutbox_vbcodes';

For the chmod, since it's on the install script i supose you no longer need the modification :p.

Erwin
08-26-2002, 04:51 AM
Thanks.

Is there a way to use the member's timeoffset so that the time stamp works for the member's timezone?

p0s3id0n
08-26-2002, 04:57 AM
errr, what a nice idea... but wouldn't it be a little bit confusing
if a shout under another shout didnt have timestamps
following each other ???

* p0s3id0n notes the idea on a piece of paper for the 1.3 release ;).

Erwin
08-26-2002, 05:00 AM
No, no, all the timestamps will be offset to the user's timezone who is viewing the shoutbox. It would be good to have since I know when a member has posted according to my timezone, instead of the server timezone. TWT's shoutbox had this working fine using the - $timeoffset variable.

Erwin
08-26-2002, 05:01 AM
I tried to implement this with your hack, but the way you parse the date and time is different... :)

Erwin
08-26-2002, 05:28 AM
I've made it so that there is a limit of smilies a person can post in the shoutbox. This is to prevent smilie spamming. :)

In shoutbox.php, find:


$sql = "SELECT id FROM shoutbox WHERE date LIKE '".substr($date,0,10)."%' AND name='".$bbuserinfo['username']."' AND comment='".addslashes($message)."'";


Underneath, add:


$parsey = bbcodeparse($message, 0, 1, 1);
if (countchar($parsey,"<img")>5) {
eval("dooutput(\"".gettemplate('shoutbox_error')."\");");
exit;
}


Then, add a new template called:

shoutbox_error

with these contents:


{htmldoctype}
<html>
<head>
$headinclude
</head>
<body bgcolor="$fondshoutbox">
<center><br><br><b><smallfont>NOTE: You are only allowed a maximum of 5 smilies. Please try again.</smallfont></b></center>
</body>
</html>


Done! :) You can change this line in shoutbox.php to increase or decrease the smilie limit, and edit the shoutbox_error template accordingly:

if (countchar($parsey,"<img")>5) {

Erwin
08-26-2002, 05:33 AM
Now if only I can get the timeoffset thing to work... anyone has any clue?

Erwin
08-26-2002, 05:59 AM
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, you can do this:

In shoutbox.php, find:


if ((mysql_num_rows($result)){


Replace with:


if (mysql_num_rows($result) OR $bbuserinfo[usergroupid]==8){


8 being the banned usergroupid.

zootsuit
08-26-2002, 06:29 AM
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?

p0s3id0n
08-26-2002, 07:07 AM
@ 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 ;)).

zootsuit
08-26-2002, 07:31 AM
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]?

Erwin
08-26-2002, 11:09 AM
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?

p0s3id0n
08-26-2002, 12:12 PM
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.

p0s3id0n
08-26-2002, 01:31 PM
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 ;).

p0s3id0n
08-26-2002, 07:19 PM
@ erwin : here you are with the timezoneoffset modification
for each user to see the shouts in their time zone :
In shoutbox.php, look for :
$date = $get["date"];
and in index.php , look for :
$date = $shout_row["date"];
and add just after each :
$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

zootsuit
08-27-2002, 12:35 AM
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:

Vile
08-27-2002, 12:40 AM
Great hack, installed just fine. Question...What would I need to edit to change the background color?

Thanks.

p0s3id0n
08-27-2002, 04:18 AM
@ Knightmare : Just go to the admin CP and in the shoutbox
section choose configuration (https://vborg.vbsupport.ru/attachment.php?s=&postid=290129). There you have all you need
to change the background color, and some other colors too ;);).

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 ;)).

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

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 :
<center><a href="javascript:window.open('shoutbox.php','left=100,to p=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 :p.

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 :D

NexDog
08-27-2002, 06:22 AM
It would be great to have instructions on removing TWT's shoutbox aswell. ;)

zootsuit
08-27-2002, 06:56 AM
Thank you so much for helping me but when I added this in the Footer template, I just got a runtime error asking me if I would like to 'debug'...

Am I supposed to place that code anywhere special? :)


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

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 :
<center><a href="javascript:window.open('shoutbox.php','left=100,to p=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 :p.

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 :D

Erwin
08-27-2002, 07:00 AM
That's great! You do also need to set the server time zone as well, otherwise your time is still off.

Find this code in both shoutbox.php and index.php after adding the code by poseidon:


($bbuserinfo['timezoneoffset']*3600));


Replace with this:


(($bbuserinfo['timezoneoffset']+x)*3600));


where x=7 or 10 or whatever your server timezone offset is.

Thanks! It's working great...

p0s3id0n
08-27-2002, 07:02 AM
Originally posted by zootsuit
Thank you so much for helping me but when I added this in the Footer template, I just got a runtime error asking me if I would like to 'debug'...

Am I supposed to place that code anywhere special? :)

Not in the middle of another tag, but anywhere else you want ;)...

Did you get rid of the space between java and script ????

Could you tell me what error the cro$oft debugger gave you ??

zootsuit
08-27-2002, 07:12 AM
Yeah, got rid of the space... ;)

The runtime error was...

Line: 0
Error: Invalid argument

I placed it right after the <!-- /content area table --> in the Footer [not in any tags that I could tell...]

p0s3id0n
08-27-2002, 07:19 AM
Originally posted by Erwin
That's great! You do also need to set the server time zone as well, otherwise your time is still off.
(...)
where x=7 or 10 or whatever your server timezone offset is.

Thanks! It's working great...

err... yup you're right... as my time zone in paris is 0 it didn't
bother me :p.

p0s3id0n
08-27-2002, 07:53 AM
@ zootsuit : this time i tried what i'm giving ;)... And it works :p.

<center><normalfont><a href="javascript:;" onclick="window.open('shoutbox.php','shout','status=0,direc tories=0,toolbar=0,location=0,menuBar=0,scrollbars =0,resizable=0,width=650,height=130,left=100,top=1 00');">Shoutbox popup</a></normalfont></center><br>
same place in the code :D.

there's just a small problem with that popup thing... if you
click on the reduce button, your forum homepage will take place
in the popup :(

massena
08-27-2002, 08:25 AM
Hello p0s3id0n,

Very, very nice hack :)

I installed it and it functions marvellously

Congratulations and continuous like that ;)

To soon ;)

massena

meteore
08-27-2002, 01:24 PM
huuuummm p0s3id0n sounds like sval ;)

great job frenchie guy

p0s3id0n
08-27-2002, 02:20 PM
@ massena & meteore : thx a lot my fellow frenchies for the encouragements :)... Bin oui koua on est civilis?s on koze en angl? pour qu'on nous comprenne ;);), enfin on essaye.

zootsuit
08-27-2002, 09:49 PM
Thank you, p0s3id0n :) That worked perfectly.

It looks awesome!

Vile
08-27-2002, 10:19 PM
Originally posted by p0s3id0n
@ Knightmare : Just go to the admin CP and in the shoutbox
section choose configuration (https://vborg.vbsupport.ru/attachment.php?s=&postid=290129). There you have all you need
to change the background color, and some other colors too ;);).


Thanks for the help, and thanks for this great hack:)

thefreestyler
08-28-2002, 09:33 AM
oué elle marche impect cette shouty mon svalinou

worked perfectly my svalinou

Deska
08-28-2002, 10:22 AM
anyone can provide an update script from previous version?
'cause I can't see in the readme file
thank's...

p0s3id0n
08-28-2002, 10:24 AM
@ Deska : it seems to me that you are talking about TWT-commish's great ;) shoutbox, which is not related in any way (apart for the name :p) with this one.

Sorry if my lack of imagination for the name of this hack misleaded you ;).

Erwin
08-28-2002, 10:29 AM
It's because TWT called his vB Shoutbox 1.0 and you called yours vB Shoutbox 1.2.1 LOL!!! :p

You may want to consider renaming yours to avoid confusion. :)

p0s3id0n
08-28-2002, 10:32 AM
yes Erwin i thought about renaming it to chatbox which is, i
believe, a name more descriptive about this hack... but i cant
change the thread title, so the confusion will remain...

Once again sorry for my lack of imagination :p.

Erwin
08-28-2002, 10:37 AM
No, you CAN change the thread title... at least I have been able to with my own hacks... I call mine "Chat Box" on my site. :) In fact, I'm going to remove my java irc chat soon, as this has practically replaced that.

Deska
08-28-2002, 10:45 AM
ups, then I wrong, :)

p0s3id0n
08-28-2002, 11:34 AM
Once again Erwin you were right.... Name changed :)...

NuclioN
08-28-2002, 12:23 PM
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?

NuclioN
08-28-2002, 01:22 PM
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?

jbear6
08-28-2002, 02:36 PM
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

p0s3id0n
08-28-2002, 03:05 PM
@ 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 :p:p.
So maybe i'll give a try soon to changing all the files, tables and calls names :(:(.

scottct1
08-28-2002, 04:37 PM
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!

jbear6
08-28-2002, 05:45 PM
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 :p:p.
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

scottct1
08-28-2002, 06:41 PM
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?

p0s3id0n
08-28-2002, 07:02 PM
@ 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' :p visible when the chatbox is reduced, you will have to look at your root index.php and find :
$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($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));
$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 :
$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($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));
$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 :p.

scottct1
08-28-2002, 07:47 PM
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. :)

p0s3id0n
08-28-2002, 07:53 PM
i edited the post on top of this one, everything is now ok

scottct1
08-29-2002, 12:56 PM
That worked. (Yippie!) Great hack!

Thanks!

aidler
08-31-2002, 07:10 PM
OK I can't create the field "replace" in the "shoutbox_swears" table. The MySQL Database tells me "replace is a reserved word that can't be used for database-, table-, or fieldnames."

Any suggestions what to do???

SuB_ZeR0
08-31-2002, 09:31 PM
Is it possible to place the chatbox on other page besides the forum's index? I'm using vBindex as the frontpage and I was just wondering what do I need to do to place the chatbox there instead. Thanks.

HAK
08-31-2002, 10:19 PM
guys is this hack finialized..I see lot of people still facing problem in installing this hack?

Erwin
08-31-2002, 10:22 PM
There are no problems. This hack installed fine the first day it was released. All the other posts are just addons.

HAK
08-31-2002, 10:35 PM
thanks Erwin for this fast response.. I tried to install it but I got this error after running the install script

Installation de la Shoutbox de svaliotti.

Warning: chmod failed: Operation not permitted in /home/XXXXX/public_html/forum/admin/shoutbox_install.php on line 62

There seems to have been a slight problem with the XXXX database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

and if add the tables using Phpmyadmin I got this:

Error
SQL-query :

ALTER TABLE user
ADD shoutbox TINYINT DEFAULT 1 not null

MySQL said:

Duplicate column name 'shoutbox'

so what is wrong?

Erwin
09-01-2002, 10:25 AM
Duplicate name means the shoutbox column in the user table exists already. Don't worry about it. Just skip that query.

aidler
09-01-2002, 12:27 PM
I realy don't want to appear impatient but if anyone would have a solution to the problem I posted about yesterday.

OK I can't create the field "replace" in the "shoutbox_swears" table. The MySQL Database tells me "replace is a reserved word that can't be used for database-, table-, or fieldnames."

DJ FRESCO
09-02-2002, 08:36 PM
Please help..............


Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: CREATE TABLE `shoutbox` (`id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL default '', `comment` TEXT NOT NULL, `date` VARCHAR(30) NOT NULL default '', PRIMARY KEY (`id`))
mysql error: You have an error in your SQL syntax near '`shoutbox` (`id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL d' at line 1

mysql error number: 1064

Date: Monday 02nd of September 2002 05:35:03 PM
Script: http://www.djfresco.com/forum/forum/admin/shoutbox_install.php?etape=1
Referer: http://www.djfresco.com/forum/admin/shoutbox_install.php?

aidler
09-03-2002, 11:13 PM
Is the author of this hack on shore leave or is this again one of those hacks who after a while won't be supportet anymore (this time not even 10 days)? :disappointed:

Erwin
09-03-2002, 11:35 PM
Give the author some time... :) He has a day job too, I'm sure.

badham
09-08-2002, 03:32 AM
Originally posted by HAK
thanks Erwin for this fast response.. I tried to install it but I got this error after running the install script

Installation de la Shoutbox de svaliotti.

Warning: chmod failed: Operation not permitted in /home/XXXXX/public_html/forum/admin/shoutbox_install.php on line 62

There seems to have been a slight problem with the XXXX database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.

and if add the tables using Phpmyadmin I got this:

Error
SQL-query :

ALTER TABLE user
ADD shoutbox TINYINT DEFAULT 1 not null

MySQL said:


Duplicate column name 'shoutbox'

so what is wrong?

I have the same problem. I skipped the eidt part thinking i could co back and access the hacks, but couldn't so i deleted the templates involving shoutbox and tried to reinstall. The templates are not there but the error says they are. How can I reset the user table so I can reinstall this hack or put the tables in manually and then go back and find the code to hack in????? I am fairly new to this so go easy..........LOL :ermm:

badham
09-08-2002, 01:26 PM
Originally posted by Erwin
Duplicate name means the shoutbox column in the user table exists already. Don't worry about it. Just skip that query.

and how do I do this..........................????? or someone just give me the template code for each template and I can put the code in myself....man I wish I had done this differently :cry:

badham
09-08-2002, 07:10 PM
Bump

JackG
09-10-2002, 08:18 PM
Hello, I installed and got some database orrors but made sure
the new tables were their.. they are

But I dont see where to make a Templat so i can see this
in y user control panel.

Any ideas?

When I log in I dont see anything different on my forums
or in my UCP.

Please help :(

JackG
09-10-2002, 09:03 PM
I guess because the first part of the install went wrong.. i
cannot acess the rest of the install instructions.

JackG
09-10-2002, 10:16 PM
OK Got it to Install

BUT

Nothing appears in my Forum Home page.
I do see everything in the Control Panel.

Also my DEFAULT Template Set got killed??
I dont see any of my templates only this:

[edit] [remove]
[edit] [remove]
[edit] [remove]
[edit] [remove]
[edit] [remove]
[edit] [remove]
[edit] [remove]
[edit] [remove]
[edit] [remove]
[edit] [remove]
[edit] [remove]
[edit] [remove]
[edit] [remove]
[edit] [remove]
[edit] [remove]
[edit] [remove]

and i see 3 shoutboxes below it.
this is not good :(


I re did the steps in editing my files..
Still nothing appears in Forum Home.

If you can - please help me.

NuclioN
09-12-2002, 01:04 AM
How can i make this so unregistered and not logged in users can not see the chat?

eScrewDotCom
09-12-2002, 05:50 AM
I'm trying to log in into my Admin CP and I see just a blank page why is that? Please help!

Thanks!

canuck
09-18-2002, 03:26 PM
is this the chat feature?

canuck
09-18-2002, 03:54 PM
Nuc what i have done is on the board itself i changed the user group permission so that all members must register to view the baord.

U manually changed, guests, registered, and awaiting to none view so that they have to register to go in.

hope that helps.

canuck
09-19-2002, 05:40 AM
Ok i installed it... cant find where in the AdminCP im suposed to configure this and i dont see anything on my main page? Pls help

Also i dont even see it on the main screen?

TECK
09-19-2002, 06:35 AM
canuck you missed a step on the install. open /forum/admin/index.php and find:
makenavoption("Mass Prune","thread.php?action=prune","|");
replace it with:
makenavoption("Shout prune","shoutbox_admin.php?action=prune","<br>");
makenavoption("Ban/unban","shoutbox_admin.php?action=ban","<br>");
makenavoption("swear/unswear","shoutbox_admin.php?action=swear","<br>");
makenavoption("Config","shoutbox_admin.php?action=params","<br>");
makenavselect("Shoutbox");
// ***
makenavoption("Mass Prune","thread.php?action=prune","|");

canuck
09-19-2002, 12:35 PM
Ok that helped me get the Admin CP working but now when i go to config and i set it up i get this error.

Warning: fopen("shoutbox_config.php", "w") - Permission denied in /home/modchipd/public_html/dsscanuckforum/admin/shoutbox_admin.php on line 21

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/modchipd/public_html/dsscanuckforum/admin/shoutbox_admin.php on line 23

Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/modchipd/public_html/dsscanuckforum/admin/shoutbox_admin.php on line 24

Not sure what to do... Also should i not be seeeing the shoutbox on the main index of the forum?

canuck
09-20-2002, 12:20 PM
ok if fixed most of the issues but i only get a blank screen when i try and signin. So im not sure what else to do. Pls help

havefun
09-26-2002, 04:53 PM
P L E A S E could anybody help me...

i got this message on step 2:

in the first window stands this:
file not found

betw. the 2 windows this:
') mysql error: Fehler in der Syntax bei ''shoutbox','

and the 2nd wind. is blank!

this is the step where the templates should be installed...

can anybody post these templates???
would make me feel like that: :banana:

i think the other 3 steps are done (however).. :dead:

Erwin
09-26-2002, 05:14 PM
Originally posted by havefun
[B]P L E A S E could anybody help me...

i got this message on step 2:

in the first window stands this:
file not found



Make sure you upload the file "shoutbox.style" into your /admin folder.

Then, upload the following file "shoutbox_install_templates.php" into your /admin folder, and run it. It will automatically install the templates for you (ie. it will skip straight to Step 2).

Disclaimer: I haven't tried it myself, but it should work. But I will not be responsible for any damage to your db, so back it up! :)

havefun
09-26-2002, 05:21 PM
i've done all steps that stands in the to do file...

but i've forg. only one thing: to chmod the one file..
so i got an error..

since than i am not able to do step 2...

i went to step 3 & 4, this steps are done...

what should i do now?

Erwin
09-26-2002, 05:32 PM
Did you read my previous post? Download the attached file in my previous post "shoutbox_install_templates.php" and upload it to your admin folder, and run it. It will install the templates for you. :)

Erwin
09-26-2002, 05:33 PM
The file is ATTACHED to my previous post. Download it, and run it from your admin folder.

havefun
09-26-2002, 05:36 PM
thanks!

i should better read :confused:
very sorry about that!!!!



i've tried it, but it doesn't work...

Erwin
09-26-2002, 05:41 PM
That's okay. It's easy to miss. :) I just wanted to make sure you see it. Let me know if it works. It should.

havefun
09-26-2002, 05:45 PM
.. it doesn't work

anything isn't found.. but i don't know what...

please have a look at the 2nd picture.
this comes..

Erwin
09-26-2002, 05:47 PM
Did you upload "shoutbox.style" into your /admin folder as well? That file needs to be uploaded too.

Erwin
09-26-2002, 05:48 PM
If you don't upload "shoutbox.style" the installer file cannot insert the templates - the templates are found in the "shoutbox.style" file. :) They have to both be in the /admin subdirectory.

havefun
09-26-2002, 05:49 PM
yes i did it from the beginning..

Erwin
09-26-2002, 05:51 PM
I saw your image file.

Make sure all these files are UPLOADED to your /admin subdirectory:

shoutbox.style
shoutbox_admin.php
shoutbox_config.php (CHMOD to 777)
shoutbox_install.php (the original installer)
shoutbox_install_templates.php (the file that I attached)

Then run the original installer first. If that doesn't work, run the one I attached. It should work. The problem is that one or more of the files I listed is missing.

Erwin
09-26-2002, 05:53 PM
What does the URL missing error message say in "2ndstep.gif"? I can't read the whole thing. Does it say what file is missing?

havefun
09-26-2002, 05:54 PM
tried both

i hope that i don't nerve you!
really thankful for your time!!!

Erwin
09-26-2002, 05:55 PM
Also, maybe it's the global.php path.

In the install file (both mine or the original) find:

require("./global.php");

Replace with:

require("../global.php");

See if that helps. (I doubt it, but it's worth a try).

Erwin
09-26-2002, 05:57 PM
Btw, it's 5 am here in Melbourne, Australia. :) I need to go and sleep. I have really no idea why the installer cannot find the file, if you have uploaded all the files. Make sure that the shoutbox_config.php is chmod to 777. I have to go now. :) good luck!

havefun
09-26-2002, 05:59 PM
thanks!

i will give it a try!
good night! nice dreams...

edit:
i've reinstalled all, deleted the files in mysql
& started again..

don't know why it hasn't worked the first time...

it works now!!! :banana:

Anitah
09-27-2002, 05:32 AM
Erwin, this is a great hack, thank you. I installed this in a test database and it all went well. Only had to change the chmod to 777 in the shoutbox_config file and all went without a hitch.

The trouble is that I can't seem to get this to work in my regular database. I've installed and uninstalled three times and I am repeatedly coming up with this error message (yes, I deleted the shoutbox files in the database before I reinstalled, yes, I've tried it with the new templates installer, it just gave me more errors...

the error for the original install is as follows:

Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: CREATE TABLE `shoutbox` (`id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL default '', `comment` TEXT NOT NULL, `date` VARCHAR(30) NOT NULL default '', PRIMARY KEY (`id`))
mysql error: Table 'shoutbox' already exists

mysql error number: 1050

Date: Friday 27th of September 2002 02:11:05 AM
Script: http://www.mydomain.com/forum/forum/admin/shoutbox_install.php?etape=1
Referer: http://www.mydomain.com/forum/admin/shoutbox_install.php

Is it saying the shoutbox already exists because it somehow connects to the test database? (again, I've repeatedly deleted the forum "home" database and started fresh).

And why does the script show double "forum/forum" ?

Sorry if this doesn't make sense, but I'm confused.


:ermm:

havefun
09-27-2002, 10:45 AM
first of all:

i really like this hack!!!
works 4 me fine on 227 :banana:

had some probs so this could help u out!!!

havefun

Anitah
09-27-2002, 11:05 PM
Thank you, but that didn't solve the problem I'm having in the database.

WHen I run a query, as you said, it returns this error:

Error

SQL-query :

ALTER TABLE user
ADD shoutbox TINYINT DEFAULT 1 not null

MySQL said:

Duplicate column name 'shoutbox'

What seems to be happening is this: if you start the install clean it works, but if for some reason you interrupt the process, delete the templates from your database and start again, it tells you "shoutbox" already exists. I don't see it anywhere, and I don't know what needs to be deleted or where, in order to start with a clean slate.

Anybody?

Erwin
09-28-2002, 12:37 AM
I suspect all of you are moving from TWT's shoutbox. You need to delete the old table shoutbox and the column shoutbox in the user table using PHPMYADMIN. Then reinstall the database. Each time it says - "duplicate table or column".

Also, you cannot run the installer again and again - it will keep trying to put in the db tables and columns, which it can only do once. To skip to just the templates, use the template installer above.

Anitah
09-28-2002, 06:15 AM
Erwin, that's exactly what I did - I removed shoutbox and the shoutbox column in PHPMYADMIN. Reinstalled again, got the same 1060 error.

Then using the shoutbox_installer_templates you gave, I get another error:

') mysql error: You have an error in your SQL syntax near ''shoutbox','

I'm completely stumped.

Anitah
09-28-2002, 06:27 AM
I forgot to mention, above the mysql 1060 error message there is also this:

Warning: chmod failed: Operation not permitted in /home/channelv/mydomain/forum/admin/shoutbox_install.php on line 62

havefun
09-28-2002, 05:14 PM
Originally posted by Anitah
WHen I run a query, as you said, it returns this error:

Error

SQL-query :

ALTER TABLE user
ADD shoutbox TINYINT DEFAULT 1 not null

MySQL said:


Duplicate column name 'shoutbox'


What seems to be happening is this: if you start the install clean it works, but if for some reason you interrupt the process, delete the templates from your database and start again, it tells you "shoutbox" already exists. I don't see it anywhere, and I don't know what needs to be deleted or where, in order to start with a clean slate.

Anybody?
go to PHPMYADMIN on your database:

delete these 3 tables-->

shoutbox
shoutbox_ban
shoutbox_swears

and go to the table "user"
and delete the field shoutbox ...

perhaps you've forgotten to delete "shoutbox" in the table user
that could was the reason for getting the error massage on this
sql-query: ALTER TABLE user
ADD shoutbox TINYINT DEFAULT 1 not null
because it was already there...

I forgot to mention, above the mysql 1060 error message there is also this:

Warning: chmod failed: Operation not permitted in /home/channelv/mydomain/forum/admin/shoutbox_install.php on line 62

had the same, just chmod it to 777 with your upload manager...

hope this helps!

Erwin
09-28-2002, 09:29 PM
That's what I told him, havefun. :)

Anitah
09-29-2002, 10:11 AM
havefun, thank you very much. That did the trick!

aidler
09-29-2002, 10:27 PM
Ok I really hate to bring this up again but I still haven't got an answer to my question:

OK I can't create the field "replace" in the "shoutbox_swears" table. The MySQL Database tells me "replace is a reserved word that can't be used for database-, table-, or fieldnames."

If anybody could please help me!!

Anitah
10-01-2002, 11:54 PM
First, the hack works great and my members love it.

I have two final questions:

1. how can I make the shoutbox available to unregistered guests?

2. are the posts saved in the database, and if they are, where? Because I'd like to be able to clear them.

That's it.

Thanks again for all your help.

havefun
10-06-2002, 12:54 PM
@Erwin: read it :)

@aidler: sorry, can't help u out...

@Anitah:

go to your admin control panel
Shoutbox --> Shout prune
select & delete ...

Anitah
10-07-2002, 08:05 AM
Thank you havefun (I like your nick btw).

One last question (I hope).

This doesn't work in NE. Clicking on shoutbox takes me to an index.html page.

Is there a way to fix that?

Exo
10-07-2002, 11:04 PM
Hi,

thanks very nice hack! :)


how can i change it so that the chat box is at the bottom and the text at the top?

Anitah
10-10-2002, 05:08 AM
There is this little bug.

Members who log and first check the shoutbox find their "view new posts" turns up blank.

Any fixes for this?

Also, I never did get an answer to my question about making shoutbox available for guests to post. Is there a security issue involved?

Thanks.

Erwin
10-10-2002, 09:42 AM
Originally posted by Anitah
There is this little bug.

Members who log and first check the shoutbox find their "view new posts" turns up blank.

Any fixes for this?

Also, I never did get an answer to my question about making shoutbox available for guests to post. Is there a security issue involved?

Thanks.

This doesn't happen to me. View New Posts should not be affected since the chatbox code doesn't affect it at all.

As for guests posting, that's dangerous - anyone can just anonymous post swear words and abuse. Not a wise thing to enable.

Keyser S?ze
10-12-2002, 04:18 PM
how can i format this so its like another forum catigory, like the whose online, private messages

i want it right under PMs

i got it there now and this is what i made shoutbox_ferme

<tr id="cat">
<td bgcolor="{categorybackcolor}" colspan="6" align="center"><a href="?shoutbox=open&s=$session[sessionhash]" title="EMUSA ShoutBox"><normalfont color="{categoryfontcolor}"><b>?-- Shoutbox --?</b></normalfont></a></td>
</tr>
<tr><td bgcolor="{secondaltcolor}" align="center" valign="top">

$shoutbit</td>
</tr>

and i put $shoutbox right under $pminfo in the forum home, but still not working

any ideas?

Anitah
10-12-2002, 10:13 PM
Originally posted by Erwin


This doesn't happen to me. View New Posts should not be affected since the chatbox code doesn't affect it at all.

Erwin. This is what happens. If people check the shoutbox first when they logon and then the "view new threads," there is nothing, but if they check the "vnt" first, then no problem. Also, if they leave the shoutbox open when they logout, no new posts appear when they log back on. WHen they close it, no problem. Clearly, this suggests there is a connection to the shoutbox. If you don't have the problem, then it would mean that I screwd up the code somewhere, but I wouldn't know how to find my error. I followed the instructions meticulously and have rechecked several times... so....

The General
11-09-2002, 01:41 AM
Thanks muchos!

Works like a charm...very cool...

Is it possible to change the color of the text input bar? Now it's white, and I can't change it in the cp.

sauron2002
11-09-2002, 05:31 AM
argh, well i had a nightmare installing, i downloaded the version, did exactly what he said in readme, then got that chmod error on 62, then it wouldnt reinstall, so i kept deleting tables, but same error, then i read to delete the other table in user part, so i do that, so i then chmod the config file to 777, then i try install again, and again same error, hooray, so i read to ignore it, so i do, so i follow the rest of the install, then i go into admin cp and its all there, the shoutbox, only thing missing is the actual bloody thing!!! theres no shout box on the forum! lol, dear me

sauron2002
11-09-2002, 05:37 AM
also i tried the template from erwin, and got another error:



') mysql error: You have an error in your SQL syntax near ''shoutbox','
<iframe name=\"shoutbox\" noresize width=' at line 1 mysql error number: 1064 Date: Saturday 09th of November 2002 01:36:58 AM Script: http://www.wolfensteinx.com/surface/forums/surface/forums/admin/shoutbox_install_templates.php Referer: -->

be interesting to know why some people are indeed getting the chmod line 62 error and others are not, ive tried chmoding that file to 777. If you look at line 62 it says strangely enough " chmod ("shoutbox_config.php", 0775);"

i tried 775 cmod as well before but that didnt work either

sauron2002
11-09-2002, 05:53 AM
argh, trying again, i deleted all the templates, uploaded back the online, index and other index, removed all the tables, yes the user one too, uploaded the files again and chmoded config t o777 and guess what error i get ?
thats righttttttt, i get:

Warning: chmod failed: Operation not permitted in /home/virtual/site3/fst/var/www/html/surface/forums/admin/shoutbox_install.php on line 62

fun fun fun

sauron2002
11-09-2002, 05:54 AM
holllddd up, hmmmm

sauron2002
11-09-2002, 06:03 AM
ok now its incredibly infuirating or however u spell words, i thought i had it, i missed out step to, add the $ bit to the template, i followed it there so instensely my eyes hurt, but guess what? thats right its still not displayed on the forum! wooooooooooo

i love being annoyed, i can see the admin panel, theres shout stuff all listed, i can see the templates too, i can see everything but the damn thing :////////////////////////////////////

*sobs*

sauron2002
11-09-2002, 06:21 AM
ok well 3 or 4 times, its made me go insane, no more, :(

The General
11-09-2002, 12:40 PM
Can you post a txt file of the hack, so I can implement it in my other styles as well?

The installer worked great, but it won't let me install the same thing for a different style.

It works great! My users are very happy with it.

sauron2002
11-09-2002, 04:02 PM
*explodes*

Dev-United
11-10-2002, 10:38 PM
Mozilla and MSIE6 problem. The buttons overlap. I am using MSIE6 myself but I have no problems. But several of the members have reported this bug. One of the members has also posted a screen shot:

Anitah
11-21-2002, 06:35 AM
I manually created the shoutbox for each of my templates but this caused an error in my database (the error was not apparant until I did a backup and restore on a test database for a new upgrade).

How can I get this to work with more than one template?

SpeedStreet
11-22-2002, 09:35 PM
DATABASE ISSUE

If you install this hack vanilla, you will get an error if you try to backup to an .sql file!!!

Here is a fix:

Simply go into the install instructions and replace any calls to the REPLACE field in shoutbox_swear with REDO. Then, manipulate the query so that you have a REDO field where the replace field is.

Replace is a SQL command, and that is why it has been puking. If I have permission from the author, I can release an updated version of this hack.

If you need help deciphering which of the replace calls you need to replace (confusing, huh?), please PM me and I will help out the best way I can.

p0s3id0n
11-22-2002, 09:50 PM
absolutely as you said :):)... sorry for being away from this
thread so long, but errr... you know ... life ;)...

I am preparing a new realease of this hack to correct for
example the f*cking 'replace' word i used from the start
and got stuck with (first of all coz i was too lazy to correct
all the code)...

You can use reserved words in sql queries to mysql, even if
you should not :p... you just have to put a ` around the word in
each query using it as a i did in the code.
If you are using phpmyadmin for example you have a checkbox
which gives you the choice to put those things or not.

@ john : of course you have my permission to correct
my error, and i gladly thank you in advance, and apologize
for my lack of support to this thread... I'll try to get some
time to make a final realease soon.

SpeedStreet
11-22-2002, 09:59 PM
Here is the update to accomodate the replace reserved word, just to make phpmyadmin happy without having to configure additional settings :)

luvjeffrey
11-25-2002, 05:03 AM
Great hack...installed without a hitch

SpeedStreet
11-26-2002, 02:47 PM
Hey p0s3id0n,

Here's some additions I have made to your hack.


In template shoutbox_chat right after </head>

Add:
<font size="1" color="#FF0000"><b>
<a href="http://YOURSITE.COM/forums/online.php" style="text-decoration: none" target="_blank">
<font color="#808080" face="Arial">Want to see who is in the Chatbox?&nbsp;
Click Here to see 'Who's Online'</font></a></b></font><br><br>

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 :)

If you want the Who's Online page to say 'In YOURFORUMS ChatBox', simply use this three second hack to get it to work!

UPDATE WHO'S ONLINE (https://vborg.vbsupport.ru/showthread.php?s=&threadid=46077)

SpeedStreet
11-27-2002, 04:22 PM
As is becoming standard...I have fixed my own problem :)

My list has Rule 1:, Rule 2:, etc. So I wanted the drop down to reflect this.

Simply go into warn.php

Find:


// New Prevent Warning Usergroup Function
$all_warns = $DB_site->query("
SELECT name, points
FROM warnings
ORDER BY points
DESC");


Replace With:


// New Prevent Warning Usergroup Function
$all_warns = $DB_site->query("
SELECT name, points
FROM warnings
ORDER BY name
ASC");


Now, my list is sorted by name in an ascending order!

Easy Enuf :)

XIanX
11-29-2002, 02:41 AM
SpeedStreet, I have cleaned up your addon code a bit.

Here is the revamped code:<font size="1" color="#FF0000"><b>
<a href="$bburl/online.php?s=$session[sessionhash]" style="text-decoration: none" target="_blank">
<font color="#808080" face="Arial">Want to see who is in the Chatbox?&nbsp;
Click Here to see 'Who's Online'</font></a></b></font><br><br>

Athmo
12-03-2002, 06:09 PM
Wow!!!

Realy great hack!

But errr....
Some users of our forum are asking for this...

Is it possible that eg. the first 5 lines in the frame get refreshed constantly and the rest of the frame is to readback the past conversations?

Dev-United
12-03-2002, 06:15 PM
Originally posted by Dev-United
Mozilla and MSIE6 problem. The buttons overlap. I am using MSIE6 myself but I have no problems. But several of the members have reported this bug. One of the members has also posted a screen shot:

The answer to this question can be found here http://development4life.net/portal/board/showthread.php?s=&threadid=94

This might be fixed in the nev version though.

eggz
12-06-2002, 07:15 PM
Sauron, I share your pain.

The options are all there in admin, and I did everything I was told to :cool: BUT still no ShoutBox on the main page at all.... I've checked my templates and $shoutbox is there in all its glory :ermm:

@ Sauron - If anyone has given you an answer by PM or email I'd appreciate it if you could forward it to me.

Everyone else... Heelp us PLEASEEEEE!

Erwin
12-06-2002, 10:51 PM
You are positive all the templates have been added.

And that you have added the code to your index.php

eggz
12-07-2002, 07:11 PM
Yup

Triple Checked.

p0s3id0n
12-07-2002, 09:48 PM
are you absolutely sure you put the last part in the index.php
just before le last call to the gettemplate function...
Because if you put the chatbox function after, it would
not appaer as it would not be parsed before the page
is echoed.

Just another try ;)...

ThoughtDiver
12-09-2002, 06:29 AM
Great add-on!

There are a couple French phrases in the templates and code that English speakers might want to translate.

I found this site useful:

http://www.freetranslation.com/

Also, if you want the date format on the shout timestamps to read Month/Day instead of Day/Month, then search the shout code added to shoutbox.php and root/index.php for:

$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']+5)*3600));

Change to:
$date = date("Y")."-".substr($date,1,2)."-".substr($date,4,2)." ".substr($date,7,2).":".substr($date,10,2);
$date = date("[m/d|H:i]",strtotime($date)+(($bbuserinfo['timezoneoffset']+5)*3600));

Change any other "d/m" to "m/d" also.
:-)

Thanks again to p0s3id0n - and Erwin for add-ons!

Scott

Taco
12-12-2002, 04:05 AM
ok, i got this error and i cant figure out what it wants me to do? If you have an error message about a chmod() function having failed, go to your admin folder and chmod manually the shoutbox_config.php to 777.

i got that error and now dont know what to do. I finished the rest of the installation. Help please..

lol, tried again and got everything installed but that chmod thingy, just gave the summary page one big blank page. Is that only cuz the chmod and that everything else was installed right?

eggz
12-14-2002, 02:43 PM
Thanks Erwin & Posidon for all your help - it (seemingly) works at last!

One problem - our site uses frames.
When a user selects minimise, the forums break out of the frames, and the navigation is lost.. any suggestions?

whilst I'm at it, is there an easy way to change the 'grey' colour around the box, maybe even centre the box on the page?

And how do you set the time to UK if your server is in a different country?

Regards,
Oliver

eggz
12-14-2002, 03:34 PM
OK I've got the time sorted, but still need help with the other two problems!

eggz
12-14-2002, 08:08 PM
Got rid of the grey as well, but have found another problem...

When the site has a message box on new pm, viewing it in the current window opens it in the shoubox I-Frame if it has focus, so you end up with a 'site inside site' scenario... any ideas?

eggz
12-15-2002, 08:47 AM
We've got this as well!!!:

Originally posted by Anitah
There is this little bug.

Members who log and first check the shoutbox find their "view new posts" turns up blank.

Any fixes for this?

Also, I never did get an answer to my question about making shoutbox available for guests to post. Is there a security issue involved?

Thanks.

NuclioN
12-17-2002, 10:01 AM
The VB chat is active now for a few months and our members still love it. Someone had the idea about the textcolor(s)...a profilefield where someone can put hexcolorcode and all his/her text in the shoutbox will be in that specified color.

I tried to put the same field before the $comment as we use in the postings where members can change their textcolors if they wish in the cp. Is this possible?

Hobbes
12-23-2002, 03:28 PM
I didnt take the liberty of reading all 11 pages, but i was wondering if there is any way to have the shoutbox optional so users can turn it on and off?

grog6
12-24-2002, 07:12 PM
@RPGSYguile : You can turn your chatbox off, just click on the link and it will be reduced, you don't will be able to chat and will only see the last reply ;)

So it reduces querys executed on your forumhome ;)

To reply and see others answers, just reclick on the link above the chatbox ;)

NuclioN
12-26-2002, 12:03 AM
Is it possible to build code in to ignore users?

Mr H
12-26-2002, 02:25 AM
Is there any way to give my moderators the ability to delete "shouts"?

Mr H
12-26-2002, 08:24 PM
The message I get is...

Invalid SQL: SELECT u.username, s.userid, s.shout_text, s.timestamp FROM user u, shoutbox s WHERE u.userid = s.userid ORDER BY s.timestamp DESC LIMIT 1
mysql error: Table 'vbulletin.shoutbox' doesn't exist
mysql error number: 1146

And my sites down.

I deleted the shoutbox table and all shoutbox templates and the site is still down....

What else can I do?

grog6
12-29-2002, 12:53 PM
Originally posted by Mr H
Is there any way to give my moderators the ability to delete "shouts"?

You can insert the part of modifications to make in the Admin CP to you Modo Cp and so moderators of your forum will be able to delete shouts on the Chatbox !! ;)

Doc203
12-30-2002, 09:14 PM
Is there anyway that this could be added to other forum pages as well as the home page?

NuclioN
12-30-2002, 09:20 PM
Or most requested...let the input update the chat so you won't have to refresh all the time. An update as in digichat, or push pull in java. That would beat the cake. ;)

Guidster
12-31-2002, 05:26 PM
Ok, I got through the install process and all of the templates are listed and I have the config stuf in the admin CP. However, try as I might, I do NOT have anything in the forums. After reading the thread, I have checked and rechecked the index.php file and I have the last biut of code ABOVE the get template--forum home line. The file permissions on the shoutbox_config.php is 777. Any ideas out there???

As a picture is worth 10,000 words, I have attached the index.php file.....Thanks

Guidster
01-01-2003, 02:10 AM
Originally posted by havefun
first of all:

i really like this hack!!!
works 4 me fine on 227 :banana:


had some probs so this could help u out!!!

havefun

This fixed me up! I did everything as specified in the directions, but I did not see anything in the forum! The last line in YOUR
instructions fixed me up! Thanks so much!

Here is the line that I cannot understand why is not in the instructions that came with the hack!

the last step!

go to your templates and modify "forumhome":

find:
<!-- main -->

and but before that this:
$shoutbox

grog6
01-01-2003, 11:00 AM
Originally posted by Guidster
Ok, I got through the install process and all of the templates are listed and I have the config stuf in the admin CP. However, try as I might, I do NOT have anything in the forums. After reading the thread, I have checked and rechecked the index.php file and I have the last biut of code ABOVE the get template--forum home line. The file permissions on the shoutbox_config.php is 777. Any ideas out there???

As a picture is worth 10,000 words, I have attached the index.php file.....Thanks

:angry: Have you seen your templaset variable ??????

$templatesused='forumhome_birthdaybit,error_noperm ission,forumhome_pmloggedin,forumhome_welcometext, forumhome_logoutcode,forumhome_newposts,forumhome_ todayposts,forumhome_logincode,forumhome_loggedinu ser,forumhome_loggedinusers,forumhome_lastpostby,f orumhome_moderator,forumhome_forumbit_level1_nopos t,forumhome_forumbit_level1_post,forumhome_forumbi t_level2_nopost,forumhome_forumbit_level2_post,for umhome,forumhome_unregmessage';
// ##################################### shoutbox par p0s3id0n
$templatesused .= ',shoutbox,shoutbox_bit,shoutbox_bit_me,shoutbox_b it_vide,shoutbox_chat,shoutbox_fermee,shoutbox_fra me,shoutbox_popup_smilbox,shoutbox_popup_smilboxbi ts,shoutbox_saisie,shoutbox_vbcodes';
require("./admin/shoutbox_config.php");
// ##################################### shoutbox par p0s3id0n

Replace it by

$templatesused='forumhome_birthdaybit,error_noperm ission,forumhome_pmloggedin,forumhome_welcometext, forumhome_logoutcode,forumhome_newposts,forumhome_ todayposts,forumhome_logincode,forumhome_loggedinu ser,forumhome_loggedinusers,forumhome_lastpostby,f orumhome_moderator,forumhome_forumbit_level1_nopos t,forumhome_forumbit_level1_post,forumhome_forumbi t_level2_nopost,forumhome_forumbit_level2_post,for umhome,forumhome_unregmessage,shoutbox,shoutbox_bi t,shoutbox_bit_me,shoutbox_bit_vide,shoutbox_chat, shoutbox_fermee,shoutbox_frame,shoutbox_popup_smil box,shoutbox_popup_smilboxbits,shoutbox_saisie,sho utbox_vbcodes';

require("./admin/shoutbox_config.php");
// ##################################### shoutbox par p0s3id0n

It would be better, i didn't look if you commit other mistakes ..

Guidster
01-01-2003, 04:43 PM
Originally posted by grog6


:angry: Have you seen your templaset variable ??????



Replace it by



It would be better, i didn't look if you commit other mistakes ..

Thanks, I and I agree that the templateused should be appended, but it was not specified in the instructions and I wanted to follow it to the letter. I got the hack to work. The missing link was the $shoutbox reference in the template!

SVTBlackLight01
01-08-2003, 12:31 AM
I still haven't seen where is says how to fix this error

Warning: chmod failed: Operation not permitted in /home/asvtfordboy/www/forums/admin/shoutbox_install.php on line 62





There seems to have been a slight problem with the MODern ENGINEuity database.
Please try again by pressing the refresh button in your browser.

An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.

We apologise for any inconvenience.


chmod 777 doesn't work. :confused:

Logikos
01-17-2003, 09:02 AM
Very strange, i uploaded all files as instructed, i go to http://mysite/forums/admin/shoutbox_install.php to run the installer and heres the error i get...

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Any ideas on what this could be?

-Nem

Shadow Raven
01-18-2003, 09:12 PM
It installed great and everything but when i am in the admin cp and I try to change the font colors for the CB I get this:

Warning: fopen("shoutbox_config.php", "w") - Permission denied in /home/rpgh/public_html/admin/shoutbox_admin.php on line 21

Warning: fwrite(): supplied argument is not a valid File-Handle resource in /home/rpgh/public_html/admin/shoutbox_admin.php on line 23

Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/rpgh/public_html/admin/shoutbox_admin.php on line 24

None of the other admin options do that for shoutbox just the "config." Any ideas??

DJ FRESCO
01-21-2003, 01:36 PM
I need help.....

Here goes a link to my website: http://www.djfresco.com/forum/index.php

It appears the buttons to the right hand side of the shoutbox are all messed up. Please help...

sultanob
01-23-2003, 10:51 AM
hi p0s3id0n

i upload all chatbox file as u say but i had problme in databace

i think coz i do install for this chat befor i upgrade my fourm from 226 to 227 So how i can slove this problme plzzz ??

when i do creat table for chatbox they given me error ( table chatbox already existed !!

plz help me

Anitah
01-30-2003, 02:22 AM
I've asked this question before but never got an answer.

Here's the problem:

I have to manually install the shoutbox templates for each style. And when I try to do a backup I get a database error. The only solution I've found is to delete the tables in the database and reinstall, otherwise I cannot do a backup. I suspect the database error on backup is due to the many templates for each style. Shouldn't there be one installation for all the styles?

I'm probably not explaining this properly. Does anyone understand what I'm asking, or has anyone had problems with backups due to this hack?

ANT.menmusic
02-03-2003, 04:07 PM
Originally posted by Guidster


This fixed me up! I did everything as specified in the directions, but I did not see anything in the forum! The last line in YOUR
instructions fixed me up! Thanks so much!

Here is the line that I cannot understand why is not in the instructions that came with the hack!

the last step!

go to your templates and modify "forumhome":

find:
<!-- main -->

and but before that this:
$shoutbox
that did the trick... it shows up now, but the buttons overlap, so i'm gonna go back and re-read this thread, i know someone mentioned that problem... maybe has to do with the <div> tags?

btw - whussup everyone - newbie here.
-ant

ANT.menmusic
02-03-2003, 05:23 PM
well... i've made all the changes and fixes... and... well
yes - all is good. perfect... i love it. :banana:

Davey
02-04-2003, 08:51 AM
WOW!
/me installs a million times over.
This hack is wonderful, thanks for releasing!

Dave.

Davey
02-04-2003, 09:48 AM
Rather large exploit.
When a user posts a message, if it contains PHP or HTML then when you go to prune messages, the PHP/HTML is actually parsed and output.

Dave.

PS: Look at the following two screenshots.

Davey
02-04-2003, 09:59 AM
Posting a bit of php code as the message:

Davey
02-04-2003, 10:00 AM
The result of that message in the prune-chatbox section of the admincp:

Davey
02-04-2003, 10:02 AM
This should really be fixed, as I'm sure there are ways to severely screw up a forum with that slight glitch.

Dave.

ANT.menmusic
02-06-2003, 11:46 PM
:o i should check mine.

Bad Bunny
02-07-2003, 04:18 PM
I am getting errors with the chmodding as well. It is not adding anythingto the shoutbox. Everything seems to be working well, except I having nothing added to my mainpage. If I go to shoutbox.php, it works, but it is not added into my forum home.

Could I possible get a sample of the code to add into my template by hand? It seems to me that it would have been far easier to do that in the first place though.

Anyway, thanks alot.

Bad Bunny
02-07-2003, 04:37 PM
Originally posted by havefun
first of all:

i really like this hack!!!
works 4 me fine on 227 :banana:


had some probs so this could help u out!!!

havefun
Oi oi

Everything was going great, and I had it all done, except I didn't add the $shoutbox tag in myhome. I thought it was supposed to do that automatically. heh

Anyway, this is a nice hack. Now to try and customize it.

Bad Bunny
02-07-2003, 05:21 PM
Yeah, I love this thing.
It really is customizable.
I think I am goin the route of whole popup tytpe of thing. This is Supa Cool!

redstaing0
02-08-2003, 02:43 PM
Database error in vBulletin Control Panel 2.2.6:

Invalid SQL: CREATE TABLE `shoutbox` (`id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL default '', `comment` TEXT NOT NULL, `date` VARCHAR(30) NOT NULL default '', PRIMARY KEY (`id`))
mysql error: Table 'shoutbox' already exists

mysql error number: 1050

Date: Saturday 08th of February 2003 05:40:34 PM
Script: http:///vbbb/vbbb/admin/shoutbox_install.php?etape=1
Referer: http://wwwadmin/shoutbox_install.php

Erwin
02-09-2003, 05:48 AM
You are trying to run the install file again. You need to delete the tables first, then install it.

2root4u
02-23-2003, 03:05 AM
Thanks for this code. Originally I wanted a java applet that would interface with the web server (no servlets), but this will suit my needs just fine.

One customization I did was integrating it as a forum. I didn't want it at the top of every page. Instead I wanted it listed under the forums list and protected with the same permission attributes as the other forums in the members only section.

I made a new style set and edited the forumdisplay template that shows only the chat box about 400 pixels in height and along with the standard header and footer. I created a new forum called chat and assigned the new style set to it. Then I put all the shoutbox code in the forumdisplay.php instead of the index.php.

Works great! Thanks!

Erwin
02-23-2003, 03:19 AM
Originally posted by 2root4u
I made a new style set and edited the forumdisplay template that shows only the chat box about 400 pixels in height and along with the standard header and footer. I created a new forum called chat and assigned the new style set to it. Then I put all the shoutbox code in the forumdisplay.php instead of the index.php.

Works great! Thanks!

Good idea. :)

pjgoncalves
02-23-2003, 06:53 AM
I have the same prob :(

All installed wth no errors, i can access to /shoutbox.php and to the admin pannel.. but still dont have the Shoutbox on Main Page :(

I'm running vBB 2.2.9.

Originally posted by eggz
Sauron, I share your pain.

The options are all there in admin, and I did everything I was told to :cool: BUT still no ShoutBox on the main page at all.... I've checked my templates and $shoutbox is there in all its glory :ermm:

@ Sauron - If anyone has given you an answer by PM or email I'd appreciate it if you could forward it to me.

Everyone else... Heelp us PLEASEEEEE!

Bad Bunny
02-23-2003, 01:19 PM
Did you go and add the bit of code it told you to in forumhome template? It will not do that for you. (I had the same issue because it SEEMED to be taking care of all the templates for me. Darn French Guy. j/k)

ANT.menmusic
02-23-2003, 01:47 PM
Originally posted by pjgoncalves
I have the same prob :(

All installed wth no errors, i can access to /shoutbox.php and to the admin pannel.. but still dont have the Shoutbox on Main Page :(

I'm running vBB 2.2.9.



read the thread:

go to your templates and modify "forumhome":

find:
<!-- main -->

and put before that this:
$shoutbox

pjgoncalves
02-23-2003, 10:15 PM
I have like this..

<!-- /text -->
<!-- main -->
$shoutbox
$loggedinusers
$pminfo
$birthdaybits
$forumbits
</table>


Seems that is this right? :dead:



Originally posted by ANT.menmusic


read the thread:

ANT.menmusic
02-24-2003, 01:00 AM
no, put
$shoutbox
before
<!-- main -->

-ant

pjgoncalves
02-24-2003, 04:29 AM
hihihi, WORKED! :banana:

tks in a bunch :knockedout:

Originally posted by ANT.menmusic
no, put
$shoutbox
before
<!-- main -->

-ant

ANT.menmusic
02-24-2003, 10:31 AM
np :tired: ;)

Davey
02-24-2003, 08:51 PM
No response to the exploit I discovered and posted?

Dave.

ANT.menmusic
02-25-2003, 12:00 AM
u know - i forgot about that... havent tried it myself yet... will do when i get home.

Paraone
02-25-2003, 06:28 PM
neone have any luck on the buttons being jacked up in IE6.0? someone posted a link about it a few pages back but the link was bad...

noelmd2001
03-03-2003, 06:58 AM
Originally posted by Paraone
neone have any luck on the buttons being jacked up in IE6.0? someone posted a link about it a few pages back but the link was bad...

hello.. i using ie 6.0 and i also have the same problem of the buttons beig on top of the go button...

anywa help on this problem will be greatly appreciated!

thanks!

Bad Bunny
03-03-2003, 05:27 PM
I use ie 6.0 and do not have that issue. SO I don't know what to tell you.

Paraone
03-04-2003, 03:22 PM
well..it appears that some i.e. 6.0's do it...but also some earlier versions as well...so I wonder what is causing it...

Erwin
03-04-2003, 07:59 PM
To fix this,

REPLACE the contents of the template "shoutbox_saisie" with the contents of the textfile below:

wolfman
03-10-2003, 01:02 AM
Well I have a rather small problem. I have switch to a new style and now the smilies no longer appear in the popup box on the shoutbox.

Ok two problems, my co-admin can not seem to ban anyone. I have logged in with his login and when I go to ban my test user, testing, he is given the login to the admin panel and logging in again does not allow for the ban to take.

I do love this hack as do the users at my site. I really heard loudly from them when I had decided to remove it and when I redid the style of the forum.

p0s3id0n
03-10-2003, 08:02 PM
@ davey : i think you are right about the misuse that could
be done whith the parsing of php in the pruning admin part.
thank you :)
i think you can turn around this exploit by having the shouts
bbcodparse(d) in the admin CP also, that would make, in
the prune part of the php code of the shoutboxadmin.php
script, in the admin folder, replace this:
<td><font size="1"><?=stripslashes($ipped[2])?></font></td>

by that ;
<td><font size="1"><?=stripslashes(bbcodeparse($ipped[2]))?></font></td>

or if you prefer, download the attachment and replace the script ;).

the bad side of the bbcodepars(ing) the shouts on the admin
cp, is that the smileys will appear as broken links in the admin
cp since you are linking them from another directory...
a small ill for a big relief methinks :p (er, frenchie trying to be spiritual in english... pffff).

ps : i'd like also to thank erwin for the support he's done on this
hack (as on many ;)). and to excuse myself for my poor english
wich makes me shy to participate to this forum :p.

Bad Bunny
03-11-2003, 03:53 AM
Thanks for the hack, and thanks again for the fix for the exploit. I think I can live with broken smilies (my users barely ever use smilies anyway!)

And don't be shy! There is nothing wrong with your english. I can understand your typing just fine. Now if I had to try to type in FRENCH....oi oi oi

geniuscrew
03-11-2003, 10:15 AM
When I extract the file, there's nothing in the subfolders :/

p0s3id0n
03-11-2003, 12:10 PM
@ geniuscrew : i just tried from my workplace, so there's no
chance of the file being in my cache, and everything is in place....
each file is in its folder ;)... Maybe you should empty your IE
cache....... i'm just guessing.

glenvw
03-11-2003, 02:29 PM
ERROR - HELP:

Warning: chmod() [function.chmod]: Operation not permitted in /home/yesits/public_html/vbbs/admin/shoutbox_install.php on line 62


Database error in vBulletin Control Panel 2.3.0:

Invalid SQL: CREATE TABLE `shoutbox` (`id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL default '', `comment` TEXT NOT NULL, `date` VARCHAR(30) NOT NULL default '', PRIMARY KEY (`id`))
mysql error: Table 'shoutbox' already exists

mysql error number: 1050

Date: Tuesday 11th of March 2003 11:30:12 AM
Script: http://www.yes-its-free.com/vbbs/vbbs/admin/shoutbox_install.php?etape=1
Referer: http://www.yes-its-free.com/vbbs/admin/shoutbox_install.php

geniuscrew
03-12-2003, 12:05 AM
J'essayerai encore ;)

p0s3id0n
03-12-2003, 04:43 PM
@ glenvw : i think you should take a read on that thread,
that question has already been answered.

@ geniuscrew : arf, et moi qui me casse les neurones a essayer
de m'exprimer an anglais ;).

Host Directory
03-14-2003, 08:46 PM
Does anyone know if this hack is working on vb 2.30 and does anyone have a english speaking forum using the hack so that i may see it in all its glory?

Thanks in advance for any replys

wolfman
03-15-2003, 05:12 AM
Just it out at www.groom-family.com I just seem to have a problem with smilies not showing up in the popup window for some reason though.

superman
03-15-2003, 04:58 PM
I hope this works in 2.3.0 I need one o dese ;)

jancarlo
03-15-2003, 06:01 PM
Come mai scrive così? e non più in altro? grazie per la soluzione! Allego gif.

jancarlo

How never it writes therefore? and not more in other? thanks for the
solution! I enclose GIF.

jancarlo

superman
03-15-2003, 08:30 PM
I took the liberty of trying this hack on 2.3.0

it works fine :)

p0s3id0n
03-16-2003, 05:34 AM
@ jancarlo : you are trying the chatbox in an extremely stressing
environement ;)... mac os and IE 5.x.... pfiouuu, i've never even
thought about trying it on such a platform ;)... Also, it looks like
you are using it in a kind of popup since i donn't see any iframe
and forum around the chatbox ...
To have a serious look at your problem maybe you could give
me the html code of the frameset and the two frames... just
to see what IE5mac could misinterpret.

@superman : yup i just tried it also, and works fine for me too :).

Erwin
03-16-2003, 09:25 AM
03-11-03 at 09:02 AM p0s3id0n said this in Post #211 (https://vborg.vbsupport.ru/showthread.php?postid=363862#post363862)

ps : i'd like also to thank erwin for the support he's done on this hack (as on many ;)). and to excuse myself for my poor english wich makes me shy to participate to this forum :p.

No worries. :)

Thanks for your hack. :) Thanks also for the update. As for renaming the thread, I've done it for you - it's now version 1.2.4

jancarlo
03-16-2003, 01:53 PM
per p0s3id0n.

Risolto tutto, ora funziona, quel problema lo dava perch? sopra alla pagina del for avevo messo delle scritte, una volta tolte tutto ha funzionato alla grande :) grazie sei grande :)!!!

ok su vb230!!!

jancarlo




for p0s3id0n.

Resolved all, hour works, that problem gave it why over to the page of
the for I had put of the written ones, once removed all it has worked
to the large one :) thanks six large :)!!!

ok ok vb230

jancarlo

p0s3id0n
03-16-2003, 01:59 PM
@ jancarlo : thank you too :), 'thank you for what ?', you'll ask...
thank you to make me a little bit less ashamed to write
so bad in english, I think I found my master for that matter ;).
just kidding hey, dont take it seriously :).

lioncool1589
03-17-2003, 01:34 AM
08-26-02 at 06:59 AM Erwin said this in Post #30 (https://vborg.vbsupport.ru/showthread.php?postid=290538#post290538)
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, you can do this:

In shoutbox.php, find:


if ((mysql_num_rows($result)){


Replace with:


if (mysql_num_rows($result) OR $bbuserinfo[usergroupid]==8){


8 being the banned usergroupid.


i cant find if ((mysql_num_rows($result)){ in shoutbox

also how i make shoutbox only registered users(not Users Awaiting Email Confirmationcan) can use shoutbox
i have some stupid ppl keep spam on my shoutbox

p0s3id0n
03-17-2003, 07:25 AM
err... you are right... i must have changed the structure of
my code...

now you'll have to find :
if(!mysql_num_rows($result)){
and replace it by
if(!mysql_num_rows($result) && $bbuserinfo[usergroupid] != 8){
cause now i'm checking the reverse condition and put the
redirection on the else statement ;)...

hope this helps ;)

Almax
03-17-2003, 11:54 AM
how do i fix the time its currently 5 hours behind ??? tried the update from a previous thread and it never worked ?

p0s3id0n
03-17-2003, 02:32 PM
err almax, maybe you could look at those posts :
https://vborg.vbsupport.ru/showthread.php?postid=290787#post290787 and
https://vborg.vbsupport.ru/showthread.php?postid=291093#post291093
if doesnt correct everything , that may be because
your server is not on the same timezoneoffset as you are.

lioncool1589
03-17-2003, 03:25 PM
p0s3id0n i have old version shoutbox how i upgrade to 1.2.4
also there is 2 if(!mysql_num_rows($result)){
i replace them all?

lioncool1589
03-17-2003, 08:43 PM
what is this error how can i fix

Database error in vBulletin :

Link-ID == false, connect failed
mysql error:

mysql error number:

Date: Monday 17th of March 2003 12:11:16 PM
Script: /forum/shoutbox.php?page_shout=chat
Referer: http://clan-ice.racknine.net/forum/shoutbox.php

japhi
03-18-2003, 06:13 AM
I've installed the hack and read all the posts in this thread and I still need some help.

My shoutbox works when I call on it domain/forum/chatbox.php , and it appears in my admin panel just fine. Unfortunately the main page of my forum is blank, but the inside pages work.

Obviously theres something wrong with my index,php file, no? Any ideas to help a newbie?

p0s3id0n
03-18-2003, 06:25 AM
@ japhi : i feel you must have copy pasted the index.php part on the
wrong place...

could you verify that part ?

to put things back working quickly you should put back
your index.php as it was before you hacked it (you know
the backup you've done)...

If you have no backup and you are in a hurry, i can do what i told
you in reply to your pm.

@lioncool1589 : i'll have a look on that when i arrive at my
workplace since there's a strike on the parisian metro and
i'm going to be late at work (9;22am here ;)).

p0s3id0n
03-18-2003, 03:17 PM
@ japhi again ;) : as i told you in awnser to your pm after
having a look at your index.php :
you just forgot to put some newlines after the part you
copy pasted in that file, so the call to the last gettemplate
was on the comment line and it was never called...
unfortunately it is that gettemplate which creates the page .

I'm putting this here in case someone else has a blank index.php
and he wants to check before asking ;).


@ lioncool1589 : it's the first mysql_num_row which must be
changed, the one just above the query with the INSERT
statement.
As for upgrading to 1.2.4, in the new install script there is
an uninstall part a the bottom of the first step ;)... (it may
also work for those who want to try the chatbox and take
TWT's shoutbox away, but it's not guaranteed).
For your mysql error, it doesnt talk to much to me, but i'd say
that's more related with your server than the script... but i
may be wrong on that one :rolleyes:

DOTS
03-19-2003, 12:28 PM
hi, i have a really easy question, i searched in this forum to see if its already asked but i cant find it.
how do i change the text "Shoutbox by p0s3id0n" for something that i like? where and how?
very very good hack man. i really like it
thanks in advance

p0s3id0n
03-19-2003, 02:00 PM
it is impossible, i want my moma to be proud of her little son
when she searches p0s3id0n on google ;)...

naaaa, just edit the template chatbox_fermee and you'll
easily find those words....

DOTS
03-22-2003, 09:16 AM
hey p0s3id0n thanks, kinda hard to type that lol
thanks for your help
one last question...
where do i control the width of the shoutbox? ? need to make it fix whit my other forum tables...
here it is look
http://www.mc-clan.com/forum/index.php?
thanks a lot and Awesome hack man.

X-Fan
03-22-2003, 11:42 AM
Has a zip or txt file version of this been posted, as I can't open the RAR file.

DOTS
03-22-2003, 01:32 PM
X-fan... i searched on this thread.... but theres thousands.....
maybe you could be more especific?
what word should i search in this thread...or maybe if you kind enough and remember what number post was you could tell me
:rambo:

Thanks in advance to p0s3id0n and to X-fan for the help.

wolfman
03-22-2003, 02:41 PM
I am having a slight problem with this hack :) the smilies do not show up in the smilie popup window any ideas of what could be causing this would be welcomed :)

Dennis B
03-23-2003, 12:29 AM
Guys,

I've just installed this on vB 2.3.0 RC3 and it seems everything worked out ok, except... I'm not getting any icons with the smilies/reduce/etc functions on the right-hand side of the chatbox. I've double-checked the path to the images in checkbox_saisie, even replaced it with the absolute url to them, but nothing... The weird thing is that I don't get the "X" box telling me it didn't find the images, the "go" box is just right there at the edge. Pls see image attached. Thanks for any ideas...

p0s3id0n
03-23-2003, 05:38 PM
@ DOTS : look at the chatbox template, you just need to
change the width parameter of the iframe tag.

@ x-fan : i think i'll make another archive of this hack in
zip format since it seems that some people can't extract rar.

@Dennis B : i'd say that since your 'ok' button is larger in
portugese (is that it ?) than in english, the 'option' buttons
went to the next line... To get them on the first line you
should play with the width parameter of the input type="text"
box in the template chatbox_saisie, making it smaller.

Dennis B
03-23-2003, 05:42 PM
p0s3id0n,

Thanks for the reply. Actually that's the way it's been since installation, with the original 'go' button. I've edited the text later... :(

DOTS
03-23-2003, 05:44 PM
you forgot to answer to my question p0s3id0n
i dont like you no more :confused:
hey p0s3id0n thanks, kinda hard to type that lol
thanks for your help
one last question...
where do i control the width of the shoutbox? ? need to make it fix whit my other forum tables...
here it is look
http://www.mc-clan.com/forum/index.php?
thanks a lot and Awesome hack man.

Dennis B
03-23-2003, 05:49 PM
p0s3id0n,

Could it be that this hack is being messed up by my customized welcome panel right above it...? I did place $chatbox outside of the welcome panel code, but... It just looks weird, the box is too big for only 2 messages, it looks like it got "influenced" by something else... I'll try putting $chatbox somewhere else to see what happens...

p0s3id0n
03-23-2003, 05:53 PM
errr... missed :(...

then, anyway, you could have a look to that chatbox_saisie
template because everything in that bar is there...
have you tried to reduce the width of the input box in half ?

and if nothing works, maybe you could try to use the install
script, just delete the chatbox templates and bypass the first
part where it does the querrys then chose the templateset
where you want the templates added and go to the next step...

last, you could pm me the template chatbox_saisie, i'd have a
look for you.

@ wolfman : i'd be you, i'd redo the install from 0. if it still
doesnt work, it must be another hack wich interacts with
your smiliesbox function since i'm using the usual function on
that part.

p0s3id0n
03-23-2003, 05:56 PM
Today at 07:44 PM DOTS said this in Post #245 (https://vborg.vbsupport.ru/showthread.php?postid=372090#post372090)
you forgot to answer to my question p0s3id0n
i dont like you no more :confused:



you're being a bad boy :p i edited my reply before you replyed on
your turn :p
the clock can testify ;).

Dennis B
03-23-2003, 05:57 PM
p0s3id0n,

It was the "size" parameter of the input box. :D

Merci beaucoup! Very nice hack.

p0s3id0n
03-23-2003, 05:59 PM
yup you're right size/width i missed the good name :(...

thanks :D

Dennis B
03-23-2003, 06:02 PM
p0s3id0n,

Where do I resize that box? chatbox_saise has all the inside stuff, but what about the external dimensions, border, etc...?

Thanks.