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
  #2042  
Old 07-28-2006, 02:10 AM
CrossBones's Avatar
CrossBones CrossBones is offline
 
Join Date: Oct 2004
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trana
Safari ABSOLUTELY has problems with AJAX, its a known issue. Try looking at the same page with IE or Firefox, if it looks perfect then it is how Safari is handling the jscript.
Thanks man...I guess I don't fully understand the issues involved. But I do now understand that this hack will not work properly with Safari. At least I can stop trying to put a square peg in a round hole.

Quote:
Originally Posted by Trana
The slowness has nothing to do with AJAX and really cannot be fixed, it is a network speed/utilization issue, not an AJAX coding problem.
But if that is the case why does it work so quickly in FireFox and not Safari (on the save network/server)? Safari just wil not process the information (shouts) without refreshing. Firefox displays the shouts almost instantly. Again I suppose it's an issue with Safari and I guess I'll just have to accept that.

Thanks again for the input.
Reply With Quote
  #2043  
Old 07-28-2006, 07:48 AM
rogersnm rogersnm is offline
 
Join Date: Apr 2006
Location: Cyberspace, UK
Posts: 729
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can speed up various things and lower your server load by getting the new shoutbox.

let me explain: lower sever load becuase it uses the flatfile to retrieve the shouts rather than the db and it speeds up the archive edit. Plus fixes all this bug: " < and >.

just as a not you could set it to refresh every 0.1 second......

if you want your server to blow up.
Reply With Quote
  #2044  
Old 07-28-2006, 07:52 AM
rogersnm rogersnm is offline
 
Join Date: Apr 2006
Location: Cyberspace, UK
Posts: 729
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trana
I don't think you understand how AJAX works (and to be honest, this mod is not a very good choice to demonstrate what AJAX is supposed to be used for).
I think it's quite a good mod to demostrate, it strings together a number of function: Edit, Delete, Update and Retrieve. Which ends up in it being a very good example of the power of ajax and a good demo. Even if some of the code is a bit dodgy.

i my self am working on an ajax mod right now which has 2 of those functions: http://forums.perfectforce.com/ajaxsig.php and http://forums.perfectforce.com/ajaxedit.php <-- that one still has issues with a query or 2
Reply With Quote
  #2045  
Old 07-28-2006, 09:44 AM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i had to remove this earlier today because it was lagging the server quite bad, and what i did was disable it first, then i uninstalled it, and the server locked up for like 3 minutes, then the processes were shooting up to 75%.

i had to force the server restart, and manually make services start.

i went to put the shoutbox back on, and now i get this error when its importing the plugin:

Code:
Database error in vBulletin 3.5.4:

Invalid SQL:

				REPLACE INTO phrase
					(languageid, phrasetypeid, varname, text, product)
				VALUES
					(-1, 5000, 'setting_shout_banned_perms_desc', 'Choose access permissions for banned users, by default they will not be able to post shouts.', '_vbshout'),(-1, 5000, 'setting_shout_banned_perms_title', 'Banned Permissions', '_vbshout'),(-1, 5000, 'setting_shout_banned_usergroups_desc', 'Enter banned usergroups here, split each UsergroupID with a comma, like so: 1,2,3', '_vbshout'),(-1, 5000, 'setting_shout_banned_usergroups_title', 'Banned Usergroups', '_vbshout'),(-1, 5000, 'setting_shout_banned_users_desc', 'Enter banned users here, split each UserID with a comma, like so: 1,2,3', '_vbshout'),(-1, 5000, 'setting_shout_banned_users_title', 'Banned Users', '_vbshout'),(-1, 5000, 'setting_shout_bbcode_desc', 'Allow users to use vBCode/Smilies within their shouts', '_vbshout'),(-1, 5000, 'setting_shout_bbcode_title', 'Allow vBCode/Smilies', '_vbshout'),(-1, 5000, 'setting_shout_box_height_desc', 'Change the height of the \'shouts\' display element in pixels', '_vbshout'),(-1, 5000, 'setting_shout_box_height_title', 'Shoutbox Height', '_vbshout'),(-1, 5000, 'setting_shout_can_commnd_desc', 'Can admins/super moderators use special commands in the chat?<br />\r\n(Please refer to the thread on vBulletin.org for reference to the commands for now)', '_vbshout'),(-1, 5000, 'setting_shout_can_commnd_title', 'Command Activation', '_vbshout'),(-1, 5000, 'setting_shout_display_desc', 'Number of shouts to be displayed', '_vbshout'),(-1, 5000, 'setting_shout_display_title', 'Shouts To Display', '_vbshout'),(-1, 5000, 'setting_shout_editor_position_desc', 'Choose the position of the vBShout editor', '_vbshout'),(-1, 5000, 'setting_shout_editor_position_title', 'Editor Position', '_vbshout'),(-1, 5000, 'setting_shout_extra_options_desc', 'Display the shout format options?', '_vbshout'),(-1, 5000, 'setting_shout_extra_options_title', 'Display Format Options', '_vbshout'),(-1, 5000, 'setting_shout_messages_order_desc', 'Change the order of the messages display', '_vbshout'),(-1, 5000, 'setting_shout_messages_order_title', 'Shout Messages Order', '_vbshout'),(-1, 5000, 'setting_shout_position_desc', 'Where the shoutbox will be positioned on your forums index.\r\nNote that \'Above Forums\' may be the same position as \'Below Navigation Bar\', this option is for users who have other things between the navigation and forums.', '_vbshout'),(-1, 5000, 'setting_shout_position_title', 'vBShout Position', '_vbshout'),(-1, 5000, 'setting_shout_smilies_show_desc', 'Number of random smilies to show on the shoutbox. Enter 0 to show them all.', '_vbshout'),(-1, 5000, 'setting_shout_smilies_show_title', 'Smilies To Show', '_vbshout'),(-1, 5000, 'settinggroup_vbshout_options', 'vBShout Options', '_vbshout');

MySQL Error  : Duplicate entry 'setting_shout_banned_perms_desc--1-5000' for key 2
Error Number : 1062
Date         : Friday, July 28th 2006 @ 05:36:14 AM
Script       : http://www.site.com/forum/admincp/plugin.php
Referrer     : http://www.site.com/forum/admincp/plugin.php?do=productadd
IP Address   : XXXXXX
Username     : GoTTi
Classname    : vb_database
any ideas?
Reply With Quote
  #2046  
Old 07-28-2006, 03:32 PM
Renmiri Renmiri is offline
 
Join Date: Jul 2006
Location: Chicago, USA
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to MySQL admin and remove the dupe

You will probably get several of those errors as it is likely that a botched reinstall would have more than one dupe.. Just delete each one.
Reply With Quote
  #2047  
Old 07-28-2006, 03:46 PM
GoNz00 GoNz00 is offline
 
Join Date: Jan 2005
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well i rolled back to the "&" fix as the &=amp problem returned..

any chance of the updated file being fixed to reflect the & bug ?
Reply With Quote
  #2048  
Old 07-28-2006, 05:26 PM
ronoxQ's Avatar
ronoxQ ronoxQ is offline
 
Join Date: Aug 2005
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm... I had this installed before, but now it isn't showing up. I added vBShout.php to my root, I imported the product. Anything else I'm forgetting to do?
Reply With Quote
  #2049  
Old 07-28-2006, 09:32 PM
brownbabe brownbabe is offline
 
Join Date: May 2006
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this but my shout box is only showing "Loading..." and when i enter text then press shout it says "posting in progess"

Please help, did I need to upload something else as well? I am using Yahoo as my website provider could that be the issue?

My link so that you can see for yourself
www.womenmotorcyclistsunited.com/forum/index.php
Reply With Quote
  #2050  
Old 07-29-2006, 12:29 AM
GoTTi GoTTi is offline
 
Join Date: Jun 2002
Posts: 1,346
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Renmiri
Go to MySQL admin and remove the dupe

You will probably get several of those errors as it is likely that a botched reinstall would have more than one dupe.. Just delete each one.
what table would i look in to remove the dupe?

and whats the name of the dupe im looking for?

cuz i did a search and couldnt find it.
Reply With Quote
  #2051  
Old 07-29-2006, 12:39 AM
ronoxQ's Avatar
ronoxQ ronoxQ is offline
 
Join Date: Aug 2005
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh, link for my shoutbox:

http://oasisforums.omegaseye.com
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 06:29 AM.


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.06410 seconds
  • Memory Usage 2,318KB
  • 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
  • (4)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
  • (6)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

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

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