PDA

View Full Version : Interesting


Dan
05-27-2003, 08:46 PM
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:



Step 1 of 1 find:


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


Just under that add:

// 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