The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Hello
I've created 1 custom page by referring to vBulletin API Basics topic posted by Psionic Vision. Here is topic url : https://vborg.vbsupport.ru/showthread.php?t=98009 I'm getting following error ![]() Quote:
Quote:
Quote:
Quote:
I also wanna allow guests on test.php or at least it should print vbulletin error message. Here is what i've done so far to get rid of above error : 1. Removed all whitespace etc. 2. Tried "<?php" tag without closing php tag "?>" 3. Tested after removing "include('aaa/tmp.php');" from test.php 4. Removed all "echo", "print" etc. from tmp.php The possible cause of above error is i'm trying to send data or something to browser before vbulletin cookies. So i traced my entire code and found i'm not sending anything to browser before cookies (or am i?). |
#2
|
||||
|
||||
![]()
You posted this exact same question on vb.com and I answered over there.
|
#3
|
||||
|
||||
![]() Quote:
Quote:
Please explain more... how do i do that? Can you post the code segment? Here is what i've tried so far : Quote:
Well can you tell me something, if i write "include(file.php)" in else part before "eval('print...')" can cause error?? But still i think as cookies are already sent because of *no permission* condition, it would've worked... EDIT : I tried all above things but still nothing is working. |
#4
|
||||
|
||||
![]()
Right after including global.php is when you want to do the lines about whether the user is logged in:
PHP Code:
|
#5
|
||||
|
||||
![]() Quote:
BTW is there any way i can permit guests also on same page. Because if we put *no permission* thing then only registered members can view the page. Is there any way we can get around this cookies problem? I also tried ob_flush(); But still aint working :erm: |
#6
|
||||
|
||||
![]() Quote:
Sure, by not putting in that line. The code says 'if there is no userid, then give them a no permission page'. If you don't want that to happen, why do you have it in your code? |
#7
|
|||
|
|||
![]()
Apologies for digging up this old thread.
I was wondering if the OP found a solution? I was stuck in EXACTLY the same position and the solution was quite strange. All I did was to ensure that test.php was saved without the Byte Order Mark. For those who don't know, the BOM allows applications to know what the encoding of the file is. You can read all about it here Software like notepad++ (free) make it very easy to save a file without the BOM. |
#8
|
||||
|
||||
![]()
Yes, BOM could cause similar problem. Saving file in utf encoded format could also cause garbage character data to be displayed on page. All we gotta do is save file in ANSI/ASCII. I use Ultra Edit for writing codes.
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|