thanks bananalive!
Any idea how to achieve this per form (some forms are specifically for a site outside of the forums and other are for the forums themselves)
PS: currently using a conditional in the header, footer and navbar templates to remove them globally for misc.php.
Quote:
Originally Posted by bananalive
Find in Plugin: Easy Forms Part 1:
PHP Code:
eval('$html = "' . fetch_template('form_view') . '";');
$canviewformlist = unserialize($vbulletin->options['canviewformlist']);
if (!$canviewformlist OR !is_member_of($vbulletin->userinfo, $canviewformlist))
{
$navbits = construct_navbits(array(
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
else
{
$navbits = construct_navbits(array(
'misc.php?do=forms' . $vbulletin->session->vars['sessionurl_q'] => construct_phrase($vbphrase['forms']),
'' => construct_phrase($vbphrase['view_form'], $form['title'])
));
}
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('shell_blank') . '");');
Replace:
PHP Code:
eval('print_output("' . fetch_template('form_view') . '");');
|