NEW CONFIGURABLE TOPIC FORM FOR THE MAIN FORUMS AND TOPICS PAGE add-on for miniBB
Release date: January 5, 2006.
Last update: June 8, 2023.
miniBB version: 3.4 and later
Author: Sergei Larionov
Developer: Paul Puzyrev (minibb.com)

This is the add-on for displaying the New Topic Form with forums drop down menu on the Main Forums page underneath the last discussions area and the link to the separate page for the new topic form (in miniBB, it is placed at the bottom of each topics list page), so users will be able to start new topics in any forum right from the 1st page after viewing Recent discussions. Both options can be disabled and enabled separately; by default they both are enabled.

==INSTALLATION==

1) Open the bb_plugins.php file and paste the code provided under bb_plugins.code.txt

2) Open the bb_plugins2.php file and paste the code provided under bb_plugins2.code.txt

==CONFIGURATION==

* In the bb_plugins.php file you may need to enable/disable preferred options in the "config options" area:

/* 1st page & separate topic form add-on */
//config options
$firstPageTopicForm=1; // 1 - to enable 1st page topic form, 0 - to disable
$separateTopic=1; // 1 - to enable separate topic form on the topics page, 0 - to disable
//eof config options
...
/*-- 1st page & separate topic form add-on */

* Displaying the form and generating forums dropdown depends on many factors, like user ID being logged in (and specific options allowed for him); it's also bundled with the File Attachments add-on, which generates different amount of file upload boxes depending on the logged user. At the same time, the script uses the same form, which is generated in templates/main_topics.html. The most important code, which swaps this form's fields and substitutes its own, comes at the end of the bb_plugins2.code.txt. If you have a code in templates/main_topics.html which differs from default, there you should put your own replacement codes in the value of $newTopicForm and the 3rd replacement of $tpl.


==FINALLY==
We hope you'll enjoy. Please, post bugs and suggestions on our forums:
http://www.minibb.com/forums/11_4191_0.html
