Code: Select all
ALTER TABLE phpbb_forums ADD forum_post_tpl TEXT DEFAULT '' NULL;
http://www.phpbb.com/community/viewtopi ... 9&t=724145juicedNL wrote:Can someone tell me, where and what i need to open for the SQL code?
Html in what box?Cr33per wrote:Installed to on 3.0.6
Can i use html in the box?
Hi juiced. Actually you are going to find the settings for this MOD when you are CREATING a new forum. Under the "description" field you are going to see the "posting template" field.juicedNL wrote:Ok i've done it all, now where can i find the post template? So i can edit the tekst etc..?
ACP index -> ?
Regards, juiced
Code: Select all
ALTER TABLE phpbb_forums ADD forum_post_tpl TEXT NOT NULL
All you have to do is update the install file:bipenett wrote:Hey EVIL...
I am getting this error message when I try to still this mod in my board:
Error:BLOB/TEXT column 'forum_post_tpl' can't have a default value
ALTER TABLE phpbb_forums ADD forum_post_tpl TEXT DEFAULT '' NULL
I saw that you recomended thru some replies that in this case you should make some changes like set the final part of the second line to something like TEXT DEFAULT '' NOT NULL. But how do I make this changes?
Code: Select all
<sql>ALTER TABLE phpbb_forums ADD forum_post_tpl TEXT DEFAULT '' NULL;</sql>
Code: Select all
<sql>ALTER TABLE phpbb_forums ADD forum_post_tpl TEXT NOT NULL;</sql>
Code: Select all
[phpBB Debug] PHP Notice: in file /includes/acp/acp_forums.php on line 2026: array_merge() [function.array-merge]: Argument #1 is not an array
[phpBB Debug] PHP Notice: in file /adm/index.php on line 150: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3525)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 152: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3525)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 153: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3525)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 154: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3525)
Code: Select all
2021 //-- mod : Posting Template ------------------------------------------------------------
2022//-- add
2023$lang = array_merge($lang, array(
2024 'FORUM_POST_TPL' => 'Posting template',
2025 'FORUM_POST_TPL_EXPLAIN' => 'The posting template is the text that appears in the textarea when starting a new topic in this forum. If you don\'t wish to use it, just leave it blank.',
2026));
2027//-- fin mod : Posting Template --------------------------------------------------------