View Full Version : Auto fill data into new thread
Macsee
10-17-2012, 05:46 PM
In a particular sub-forum on my site I would like that whenever anyone clicks to start a new thread the post appears with some pre-filled text. For example:
(Posts in this forum need to include all the below information so please ensure you fill all fields)
1. Company Name
2. Service Advertised
3. Price
4. Estimated Time to Completion
I'm aware of the Easy Forms option, but don't want to go down the forms route.
Is there any way this pre-filling can be done?
You could try this: create a new plugin using hook location newthread_form_start and code like this:
if ($foruminfo['forumid'] == X)
{
$newpost['message'] = "
(Posts in this forum need to include all the below information so please ensure you fill all fields)
1. Company Name
2. Service Advertised
3. Price
4. Estimated Time to Completion
";
}
where the X in the first line is the forumid where you want this to be inserted.
Brandon Sheley
10-17-2012, 06:39 PM
I used this back in the 3.8 days
https://vborg.vbsupport.ru/showthread.php?t=130162
I'm not sure if it'll still work on 4, but it would be a good start for you.
(looking at the last page, it does work on 4.2)
Macsee
10-18-2012, 01:27 PM
Thanks for that useful link, Brandon, but Kevin's suggestion worked the first time I tried it and I've gone ahead with using that.
Thanks very much, guys.
I took a quick look at that mod, it seems like it does the same thing as the plugin I posted but it lets you do a few more things and gives you a place to edit the text in the forum manager.
CAG CheechDogg
10-19-2012, 04:14 AM
Great little plugin kh99....thanks !
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.