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


All times are GMT. The time now is 01:23 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.03485 seconds
  • Memory Usage 1,766KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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