benFF
07-27-2009, 11:26 AM
This is a bit of a follow on from a previous thread, but different enough to warrent its own :)
I'm using the build_new_post function to post to my forum, however all of the actual posts are failing with the error "You have used X images in your post, the maximum you are allowed is 4."
The thing is, I have the maximages (maximum images per post) set to unlimited, so I'm not quite sure why it's saying I can only have 4 ... I assume this is the fallback number if the vboptions variable cannot be read.
I am calling this from within a hook - do I need to initialize some variable first?
I know if I do it by using the datamanager directly I can set the "is_automated" flag to true, however I'd like to try and stay away from that if possible and get everything done from within that function.....
Any ideas?
I'm using the build_new_post function to post to my forum, however all of the actual posts are failing with the error "You have used X images in your post, the maximum you are allowed is 4."
The thing is, I have the maximages (maximum images per post) set to unlimited, so I'm not quite sure why it's saying I can only have 4 ... I assume this is the fallback number if the vboptions variable cannot be read.
I am calling this from within a hook - do I need to initialize some variable first?
I know if I do it by using the datamanager directly I can set the "is_automated" flag to true, however I'd like to try and stay away from that if possible and get everything done from within that function.....
Any ideas?