The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Why Custom Page is Blank?
I have created new page in vbulletin using the following code but is it blank
Please let me know the issue First I prepared new custom page in named we-support.php <?php error_reporting(E_ALL & ~E_NOTICE); define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'we-support'); $phrasegroups = array(); $specialtemplates = array(); $globaltemplates = array( 'test' ); $actiontemplates = array(); require_once('./global.php'); if ($vbulletin->options['ctab_enable']) { $noaccessgids = explode(",", $vbulletin->options['limit_groups']); if (is_member_of($vbulletin->userinfo, $noaccessgids)) { print_no_permission(); }else{ $content = $vbulletin->options['content']; } $pagetitle = $vbulletin->options['custom_title']; $navbits = array(); $navbits[$parent] = $vbphrase['custom_message_title']; $navbits = construct_navbits($navbits); $navbar = render_navbar_template($navbits); $templater = vB_Template::create('test'); $templater->register_page_templates(); $templater->register('content', $content); $templater->register('navbar', $navbar); print_output($templater->render()); } ?> ============================ And Prepared new template named test $stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <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> $footer </body> </html> But When I opened it I found blank page http://college-chat-rooms.gradchat.net/we-support.php --------------- Added [DATE]1307024682[/DATE] at [TIME]1307024682[/TIME] --------------- Issue solved After deleting these lines the issue solved if ($vbulletin->options['ctab_enable']) { $noaccessgids = explode(",", $vbulletin->options['limit_groups']); if (is_member_of($vbulletin->userinfo, $noaccessgids)) { print_no_permission(); }else{ $content = $vbulletin->options['content']; } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|