The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Does anything in this need to be registered or pre-registered?
Plugin hook location - profile_start: PHP Code:
|
|
#2
|
||||
|
||||
|
This looks more correct to me:
Code:
if ($_REQUEST['do'] == 'ignoredthreadslist')
{
construct_usercp_nav('ignoredthreadslist');
$navbits[''] = $vbphrase['ignored_threads_list'];
$templater = vB_Template::create('usercp_ignoredthreadslist');
$templater->register_page_templates();
$templater->register('templatevar',$templatevar);
$templatename = $templater->render();
}
if ($_REQUEST['do'] == 'ignorethread' || $_REQUEST['do'] == 'unignorethread')
{
$templater = vB_Template::create('bogus');
$templater->register_page_templates();
$templater->register('templatevar',$templatevar);
$templatename = $templater->render();
}
|
|
#3
|
|||
|
|||
|
Thanks BBR-APBT, now the question I added was how to preregister variables without doing all the template creating of a custom template, etc?
--------------- Added [DATE]1263784378[/DATE] at [TIME]1263784378[/TIME] --------------- And I have read this thread https://vborg.vbsupport.ru/showthread.php?t=228078 multiple times but it doesn't mention doing preregister without having to register a created template. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|