vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Form to create new post? (https://vborg.vbsupport.ru/showthread.php?t=325859)

kpmedia 12-08-2017 05:37 AM

Form to create new post?
 
For thread in a specific forum category, I want for the posts by the members to have specific info. Certain data is required.

I'm thinking this action would require either:
(1) Replace existing post template for this category with one that is form based.
(2) Insert form before posting, with the form submissions creating the new post automatically.

The form also needs all fields required, meaning no fill, no post.
Bonus would be to limit the member to only one post per thread in this category.

Does a plugin exist that does any of this?
Or template modification?

(Note to mods: Not cross-post, needing for both vB3 and vB4 forums. Thus posted in each section.)

CAG CheechDogg 12-09-2017 03:56 AM

Try this my Friend ... this was done for me by someone here but I forgot who it was ...

make a new plugin :

Hook Location: newthread_form_start

Code:

if ($foruminfo['forumid'] == 14)
{
  $newpost['message'] = "
You can replace this with anything you want


You can add anything anywhere between the " " .....


";
}

Replace the forum ID with the forum in which you which to have this at ...

Hope it helps you my Man !

cellarius 12-10-2017 02:36 PM

This may be what you are looking for:
https://vborg.vbsupport.ru/showthread.php?t=234385


All times are GMT. The time now is 10:57 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
  • Page Generation 0.00920 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete