![]() |
Auto fill data into new thread
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:
Quote:
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:
Code:
if ($foruminfo['forumid'] == X) where the X in the first line is the forumid where you want this to be inserted. |
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) |
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.
|
Great little plugin kh99....thanks !
|
All times are GMT. The time now is 06:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|