vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB Shoutbox 1.0 (https://vborg.vbsupport.ru/showthread.php?t=38698)

Sam FT 05-04-2003 12:32 AM

Yes, I really like this shoutbox alot. But I am having a problem with one of the optional feature, the mass shout pruning. I am running vb 2.3.0 and uploaded admin_shoutbox.php file and replaced the code in the index.php file in the /admin directory. When I try to delete a shout either by userid or by date it changes screens says "0 shout(s) deleted" and nothing happens. I didn't know if anybody had any ideas that could help me.

hawkin 05-07-2003 02:05 PM

Im not sure if this allready has been suggested, but I'll post it anyway (25 pages is alot!):

I came across the script used alot of processing time, and figured at last it was cause one LIMIT statement is not set up (and that will affect performace very much, if you have a shoutbox table with alot of shouts, as us: 127.000 shouts)

Find this line:
$limit = ($start > 0) ? "LIMIT $start, ".($shout_limit + 1) : '';

and change it to:
$limit = ($start > 0) ? "LIMIT $start, ".($shout_limit + 1) : "LIMIT $shout_limit";

It will speed up the default page (when you are not browsing for older shouts) quite a bit for big shoutboxes (we went from 11 sec to 2 sec)

TWTCommish 05-07-2003 11:01 PM

Eh? There's a limit on every query except the counters, last I checked.

hawkin 05-08-2003 12:11 AM

not if $start=0
The shouts query will query ALL the shouts in the shouts table, even when you only need the first $shout_limit.

if $start >0, then yes, there is a limit set (and thats why browsing the history is quicker)

Icheb 05-19-2003 05:24 PM

Did you guys ever figure out why the page attempts to download itself when you are submitting a shout?
I tried to fiddle with the templates and the file but couldn't get around it.

gmarik 05-24-2003 12:18 PM

Has anybody thougth of making a really small chat of it?
Like making a folder chat and making it really look like chat, leaving all the functions, changing the layout and minimizing all the not-needed functions?!

Splitfyre 05-29-2003 08:05 PM

I like Shoutbox although my big concern is what my users might type in there. Is there any way to bann certain words from showing in the Shoutbox?

Chris M 06-07-2003 04:39 PM

@Splitfyre - Find in shoutbox.php:
Code:

        $shout_text  = bbcodeparse($shout_text);
Add below it:
Code:

        $shout_text  = censortext($shout_text);
Now activate censoring in the admin options;):)

For those of you who want to know how to limit the number of smilies allowed in the shoutbox:
Find:
Code:

  if ($type == 'shout' && $comment_submit && trim($message) != '' && $bbuserinfo[userid] > 0) {
add below:
Code:

    // check max images
    if ($maximages!=0) {
      $parsedmessage=bbcodeparse($message);
      if (countchar($parsedmessage,"<img")>$maximages) {
        eval("standarderror(\"".gettemplate("error_toomanyimages")."\");");
        exit;
      }
    }

:)

Satan

Phoenix_Fighter 06-08-2003 02:31 AM

Hi, one of the admins on my board installed this hack for me. Problem is that i think he messed up with the code somewhere... it seems that all the previous shouts that should show are not showing up and i am not sure why. Would anyone care to give me some ideas?

-Sidekick- 06-08-2003 06:11 AM

Maybe I missed it, but is there a way to limit how often someone can shout in the shoutbox?


All times are GMT. The time now is 12:44 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.01589 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_code_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
  • (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