The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Creating Custom Page = blank page :(
I followed the directions in [How-To] vBulletin API Basics: Creating Custom Pages & Misc., and got only a blank page. And yes, I did create a new template in Style Manager.
To make it easier for testing purposes, I didn't change anything in the script provided. I created the page called test.php, as it said to do, and created two templates called test_mytesttemplate1 and test_mytesttemplate22 (because that was in the script as well). And I did try it with only test_mytesttemplate1, taking the reference to the other template out of the script. All I get is a blank page. This is on a 3.8.1 forum. Here is the exact code I am using: For the page called test.php I'm using this code: PHP Code:
For both templates (test_mytesttemplate1 and test_mytesttemplate22) I'm using this code: HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> $headinclude <title>$vboptions[bbtitle]</title> </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat">My Custom Page Title</td> </tr> <tr> <td class="alt1">Other Bluff...</td> </tr> </table> $footer </body> </html> |
#2
|
||||
|
||||
Did you check your error_logs (or put ini_set("display_errors", true); in your config.php page to display errors)? Also, did you add your template into the style you are currently using on the site (no template in that style means blank page)?
|
#3
|
|||
|
|||
That was the problem right there, thanks Lynne. The client had a customized style named Default Style, and the same customizations in Style 2, which confused the issue. All good now.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|