vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin.org Site Feedback (https://vborg.vbsupport.ru/forumdisplay.php?f=7)
-   -   prob with vbull (https://vborg.vbsupport.ru/showthread.php?t=53858)

Boofo 06-05-2003 02:55 PM

I had that turned off in my usercp. Now that I turn it on, it get the same error. Does that only happen when it is the first post in the thread? I have never had that happen on my site.

Xenon 06-05-2003 03:55 PM

nope, the problem is on how much codeboxes are there.....

the algorithm seems to be very intense...

Boofo 06-05-2003 03:58 PM

Is there any way to fix it? I don't want to run into this same thing on down the road.

Xenon 06-05-2003 06:58 PM

nope, no way, at least i didn't found one till now.
i already optimized it as strong as possible, but now the str_replace with a large array of replacement vars gives it the rest... ;)

Boofo 06-05-2003 07:14 PM

So, you found a fix or you haven't? I just tried it again and I still get the error.

Xenon 06-06-2003 10:42 AM

nope i didn't find a fix.

the bug occures more often in the past, i heve fixed it in a way that it doesn't occure as much as it was at first, but i can't fix it totally

Boofo 06-06-2003 05:35 PM

Can you tell me what you did to make it better than it was?

Xenon 06-06-2003 09:41 PM

do you use the hack yourself?

i thought it wasn't released???

well i have rewritet it a bit, to use a cache, so it would not create the functions names array with each post as it did before

Boofo 06-06-2003 09:56 PM

Quote:

Today at 05:41 PM Xenon said this in Post #18
do you use the hack yourself?

i thought it wasn't released???

well i have rewritet it a bit, to use a cache, so it would not create the functions names array with each post as it did before

I think Firefly released this a long time back. Can you share the re-write? ;)

Xenon 06-06-2003 10:03 PM

i don't know the original coding anymore but this is the function we use now:

PHP Code:

function showfunclinks($buffer)
{
    global 
$allfuncs;
    static 
$searchfuncarray$replacfuncarray;
    if (!isset(
$searchfuncarray)) 
    {
        
$searchfuncarray = array();
        
$replacfuncarray = array();
        foreach (
$allfuncs['internal'] as $name
        {
            
$searchfuncarray[] = "/([^a-z])$name(<\/font><font color=\"" ini_get('highlight.keyword') . "\">){0,1}( {0,1})\(<\/font>/i";
            
$replacfuncarray[] = "\\1<a href=\"http://www.php.net/$name\" target=\"_blank\">$name</a>\\2\\3(</font>";
        }
    }
    
$buffer preg_replace($searchfuncarray$replacfuncarray$buffer);
    return 
$buffer;




All times are GMT. The time now is 11:38 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.01095 seconds
  • Memory Usage 1,739KB
  • 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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