PDA

View Full Version : Chat Modifications - Dion Dev Shoutbox v2.0 (uses AJAX)


DionDev
04-01-2009, 10:00 PM
Preview:

http://www.diondev.com/vb

Screenshots:

(see attached)

Features:

- Uses AJAX so new shouts show up without the page having to be refreshed
- Set the title and other language features to anything you want
- Will ignore empty shouts, and ones that are being repeated one after the other
- Enter how many shouts you want it to show
- Enter how many days you want it to store shouts in the database (even forever)
- Enable or disable guest shouting
- Members names are linked to their profile pages
- Admins can delete shouts directly through the shoutbox itself
- A fully customizable shout archive with pagination
- Works with any custom theme automatically
- Parses BBcode, smilies, and images if you allow it to
- Installation takes about 5 minutes and is all done through the admin CP
- You can even modify the amount of time it waits in between checking for new shouts
- Plus lots more!

Installation instructions:

1.a) Extract the "ddshoutbox2.zip" file onto your computer using a program like winrar, or winzip

2. Log in to your admin CP, everything will be done within here

3.a) Go to Plugins & Products -> Manage Products
3.b) Click on the "[Add/Import Product]" link
3.c) Browse for the "product-ddsb2.xml" file
3.d) Click on the "Import" button

4. Upload all the ".js" and ".php" files into your main vbulletin directory (the same directory as index.php)

5 Decide where you want the shoutbox on your site (I recommend the top of your forum index)

If you want the shoutbox at the top of your forum index, go to the "FORUMHOME" template, find:
"<!-- / guest welcome message -->
<br />
</if>"
Copy and paste the contents of "template.txt" underneath.

If you want it at the top of every page, go to the "navbar" template, find:
"<!-- / nav buttons bar -->
<br />"
Copy and paste the contents of "template.txt" underneath.

6.a) Go to vBulletin Options -> vBulletin Options
6.b) Select "Dion Dev Shoutbox v2.0 Options"
6.c) Click on the "Edit Settings" button
6.d) Edit all of the values as you desire
6.e) Click on the "Save" button

Additional options:

1. If you want to change the time in which it checks for new shouts, open up "shoutshow.js" with notepad, find "timeint = 2000" at the top of the file, and change "2000" to the time (in milliseconds) you want it to wait before checking for new shouts. 1 second equals 1000 milliseconds. If you want shouts to show up faster, set it to a lower number. If you are worried about server load, set it higher. Don't forget to upload it to your server after you change it so the new timer takes effect.

2. You can edit the shoutbox width and height by changing the iframe width="100%" and height="200" attributes from the "template.txt" file.

You're done! Please donate anything you can spare to donations@diondev.com before removing my copyright notice.

gwerzal
04-02-2009, 12:24 PM
Looks good

Will test it out and have a play

Thank you

lostguy
04-02-2009, 12:51 PM
No color text option and Smilies option ?

DionDev
04-02-2009, 12:53 PM
The BBcode is mainly used to turn URL's into links. However, it will convert other BBCode (if you enable shoutbox bbcode in the admin CP). Also, smilies are automatically converted into images so if someone type :) it gets turned into the image.

I made it this way so that the shoutbox isn't cluttered. I wanted to keep it simple and clean.

macc
04-02-2009, 01:04 PM
hello!

can we get username colors on shoutbox?

regards

macc

DionDev
04-02-2009, 01:06 PM
hello!

can we change time on shoutbox to 24 h and how?

regards

macc

Yes

In the admin CP, under "Dion Dev v2.0 Shoutbox Options" you can change the time format to whatever you want. The time format uses the php date() function: http://ca3.php.net/date

It is really easy to do.

macc
04-02-2009, 01:08 PM
yes ...sorry ...because i just look on demo site not pictures here ... thanks


reg

macc

ahmed-samara
04-02-2009, 04:13 PM
Ummm good .. but can't read arabic ?

and what is diffrant from the livechat ?

|Jordan|
04-02-2009, 04:47 PM
Does the shoutbox use vbulletin's censor system?

Also, can you add the ability to ban specific users from using the shoutbox?

DionDev
04-02-2009, 07:31 PM
Does the shoutbox use vbulletin's censor system?

Also, can you add the ability to ban specific users from using the shoutbox?

Yes. The reason words are not censored in my demo is because I do not have any censored words set up yet.

DionDev
04-02-2009, 07:32 PM
Ummm good .. but can't read arabic ?

and what is diffrant from the livechat ?

What do you mean, can't read arabic?

Also, what is livechat?

goxy63
04-02-2009, 08:21 PM
Nominated, rated....thinking about install, but..

How about main page under VBA cmps ?!

Just downloaded and would like this mod on my main page under one of my modules

Any suggestions ?!

Super Jinni
04-02-2009, 08:42 PM
seems good
gonna give it a try and see

thanks mate

TheLastSuperman
04-02-2009, 08:56 PM
Nominated, rated....thinking about install, but..

How about main page under VBA cmps ?!

Just downloaded and would like this mod on my main page under one of my modules

Any suggestions ?!

Hey goxy :D

Did you check his Readme/Install file??

It was in there ;)

5. Decide where you want the shoutbox on your site (I recommend the top of your forum index)

If you want the shoutbox at the top of your forum index, go to the "FORUMHOME" template, find:
"<!-- / guest welcome message -->
<br />
</if>"
Copy and paste the contents of "template.txt" underneath.

If you want it at the top of every page, go to the "navbar" template, find:
"<!-- / nav buttons bar -->

<br />"
Copy and paste the contents of "template.txt" underneath.

So basically open up template.txt included in the download and copy the entire code...

<!-- Dion Dev Shoutbox v2.0 -->
<iframe src="shoutbox.php" width="100%" height="200" scrolling="auto" frameborder="0">
Browser does not support iframes
</iframe>
<br /><br />
<!-- end Dion Dev Shoutbox v2.0 -->

Now paste it in any template i.e.


Forum Home for main forum
Forum Display for Subforums etc
Navbar if you find a good spot
Header
Footer
etc
etc


Also note you can change some of the variables i.e. height width etc as seen in the code!

--> width="100%" OR just 900 for px

--> height="200" Same as above but you can increase to 300px by changing to 300 etc etc.

--> frameborder="0" To add a border etc so put in 1 or 2 etc etc.

Enjoy and thanks DionDev for the new Shoutbox for vB owners :D

S-MAN

Super Jinni
04-02-2009, 08:58 PM
it does not support Arabic language, it gives unknown output characters when input in Arabic.
also, it does not Arabic language direction which is rtl.
see the attachment.

if you can find a workaround it will be really great.
thanks again

Markos
04-02-2009, 09:30 PM
thanks going to test it out

goxy63
04-02-2009, 10:25 PM
@DionDev
thanks for this nice hack

@TheLastSuperman
Hay mate nice to hear from you :D
Thanks a lot for details

Would like to pay few rounds of beer, and I hope that once... :D

Cheers

TheLastSuperman
04-02-2009, 10:37 PM
@DionDev
thanks for this nice hack

@TheLastSuperman
Hay mate nice to hear from you :D
Thanks a lot for details

Would like to pay few rounds of beer, and I hope that once... :D

Cheers

No prob Goxy ;)

Yeah I was out for a while, a friend was in the hospital then I had some RL issues but spil't milk as they say or shiz happens :cool: but back to the mod, it is nice and useful... some might like another more or less however not all forums need the same shoutbox ;) so hats off to DionDev eh?

S-MAN

zero5854
04-02-2009, 11:54 PM
thanks but no thanks too generic looks like that horrible looking one phpbb cam out with a while back

TheLastSuperman
04-03-2009, 12:05 AM
thanks but no thanks too generic looks like that horrible looking one phpbb cam out with a while back

Well use some of your forums css if using a custom style OR google css, find a good site w/ some tutorials and do something about it ;) remember what I said, to some this might be all they need.

goxy63
04-03-2009, 12:51 AM
Everything is just fine...but I got one small problem

On my main page, I placed shoutbox under one of my modules...problem is that it is not collapsable module and colapse bar is under shoutbox not above as it should

TheLastSuperman
04-03-2009, 01:17 AM
Everything is just fine...but I got one small problem

On my main page, I placed shoutbox under one of my modules...problem is that it is not collapsable module and colapse bar is under shoutbox not above as it should

PM me a copy of it Goxy, I'll glance @ it tomorrow... night all!

Chadi
04-03-2009, 02:20 AM
Nice mod.

Just a quick suggestion:

It would be nice to have the files uploaded to /forum/shoutbox for example instead of adding the 10 files in the root folder, causing a bit of a clutter.

Also, I noticed you're using frames. Probably a bad idea.

Just an idea.

goxy63
04-03-2009, 05:08 AM
@TheLastSuperman
Thanks, will senad you asap...will post it here also

Copy of module (CMPS)
<?xml version="1.0" encoding="ISO-8859-1" ?>
- <moduleinfo>
- <module>
<title>Shoutbox</title>
<identifier />
<filename>shoutbox</filename>
<inctype>template</inctype>
<templatelist />
<parent />
<colspan>0</colspan>
<formcode />
<useshell>1</useshell>
<link />
<options>0</options>
</module>
- <templates>
- <adv_portal_shoutbox>
- <![CDATA[
<iframe src="testvb/shoutbox.php" width="500" height="200" scrolling="auto" frameborder="0">
Browser does not support iframes
</iframe>
<br /><br />

]]>
</adv_portal_shoutbox>
</templates>
</moduleinfo>97246

macc
04-03-2009, 06:35 AM
nice mod nd shoutbox ...but can we get more vbulletin look? mean borders and colapse button ?


regards

macc

CFodder
04-03-2009, 08:58 AM
Everything is just fine...but I got one small problem

On my main page, I placed shoutbox under one of my modules...problem is that it is not collapsable module and colapse bar is under shoutbox not above as it should

Have to put a <tr> and <td> command before Dion's code and then a </td> then </tr> after it, that should do it :). Your code/template should look like this:



<tr>
<td>

<!-- Dion Dev Shoutbox v2.0 -->
<iframe src="shoutbox.php" width="100%" height="200" scrolling="auto" frameborder="0">
Browser does not support iframes
</iframe>
<br /><br />
<!-- end Dion Dev Shoutbox v2.0 -->

</td>
</tr>

Dion, I've installed it all ok and put it under my forumhome however no shouts appear when typed in :confused: ... however if I go to the archive it show's the shouts there :). Get no error messages, any ideas on what could be causing this, am using 3.8.1 PL1

DionDev
04-03-2009, 01:04 PM
Nominated, rated....thinking about install, but..

How about main page under VBA cmps ?!

Just downloaded and would like this mod on my main page under one of my modules

Any suggestions ?!

Place the template.txt code in any template you want.

Hey goxy :D

Did you check his Readme/Install file??

It was in there ;)



So basically open up template.txt included in the download and copy the entire code...

<!-- Dion Dev Shoutbox v2.0 -->
<iframe src="shoutbox.php" width="100%" height="200" scrolling="auto" frameborder="0">
Browser does not support iframes
</iframe>
<br /><br />
<!-- end Dion Dev Shoutbox v2.0 -->

Now paste it in any template i.e.


Forum Home for main forum
Forum Display for Subforums etc
Navbar if you find a good spot
Header
Footer
etc
etc


Also note you can change some of the variables i.e. height width etc as seen in the code!

--> width="100%" OR just 900 for px

--> height="200" Same as above but you can increase to 300px by changing to 300 etc etc.

--> frameborder="0" To add a border etc so put in 1 or 2 etc etc.

Enjoy and thanks DionDev for the new Shoutbox for vB owners :D

S-MAN

Great tutorial!

Nice mod.

Just a quick suggestion:

It would be nice to have the files uploaded to /forum/shoutbox for example instead of adding the 10 files in the root folder, causing a bit of a clutter.

Also, I noticed you're using frames. Probably a bad idea.

Just an idea.

All of the shoutbox files start with "shout*" so its easy to distinguish.

Why are frames a bad idea? The only thing I can think of is in regards to SEO, and the "iframes are bad for SEO" school of thought is 100% incorrect. Iframes get indexed fine, they are simply considered their own pages.

nice mod nd shoutbox ...but can we get more vbulletin look? mean borders and colapse button ?


regards

macc

I will add a collapse button and the forum table header style to the next version.

Have to put a <tr> and <td> command before Dion's code and then a </td> then </tr> after it, that should do it :). Your code/template should look like this:



Dion, I've installed it all ok and put it under my forumhome however no shouts appear when typed in :confused: ... however if I go to the archive it show's the shouts there :). Get no error messages, any ideas on what could be causing this, am using 3.8.1 PL1

Show me the link please. You may have done something wrong.

Chadi
04-03-2009, 01:20 PM
Why are frames a bad idea? The only thing I can think of is in regards to SEO, and the "iframes are bad for SEO" school of thought is 100% incorrect. Iframes get indexed fine, they are simply considered their own pages.


A lot of people have frames disabled in their browsers. That's why.

goxy63
04-03-2009, 01:52 PM
@CFodder
:o
Works like charm, thanks :up:

Thank you all guys

Regards
Goran

Hall of Famer
04-03-2009, 02:11 PM
How can I place this shoutbox at the bottom of each page?

columbonet
04-03-2009, 02:24 PM
Is there an edit I can do to allow mods to delete chatbox posts? We only have 2 admins and don't have time to monitor the chatbox.

DionDev
04-03-2009, 03:45 PM
A lot of people have frames disabled in their browsers. That's why.

Well, frames are disabled on most mobile phones and ancient web browsers. Considering neither of these support AJAX, it doesn't really matter.

How can I place this shoutbox at the bottom of each page?

Place the template.txt code in your "footer" template just above "$spacer_close"

Is there an edit I can do to allow mods to delete chatbox posts? We only have 2 admins and don't have time to monitor the chatbox.

Currently only admins can delete them. I will add a mod option in the next version.

Markos
04-03-2009, 04:01 PM
hmm weird but one of my mods cant shout its saying she must be logged in to shout but she is logged in :S

columbonet
04-03-2009, 04:04 PM
Well, frames are disabled on most mobile phones and ancient web browsers. Considering neither of these support AJAX, it doesn't really matter.



Place the template.txt code in your "footer" template just above "$spacer_close"



Currently only admins can delete them. I will add a mod option in the next version.

Dang. I was hoping it was quick code insert. I'll just shelve this until the next version comes out.

DionDev
04-03-2009, 06:06 PM
hmm weird but one of my mods cant shout its saying she must be logged in to shout but she is logged in :S

Is her user ID = 0?

Markos
04-03-2009, 06:28 PM
nope its 7 and its only her the other mods can see it and use it

CFodder
04-03-2009, 07:09 PM
@CFodder
:o
Works like charm, thanks :up: ...

Oooooh, usually it's the other way 'round :p :).

Have to put those tr and td's in any template/code you create for modules and you won't have that title bar or layout problems :) ... learnt that one the hard way myself ;).

Dion, if it's ok I'll pm you the link as will have to create a temp account for you to log in with.

Reycer
04-05-2009, 03:54 PM
works great! One question though, is there any way possible to add a smilie box directly to the side of the shout box?

DionDev
04-05-2009, 04:14 PM
nope its 7 and its only her the other mods can see it and use it

Makes no sense. Have her try and log out and back in.

Oooooh, usually it's the other way 'round :p :).

Have to put those tr and td's in any template/code you create for modules and you won't have that title bar or layout problems :) ... learnt that one the hard way myself ;).

Dion, if it's ok I'll pm you the link as will have to create a temp account for you to log in with.

Cfodder I checked your site and it seems to be quite slow. This lag could cause a large delay in the AJAX response.

works great! One question though, is there any way possible to add a smilie box directly to the side of the shout box?

Next version there will a small smilies dropdown and a few bbcode buttons.

Reycer
04-05-2009, 04:40 PM
Makes no sense. Have her try and log out and back in.



Cfodder I checked your site and it seems to be quite slow. This lag could cause a large delay in the AJAX response.



Next version there will a small smilies dropdown and a few bbcode buttons.

cool. Can't wait for that one.

CFodder
04-05-2009, 07:13 PM
... Cfodder I checked your site and it seems to be quite slow. This lag could cause a large delay in the AJAX response ...

Slow it could possibly be, but the shouts appear in the archive immediately and I don't think it would be that slow that they still don't appear after 2 days in the main shoutbox area.

Reycer
04-05-2009, 09:34 PM
Also, is there any way that we would be able to see the IP's of the Guest Comments?

DionDev
04-07-2009, 08:50 PM
Also, is there any way that we would be able to see the IP's of the Guest Comments?

i'll add it to the next version list.

Reycer
04-10-2009, 04:21 PM
um. We discovered today that the shoutbox dosen't recognize characters such as "&" or "$" any reason why?

DevJw
04-12-2009, 01:42 PM
Is there an edit I can do to allow mods to delete chatbox posts? We only have 2 admins and don't have time to monitor the chatbox.
I editted shoutshow.php so supermoderators can now also delete shouts.
Find:
if ($vbulletin->userinfo['permissions']['adminpermissions'])
New:
if ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator'])

um. We discovered today that the shoutbox dosen't recognize characters such as "&" or "$" any reason why?
I've edited shoutinsert.js and now it works.
At the end of the file:
var url = 'shoutinsert.php';
var params = 'body=' + document.getElementById('body').value;

I changed it to:
var url = 'shoutinsert.php';

var value = document.getElementById('body').value;
if (encodeURIComponent) {
url = encodeURIComponent(value);
} else {
url = escape(value);
}

var params = 'body=' + url;


Note to the creator:
I had to change line 44 in shoutshow.php because it was not showing the time.
Old:
$shout_time = vbdate($vbulletin->options['ddsb_time'], $row['shout_time']);
New:
$shout_time = date($vbulletin->options['ddsb_time'], $row['shout_time']);

DionDev
04-16-2009, 11:46 AM
I editted shoutshow.php so supermoderators can now also delete shouts.
Find:
if ($vbulletin->userinfo['permissions']['adminpermissions'])
New:
if ($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['ismoderator'])


I've edited shoutinsert.js and now it works.
At the end of the file:
var url = 'shoutinsert.php';
var params = 'body=' + document.getElementById('body').value;

I changed it to:
var url = 'shoutinsert.php';

var value = document.getElementById('body').value;
if (encodeURIComponent) {
url = encodeURIComponent(value);
} else {
url = escape(value);
}

var params = 'body=' + url;


Note to the creator:
I had to change line 44 in shoutshow.php because it was not showing the time.
Old:
$shout_time = vbdate($vbulletin->options['ddsb_time'], $row['shout_time']);
New:
$shout_time = date($vbulletin->options['ddsb_time'], $row['shout_time']);

Thos are some great fixes! By the way, you should use the vbdate function. It is a vbulletin function which is like the php date() function, but I believe it also shows the date in the time zone the user specified in their profile.

adiboy.net
04-20-2009, 03:05 PM
Can the time and date be on the extremely left instead of on the right?

Chadi
04-21-2009, 03:19 AM
Can someone please explain how to get this working if I uploaded all the files neatly inside a directory called "shoutbox"? I tried already, modified the files and couldn't get this working

I changed all instances of:

require_once('global.php');

to

require_once('/global.php');

I changed the template code to add /shoutbox/ before the shoutbox.php code, still didn't work.

DionDev
04-21-2009, 04:44 AM
Can someone please explain how to get this working if I uploaded all the files neatly inside a directory called "shoutbox"? I tried already, modified the files and couldn't get this working

I changed all instances of:

require_once('global.php');

to

require_once('/global.php');

I changed the template code to add /shoutbox/ before the shoutbox.php code, still didn't work.

It won't work that way because the shoutbox uses paths relative to the main vbulletin directory.

Maybe the next version I release will be in its own folder.

Milez
04-23-2009, 08:08 PM
Maybe the next version I release will be in its own folder.

Sweet as soon as this happens I will try this on my big board. Awesome plugin (have tested it) with a very active and dedicated designer - so refreshing! Great work Dion.

Uhm, any time frame on the changes? I can beta test ;)

DionDev
04-24-2009, 07:09 AM
Expect version 2.1 within the next couple of weeks.

adiboy.net
04-24-2009, 07:14 AM
Some noob questions and feedback. :D

Question 1
Is this shoutbox server intensive?

Question 2
Will there be pruning after, say, 24 hours or 48 hours?

Question 3
Can admin have the choice to position the the date/time be on the extremely left or right?

Question 4
Will this work with forums with vBSEO installed?

DionDev
04-24-2009, 08:44 PM
Some noob questions and feedback. :D

Question 1
Is this shoutbox server intensive?

Question 2
Will there be pruning after, say, 24 hours or 48 hours?

Question 3
Can admin have the choice to position the the date/time be on the extremely left or right?

Question 4
Will this work with forums with vBSEO installed?

1. no.

2. you set the pruning timer to however many days you want.

3. that can be done by editing one of the php files

4. yes

bc641990
04-26-2009, 10:56 PM
Question 1
Can this be styles to something like Inferno Shoutbox?

i only have one question :-D

download, i hate iframes, but this is the fast shoutbox around

mikey1991
04-27-2009, 10:49 PM
thanks for this

Tagged, Nominated and Installed

mysql101
04-28-2009, 02:19 AM
nice simple shoutbox.

my only problem with it is that the ajax redraws the entire content of the text shown to the users every 2 seconds. You can increase the timer, but it's worthless as it makes the shoutbox feel laggy.

The proper way to do it is to append only new content to the output div OR have a hash of the last output to the user, and redraw only if the hash changes (new content to display).

mysql101
04-28-2009, 03:23 AM
i made a quick hack to allow this shoutbox to work without redrawing constantly and add a userlist.

new table:


CREATE TABLE `shoutbox_hash` (
`userid` int(11) NOT NULL default '0',
`hash` varchar(128) NOT NULL default '0',
`ts` int(10) NOT NULL default '0',
UNIQUE KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;




at the top of showshout.php, above the <table> tag, I have added:

ob_start ();


at the bottom, just after the </table>, I added:

$o = ob_get_contents ();
ob_clean ();

$hash = md5 ($o);

$user_id = $vbulletin->userinfo['userid'];

$q = "select hash from shoutbox_hash where userid = ".$user_id;
$res = $db->query ($q);
$row = mysql_fetch_assoc ($res);

if ($_REQUEST['hash'] != '1' || $row['hash'] != $hash) {
$t = time () - 60;
$q = "select u.username, u.userid from user u, shoutbox_hash h where h.userid = u.userid and h.ts > $t order by u.username";
$res = $db->query ($q);
$i = 0;
$users = array ();
while ($row = mysql_fetch_assoc ($res)) {
$i++;
$users[] = "<a target='_user' href='/member.php?u=".$row['userid']."'>".$row['username']."</a>";
}
if ($i) {
echo "<b>Users in chat</b>: ".implode (", ", $users)."<br>";
}

echo $o;
}
$q = "replace into shoutbox_hash (userid, hash, ts) values (".$user_id.", '".$hash."', ".time ().")";
$db->query ($q);


Then in shoutshow.js, I replaced the setInterval with:

setInterval ("showshout('1');", 4000);



Finally, I replaced the showshout() function with:


function showshout(e)
{
htmlrequest = ajaxfunction();

if (htmlrequest == null)
{
alert ('Browser does not support HTTP requests');
return;
}

htmlrequest.open('GET', 'shoutshow.php?hash=' + e, true);
htmlrequest.setRequestHeader('If-Modified-Since', 'Thu, 01 Jan 1970 00:00:00 GMT');
htmlrequest.onreadystatechange = statechanged;
htmlrequest.send(null);
}



This change is a temp fix for me - it won't reduce server load, but it will reduce bandwidth consumption by a large margin.

DionDev
04-28-2009, 11:52 AM
mysql101, that is an excellent hack, and I will be testing it out myself and implementing it into the next version!

keharris53
04-28-2009, 07:05 PM
Any way to add a shoutbox to a specific sub forum, i.e. "forumdisplay.php?f=57"? Thanks.

mysql101
04-29-2009, 12:53 AM
I was thinking that once you generate the output for the display, it should be stored somewhere, and that is the only output used. Then whenever someone makes a post (to shoutinsert.php), you wipe it out. So anytime shoutshow.php is called and there is no stored content, you regenerate it.

That will reduce the server load portion.

TheInsaneManiac
04-30-2009, 06:54 PM
can you put the files in their own folder. My ftp is already messy enough.

Milez
05-04-2009, 07:49 AM
Dion any chance you will be updating this with mysql's changes and putting it into its own folder soon? Just checking on the status, it's a great mod!

kyrenator
05-04-2009, 09:19 AM
works perfect :)

thanks

matt691
05-05-2009, 08:41 AM
thanks installed it yesterday but forgot to mark it.

very good mod thanks

but only one issue so far is that the pound symbol (£) comes up as an A with two dots above it or something similar not sure about other special characters but as this can be a popular one is there a way to fix it?

DionDev
05-06-2009, 10:25 PM
Dion any chance you will be updating this with mysql's changes and putting it into its own folder soon? Just checking on the status, it's a great mod!

I will be in the near future, I have just been really busy with other things.

Version 2.1 will include some of the hacks posted in this thread, will be in its own folder, and will have a collapsable box style that flows better with the forums.

stud
05-06-2009, 10:39 PM
any ETA on that new version?

DionDev
05-08-2009, 06:34 AM
any ETA on that new version?

1-2 weeks.

m0rgulvale
05-08-2009, 09:49 PM
i got some weird errors today... any ideas what is wrong? should i do DB repair function or is this not a big deal?

First Error:

Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Too many connections
/home/laserpoi/public_html/laser_pointer_forums_3/forum/includes/class_core.php on line 311

MySQL Error :
Error Number :
Request Date : Friday, May 8th 2009 @ 05:22:21 PM
Error Date : Friday, May 8th 2009 @ 05:22:21 PM
Script : http://laserpointerforums.com/laser_pointer_forums_3/forum/shoutshow.php
Referrer : http://laserpointerforums.com/laser_pointer_forums_3/forum/shoutdiv.php
IP Address : x.x.x.x
Username :
Classname : vB_Database
MySQL Version :



After that i got more errors like this:


Database error in vBulletin 3.8.2:

Invalid SQL:
SELECT COUNT(DISTINCT(userid)) AS count FROM session WHERE session.userid>0 AND session.lastactivity>1241763334;

MySQL Error : Out of memory (Needed 1048548 bytes)
Error Number : 5
Request Date : Friday, May 8th 2009 @ 05:22:14 PM
Error Date : Friday, May 8th 2009 @ 05:22:23 PM
Script : http://laserpointerforums.com/laser_pointer_forums_3/forum/shoutshow.php
Referrer : http://laserpointerforums.com/laser_pointer_forums_3/forum/shoutdiv.php
IP Address : x.x.x.x
Username : asdasdasd
Classname : vB_Database
MySQL Version :

m0rgulvale
05-08-2009, 09:52 PM
here are mysql and php settings:

PHP Max Post Size 80.00 MB
PHP Maximum Upload Size 40.00 MB
PHP Memory Limit 256.00 MB

MySQL Packet Size 36.00 MB

should i change any of this stuff around?

computergeek
05-09-2009, 03:14 AM
I was using the old shoutbox 2 from like 2006 or something. it used a flat file to pull data to the box for the 50 posts. It had almost 0 server load.

https://vborg.vbsupport.ru/showthread.php?t=93097

maybe this will help you for the next version.

However i can't confirm it but i think that version is weak on security. Have had to injections to my server from vbulliten even after the latest upgrade adn the only thing i can see that is still not updated was this old hack.

So be careful with any code you use from that link if you do.

Anxiously await update! the secial characters fix didn't work for me.

i even tried all this


var value = document.getElementById('body').value;
var amp = "%26";
txt = value.replace(/&/gi, amp)
var params = 'body=' + txt;


i checked the DB too and it never makes it. Every character works except for the ampersand... no matter what i try, even escape().

irritating!

DionDev
05-09-2009, 05:03 AM
This version is no longer supported, as I have released a new version:

https://vborg.vbsupport.ru/showthread.php?t=213225

Geez
05-29-2009, 12:49 AM
I installed this (running 3.8.2) and an error message showed up on the forum index when i completed the installation by pasting the text into the FORUMHOME template:


.....................................result resource in [path]/shoutshow.php on line 12

(could not copy the entire error message)



i uploaded all the extra files and everything.

adrianobr
05-30-2009, 08:39 PM
Very good ...

Seems a very efficient system, I USAL on my forum.
Would have a problem to make some adjustments to work with vbadvanced?

Thanks
adrianobr

socalmike
07-29-2009, 05:54 PM
Oops, maybe I should read the other posts as this has come up before. Sorry :)
_____________________________________

Help, I just upgraded to VB 3.8.3 and then added the latest version of the Shoutbox but . . .

Getting an error emailed to me:

Database error in vBulletin :

mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Can't
connect to MySQL server on '205.178.146.72' (4)
/data/13/1/147/147/1310636/user/1403651/htdocs/forum/includes/class_core.php on line
311

MySQL Error :
Error Number :
Request Date : Wednesday, July 29th 2009 @ 02:40:03 PM
Error Date : Wednesday, July 29th 2009 @ 02:41:03 PM
Script : http://www.chasingthechuckwagon.com/forum/shoutshow.php
Referrer : http://www.chasingthechuckwagon.com/forum/shoutdiv.php
IP Address : 79.31.23.58
Username :
Classname : vB_Database
MySQL Version :

It appears the shoutbox is working great but I believe I am getting this error sent to me with each Shout! posting.

Any ideas?

Thanks,

Mike

ricardoNJ
08-16-2009, 06:03 AM
Everything is installed well but I can see the shoutbox in my forum! :(

ricardoNJ
08-16-2009, 03:43 PM
Hi, is there any way to see any characters in spanish language like: "canción, España", ecc???

gr8whtd0pe
08-20-2009, 01:22 AM
To make it collapseable I just wrapped it in this:

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<thead>
<tr>
<td class="tcat" colspan="2">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('forumhome_shoutout')"><img id="collapseimg_forumhome_shoutout" src="$stylevar[imgdir_button]/collapse_thead$vbcollapse[collapseimg_forumhome_activeusers].gif" alt="" border="0" /></a>
Shout Out!
</td>
</tr>
</thead>
<tbody>
<tr>
<td class="alt2" colspan="2" id="collapseobj_forumhome_shoutout">

Then after his code:

</td></tr></tbody></table>
<br />

Demo:
http://www.wvmotorsports.com

ricardoNJ
08-25-2009, 11:51 PM
Uninstalled 'cause my hosting said! :(

goxy63
10-16-2009, 12:09 PM
Uninstalled 'cause my hosting said! :(
Get better host plan, Iam on hostgator shared one and its no problem or just sometimes...

This is one of mods that I "must" have on vb4, as now on vb3.8 bunch of users are using this one
Iam using previous version where even guests can comment (as this is bringing even more interest and registrations)

Hope that developer will work on it, ready for small donation regarding to brandfree

Cheers

Drocr
11-04-2009, 04:21 AM
This is the best chatbox, I just wish there were no bugs, please update it!

FTG STRYKER FG
11-09-2009, 09:35 AM
Is there anyway to only allow "confirmed registered users" see the shoutbox? I have users who are in the "awaiting email confirmation" group who are able to see and use the shoutbox. Its a problem with 1 certain user who we banned a few weeks ago but he keeps using bogus email accounts and a proxy server to change his ip address.

He is able to see/use the shoutbox but cannot use any of the forums that I have blocked from that group. If there is a way to implement this would help me out a lot. Thanks,

Kingdombuilder
11-11-2009, 08:05 AM
this seems as if it will make a nice addition to my site. thanks for sharing. I'll know in the morning if my members do like it or not...

ZSpider
11-14-2009, 10:11 PM
is there anyway to hide it all from guests?

columbonet
01-30-2010, 09:33 PM
Is there a way to change the color of the chat box to match the skin color of the site?

Thanks

iZefi10
08-27-2013, 09:33 PM
How do I prune the shoutbox?