The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#7
|
|||
|
|||
![]()
thank you Scandal for reply
yes I did. as you said, I add phrase group in my php file but it dosn't work yet. please take a look at my code: Code:
<?php error_reporting(E_ALL & ~E_NOTICE); define('THIS_SCRIPT', 'questions'); define('CSRF_PROTECTION', true); $phrasegroups = array('global'); $specialtemplates = array(); $globaltemplates = array('questions'); $actiontemplates = array(); require_once('./global.php'); require_once('./includes/functions.php'); // ####################################################################### // ######################## START MAIN SCRIPT ############################ // ####################################################################### $allow= array(5,6,20,27); if(in_array($vbulletin->userinfo[usergroupid], $allow) == 0){ print_no_permission(); } $navbits = construct_navbits(array('' => $vbphrase['questions'])); $navbar = render_navbar_template($navbits); $pagetitle = 'Questions'; $templater = vB_Template::create('questions'); $templater->register_page_templates(); $templater->register('navbar', $navbar); $templater->register('pagetitle', 'questions'); print_output($templater->render()); ?> HTML Code:
<form action="" method="get"><div class="datagrid"><table> <thead><tr><th>{vb:rawphrase quiz_question_text}</th><th>{vb:rawphrase quiz_choices}</th><th>{vb:rawphrase quiz_score}</th></tr></thead> <tfoot><tr><td colspan="4"><div id="paging"><input type="submit" value="{vb:rawphrase quiz_submit_question}"></div></td></tr></tfoot> <tbody><tr> is there any thing wrong? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|