View Full Version : threaddm : including signature when creating new post
NeXuM
07-05-2013, 03:23 PM
i'm using this script to create new posts to the forum from an external script:
https://vborg.vbsupport.ru/showthread.php?t=229654
now how can set it to include the user's signature to the post ?
something like:
$threaddm->setr('includesignature', 1);
btw, does vBulletin have a wiki with infos about the functions ?
NeXuM
07-07-2013, 03:25 AM
I also have another question. When using the script in the link i posted, i can't post 2 messages in a row because my forum is set to force the users to wait 15 seconds between each posts.
Is there a way i can set the script to bypass this wait time so the script doesn't have to wait 15 seconds between each posts ?
tbworld
07-07-2013, 05:33 AM
I don't have much time so I will leave you a bit of information that might help you. Most of the answers you are looking for you can figure out by looking at the code in the datamanager. Take a look at "class_dm_threadpost.php".
1. signature - You will find the answer in that code. (This one is easy.)
2. no wiki that I know of.
3. floodcheck - It might be possible to shut this off by fooling the registry and restoring it after your code is done executing. Again look at the datamanager, the answer is in there.
if you send me or post your code ( so I do not have to recreate everything ), I can give you a quick hand with your questions.
Take Care and Good Luck. :)
NeXuM
07-07-2013, 11:32 AM
Thanks, figured out how to show signature but i'm still stuck with the floodcheck problem.
The code i am using is the one in this post:
https://vborg.vbsupport.ru/showthread.php?t=229654
Thanks, figured out how to show signature but i'm still stuck with the floodcheck problem.
The code i am using is the one in this post:
https://vborg.vbsupport.ru/showthread.php?t=229654
Your script calls global.php, correct?
You can do something like add:
$vbulletin->options['floodchecktime'] = 0;
I believe before the global.php call, that might work.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.