vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Interesting (https://vborg.vbsupport.ru/showthread.php?t=53466)

Dan 05-27-2003 08:46 PM

Interesting
 
Quote:

Warning: Cannot add header information - headers already sent by (output started at /home/eternalgamer/www/forums/admin/functions.php:5613) in /home/eternalgamer/www/forums/admin/functions.php on line 3956
I was trying to install the stars hack...... I installed it once on vb 2.3.0 testboard of mine that was hacked to death and now for some reason when I try to get it to work now it won't.

Running vB 2.3.0

and this is the installation part for the functions.php

Step 1 of 1 find:


PHP Code:

Step 1 of 1 find


        if (
$post['receivepm'] and $enablepms==1) {
            eval(
"\$post[pmlink] = \"".gettemplate("postbit_sendpm")."\";");
        } else {
            
$post[pmlink] = "";
        } 

Just under that add:
PHP Code:

        // Stars Hack
        
$sli 0;
        while (
$sli $post[starlevel]) {
        
$post[stars] .= "<img src=\"images/stars/$post[starimg].gif\" border=\"0\">";
        ++
$sli;
        }
        
// Stars Hack End 


assassingod 05-27-2003 08:51 PM

I believe you get this when you edit global.php. Have you recently? I know the error says functions.php but i've seen this before and was sorted by an error on global.php

Dan 05-27-2003 10:55 PM

this problem is starting to bug me because I got it to work once and still can't figure it out

Nope I don't think I've ever edited it.... everthing has worked fine for the last month or so

Boofo 05-27-2003 11:06 PM

Have you added a hack that uses a custom template since then? I get that every once in a while if I add a hack that I forget to put the template name in the templatesused line, for some reason.

Dan 05-27-2003 11:08 PM

nope....... all I installed was the old stars hack and it works fine but I get that error at the top of every page

filburt1 05-27-2003 11:20 PM

In some file, you're either echoing data or have whitespace before or after the <? or ?> (respectively). That's the only cause.

Boofo 05-27-2003 11:37 PM

Since I installed your code that echos the templates not in the templatesused line, I sometimes get that very error which will go away when I enter the template in the line.

Dan 05-27-2003 11:58 PM

So what does that mean?

-looks confused-

filburt1 05-28-2003 12:01 AM

It's usually a safely ignorable warning.

Dan 05-28-2003 12:05 AM

But it shows at the very top of the page in.... or do only admin see that


All times are GMT. The time now is 10:03 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.00968 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_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete