The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#15
|
|||
|
|||
![]()
I'm looking at upload_accept, but it doesn't look like the filehash has been created yet and I don't think I have the file data yet to create one myself. I'll keep digging.
Thanks, James --------------- Added [DATE]1328546156[/DATE] at [TIME]1328546156[/TIME] --------------- Quote:
This works: Code:
if (!($result = $this->data->save())) { echo "<script>alert('class_upload error ". $this->data->errors[0] ."')</script>"; if (empty($this->data->errors[0]) OR !($this->registry->userinfo['permissions']['adminpermissions'] & $this->registry->bf_ugp_adminpermissions['cancontrolpanel']) AND ($this->data->errors[0] != "This file is not allowed to be uploaded on our website.")) { $this->set_error('upload_file_failed'); } else { $this->error =& $this->data->errors[0]; } } Thanks, James |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|