The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Then you need something like in vBa CMPS that does a search and replace I guess.
|
#12
|
||||
|
||||
Quote:
|
#13
|
|||
|
|||
Quote:
I really appreciate your help. This has been quite strange. I was repeatedly getting error codes when trying to use the chdir but now I'm not and everything seems to be working with the exact same code I tried before. I mean exactly. There is one other problem now: I have additional html on the page after the php tags which simply does not show up now, not on the page, not on the page source code. Is there a trick I'm missing? Edit: I spoke too soon. Before I would get the errors in Firefox immediately and eventually in Safari. Tonight all seemed well in Safari, even after clearing the cache. In Firefox, I again get the error message: Unable to add cookies, header already sent. File: /home/xxxx/public_html/index-test.php Line: 2 Here is the entire code I'm trying now: <base href="forum/" /> <?php chdir('forum/'); ?> <?php include ("calendar.php"); ?> (If I don't use the base href the css does not work. I even tried a link href for the .css file instead but it does not work.) This is the page: http://www.lahabraevents.com/index-test.php I feel like I am going crazy. Obviously, I could use any help you could offer. Much thanks. David |
#14
|
||||
|
||||
Add your base element in the headinclude template, and use an absolute URL (http://www.site.com/forum). Use absolute paths (i.e. /home/user/public_html) for chdir().
|
#15
|
|||
|
|||
Quote:
I feel like I should apologize for taking your time. You have been most gracious. I would like to think we are making progress. I added the base element to the headinclude template using the absolute URL as suggested. I added to the index-test.php page: chdir('/home/xxxx/public_html/forum') The CSS worked in Safari but not Firefox on the index page. I added a link href to the .css file in the index page and now that works (I had to use the absolute URL, relative did not work). I no longer get error messages and my html footer now displays again. Unfortunately, the original issue remains. The user login status and the calendar view links do not display correctly. I am wondering if this is related to the include itself. If I use a relative path, the page does not work, I only get error codes. The code now is: include ("http://www.lahabraevents.com/forum/calendar.php"); If you have a magic wand to make this work, I would be most appreciative. Thanks again, David |
#16
|
||||
|
||||
And the errors are?...
|
#17
|
|||
|
|||
With this current code, no errors but still the original issues:
headinclude base href="http://www.lahabraevents.com/forum/" index-test.php chdir('/home/xxxx/public_html/forum') link href="http://www.lahabraevents.com/forum/clientscript/vbulletin_css/style-b391d83b-00002.css" rel="stylesheet" type="text/css" include ("http://www.lahabraevents.com/forum/calendar.php"); Error If I change the include to a relative path, I get the same errors I have been fighting. include ("calendar.php"); Error: Unable to add cookies, header already sent. File: /home/xxxx/public_html/index-test.php Line: 7 Hopefully I am missing something simple. Thanks again, David |
#18
|
||||
|
||||
It is very hard to tell what you have done since you are not using the php or html tags to quote exactly what you code is. One thing I have noticed it your chdir is not ending in a slash and then your include is not starting with a slash. Perhaps that is a problem? I would try:
PHP Code:
|
#19
|
|||
|
|||
Quote:
Thanks for the suggestion. I have tried so many variations I have ended up going in circles. The above gives the same error code. If I add a slash to the end of the chdir path and use any relative path variation for the include, same error. If I add a slash to the chdir path and use the absolute path for the include, no error but the original issue exists. Examples: 1 PHP Code:
PHP Code:
Unable to add cookies, header already sent. File: /home/xxxx/public_html/index-test.php Line: 7 2 PHP Code:
PHP Code:
Warning: main(/calendar.php) [function.main]: failed to open stream: No such file or directory in /home/xxxx/public_html/index-test.php on line 8 Warning: main(/calendar.php) [function.main]: failed to open stream: No such file or directory in /home/xxxx/public_html/index-test.php on line 8 Warning: main() [function.include]: Failed opening '/calendar.php' for inclusion (include_path='.:/usr/lib/php') in /home/xxxx/public_html/index-test.php on line 8 3 PHP Code:
PHP Code:
Unable to add cookies, header already sent. File: /home/xxxx/public_html/index-test.php Line: 7 4 PHP Code:
PHP Code:
Unable to add cookies, header already sent. File: /home/xxxx/public_html/index-test.php Line: 7 5 PHP Code:
PHP Code:
thanks, David |
#20
|
||||
|
||||
But, what is your entire code? Unable to add cookies usually means you have it doing 'header-type' stuff twice. Once you start to write your page, you can't go back and try to set a cookie again. So, it could be that you are doing things out-of-order in your page. You may have to try rearranging your php.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|