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)

rogersnm 07-24-2006 02:32 PM

I'll just say that i have an average of 8% server load and i have the shoutbox running my host doesn't have a problem ;)

And yes there is version 2.0 of vbshout at vbh :D:D:D:D

TygerTyger 07-24-2006 09:47 PM

Quote:

Originally Posted by Ronin Storm
The server load for this is shockingly high. Unless you own your own server then you can probably kiss this mod goodbye.

Well that's not really true. But people will so insist on using ever-cheaper hosts, thus you get what you pay for.

I'm on shared, it's not cheap, I can run the Shoutbox fine and it gets more than 1000 shouts a week.

Rickie3 07-24-2006 10:42 PM

I dont have a problem with my host either,i'm on shared and I pay $100 USD annually for my hosting package,and I dont find the shout to be server intensive,It is the most used feature on my board and my forum would be naked without it,with over a 1000+ shouts a week,so at the end of the day its all down to what hosting package you bought

Watched 07-25-2006 04:53 AM

Quote:

Originally Posted by rogersnm
I would just like to point out version 5.0 is out out http://gzevolution.net/ The site is currently down but once it's up enjoy the new hack..


erm.. inferno shout v5.0 is for websites, not for forums. current vbshout (shoutbox for forums) is still only 2.0

Ronin Storm 07-25-2006 06:20 AM

Quote:

Originally Posted by rogersnm
I'll just say that i have an average of 8% server load and i have the shoutbox running my host doesn't havea porblem

Have you checked the overall bandwidth usage of the shoutbox versus, say, anything else on vbulletin? I have a memory that it's something like two magnitudes difference. My site has recently changed hardware (I run on a dedicated server) and with the change I no longer have access to my webstats... when I have them again I'll post what I see.

Quote:

Originally Posted by thisgeek
The only thing I've done differently is to change the ' symbol to " &_#39;" (added an underscore cuz the post converts it to an apostrophe)

It shouldn't matter what the translation is. I use the entity reference because they are effectively equivalent. However I could just as easily used "a89fysfh" or some other random collection of characters as long as I'm pretty sure they're a unique string. The changes I've made convert to the entity on storage but convert it back to an apostrophe for display.

Quote:

Originally Posted by thisgeek
because I read somewhere that ' may not work in IE.

I have never had issues with ' as an entity reference. It's one of the more basic ones. XHTML, under some circumstances, appears to have trouble with certain entity references it doesn't recognise ( ) but then I just use the unicode for those ones ( );

Edit: Realised I'd not responded to everyone I wanted to.

rogersnm 07-25-2006 09:51 AM

not any noticable difference, guess it depends on your host :p

I get 1000+ shouts a day

ps: read the sig

Rio Grande 07-25-2006 07:20 PM

Quote:

Originally Posted by Ronin Storm

...

BUG FIX (24 July 2006)

I discovered that there is an issue. Roughly, the issue occurs when you post a shout that has apostrophes, then go to edit it, submit that edit (which also has apostrophes in it) and then edit it again. The second edit retains the original apostrophe bug. This is because the AJAX edit was not also protected in the same way as the original shout.

The changes below should resolve this issue.

In vbshout.php, on approx line 518. find:

PHP Code:

$vbulletin->GPC['shout'] = convert_urlencoded_unicode($vbulletin->GPC['shout']); 

Replace with:

PHP Code:

$vbulletin->GPC['shout'] = convert_urlencoded_unicode(str_replace("'""'"$vbulletin->GPC['shout'])); 

On approx line 524, find:

PHP Code:

$Shout['s_shout']  = bbcodeparser($Shout['s_shout']); 

Replace with:

PHP Code:

$Shout['s_shout']  = bbcodeparser(str_replace("'""'"$Shout['s_shout'])); 

And that should be okay now. I believe. :)

Let me know if you have any issues with it!

I use this fix for the "Apostrophe Bug"
https://vborg.vbsupport.ru/showpost....postcount=1624

and I have the same problem with the edit field. But when I apply your Fix it doesn't work :-/

>> thisgeek : thanks works great ;)

rogersnm 07-25-2006 07:34 PM

you can get the new version which has no bugs and lower server intensity over at vBH read my sig :)

Renmiri 07-25-2006 10:42 PM

How come the RPG Inferno (lite) battles don't use AJAX ? Does the full Inferno have it ?

In an active forum this turn based system is soooo slow! Real battles are not turn based..

rb290 07-26-2006 01:38 AM

i seen on some forums that shoutbox doesnt appear until you register,
can anyone tell me how this could be done ?

JimmyN 07-26-2006 07:25 AM

goto admincp and lookup shoutbox settings, then tell it to show to guests or not etc

Thanks

Ronin Storm 07-26-2006 08:30 AM

Quote:

Originally Posted by Rio Grande
I use this fix for the "Apostrophe Bug"
https://vborg.vbsupport.ru/showp...postcount=1624

and I have the same problem with the edit field. But when I apply your Fix it doesn't work :-/

The fix you've highlighted there is unrelated to the issue I'm working on resolving. Brad's fix to his code was to stop entity references appearing after he patched the injection vulnerability. I'm assuming that you've already applied Brad's essential fixes and I build on his work.

Mine is not about fixing the appearance of " or whatever in your shoutbox. Mine is about being about to edit shouts that have the apostrophe character...

'

... in them. If you attempt to edit a shout, prior to my fix, with an apostrophe in it then the text displayed to you will be truncated to the first apostrophe. Not exactly what you need... :)

Make sense?

Quote:

Originally Posted by rogersnm
you can get the new version which has no bugs and lower server intensity over at vBH

Ah! Thanks rogersnm. I hadn't realised that ZT was back, just elsewhere. I'll check that out.

thisgeek 07-26-2006 09:22 AM

Quite a few pages back, Brad (I think) posted an alternate to the vBShout_fixed_v3.zip that is attached up top. The alternated solved my " problems.

blacklancer 07-26-2006 02:38 PM

maybe this has been discussed, but i dont feel like reading through 135 pages while i'm at work. anyways....

is there a way to get a report generated, that lists all the shouts made in the shoutbox? i know there's the archive, but i was wondering if i could set it up to send me a pm, od post them in a designated forum.

i have some users that like to start trouble, and i would like to review the shoutbox. please let me know if anyone can help. thanks!

Shazz 07-26-2006 03:39 PM

Shoutbox version for the 3.6.0 , and this one, aren't they like the same?
if so why would it be codded different.
________
Mercedes-Benz SLC-Class specifications

rogersnm 07-26-2006 03:41 PM

Quote:

Originally Posted by blacklancer
maybe this has been discussed, but i dont feel like reading through 135 pages while i'm at work. anyways....

is there a way to get a report generated, that lists all the shouts made in the shoutbox? i know there's the archive, but i was wondering if i could set it up to send me a pm, od post them in a designated forum.

i have some users that like to start trouble, and i would like to review the shoutbox. please let me know if anyone can help. thanks!

if you read the sig and download the new version which uses flatfile - saves to a file and a database - then it will be quite easy to generate a report, easier than this...

blacklancer 07-26-2006 03:56 PM

thank you. any advice on how to get the report. i'm a newb when it comes to this

Shazz 07-26-2006 04:04 PM

Quote:

Originally Posted by blacklancer
thank you. any advice on how to get the report. i'm a newb when it comes to this

You mean like Moderate Shout.
Like if they say something bad, ?
________
hot box vaporizers

blacklancer 07-26-2006 04:08 PM

no, i have a few guys who act like they're 5 sometimes and i need to babysit them :lol:

i just want to be able to read shouts (like in the archive), but more on a page, and in the proper reading order.

Shazz 07-26-2006 04:14 PM

Quote:

Originally Posted by blacklancer
no, i have a few guys who act like they're 5 sometimes and i need to babysit them :lol:

i just want to be able to read shouts (like in the archive), but more on a page, and in the proper reading order.

Sometiems i go crazy in a shoutbox too...
I ususally just censor out words , you shouldn't need to babysit them really, i mean its a shoutbox ... not like a thread or anything personal like freeposting
________
buy herbalaire

rogersnm 07-26-2006 04:44 PM

Quote:

Originally Posted by blacklancer
thank you. any advice on how to get the report. i'm a newb when it comes to this

well you could make a second flatfile which clears every week/day and pm's you with the link :)

CrossBones 07-27-2006 02:39 AM

I know I read about problems with the shout box in Safari but can't locate the fix(s).

Buddy of mine just installed the shout Box and when I view in Safari I get this huge shout box.

The other problem is that the shouts don't register unless I refresh or it takes a minute or more. I mean it's AJAX right? Shouldn't that work fine in Safari or is there a setting or something that has to be clicked on?

I tried it in FF and it works fine on his site.

Isn't there a fix for the large shout box AND what's the deal with the slowness. I really need this hack but it has to work in Safari for me.

Any help or direction would be appreciated.

khad 07-27-2006 02:49 AM

Is there any way to disable the AJAX part of this mod? I loved "Shoutbox Hack 1.04b". I'm guessing the only alternative is to use Chatbox Lite but I'm afraid what will happen if you can't moderate it.

Chicago_VLNU_4s 07-27-2006 03:26 AM

nice... easy to use and installed with tha quickness!

Chicago_VLNU_4s 07-27-2006 03:32 AM

can anyone tell me how to make it bigger in height?

TTG 07-27-2006 04:37 AM

Quote:

Originally Posted by Chicago_VLNU_4s
can anyone tell me how to make it bigger in height?

vbshout options in your admincp >> Shoutbox Height
Change the height of the 'shouts' display element in pixels

Chicago_VLNU_4s 07-27-2006 06:19 AM

Quote:

Originally Posted by TTG
vbshout options in your admincp >> Shoutbox Height
Change the height of the 'shouts' display element in pixels


can u explain more specifically? im new to this. would this be under

PLUGIN SYSTEM > MANAGE PRODUCTS > vBShout> EDIT/GO ?

if so, then what, cuz i dont see anything to what you said in there

Chicago_VLNU_4s 07-27-2006 06:23 AM

are you talkin about this

Install:
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,
  `s_data` text NOT NULL,
  `s_me` tinyint(2) NOT NULL default '0',
  PRIMARY KEY  (`sid`)
) TYPE=MyISAM;";

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

?

Rickie3 07-27-2006 06:25 AM

its under vbulletin Options in your adminCP scroll down till you find vbshout then edit from there

Chicago_VLNU_4s 07-27-2006 06:25 AM

ok nevermind i found it in GENERAL OPTIONS lol thanks anyways

CrossBones 07-27-2006 12:55 PM

Quote:

Originally Posted by CrossBones
I know I read about problems with the shout box in Safari but can't locate the fix(s).

Buddy of mine just installed the shout Box and when I view in Safari I get this huge shout box.

The other problem is that the shouts don't register unless I refresh or it takes a minute or more. I mean it's AJAX right? Shouldn't that work fine in Safari or is there a setting or something that has to be clicked on?

I tried it in FF and it works fine on his site.

Isn't there a fix for the large shout box AND what's the deal with the slowness. I really need this hack but it has to work in Safari for me.

Any help or direction would be appreciated.

Any help on this guys? :cross-eyed:

rogersnm 07-27-2006 01:01 PM

I believe safari has problems with ajax and javascript actually.

rogersnm 07-27-2006 01:02 PM

Quote:

Originally Posted by khad
Is there any way to disable the AJAX part of this mod? I loved "Shoutbox Hack 1.04b". I'm guessing the only alternative is to use Chatbox Lite but I'm afraid what will happen if you can't moderate it.

Ajax is bit pretty well into it so in short you'd be coding a completely different mod if you were to do that. Don't get me wrong it would be possible but i would need ZT's permission...

smirnoff 07-27-2006 03:27 PM

hi, just wanna know whats append to my shoutbox

when i try to send some special caracters like " or & or > or < or / \ etc [ french forum] it senf me the ascii caracter
like &quot; &amp; smth like that
anyone can help me?

CrossBones 07-27-2006 11:07 PM

Quote:

Originally Posted by rogersnm
I believe safari has problems with ajax and javascript actually.

That doesn't sound right...

Most of vB is built around AJAX -- all the inline posting, editing, modding etc is AJAX -- right? It all works fine in Safari.

But this hack doesn't. And then there is the issue of the huge shout box that expands to about 10 inces... :eek:

Isn't there a fix for the slowness and the large box (thought I read about it somewhere).

I really like it but it has to be functional in Safari.

da420 07-27-2006 11:14 PM

Quote:

Originally Posted by smirnoff
hi, just wanna know whats append to my shoutbox

when i try to send some special caracters like " or & or > or < or / \ etc [ french forum] it senf me the ascii caracter
like &quot; &amp; smth like that
anyone can help me?

This seems to get asked every 10 posts. It's not a big deal, but it gets kind of redundant having to post it over and over again. I find that the search thread feature works very nicely.

https://vborg.vbsupport.ru/showpost....postcount=1624

smirnoff 07-27-2006 11:18 PM

thanks but on witch keyword do u search that?

thanks again its work

Trana 07-28-2006 12:50 AM

Quote:

Originally Posted by CrossBones
That doesn't sound right...

Most of vB is built around AJAX -- all the inline posting, editing, modding etc is AJAX -- right? It all works fine in Safari.

But this hack doesn't. And then there is the issue of the huge shout box that expands to about 10 inces... :eek:

Isn't there a fix for the slowness and the large box (thought I read about it somewhere).

I really like it but it has to be functional in Safari.

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.

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.

Trana 07-28-2006 12:55 AM

Quote:

Originally Posted by CrossBones
Any help on this guys? :cross-eyed:

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).

The shouts only refresh every few seconds because that is the refresh interval defined in the code. If you lessen it you will see the shouts faster but you will dramatically increase load and network utilization. If you are running this on a shared server then your service provider will probably shut you down. If you are on a dedicated server, the ISP may complain to you about the bandwidth utilization or try and charge you for the usage.

Again, this really isn't a very good demonstration of what AJAX is for, it has dynamic content and must be fully refreshed by all browsers every interval, so the fact that the whole page doesn't reload is nice but could be accomplished with iframes or something else.

If you understand RSS, this is the equivalent of turning your RSS reader up to check a news source every 5 seconds. There isn't much you can do to optimize this if 100 people are sitting on your homepage watching the shouts go by.

Chicago_VLNU_4s 07-28-2006 01:57 AM

Quote:

Originally Posted by da420
This seems to get asked every 10 posts. It's not a big deal, but it gets kind of redundant having to post it over and over again. I find that the search thread feature works very nicely.

https://vborg.vbsupport.ru/showpost....postcount=1624

thank you! i had this problem too!


All times are GMT. The time now is 01:36 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.06407 seconds
  • Memory Usage 1,856KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_php_printable
  • (21)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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