PDA

View Full Version : automated post


mimidov
07-18-2009, 12:10 PM
I want to add a reply to a given thread id automaticlly when I report thread is created. This post should include the reported post contents in quotes as well as some comments.

I was able to do this. However, I have a problem with the text length as it displays error if the contents of the new automated post is more than what is allowed. How to force ignore this limit and what is the proper way to code the dataset ?

thanks

--------------- Added 1247922690 at 1247922690 ---------------

I am using 3.8.3

James Birkett
07-19-2009, 12:08 PM
Hey mimi, this would take some code modification. You said you've got it working, but when the character limit is more than the maximum it errors?

mimidov
07-19-2009, 03:38 PM
yes it is just like what I said
Most importently is how to avoid displaying error if the character limit is approached?

Lynne
07-19-2009, 03:43 PM
The character limit is a setting in vboptions ($vboptions ['maxchars']? I can't get to my admin panel to check right now, sorry). So, in your plugin, set that option/setting to unlimited, '0', or to a number right before you do your code.

mimidov
07-19-2009, 03:54 PM
thanks Lynne
How could I set that option to work only for that automated post?

Lynne
07-19-2009, 04:08 PM
Didn't you write a plugin to do the automated post? Just set the option at the beginning of the plugin.