vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   [AJAX] vBShout v2.0 (https://vborg.vbsupport.ru/showthread.php?t=93097)

Zero Tolerance 07-27-2005 10:00 PM

[AJAX] vBShout v2.0
 
[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

cuphongle 07-28-2005 10:44 PM

nothing happened after i installed the plug-ins....
and upload the file...

can u tell me whats wrong?

bleodler 07-28-2005 10:54 PM

Excellent, it's working great on my test board. One very minor complaint though, when a member is viewing forumhome page now, their location listed in their profile is "Unknown Location /testvb/vbshout.php" It would be nice to have it say Forum Index like normal.

monstergamer 07-28-2005 10:58 PM

the plugin show blank for me

cuphongle 07-28-2005 10:59 PM

bleodler...can u help me?

Barakat 07-28-2005 11:04 PM

there's a problem while installing the plugin file its cant create the database of the vbshout ?

bleodler 07-28-2005 11:08 PM

Quote:

Originally Posted by cuphongle
nothing happened after i installed the plug-ins....
and upload the file...

can u tell me whats wrong?


Make sure you go to "Manage Products" and click on "Add/Import Product" and are not going to "Download/Upload Plugin". That could be the problem.

TTG 07-28-2005 11:18 PM

Great .. members have been screaming for a shoutbox since I upgraded to 3.0.5
Thanks Zero .. clicked install

Neal-UK 07-28-2005 11:22 PM

Quote:

Originally Posted by bleodler
Make sure you go to "Manage Products" and click on "Add/Import Product" and are not going to "Download/Upload Plugin". That could be the problem.

any way of getting this at the bottom of the forums?

cuphongle 07-28-2005 11:28 PM

Quote:

Originally Posted by bleodler
Make sure you go to "Manage Products" and click on "Add/Import Product" and are not going to "Download/Upload Plugin". That could be the problem.

does it work for 3.5.0 beta 2? because im using that, and i dont see "manage products"...
thanks in advance

bleodler 07-28-2005 11:34 PM

Quote:

Originally Posted by cuphongle
does it work for 3.5.0 beta 2? because im using that, and i dont see "manage products"...
thanks in advance

I think you'll need to upgrade to RC1 for this hack, that's the version that introduced the product manager.

Biker_GA 07-28-2005 11:37 PM

Quote:

Originally Posted by nealparry
any way of getting this at the bottom of the forums?

I'd be interested in that as well. Our users would love to have the shoutbox back, but it looked like a dog's breakfast at the top of the forums. I'd be tempted to reload it if I could get it to appear at the bottom.

FleaBag 07-28-2005 11:39 PM

Very nice... What are the maximum shouts it shows? I'm assuming once it hits a quote any older shouts are deleted?

Ron1n 07-28-2005 11:40 PM

Quote:

Originally Posted by cuphongle
does it work for 3.5.0 beta 2? because im using that, and i dont see "manage products"...
thanks in advance

it doesnt

Quote:

Originally Posted by Biker_GA
it looked like a dog's breakfast at the top of the forums.

You are so nice... Zero Tolerance put in the effort to make a shoutbox and you say it looks like a dog's breakfast. I, for one, like the shoutbox at the top.

Good work on the shoutbox - I like it. Do you have a timeframe for when this will include permissions and the ability to edit shouts? I really do like the simplicity and I hope it doesnt get overblown like most of the ones for 3.0.7 have.

Edit: This is an extension not a plugin :D

Biker_GA 07-28-2005 11:42 PM

The style we're using doesn't lend itself to using a shoutbox at the top. And I don't know if it was ZT's hack or not when we were using it.

cuphongle 07-28-2005 11:56 PM

thanks alot....hella easy to install

Neal-UK 07-29-2005 01:08 AM

Quote:

Originally Posted by Biker_GA
The style we're using doesn't lend itself to using a shoutbox at the top. And I don't know if it was ZT's hack or not when we were using it.

i like the shoutbox too, but some members prefer it at the bottom, well most of 'em actually. I don't give a hoot, just glad that installs can be done easier these days!

Jenta 07-29-2005 02:04 AM

nice but it's an extension due to the file upload

Boofo 07-29-2005 02:47 AM

Any way to add the font and color select to the shoutbox?

Like the attached pic.

bleodler 07-29-2005 05:21 AM

Quote:

Originally Posted by 4326692027f8
You can create a New Replacement Variable in the proper style and make "Unknown Location /testvb/vbshout.php" say anything you wish.

that works great, thanks.

ThePimp 07-29-2005 08:46 AM

I'm running 3.5 Beta 4... I don't see a "Manage Products" -> "Add/Import Product" section... Any way to work around this?

Marco van Herwaarden 07-29-2005 08:58 AM

Yes, upgrade to 3.5 RC1

Zero Tolerance 07-29-2005 11:51 AM

Updated to v1.1, corrected the WOL, could of sworn i included those plugins .. oh well.

To answer a few questions, no this will not work with any beta versions, since none of them don't have the product manager, which you will need to upload the XML included in the download.

As for updating with options/permissions, yes that will come, i intend to use this shoutbox myself when i upgrade to vB 3.5, so more features will be on the way :)

Since a lot of people seem to like the shoutbox being at the bottom, i'll ensure that will be an ACP feature in the future (place shoutbox below navbar/below forums/below forum stats).

- Zero Tolerance

cclaerhout 07-29-2005 12:19 PM

Here is a way to place your Shoutbox WHERE YOU WANT

Simple edit your forumhome template. Create where you want the variable :
Code:

$shout
This will be the place where will appear your shoutbox. But for this, you have to do a last modification :

Go to your Plugin Manager, edit "vBShout [Template Alteration]" and replace $navbar by $shout.

It should be like this
Code:

eval('$Shoutbox = "' . fetch_template('forumhome_vbshout') . '";');

$vbulletin->templatecache['FORUMHOME'] = str_replace('$shout','$shout $Shoutbox',$vbulletin->templatecache['FORUMHOME']);


Zero Tolerance 07-29-2005 12:33 PM

Good idea, but just to clean upa little (sorry, it's a habbit :p), change the plugin to:
PHP Code:

eval('$Shoutbox = "' fetch_template('forumhome_vbshout') . '";'); 

And simply place the variable '$Shoutbox' in forumhome we're ever you'd like :)

- Zero Tolerance

Cyricx 07-29-2005 12:33 PM

Problem with the v1.1 xml..

Getting this error

Code:

Database error in vBulletin 3.5.0 Release Candidate 1:

Invalid SQL:
CREATE TABLE `vb3_shout` (
  `sid` int(15) NOT NULL auto_increment,
  `s_by` int(15) NOT NULL default '0',
  `s_time` int(15) NOT NULL default '0',
  `s_shout` text NOT NULL,
  PRIMARY KEY  (`sid`)
) ENGINE=MyISAM;;

MySQL Error  : You have an error in your SQL syntax near 'ENGINE=MyISAM' at line 7
Error Number : 1064

Also, when you edit the product, the install code looks like this

Code:

$Query = "CREATE TABLE `".TABLE_PREFIX."shout` (
  `sid` int(15) NOT NULL auto_increment,
  `s_by` int(15) NOT NULL default '0',
  `s_time` int(15) NOT NULL default '0',
  `s_shout` text NOT NULL,
  PRIMARY KEY  (`sid`)
) ENGINE=MyISAM;";

$vbulletin->db->query($Query);


Zero Tolerance 07-29-2005 12:37 PM

What version of mySQL are you using?

- Zero Tolerance

Cyricx 07-29-2005 12:38 PM

Not sure why bud, but I changed it to this

Code:

<installcode><![CDATA[$Query = "CREATE TABLE `".TABLE_PREFIX."shout` (
  `sid` int(15) NOT NULL auto_increment,
  `s_by` int(15) NOT NULL default '0',
  `s_time` int(15) NOT NULL default '0',
  `s_shout` text NOT NULL,
  PRIMARY KEY  (`sid`)
)";

And it ran fine, installed fine, and is working fine on my test board at www.mmogcommunities.com/test/forums

Metro Man 07-29-2005 01:16 PM

How many shoutentries are stored?

Cyricx 07-29-2005 01:56 PM

it displays the last 20

Metro Man 07-29-2005 02:13 PM

Quote:

Originally Posted by Cyricx
it displays the last 20


Thx for Info

Zero Tolerance 07-29-2005 06:27 PM

Version 1.2 released, change log updated in the main post :)

- Zero Tolerance

cuphongle 07-29-2005 06:32 PM

wont work...when updating
database error

Invalid SQL:

select s.*, u.username from shout s
left join user u on (u.userid = s.s_by)
order by s.sid desc limit 0,;

Zero Tolerance 07-29-2005 06:41 PM

Uninstall, download then reinstall, there was a slight error with the product export i made (how was i know the options had to be vB default :p ..)

- Zero Tolerance

cuphongle 07-29-2005 06:52 PM

Database error in vBulletin 3.5.0 Release Candidate 1:

Invalid SQL:

select s.*, u.username from shout s
left join user u on (u.userid = s.s_by)
order by s.sid desc limit 0, 20;

thats after uninstall and everything

Zero Tolerance 07-29-2005 06:57 PM

What's the actual mysql error underneath that?

- Zero Tolerance

Jason McConnell 07-29-2005 07:04 PM

Works fine in IE, but I'm getting a blank page in Firefox, and unfortunately that's pretty much what 90% of my users use. Other than that, that's about the only gripe I have :D

[high]* Jason McConnell clicks *install* :)[/high]

Zero Tolerance 07-29-2005 07:08 PM

Quote:

Originally Posted by Jason McConnell
Works fine in IE, but I'm getting a blank page in Firefox, and unfortunately that's pretty much what 90% of my users use. Other than that, that's about the only gripe I have :D

[high]* Jason McConnell clicks *install* :)[/high]

v1.3 includes the Firefox fix, i just noticed after i released it, just adding some other stuff in for the release :)

- Zero Tolerance

Jason McConnell 07-29-2005 07:12 PM

Quote:

Originally Posted by Zero Tolerance
v1.3 includes the Firefox fix, i just noticed after i released it, just adding some other stuff in for the release :)

- Zero Tolerance

Kickass man :D My users have missed the shoutbox in a big way since the upgrade to 3.5 RC1, it was a huge draw. Unfortunately it made actual forum posts go down overall.

cclaerhout 07-29-2005 07:16 PM

What a job ! Thank you again :-)


All times are GMT. The time now is 04:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03297 seconds
  • Memory Usage 1,835KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (1)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete