#####################################
[> Title: Thread Open|Close Function
[> Author: Cybermaster
[> Scripted for: Gesior's Simple forum script
[> Requires: My two other Forum Functions
[> Coding: PHP+XHTML
[> Revision: 0.1
\______________________________________________/
Last One
Description
This new function allows moderators to open or close threads, so the users and
mods won't be able to make or edit a post while the thread is closed. Edit and New Post buttons won't appear too.
Setup
STEP 1 (SQL QUERY)
Execute the next SQL Query, depending of your database class.
MySQL:
SQlite:
STEP 2 (MODIFYING OLD FUNCTIONS: REPLACE YOUR FORUM.PHP)
Well since changing each code its so long and messy, just replace this forum.php with yours:
-> trunk/0.3.6/forum.php
http://websvn.4za.pl/
This has been accurately scripted, so you don't get any errors and there's no way players can't have the possibility to post while the thread is closed.:ninja:
[> Title: Thread Open|Close Function
[> Author: Cybermaster
[> Scripted for: Gesior's Simple forum script
[> Requires: My two other Forum Functions
[> Coding: PHP+XHTML
[> Revision: 0.1
\______________________________________________/
Last One
Description
This new function allows moderators to open or close threads, so the users and
mods won't be able to make or edit a post while the thread is closed. Edit and New Post buttons won't appear too.
Setup
STEP 1 (SQL QUERY)
Execute the next SQL Query, depending of your database class.
MySQL:
Code:
ALTER TABLE `z_forum` ADD `closed` TINYINT(1) NOT NULL DEFAULT '0' AFTER `sticky`;
Code:
ALTER TABLE "z_forum" ADD "closed" TINYINT(1) NOT NULL DEFAULT "0" AFTER "sticky";
STEP 2 (MODIFYING OLD FUNCTIONS: REPLACE YOUR FORUM.PHP)
Well since changing each code its so long and messy, just replace this forum.php with yours:
-> trunk/0.3.6/forum.php
http://websvn.4za.pl/
This has been accurately scripted, so you don't get any errors and there's no way players can't have the possibility to post while the thread is closed.:ninja:
Last edited: