Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 16 Apr 2008, 15:25
CommanderFluffy CommanderFluffy is offline
 
Join Date: Nov 2006
external intergration error php help.

hi i had installed http://www.vbulletin.org/forum/showthread.php?p=1492172 and when i go and implement it into my own php files with its own globals i get an error

"header already sent" and what not when all my globals hold is the link to my css file. is there a way to get css to work in this without the error showing up.
Reply With Quote
  #2  
Old 16 Apr 2008, 15:29
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
If you have a question regarding a modification, the best place to ask is in the modification thread since they know the code best and are most familiar with any errors or modifications you may want.
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 16 Apr 2008, 15:35
CommanderFluffy CommanderFluffy is offline
 
Join Date: Nov 2006
this error has also hapened with other external mods. anything that references to vbulletin gives me this error
Reply With Quote
  #4  
Old 16 Apr 2008, 15:46
Opserty Opserty is offline
 
Join Date: Apr 2007
Common causes normally include some kind of (html or otherwise) output from the script.
Reply With Quote
  #5  
Old 16 Apr 2008, 15:51
CommanderFluffy CommanderFluffy is offline
 
Join Date: Nov 2006
the only html exported from my own global script is a link to the css files. ive taken out my css completely to see what would happen but then it messed up my background images that link to the css but the php from vbulletin was woring fine. anyone know how to get the css into a php script so these errors do not occur?
Reply With Quote
  #6  
Old 16 Apr 2008, 15:55
Opserty Opserty is offline
 
Join Date: Apr 2007
This was taken from the modification thread:
Here are some common causes and fixes.

Headers already sent or cookies already sent errors. Chances are that there is something, even just a space before the 4 lines of code in part 1. Edit this and ensure that there are no spaces before it.
If you can't fix it then you'll have to wait for a reply in the modification thread.
Reply With Quote
  #7  
Old 16 Apr 2008, 15:58
CommanderFluffy CommanderFluffy is offline
 
Join Date: Nov 2006
thanks for the help ill try that out. if that doesnt work ill have no idea.
Reply With Quote
  #8  
Old 16 Apr 2008, 15:59
nighthalk nighthalk is offline
 
Join Date: Oct 2005
Just put your css into the extra css fields in the style options.
Your trying to out put headers by adding the link to your css code and vbulletin already sent the headers.
Reply With Quote
  #9  
Old 16 Apr 2008, 16:01
CommanderFluffy CommanderFluffy is offline
 
Join Date: Nov 2006
oh i never thought about that. definately going to try that one out.
Reply With Quote
  #10  
Old 16 Apr 2008, 16:04
nighthalk nighthalk is offline
 
Join Date: Oct 2005
I'm pretty sure that will work.
Reply With Quote
  #11  
Old 16 Apr 2008, 16:19
CommanderFluffy CommanderFluffy is offline
 
Join Date: Nov 2006
no the css just disapears and my php doesnt reconize the style.css but it affects the forum

EDIT: placed the css link in the forums global and it worked!

Last edited by CommanderFluffy : 16 Apr 2008 at 16:24.
Reply With Quote
  #12  
Old 16 Apr 2008, 16:54
nighthalk nighthalk is offline
 
Join Date: Oct 2005
Thats where I said to put it.
Reply With Quote
  #13  
Old 16 Apr 2008, 18:00
CommanderFluffy CommanderFluffy is offline
 
Join Date: Nov 2006
woh i just noticed something now. i went to my forums directory and now its showing the error i was getting on the non vbulletin rendered page

Unable to add cookies, header already sent.
File: /home/shadowne/public_html/community/global.php
Line: 2

but my page outside the forums is fine

any ideas?
Reply With Quote
  #14  
Old 16 Apr 2008, 18:02
nighthalk nighthalk is offline
 
Join Date: Oct 2005
How did you add it?
Reply With Quote
  #15  
Old 16 Apr 2008, 18:05
CommanderFluffy CommanderFluffy is offline
 
Join Date: Nov 2006
i use the catch link

<link href="style.css" rel="stylesheet" type="text/css" /> and then the php starts afterwards
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 08:12.

Layout Options | Width: Wide Color: