The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Questions and errors: "Create your own vBulletin page" - receiving errors
Hello, my VB4 CMS is installed here: '/home/user/public_html/myforum
I am using/trying to create a custom page with the same template as in the example. So this is the code of my test.php [the test.php is inside /home/user/public_html/myforum/concorso]: PHP Code:
In the test.php there is a field: PHP Code:
Code:
Parse error: syntax error, unexpected T_VARIABLE in /home/user/public_html/myforum/concorso/test.php on line 46 Question: Why I get that error? What kind of code should go there? If I want to put some <script> and html, should it go here in the test.php or in the template? --------------- Added [DATE]1284628226[/DATE] at [TIME]1284628226[/TIME] --------------- If I in the browser I stay in the test.php page for long time (about 10 - 20 minutes) and then I refresh the page, this is what I get: Code:
Unable to add cookies, header already sent. File: /home/user/public_html/myforum/concorso/test.php Line: 1 Question 2: why this is happening? How to resolve it? |
#2
|
||||
|
||||
You cannot just add text like this into your php page:
PHP Code:
What are you trying to do there? |
#3
|
|||
|
|||
I need to put something like this, not the same, but very similar:
HTML Code:
<form method="post" action="https://app.xxxx.com/main.php?moduleName=fm_subscribers&action=add_subscriber"> <input type="hidden" name="subscribers_list_hash" value="xxxxx" /> <label for="freshmail_email"> Email </label><br /><input type="text" name="xxxmail_email" id="xxxmail_email"><br /> <input type="submit" value="confirm"> </form> Where should I put this? |
#4
|
||||
|
||||
The html goes into the template. php goes into the php file.
|
#5
|
|||
|
|||
Ok thanks, I'll try it out.
What about the "Unable to add cookies, header already sent." message that I get when I have the page open for long time and then press refresh? |
#6
|
||||
|
||||
You get that with the totally default test page and test template?
|
#7
|
|||
|
|||
yes, exactly using the template and test.php as in the first page of th article, no changes. Also file names and template names are the same. Exactly copy and paste.
The only change is the: chdir ('/home/user/public_html/myforum'); It happens only when refreshing the test.php page |
#8
|
||||
|
||||
Make sure you are using a text editor (not something like Word, but one just for text or php), and also make sure you put no extra lines or spaces before the <?php
|
#9
|
|||
|
|||
I always use Notepad++, and I confirm there are no spaces before <php
Now I will try to see if I get the same cookies error after disable my mods and I'll let you know |
#10
|
|||
|
|||
Update:
I disabled the whole plugin system from the settings in the cp, but I get the same error. Here attached: -test.php -screenshot of the error message -screenshot of the template -screenshot of the filetree Password via PM |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|