made vbulletin powered pages. cookie error

Curtis129

New Member
i have created a few vbulletin powered pages, like forum rules and terms of service.
however.
un-registered users cannot view them.

Code:
Unable to add cookies, header already sent.
File: /home/*****/public_html/termsofservice.php
Line: 1

anyone got ideas how to manually create cookies for not logged in users?

thanks
 
Don't use an additional php file, simply create a template and point link to it...

Add a new template in the style of your choice. You can name it whatever you want, but it has to have the prefix

Code:
custom_

You are then able to call the custom page using:

Code:
http://[color=red]sitename.com[/color]/misc.php?do=page&template=[color=Red]pagename[/color]

Example.

Admincp >> Styles & Templates >> Style Manager >> In drop down choose Add New Template

Name the template for example
Code:
custom_tos

Use the following code :

HTML:
$stylevar[htmldoctype]
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body>

$header
$navbar
<!-- Custom Code Start Here -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="tcat">Title</td>
</tr>
<tr>
	<td class="alt1">Text</td>
</tr>
</table>

<!-- / Custom Code Ends here -->
$footer
</body>
</html>

Now use your web-browser and go to

Code:
http://[color=red]sitename.com[/color]/misc.php?do=page&template=[color=Red]tos[/color]

I think this is a better way to create custom pages then the tuts that can be found here eg:create php file, create template

this way only a template is needed :)
 
Is there anyway to use php code in structure? Because I get error:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:\xampplite\htdocs\forumo\upload\includes\adminfunctions_template.php(3929) : eval()'d code on line 21
 
Back
Top