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: 01-01-2001 Last Update: Never Installs: 0
 
No support by the author.

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

I installed WebLog v1.2 from AC-3. I get the problem above when I:

1) Add any HTML to my index.php (a separate one, not vB), besides the <?php include("news.php"); ?> code.
2) I'm not logged into vB

I can get rid of it by:
1) Logging into vB first (or before, just cookied)
2) Having only <?php include("news.php"); ?> in my index.php file.

I looked for line 759 in global.php, the line it's referring to is: if (isset($isnews)) {. That code is from WebLog (in case you didn't know).

I asked Ed how he did it on his vBulletin.org site, but he said he couldn't remember. I tried e-mailing AC-3, but got no response.

I'll PayPal $20 USD to the first person to help me fix this.

BTW: Site URL is: http://egamers.net-games.com/

Sorry for cross-posting this in the PHP Coding forum. I just really need help with this

Show Your Support

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

Comments
  #2  
Old 01-01-2001, 11:51 PM
Guest
 
Posts: n/a
Default

What is line 2 in index.php?
Reply With Quote
  #3  
Old 01-01-2001, 11:57 PM
Guest
 
Posts: n/a
Default

All I have in my index.php file now is:
Code:
<html>
<?php include("news.php"); ?>
</html>
Reply With Quote
  #4  
Old 01-02-2001, 12:22 AM
Guest
 
Posts: n/a
Default

Well, mines very hacked up. My news(2).php doesn't output directly:

Code:
$news .= "
<!-- Border -->
	<center><table width=\"95%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td bgcolor=\"#000000\">
<!-- End Border -->

<table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"2\">
<tr bgcolor=\"#006633\">
	<td valign=\"middle\"><font size=3 face=\"Verdana, Arial\" color=\"#FFCC00\"><b>$myrow[title]</b></font></td>   	   	   		
</tr>
<tr bgcolor=\"#CCCCCC\">
	<td valign=\"top\">
	<table width=100% border=0 cellpadding=2 cellspacing=0>
	<tr>
		<td width=100% valign=\"top\"><font size=2 face=\"Verdana, Arial\"><b>Posted by: <a href=\"mailto:$user[email]\">$myrow[postusername]</a> on $postdate @ $posttime</b></font><font size=2 face=\"Verdana, Arial\"><BR>
   	<b>";
   	
if ($posts["dept"]) { $news .= "from the ".$posts["dept"]." dept."; }
$news .= "</b><P>$message<P><a href=\"$forum_url/showthread.php?threadid=$myrow[threadid]\">Read More</a> $replies | <a href=\"$forum_url/newreply.php?action=newreply&threadid=$myrow[threadid]\">Reply to this Article</a>";
if ($posts["category"]) { 
	$news .= "| <a href=\"$forum_url/category.php?category=$posts[category]\">$posts[category]</a>";
}
$news .= "</font></td>";
if ($posts[category]) {
	$news .= "<td valign=\"top\" align=\"center\"><a href=\"$forum_url/category.php?category=".$posts["category"]."\"><img src=\"$icon_url/".$posts["category"].".gif\" border=\"0\" hspace=\"2\" vspace=\"2\" alt=\"".$posts["category"]."\"></a></td>\n";
}
$news .= "
   </tr>
   </table>
	</td>
</tr>
</table>

<!-- Border -->
	</td></tr></table></center>
<!-- End Border -->
<BR>";
Reply With Quote
  #5  
Old 01-02-2001, 12:30 AM
Guest
 
Posts: n/a
Default

What is that exactly Ed? I'm kinda PHP illiterate
Reply With Quote
  #6  
Old 01-02-2001, 01:00 AM
Guest
 
Posts: n/a
Default

You'll have to replace the printf with the same code into a variable. I'm NOT doing this for you. It's simple, but tedious.

Then just:

<?php
require("news.php");
echo "<html>$news</html>";
?>
Reply With Quote
  #7  
Old 01-02-2001, 02:16 AM
Guest
 
Posts: n/a
Default

Parse error: parse error in news.php on line 83

If I replace the printf line with $news .= "

Ugh..
Reply With Quote
  #8  
Old 01-02-2001, 04:35 AM
Guest
 
Posts: n/a
Default

Could a few ppl here do me a lil fav?

Could you go to http://egamers.net-games.com/ & tell me if you still get that cookie or header error?

Somehow it magically fixed itself after about 3 weeks of installing it over & over.
Reply With Quote
  #9  
Old 01-02-2001, 11:44 AM
Guest
 
Posts: n/a
Default

Quote:
Originally posted by _
Could a few ppl here do me a lil fav?

Could you go to http://egamers.net-games.com/ & tell me if you still get that cookie or header error?

Somehow it magically fixed itself after about 3 weeks of installing it over & over.
Error has gone,
Reply With Quote
  #10  
Old 01-02-2001, 12:12 PM
Guest
 
Posts: n/a
Default

I'm such an idiot!

Thank you Ed.. you fixed my problem

My original index was:
Code:
<html>
<?php require("news.php"); ?>
</html>
Then Ed kinda told me to put it this way:
[CODE]
<?php
echo "<html>$news</html>
?>

From there I figured out how to do it
Code:
<?php
echo "{Header code here}"
require("news.php");
echo "{Footer code here}"
?>
No more errors! Wheee..

Thanks again Ed.. if you want.. I still have that $20.
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 07:29 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.04124 seconds
  • Memory Usage 2,270KB
  • Queries Executed 23 (?)
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
  • (4)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete