The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I have tried to define a new function inside the attachment datamanager
PHP Code:
Am i doing something wrong? this is how it is described in the vBulletin manual. |
|
#2
|
||||
|
||||
|
Can you give the exact location where this is stated in the manual?
As it seems to be wrong ![]() You cannot create methods for objects at runtime; this is a PHP limitation. What you can do is using a lamda function that calls your custom verification function: PHP Code:
|
|
#3
|
|||
|
|||
|
Sorry, my mistake, the code in the manual shows what you've pasted, i was trying to use VF_METHOD where it should have been just a string.
Got it working now, thanks
|
![]() |
|
|