What's your "Paste" template got in it? Chances are that you forgot to add the needed security token.
In whatever <form> you have, be sure to add the tag
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
Some advice, though. Don't access
$_POST,
$_GET, or
$_REQUEST directly. Instead of:
PHP Code:
$title = $_POST['name'];
use
PHP Code:
$title = $vbulletin->input->clean_gpc('p', 'name', TYPE_STR);
And stuff like that. vBulletin's cleaning functions make it so that you don't have to worry about data being "bad" or of a type you don't want.