I am not too sure if this help but
PHP Code:
if($_GET['do'] == 'list')
I think should be
PHP Code:
if($_REQUEST['do'] == 'list')
Then if your list.php file can be used in the template system you can add this in the if statement
PHP Code:
eval('print_output("' . fetch_template('LIST') . '");');
So the code would be
PHP Code:
if($_REQUEST['do'] == 'add'){
eval('print_output("' . fetch_template('add') . '");');
exit;
} else if($_REQUEST['do'] == 'list'){
eval('print_output("' . fetch_template('list') . '");');
exit;
} else
{
else
{
eval('print_output("' . fetch_template('default_template') . '");');
}
That final else is if someone doesn't visit yourfile.php?do=list or ?do=add they get that files home page. You just have to create the corresponding templates in vBulletin (list, add, default_template)
You may find this better in the Programming Discussion Section, mine is just a guess.