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
  #1782  
Old 05-16-2006, 03:18 AM
Total666 Total666 is offline
 
Join Date: Jan 2006
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sir_Yaro
You did only second code modification but you forgot about first one - the most important...

fix it

Sorry but I do not understand , I did everything in post https://vborg.vbsupport.ru/showpost....postcount=1772

Did I miss something ?? Thanks .. A crayon answer is ok .. Total
Reply With Quote
  #1783  
Old 05-16-2006, 09:20 AM
maroceve maroceve is offline
 
Join Date: Oct 2005
Location: Casablanca, Morocco
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey guys ..Everything works perfect but i can't get the smileys to work. ?
Reply With Quote
  #1784  
Old 05-16-2006, 09:25 AM
Sir_Yaro's Avatar
Sir_Yaro Sir_Yaro is offline
 
Join Date: Jun 2004
Location: Ireland
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Total666
Sorry but I do not understand , I did everything in post https://vborg.vbsupport.ru/showpost....postcount=1772

Did I miss something ?? Thanks .. A crayon answer is ok .. Total
There were mistakes in a code. For some reasons vB doesn't display my code correctly. Some parts were missing. I've fixed that. Correct code is in a attachment in this post:
https://vborg.vbsupport.ru/showpost....postcount=1772
Reply With Quote
  #1785  
Old 05-16-2006, 09:57 AM
H@K@N H@K@N is offline
 
Join Date: Dec 2004
Location: Dortmund
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anybody see the possibility to disallow external Image linking within the Shoutbox ?

So only images from same Host, will be allowed, as for smilies for ex.

Have still some kiddies, which posting external images, which are stored on a Server/Folder which have .htaccess with AUTH activated, so always the authentication Popup is coming up on my Forum. Some will Enter his Username and Password, i'm sure.

th@nks
Reply With Quote
  #1786  
Old 05-16-2006, 10:59 AM
Sir_Yaro's Avatar
Sir_Yaro Sir_Yaro is offline
 
Join Date: Jun 2004
Location: Ireland
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by H@K@N
Does anybody see the possibility to disallow external Image linking within the Shoutbox ?

So only images from same Host, will be allowed, as for smilies for ex.

Have still some kiddies, which posting external images, which are stored on a Server/Folder which have .htaccess with AUTH activated, so always the authentication Popup is coming up on my Forum. Some will Enter his Username and Password, i'm sure.

th@nks
this should do:
Code:
//unallowed extensions
if (strpos($Shout['s_shout'],"gif")|strpos($Shout['s_shout'],"jpg")|strpos($Shout['s_shout'],"bmp"))
{
//allowed domain
$allow="http://forum.ubuntu.pl";

if (strpos($Shout['s_shout'],$allow)!=0)
    {
    $Shout['s_shout'] = str_replace("http://","", $Shout['s_shout']);
    $Shout['s_shout'] = str_replace("www.","", $Shout['s_shout']);
    }
}
please, don't ask "where?". I dont know :P Check my last posts about word wrap in this topic and add this code in a same place (and let us know where is it)
Reply With Quote
  #1787  
Old 05-16-2006, 02:24 PM
louis_chypher's Avatar
louis_chypher louis_chypher is offline
 
Join Date: Mar 2006
Location: Boise, Idaho
Posts: 130
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by blacklancer
i did this, but took it a step futher and only allowed 2 user id's access, one of whom was me. however, when i try to access it, it tells me that i dont have access.
After some looking into this I found that I also was not allowed access after a few times of clicking on the Shoutbox link.

I've placed My correction below with an addition:

//use for individual access
//if ($vbulletin->userinfo['userid'] != X)
//use for usergroup access
if (!(in_array($vbulletin->userinfo['usergroupid'], array(6,7))))
{ print_no_permission();
exit();
}

If you want to give access to only an individual then change
//if ($vbulletin->userinfo['userid'] != X)
to
if ($vbulletin->userinfo['userid'] != X)

and add change if (!(in_array($vbulletin->userinfo['usergroupid'], array(6,7))))
to
//if (!(in_array($vbulletin->userinfo['usergroupid'], array(6,7))))

Then replace the X with the userid of the person you are giving shoutbox edit access.
Reply With Quote
  #1788  
Old 05-17-2006, 10:56 AM
S`ke S`ke is offline
 
Join Date: Feb 2006
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My shoutbox can't show icon? How to fix? Who can help me?
Reply With Quote
  #1789  
Old 05-17-2006, 05:10 PM
blacklancer's Avatar
blacklancer blacklancer is offline
 
Join Date: Jan 2006
Location: so cal
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by louis_chypher
After some looking into this I found that I also was not allowed access after a few times of clicking on the Shoutbox link.

I've placed My correction below with an addition:

//use for individual access
//if ($vbulletin->userinfo['userid'] != X)
//use for usergroup access
if (!(in_array($vbulletin->userinfo['usergroupid'], array(6,7))))
{ print_no_permission();
exit();
}

If you want to give access to only an individual then change
//if ($vbulletin->userinfo['userid'] != X)
to
if ($vbulletin->userinfo['userid'] != X)

and add change if (!(in_array($vbulletin->userinfo['usergroupid'], array(6,7))))
to
//if (!(in_array($vbulletin->userinfo['usergroupid'], array(6,7))))

Then replace the X with the userid of the person you are giving shoutbox edit access.
awesome! thanks for your help.

if i want multiple user ids, do i seperate by comma??

Code:
if ($vbulletin->userinfo['userid'] != 1,2,3)
Reply With Quote
  #1790  
Old 05-18-2006, 10:18 AM
buzzel buzzel is offline
 
Join Date: Feb 2006
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i love it... thanks for sharing!

questions:

-who can i change the backgroundcolor of the input box?

-and how do you managed the shouts... never delete or delete at 1 week or so?

-change the smilies from random to the first in row (1-10)

thanks
Reply With Quote
  #1791  
Old 05-18-2006, 10:43 AM
aladinliverpool aladinliverpool is offline
 
Join Date: Aug 2004
Location: Liverpool UK
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah we could do with something like that. ive had to go into the database to delete the shouts every so often.
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 03:04 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.06941 seconds
  • Memory Usage 2,331KB
  • 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
  • (2)bbcode_code
  • (5)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