Version: 2.0, by Zero Tolerance
Developer Last Online: Nov 2023
Version: 3.5.0 RC2
Rating:
Released: 07-27-2005
Last Update: 04-22-2006
Installs: 1831
Uses Plugins Template Edits
Additional Files
No support by the author.
[high]Staff Edit/Update[/high]
I have released an updated version of this hack (version 2.0.1), this version fixes some security issues with this hack. All version prior to this one allow users to insert html in their shouts, this can cause problems with them using html that breaks the site layout or malicious javascript. Download the new zip file (vBshout_fixed.zip) and upload the new vbshout.php file to patch/upgrade. If you want to manual instructions they are in the zip file, in the file bugfixes.txt
Second Staff update
I've uploaded a new version of this hack, dubbed '2.0.2'. This one should fix the html injection issues without breaking special characters. To upgrade, download the new zip file and upload the new vbshout.php file.
Please note that this only fixes the html injection issues. I do not use this hack on my own forum (although I've tested this on a client's board) so I will not be fixing the server load issues. I suggest you do not install this hack if you can't deal with the extra server load, as it's rather intensive.
- Brad
[high]End staff edit[/high]
Well, been a while since I've been to vb.org and released anything, thought i'd break the trend and whip up something quick while I have a little spare time.
A shoutbox as you would assume, a very simple one to start off with, but does include AJAX Technology, which pushes the shoutbox 1 step closer to live, messages from other people will appear with no refreshing, and so will yours that you post
A preview is below, i'd estimate a 50 second installation max
Primary Features:
- AJAX Technology (no refreshing)
- Administration control an display element options
- Fast format editor
Change Log::
- v1.1:
WOL (Who's Online) Correction
- v1.2:
New Posting Featurs (Bold/Italic/Underline/Colour/Font)
Admin Controls
- Change location/position of shoutbox
- Change number of shouts displayed
- Switch vbcode/similes on/off
- v1.3
Firefox javascript issue fixed
New Admin Controls
- Command Activation
- Swtch extra format options on/off
- Change position of editor (above/below messages)
New Commands
- /prune (Clears the shoutbox completely)
- /prune [username] (Clears all shouts posted by specified user)
- v1.4
Usergroup HTML Markup For Usernames
Clear Editor Button
Emoticons Pop Up Menu
Time display configurated to vBulletin settings
Username Links To Profile
New Admin Conrols
New vBShout Position (Directly Above Forums)
Banned Users
Banned Usergroups
Banned Permissions
Smilie Pop-Up Box Height
Smilie Pop-Up Box Width
New Commands
"/me" - Action message (all users are able to use this command)
/pruneshout [shout] - Deletes a single shout
- v1.5
Improved Smilies Display
XHTML 1.0 Transitional Valid (couple of errors fixed)
New Admin Options
Shoutbox Height
Smilies To Show
Shout Messages Order
Banned Permissions (fixed)
- v1.6
Bug Fixes:
- Unable to delete shouts that used /me command fixed
- Shouts being displayed from bottom-upwards only showed first 20 shouts
Automatically parses URL's
- v2.0
New Archive
- Displays shouts and pages
- Stats and top 10 shouters
- AJAX Edit/Delete (staff can edit/delete all shouts)
Enjoy,
- Zero Tolerance
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
I am having the same problem when using " in the shoutbox, is there any fix for this besides using the vbhacks version 2.1 build of the shoutbox (yes i tried replacing the lines in VBShout.PHP referring the the htmlspecialchars trim line)
just trawled through 100 pages of this thread, loads of repeat questions and questions that are answered before but I've now had enough of it!
The answer for the "e& question may be here, perhaps <clicks uninstalled>
Too many peeps asking questions that are already answered or posting "great/awesome hack!
// ---------------------------------------------------
// End Cache Of Any Needed Templates/Phrase's
// ---------------------------------------------------
// ---------------------------------------------------
// End Incorrect Page Navigation Set
// ---------------------------------------------------
// ---------------------------------------------------
// Start Does The Page Have An Action Specified?
// ---------------------------------------------------
// ---------------------------------------------------
// End Does The Page Have An Action Specified?
// ---------------------------------------------------
function buildTime($time = TIMENOW)
{
global $vbulletin;
function execCommand_pruneshout($Data)
{
global $vbulletin;
$Data = trim($Data[0][1]);
if (!empty($Data))
{
$vbulletin->db->query('delete from '.TABLE_PREFIX.'shout where s_me in(0,1) and s_shout = \''.addslashes($Data).'\' or s_shout = \''.addslashes(fetch_word_wrapped_string($Data)).' \'');
}
return true;
}
function execCommand_prune($Data)
{
global $vbulletin;
$Data = trim($Data[0][1]);
if (empty($Data))
{
$vbulletin->db->query('delete from '.TABLE_PREFIX.'shout');
}
else
{
if ($u = $vbulletin->db->query_first('select userid from '.TABLE_PREFIX.'user where username = \''.addslashes(htmlspecialchars_uni($Data)).'\''))
{
$vbulletin->db->query('delete from '.TABLE_PREFIX.'shout where s_by = \''.intval($u['userid']).'\'');
}
}
return true;
}
// ---------------------------------------------------
// Grab Latest X Shouts
// ---------------------------------------------------
if ($_GET['do'] == 'latest')
{
$Output = array();
$Shouts = $DB->query('
select s.*, u.username, u.usergroupid from '.TABLE_PREFIX.'shout s
left join '.TABLE_PREFIX.'user u on (u.userid = s.s_by)
order by s.sid desc limit ' . $vbulletin->options['shout_display']);
$TS = $DB->query_first("select count(*) as `ts` from " . TABLE_PREFIX . "shout");
$TS_D = $TS['ts'];
$TS = vb_number_format($TS['ts']);
$T4 = $DB->query_first("select count(*) as `T4` from " . TABLE_PREFIX . "shout where s_time > " . (TIMENOW - (60 * 60 * 24)));
$T4 = vb_number_format($T4['T4']);
$TY = $DB->query_first("select count(*) as `TY` from " . TABLE_PREFIX . "shout where s_by = '{$vbulletin->userinfo['userid']}'");
$TY = vb_number_format($TY['TY']);
$TT = $DB->query('
select s.*, count(s.sid) as `TS`, u.username, u.usergroupid from '.TABLE_PREFIX.'shout s
left join '.TABLE_PREFIX.'user u on (u.userid = s.s_by)
group by s.s_by having TS > 0
order by TS desc limit 10');
$Output = array();
$Shouts = $DB->query('
select s.*, u.username, u.usergroupid from '.TABLE_PREFIX.'shout s
left join '.TABLE_PREFIX.'user u on (u.userid = s.s_by)
order by s.sid desc limit ' . ($limitlower - 1) . ',' . $perpage);
I am getting close to maxxing out my bandwidth for this month. How do I temporarily turn off the Shoutbox without losing the archives? I don't want to uninstall and reinstall.
After 1 Jan, I can turn it back on. I can't find an on/off switch in the VB Options control panel. I disabled the smilies at least.