Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[AJAX] vBShout v2.0 Details »»
[AJAX] vBShout v2.0
Version: 2.0, by Zero Tolerance Zero Tolerance is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

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.

Comments
  #922  
Old 12-05-2005, 07:22 PM
apokphp apokphp is offline
 
Join Date: Nov 2002
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bi11i
Seriously? Has anyone else noticed this? My server seems to have magically slowed over the last couple of months, but I can't imagine it's because of the Shoutbox - anyone else have an experience to note?
Test it out. Disable your shoutbox for 24 hours and see if you and anyone else can notice a difference. On my site (of approx 1,000 users), there was a significant difference. It started "lagging" when I installed it, but didn't think much of it. It increased as the shoutbox grew to be more popular. I remove it, and now it runs much smoother.
Reply With Quote
  #923  
Old 12-05-2005, 07:23 PM
Harley77 Harley77 is offline
 
Join Date: Jul 2002
Location: Minnesota
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about reducing the refresh rate? Make it only update every couple mins or simply on page load or after a shout was made. That (im my mind) would eliminate the constant polling of multiple members and take the pressure off the server.
Reply With Quote
  #924  
Old 12-05-2005, 08:08 PM
wtrk wtrk is offline
 
Join Date: Jun 2005
Posts: 256
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i thinnk there should be an automatic dump of the shoutbox archive after x peroid of time.
Reply With Quote
  #925  
Old 12-06-2005, 01:25 AM
Tulsa Tulsa is offline
 
Join Date: Jul 2005
Location: Broken Arrow, Oklahoma
Posts: 475
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In examining the stats of the bandwidth usage, even reducing the refresh to 20 seconds didn't help that much. Any less than 20 seconds and the delay is causing it to not be utilized, so it just refreshes for nothing.

I've disabled it for now until this one gets tweaked or until someone else comes out with a shoutbox that's functional and without so much downside.
Reply With Quote
  #926  
Old 12-06-2005, 12:18 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh I never noticed about making the server like to go down or slow. But are you guys pretty sure the shoutbox is causing it?
Reply With Quote
  #927  
Old 12-06-2005, 12:21 PM
Guest0321
Guest
 
Posts: n/a
Default

I've gotten this database error twice since installing vbshout...
Database error in vBulletin :
Code:
mysql_connect(): Host '217.160.230.138' is not allowed to connect to this MySQL server xxxxxxxxxxxxx/forums/includes/class_core.php on line 273

MySQL Error  : 
Error Number : 
Date         : Monday, December 5th 2005 @ 07:51:00 PM
Script       : http://tntu.net/vbshout.php
Referrer     : 
IP Address   : 209.74.228.37
Username     : 
Classname    : vb_database
Reply With Quote
  #928  
Old 12-06-2005, 05:16 PM
vedman vedman is offline
 
Join Date: Jul 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My shoutbox hasn't slowed down my server too much (I have an avg of 30-40 registered members on at any given minute, and guests cannot see the shoutbox). However, I increased the refresh to 15000 I think, and that will be the first thing I go to change again if when/if I need to. At worst, I'm sure the shoutbox can be slightly altered to show up on it's own page, with no refresh (basically, the archive view but with the ability to shout).

If anyone is saying their shoutbox is slowing down their server, and what you really mean to say is it's taking longer for your *page* to finish loading, I assume you either have all "extras" (smileys and formatting) disabled, OR have taken this out of your template, to kill the smiley pre-loading?

I did this, and my vbshout area loads almost twice as fast now:

PHP Code:
//make it load quicker, take smileys out of vbshout without giving up the formatting extras or ability to use :smiley codes:
//remove this from forumhome_vbshout:

<div id='shout_emo' style='display:none'>
        <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
        <
tr>
            <
td class="tcat" align="center">
                
Emoticons
            
</td>
        </
tr>
        <
tr>
            <
td class='alt2' width='100%' height='100%' align='center' valign='top'>
                $ 
Smilie_Build
            
</td>
        </
tr>
        </
table>
    <
br />
</
div
and

PHP Code:
//remove this from forumhome_vbshout.. might occur twice in the page, I forget:
<input type='button' class='button' value='Smilies' onclick='sb_Smilies(this)' /> 
?

edit - oh, and of course you would take out the smilie sql query near the top of the plugin "vBShout [Template Alteration]"
Reply With Quote
  #929  
Old 12-06-2005, 07:14 PM
Harley77 Harley77 is offline
 
Join Date: Jul 2002
Location: Minnesota
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those code changes make a definate improvement. Thank you.

(I prefer users not have smilies in the shoutbox anyway :-) )
Reply With Quote
  #930  
Old 12-07-2005, 03:01 AM
boatswife boatswife is offline
 
Join Date: Sep 2004
Location: Kingsland, GA
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vedman
edit - oh, and of course you would take out the smilie sql query near the top of the plugin "vBShout [Template Alteration]"
I'm just making sure that I will be removing all of this??
Quote:
$smilies = $db->query_read("
SELECT smilieid, smilietext, smiliepath, smilie.title,
imagecategory.title AS category
FROM " . TABLE_PREFIX . "smilie AS smilie
LEFT JOIN " . TABLE_PREFIX . "imagecategory AS imagecategory USING(imagecategoryid)
ORDER BY imagecategory.displayorder, smilie.displayorder
");
$Smilie_Build = '';
$Total_Smilies = $db->num_rows($smilies);

if ($Total_Smilies > 0)
{
while ($emo = $db->fetch_array($smilies))
{
if ($vbulletin->options['shout_smilies_show'] > 0)
{
$Smilie_Cache[] = $emo;
}
else
{
$Smilie_Build .= '<a href="#" onclick="return sb_Smilie(\''.$emo['smilietext'].'\')"><img src="'.$emo['smiliepath'].'" alt="'.$emo['title'].'" border="0" /></a> ';
}
}

if ($vbulletin->options['shout_smilies_show'] > $Total_Smilies)
{
$vbulletin->options['shout_smilies_show'] = $Total_Smilies;
}

if ($vbulletin->options['shout_smilies_show'] > 0)
{
while ($Used < $vbulletin->options['shout_smilies_show'])
{
$GetEmo = $Total_Smilies;
$GetEmo = rand(0, $GetEmo);

if (!in_array($GetEmo, $UsedArr) && $Smilie_Cache[$GetEmo])
{
$Used++;
$GetEmo = $Smilie_Cache[$GetEmo];
$Smilie_Build .= '<a href="#" onclick="return sb_Smilie(\''.$GetEmo['smilietext'].'\')"><img src="'.$GetEmo['smiliepath'].'" alt="'.$GetEmo['title'].'" border="0" /></a> ';
}
}
}
}
else
{
$Smilie_Build = 'No Emoticons Available';
}
Thanks!!
Reply With Quote
  #931  
Old 12-07-2005, 10:57 AM
ShadowOne ShadowOne is offline
 
Join Date: May 2005
Location: Tampa
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to have this shoutbox on a seperate page? like if i added a link that said shoutbox, and it went to its own page? cuz i dont want my forumhome too too cluttered....thnx
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06908 seconds
  • Memory Usage 2,334KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete