The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have found the following does give me a actual user logon
PHP Code:
But I have run in to some trouble and need some understanding and help Get the following error message: Unable to add cookies, header already sent. File: C:\Inetpub\vhosts\burningtaper.org\httpdocs\forums \calendar.php Line: 119 When I try to output the value to my screen at the top of my calendar page. PHP Code:
// But this does not work why PHP Code:
Why same location in script? In the file calendar.php right after the Next line after the line 119 START MAIN SCRIPT Get the following error message either way: I tried to also use the following: Just add the following PHP code PHP Code:
In the file calendar.php right after the Next line after the line 119 START MAIN SCRIPT Unable to add cookies, header already sent. File: C:\Inetpub\vhosts\burningtaper.org\httpdocs\forums \calendar.php Line: 134 THANKS Frank H. Shaw PS I hope the PHP tags are to ones liking now? --------------- Added [DATE]1232922604[/DATE] at [TIME]1232922604[/TIME] --------------- The print() really does not work but its action leads me to think that the whole thing has to do with placement. The hooks must have something to do with this problem i am dealing with - Can or does some one have some rules of tumbs and guidelines on when and when not can i create output with out interfering with the action of the calandar.php? THANKS Frank H. Shaw |
#2
|
||||
|
||||
![]()
You cannot do any output before including global.php, etc. This includes white-space before the PHP start tag (<?php).
They are still not right. Use square brackets, like this:[php]// comment[/php] Which will appear as this: PHP Code:
|
#3
|
|||
|
|||
![]()
I found the only way to get the output to work and not interfer with the functulity of the script was to delay the output to after the following hook.
In the php code below the following will actual put my output at the bottom of the page calandar.php and I could not find a way to get it to come up at the top of the page and keep the debuging in the same script calandar.php so I can live with that for now. PHP Code:
In the file calendar.php right after the Next line after the line 119 START MAIN SCRIPT next line you can do the following: PHP Code:
I also was able to put the print_r() of my own variables varables and arrays in the next after the line 119 that does not seem to be a issue. Could there be a timeing thing or something else? Any hints about what is going on? THANKS Frank H. Shaw |
#4
|
|||
|
|||
![]()
If the board must function while debugging, then placing the debug variables in a template is the best option. For other debugging you can use echo() or print(), but you will often ned to add a exit; after the echos to display the info, but this will ofcourse stop the script execution which should not be a huge problem in a debugging situation.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|