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)

apokphp 12-05-2005 07:22 PM

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.

Harley77 12-05-2005 07:23 PM

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.

wtrk 12-05-2005 08:08 PM

i thinnk there should be an automatic dump of the shoutbox archive after x peroid of time.

Tulsa 12-06-2005 01:25 AM

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.

Snake 12-06-2005 12:18 PM

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?

Guest0321 12-06-2005 12:21 PM

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


vedman 12-06-2005 05:16 PM

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]"

Harley77 12-06-2005 07:14 PM

Those code changes make a definate improvement. Thank you.

(I prefer users not have smilies in the shoutbox anyway :-) )

boatswife 12-07-2005 03:01 AM

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!!

ShadowOne 12-07-2005 10:57 AM

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

tidy_boy 12-07-2005 02:15 PM

hey guys ever since I installed this shoutbox I keep getting this error

Database error in vBulletin :

mysql_connect(): Unknown MySQL Server Host 'db31.oneandone.co.uk' (2) /xxxxxxxx/xx/xxxxxxxxx/xxxxxxxx/harddanceaddict/forum/includes/class_core.php on line 273

MySQL Error :
Error Number :
Date : Wednesday, December 7th 2005 @ 04:31:15 PM
Script : http://www.harddanceaddict.net/forum/vbshout.php
Referrer : http://www.harddanceaddict.net/forum/index.php
IP Address :
Username :
Classname : vb_database


Any ideas

outlaw621 12-07-2005 02:27 PM

Quote:

Originally Posted by tidy_boy
hey guys ever since I installed this shoutbox I keep getting this error

Database error in vBulletin :

mysql_connect(): Unknown MySQL Server Host 'db31.oneandone.co.uk' (2) /xxxxxxxx/xx/xxxxxxxxx/xxxxxxxx/harddanceaddict/forum/includes/class_core.php on line 273

MySQL Error :
Error Number :
Date : Wednesday, December 7th 2005 @ 04:31:15 PM
Script : http://www.harddanceaddict.net/forum/vbshout.php
Referrer : http://www.harddanceaddict.net/forum/index.php
IP Address :
Username :
Classname : vb_database


Any ideas

I was having the same problem. The line it references in the class_core.php file deals with your database access. I found that if I changed the auto refresh of the shoutbox to anything higher than 40 seconds I stopped getting the error.

tidy_boy 12-07-2005 02:33 PM

thanks I will give that a go :D

tidy_boy 12-07-2005 02:36 PM

I cant seem to find the auto refresh option mate where is it

toxin 12-08-2005 04:02 PM

A nice plugin - very easy to install.

I have it running on a medium size forum (usually around 80 members and 200 guests online), which sits on a dual-xeon server with loads of ram. My load averages have increased from about 0.50 to 2.50

I'll give it a day or two, but I don't think it will be staying. I might try removing it from display for guests first..

Snake 12-08-2005 04:26 PM

The shoutbox is slowing down your sever? This is funny. How kind of host & server are you on?

ed2k 12-08-2005 05:52 PM

How can you make it so admins can use /me only?

I dont want every user being able to use this.

lanc3lot 12-08-2005 06:12 PM

Quote:

Originally Posted by Zero Tolerance
In firefox, press CTRL+F5, should re-load the files then and skip loading from cache.

Microphone? Hmm, i doubt that will be a feature.

- Zero Tolerance


Its pity, as this is the main problem of this hack, and havent fixed till now:(

Ps

I mean the "loading" issue, test it both on Firefox 1.5 or in the latest Ie Browser

Symen_4ab 12-09-2005 02:53 PM

Quote:

Originally Posted by Aftermath
The shoutbox is slowing down your sever? This is funny. How kind of host & server are you on?

It's not really funny, but it's logical, though.

10 seconds refresh for everyone. That makes one (or more, didn't have a look at the code) request to the DB, and some php data parsing.

If you have 100 users online at the same time, that will be 10 requests a second.

And I don't even talk about people who thought it would be a great idea to put the shoutbox on every page of the forum.

I uninstalled this hack as my little server couldn't handle the load.

I think a warning should be posted in the hack description, as I never thought it would be such a ressource hog.

Snake 12-09-2005 03:31 PM

Well then why don't you just increase the refresh load like to 300 seconds? There ya go.

divided_by_fear 12-09-2005 03:35 PM

Quote:

Originally Posted by Symen_4ab
I think a warning should be posted in the hack description, as I never thought it would be such a ressource hog.

well i look at it is that no one is forcing you to install this if you find it causes that then uninstall it.. that simple... i havent seen no difference in load increase at all...

Symen_4ab 12-09-2005 03:48 PM

Increasing the refresh is a solution, for sure, not mine, though. (I want a "live" chat.)

True, noone forced me to install this, but I think that a warning message could stop all these "server load high, why ?" messages, and there are many people who don't know why their server load went higher than usual without reading every page of this thread.
If you havent seen any difference, then I see three possible explanations :
1. You are blind
2. You have a server so big that your load is at 0.00 all the time
3. You have 1 or less people on the same time on your forum

Well, joke apart , you must see an increase in the load, as the shoutbox makes queries...
It may be a little difference, but there is a difference.

divided_by_fear 12-09-2005 04:16 PM

i do have a big server... this dont lag mine nor does it increase the load... no matter what you do everything makes queries just some not as much as others... if you run the server like i do you could see everything going on... its not that bad... so you think auto refresh shouldnt be in there? what about whos online that has auto refresh should vbulletin take that out too?

Symen_4ab 12-09-2005 04:34 PM

You don't seem to understand me.
I'm not insulting you, nor the hack creator !

I know that almost everything in vbulletin run queries, I'm not a complete idiot, you know. I was saying that it ups the load, that's for sure.
This hack is not intended for forums with many members online, or only for "overpowered" servers.

I'm not saying (some in this thread are, by the way) that mods should remove this hack, but a little (almost invisible, if you prefer) "This hack can be server-intensive if you have many members online, check auto-refresh rate and keep an eye on server load" would not hurt anyone.

This very script was the one using the most cpu cycles on my server (little server,yes, 4-5 sites hosted, 2 vbulletin).
I was using the mini-hack allowing you to display the shoutbox on every page of the forum, and I think my members like to open many pages of the forum ;)

wrang 12-09-2005 06:45 PM

Where can i find the text Shoutbox i want to translate it to swedish

Great extension!

nexus851 12-10-2005 02:24 AM

Quote:

Originally Posted by uzman59


How do i add a background picture into my VBSHOUT like this picture???????????????? anyone???

Rickie3 12-10-2005 02:28 AM

Quote:

Originally Posted by nexus851
How do i add a background picture into my VBSHOUT like this picture???????????????? anyone???

i would like this also

BiReL41r 12-10-2005 03:09 AM

I've seen this hack on multiple forums and it's a great addition to any forum.

SuperFly 12-10-2005 03:53 PM

Zero

Think theres a chance you can make a shoutbox above it with only the permission for staff to see it?

Snake 12-10-2005 04:36 PM

That would be pointless and instead make a forum rather than having a shoutbox.

SuperFly 12-11-2005 12:53 AM

Quote:

Originally Posted by Aftermath
That would be pointless and instead make a forum rather than having a shoutbox.

I do have a forum but for quick discussions its a great idea.

MilfU 12-11-2005 06:48 AM

Check out www.milfu.net I would like the shout box to show on there but I can't for the life of me fig. out how to get it in there. Any one got any clues? Right now its only showing up on the forms page. Great hack by the way... liking it alot!

cinemablend 12-12-2005 12:48 AM

Does this thing archive into infinity... or does it clear out some of the posts after a pre-determined number?

divided_by_fear 12-12-2005 04:58 PM

nah it just keeps going from what i seen... would be nice if it cleared but its not hard to clear out though

sidekick 12-12-2005 09:17 PM

Quote:

Database error in vBulletin 3.5.1:

Invalid SQL:
CREATE TABLE `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;;

MySQL Error : Table 'shout' already exists
Error Number : 1050
Date : Monday, December 12th 2005 @ 06:15:56 PM

Classname : vb_database
i dont know what i did, but its all messed up now and it wont let me upload the plugin again

Raptor 12-12-2005 09:27 PM

Quote:

Originally Posted by apokphp
I had to uninstall this as well.

After monitoring the server, it turns out that this INCREASED my server load by 2-3x of it's normal load. I had it on for about 1.5 months or so. Now that it's uninstalled, the site runs MUCH smoother.

i have to agree

i have 48000 members and always at least 500 online at any one time - i kep geetting internal server errors every hour or so - so did all the members

removed and its fine

and yes my server is a beast

sidekick 12-12-2005 10:34 PM

ok i think i solved my problem i stated above.. but now i have another one, that archive thing.. when i click it.. its only a blank page.. and nothing shows up.. can some1 please help

LBSources 12-13-2005 12:11 AM

Quote:

Originally Posted by Symen_4ab
You don't seem to understand me.
I'm not insulting you, nor the hack creator !

I know that almost everything in vbulletin run queries, I'm not a complete idiot, you know. I was saying that it ups the load, that's for sure.
This hack is not intended for forums with many members online, or only for "overpowered" servers.

I'm not saying (some in this thread are, by the way) that mods should remove this hack, but a little (almost invisible, if you prefer) "This hack can be server-intensive if you have many members online, check auto-refresh rate and keep an eye on server load" would not hurt anyone.

This very script was the one using the most cpu cycles on my server (little server,yes, 4-5 sites hosted, 2 vbulletin).
I was using the mini-hack allowing you to display the shoutbox on every page of the forum, and I think my members like to open many pages of the forum ;)

Actually.. now experiencing such a problem with my hosting co .. here is their explanation to it all ..

every X seconds another process (shout) starts up and uses 4-8 % which is why you get the CPU exceeded error and must wait for the process to stop before continuing anywhere on the site..


then i send them a ticket and here is what they responded..

Due to recent upgrades in PHP and MySQL, we've noticed issues with vBulletion. You may need to install the latest version of vBulletin and implement any fixes found in their forum.

We are on the latest vbull

So there is some truth to this.. or is there? any ideas? any suggestions?

Is this host giving me a story? Do i need a new host?

Thanks in advance..!

Lenny :)

cinemablend 12-13-2005 03:25 AM

Quote:

Originally Posted by divided_by_fear
nah it just keeps going from what i seen... would be nice if it cleared but its not hard to clear out though

How do you clear it out? Haven't been able to figure that out.

I'm getting like 1000 shouts a day, I can't delete them one at a time.... and if I can't delet them they're really going to build up fast.

cinemablend 12-13-2005 03:33 AM

Or, perhaps a better question here might be is if there is a shoutbox hack that's like this that is better for forums with a LOT of users and that allows you to clear out all the posts easily since neither of these seems possible with this hack?

It seems like a great hack, and I'm currently using it, but I'm not sure it's going to continue to work well for us if we can't clear out posts and if it causes the server problems outlined above for high load forums (which ours sometimes is).


All times are GMT. The time now is 03:37 AM.

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.04306 seconds
  • Memory Usage 1,861KB
  • 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
  • (2)bbcode_php_printable
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)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