Quote:
Originally Posted by Lionel
I managed to get attachments to display, but I am having a hard time with editpost (when greater than post id#1)
I am also having a hard time with permissions. I thought of disabling editpost but it goes thru
|
look at newattachment.php and attachment.php if the editpost method is used vBulletin wants a postid ($postid) i think you somehow need to pass that variable in the newattachment template there's a hidden variable called edittpost (coming from a form) so i guess something like
PHP Code:
$vbulletin->input->clean_gpc('p','editpost',TYPE_BOOL);
would be needed.Also in the editpost method you need to pass this to newattachment.php?$session[sessionurl]&p=$postinfo[postid]&editpost=1&postsstarttime=$poststarttime&posthash =$posthash
in the admincp file (vbsupport.php) are to manny security holes $_REQUEST values being used directly(they must be cleaned).The database being queried directly etc etc
this needs a start from scratch otherwise some holes will manage to slip in