Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by (Guest)
Developer Last Online: Jan 1970 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 12-24-2000 Last Update: Never Installs: 0
 
No support by the author.

Does anyone know why it gives me this error right above my news?

Code:
Warning: Cannot add header information - headers already sent by (output started at /www/egamers/index.php:14) in global.php on line 755

Warning: Cannot add header information - headers already sent by (output started at /www/egamers/index.php:14) in global.php on line 758
It only says that if the user hasn't logged in yet.

Could anyone help me?

I've tried e-mailing AC-3, but I didn't get a reply, so I'm going to try asking here, to see if anyone else could help.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-25-2000, 03:03 AM
Guest
 
Posts: n/a
Default

Hmm, someone must know? Please help.. would be very grateful.
Reply With Quote
  #3  
Old 01-17-2001, 03:44 PM
Guest
 
Posts: n/a
Default

I am getting the same errors

The lines of code it messes up are

setcookie("bblastvisit",$bblastactivity,mktime(0,0 ,0,0,0,2020),$cookiepath);

and

setcookie("bblastactivity",time(),mktime(0,0,0,0,0 ,2020),$cookiepath);

Here's a cut of that whole area of code

if(isset($isnews)) {
if ($bbuserid==0) {
$bbpassword="";
if (isset($bblastvisit)!=0 and $bblastvisit!=0) {
$bblastvisit=$bblastvisit;
if (isset($bblastactivity)==0 or $bblastactivity==0) {
$bblastactivity=time();
}
if (time()-$bblastactivity>$cookietimeout) {
setcookie("bblastvisit",$bblastactivity,mktime(0,0 ,0,0,0,2020),$cookiepath);
$bblastvisit=$bblastactivity;
}
} else {
setcookie("bblastvisit",time(),mktime(0,0,0,0,0,20 20),$cookiepath);
$bblastvisit=time();
}
setcookie("bblastactivity",time(),mktime(0,0,0,0,0 ,2020),$cookiepath);

$lastvisitdate=date($dateformat,$bblastvisit+(($ti meoffset)*3600))." ".date($timeformat,$bblastvisit+(($timeoffset)*360 0));

}
}

If someone is able to help I would appreciate it.
Reply With Quote
  #4  
Old 01-22-2001, 07:47 AM
Guest
 
Posts: n/a
Default

Anyone else that is using this, I ended up hacking the news.php to become my index page.

But I am having a weird issue with it somehow double loading the index page.
Reply With Quote
  #5  
Old 01-22-2001, 12:30 PM
Guest
 
Posts: n/a
Default

You can't set or change headers or cookies after any content whatsoever is sent to the browser. This can be as small as a single space above your opening PHP tag. Without looking at your entire code, I couldn't tell you what is exactly wrong but it appears to be that you are trying to set the cookies after you display the screen.

Here is the code I use for the weblog system and it works just fine.
Code:
<?php

require("global.php");

//   Newsforum -- The forum that the script will pull news headlines from.  Unless you want all
//   your users to be able to update your news, you may want to consider limiting this forum to
//   Moderators posting new threads...this is easily done via the vB control panel.

$newsforum = 11;

//   News Limit -- How many stories should be displayed?

$bfc_newslimit = 5;

$isnews = 1;
$newsbits="";
$threads=$DB_site->query("SELECT * FROM thread WHERE forumid=$newsforum ORDER BY dateline DESC LIMIT $bfc_newslimit");
while ($thread=$DB_site->fetch_array($threads)) {
  $postdate=date($dateformat,$thread[dateline]+(($timeoffset+$bbtimezoneoffset)*3600));
  $posttime=date($timeformat,$thread[dateline]+(($timeoffset+$bbtimezoneoffset)*3600));
  $replycount=$thread[replycount];
  $username=$thread[postusername];
  $newstitle=$thread[title];
  $threadid=$thread["threadid"];
  if ($replycount == "0") {
    $replies = "";
  }
  elseif ($replycount == "1") {
    $replies = "| (1 Comment)";
  }
  else {
    $replies = "| ($replycount Comments)";
  }
  $posts=$DB_site->query("SELECT post.userid, pagetext,user.username as username
                          FROM post LEFT JOIN user ON (post.userid = user.userid)
                          WHERE threadid=$threadid ORDER BY postid LIMIT 1");
  $postinfo=$DB_site->fetch_array($posts);
  $userid=$postinfo[userid];
  $username=$postinfo[username];
  //$dept=$postinfo[dept],
  //$category=$posts[category];
  $message=bbcodeparse($postinfo[pagetext],$forumid,1);
  eval("\$newsbits .= \"".gettemplate("newsbit")."\";");
}

eval("echo dovars(\"".gettemplate("news")."\");");
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06702 seconds
  • Memory Usage 2,233KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete