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)
-   -   New BB tag to do rainbow text... (https://vborg.vbsupport.ru/showthread.php?t=47509)

Robink 02-07-2003 06:28 AM

I always get the error "Division by zero" :(

Robink 02-07-2003 06:29 AM

In particular it sayd this:

Warning: Division by zero in /home/virtual/site13/fst/var/www/html/forums/admin/functions.php on line 844


I tried both versions of the hack :(

Classy 04-06-2003 11:31 PM

Nice addition :D Installed and works on 2.3.0
Clicked install :D Thank you

Zzed 04-07-2003 06:34 AM

Quote:

02-07-03 at 01:29 AM Robink said this in Post #62
In particular it sayd this:

Warning: Division by zero in /home/virtual/site13/fst/var/www/html/forums/admin/functions.php on line 844


I tried both versions of the hack :(

Please Email me a copy of your functions.php.

My Email is: edwink@seebeyond.com

MooMan65 04-30-2003 02:52 AM

I get a division by zero error every time someone types in [rainbow][/rainbow] without anything in it. The error only appears on the page at which it's typed but doesn't go away, it just accumulates over time. Otherwise the hack works perfectly, but it's that error which is stopping me from installing it, as not all members are kind enough to NOT type it in. :( And way to stop this?

Zzed 04-30-2003 04:31 AM

I will correct the bug and post a fix. I'll do that later tonight.

Zzed 04-30-2003 08:48 AM

I have fixed all the attached versions for the "division by zero" error. ;)

Boofo 04-30-2003 08:53 AM

Quote:

Today at 04:48 AM Zzed said this in Post #67
I have fixed all the attached versions for the "division by zero" error. ;)
I'm still using version 1 with the code in the functions.php. What would be the fix for that?

Zzed 04-30-2003 09:16 AM

I fixed all 3 versions. ;)

In function dorainbow()
Look for:
Code:

$len = strlen($code);
Add this directly below it:
Code:

  if($len == 0) {
    return($code);
  }


lioncool1589 09-08-2003 11:46 PM

would be nice if user can change diff color


All times are GMT. The time now is 08:07 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.01193 seconds
  • Memory Usage 1,730KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (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