Ptirhiik wrote: Topic not read !
I readed the whole topic and i didn't found a solve at my problem !
Ptirhiik wrote: Topic not read !
Code: Select all
#
#-----[ OPEN ]------------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
$topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE, )) ) ? $topic_type : POST_NORMAL;
#
#-----[ REPLACE WITH ]------------------------------------------
#
$topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE, POST_GLOBAL_ANNOUNCE)) ) ? $topic_type : POST_NORMAL;
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Code: Select all
Error:
Unexpected or unknown attribute "AFTER AUTH_ANNOUNCE", in "auth_global_announce TINYINT(1) NOT NULL AFTER auth_announce", statement: 2, table: "phpbb_auth_access"
SQL:
ALTER TABLE phpbb_auth_access ADD auth_global_announce TINYINT(1) NOT NULL AFTER auth_announ
try thisseasoning wrote:how can i fix this error??
Code: Select all
Error: Unexpected or unknown attribute "AFTER AUTH_ANNOUNCE", in "auth_global_announce TINYINT(1) NOT NULL AFTER auth_announce", statement: 2, table: "phpbb_auth_access" SQL: ALTER TABLE phpbb_auth_access ADD auth_global_announce TINYINT(1) NOT NULL AFTER auth_announ
Code: Select all
ALTER TABLE phpbb_auth_access ADD auth_global_announce TINYINT(1) NOT NULL;
Code: Select all
#
#-----[ IN-LINE FIND ]----------------------------------------
#
AND t.topic_type <> " . POST_ANNOUNCE . "
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
AND t.topic_type <> " . POST_GLOBAL_ANNOUNCE . "
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : announces ---------------------------------------------------------------------------
Code: Select all
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : announces ---------------------------------------------------------------------------
#
Also important and hidden on page 9 (thx to vinzphua ):Ptirhiik wrote:Important notice for phpBB 2.0.18 usersCode: Select all
# #---[ OPEN ]-------------- # posting.php # #---[ FIND ]------------------ # $topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE)) ) ? $topic_type : POST_NORMAL; # #---[ REPLACE WITH ]----------------- # //--- mod : Announces suite ---------------------------- //-- delete /* $topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE)) ) ? $topic_type : POST_NORMAL; */ //-- add $topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE, POST_GLOBAL_ANNOUNCE)) ) ? $topic_type : POST_NORMAL; //--- fin mod : Announces suite ------------------------
One additionnal cool thing i spotted on the pages before:vinzphua wrote:I noticed the mod missed out something. It does not set the default permissions for global announce properly when you create a new forum.
If you want to correct this, open admin/admin_forums.php, and look for $forum_auth_ary near the top of the file and then alter as below. Note:
- Do at your own risk.
- Remember to back up your files.
- I did this on phpBB2 2.0.6.
- This part is not validated by the phpBB team.Code: Select all
$forum_auth_ary = array( "auth_view" => AUTH_ALL, "auth_read" => AUTH_ALL, "auth_post" => AUTH_ALL, "auth_reply" => AUTH_ALL, "auth_edit" => AUTH_REG, "auth_delete" => AUTH_REG, "auth_sticky" => AUTH_MOD, //-- mod : announces (fix) ------------------------------------------------------------------------------- //-- add "auth_global_announce" => AUTH_ADMIN, //-- fin mod : announces (fix) ------------------------------------------------------------------------------- "auth_announce" => AUTH_MOD, "auth_vote" => AUTH_REG, "auth_pollcreate" => AUTH_REG );
Fixing Style and columns of announce display (Customizing)01satkins wrote: how to stop normal announcements showing up in the global announcement box on teh index page:Code: Select all
# #---[ OPEN ]-------------- # includes/functions_announces.php # #---[ FIND ]------------------ # find: if (!empty($tree_forum_ids)) { $sql_where .= # #---[ REPLACE WITH ]----------------- # if (!empty($tree_forum_ids)) { // $sql_where .= //--- fin mod : Announces suite ------------------------
Code: Select all
<!-- selfEdit -->
<span class="forumline">
{BOARD_ANNOUNCES}
</span>
<!-- fin selfdit -->
<table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
<tr>
<th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" align="center" class="thTop" nowrap="nowrap"> {L_REPLIES} </th>
<th width="100" align="center" class="thTop" nowrap="nowrap"> {L_AUTHOR} </th>
<th width="50" align="center" class="thTop" nowrap="nowrap"> {L_VIEWS} </th>
<th align="center" class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN topicrow -->
<tr>
Code: Select all
<table border="0" cellpadding="4" cellspacing="1" width="100%" class="forumline">
<tr>
<th colspan="{topics_list_box.row.header_table.COLSPAN}" align="center" height="25" class="thCornerL" nowrap="nowrap"> {topics_list_box.row.L_TITLE} </th>
<!--
<th width="50" align="center" nowrap="nowrap"> {topics_list_box.row.L_REPLIES} </th>
-->
<th width="100" align="center" height="25" class="thTop" nowrap="nowrap"> {topics_list_box.row.L_AUTHOR} </th>
<!--
<th width="50" align="center" nowrap="nowrap"> {topics_list_box.row.L_VIEWS} </th>
<th width="150" align="center" nowrap="nowrap"> {topics_list_box.row.L_LASTPOST} </th>
-->
<!-- BEGIN multi_selection -->
<th width="20" align="center" nowrap="nowrap"><input type="checkbox" name="all_mark_{topics_list_box.row.header_table.BOX_ID}" value="0" onClick="check_uncheck_all_{topics_list_box.row.header_table.BOX_ID}();" /></th>
<!-- END multi_selection -->
</tr>
Code: Select all
{topics_list_box.row.TOPIC_NAV_TREE}
<!-- END nav_tree -->
</span>
</td>
<!--
<td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.REPLIES}</span></td>
-->
<td class="row3" align="center" valign="middle"><span class="name">{topics_list_box.row.TOPIC_AUTHOR}</span></td>
<!--
<td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.VIEWS}</span></td>
<td class="row3" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topics_list_box.row.LAST_POST_TIME}<br />{topics_list_box.row.LAST_POST_AUTHOR} {topics_list_box.row.LAST_POST_IMG}</span></td>
-->
<!-- BEGIN multi_selection -->
<td class="row2"
Code: Select all
<!--
<td class="row2" align="center" valign="middle"><span class="postdetails">{topics_list_box.row.REPLIES}</span></td>
-->
Code: Select all
<th width="100" align="center" height="25" class="thTop" nowrap="nowrap">
Display announcement dates Yes No
Display board announcements on index Yes No
Display board announcements on forums Yes No
Split announcement type in the board announcement box Yes No
Display the forum name under the announcement title in the board announcement box Yes No
Announcement duration
This is the number of days an announcement remains. Use -1 in order to set it permanent
Announcement prune strategy
This is what will be the type of the announcement topic after being pruned NormalSticky
vinzphua wrote:I noticed the mod missed out something. It does not set the default permissions for global announce properly when you create a new forum.
If you want to correct this, open admin/admin_forums.php, and look for $forum_auth_ary near the top of the file and then alter as below. Note:
- Do at your own risk.
- Remember to back up your files.
- I did this on phpBB2 2.0.6.
- This part is not validated by the phpBB team.
Code: Select all
$forum_auth_ary = array(
"auth_view" => AUTH_ALL,
"auth_read" => AUTH_ALL,
"auth_post" => AUTH_ALL,
"auth_reply" => AUTH_ALL,
"auth_edit" => AUTH_REG,
"auth_delete" => AUTH_REG,
"auth_sticky" => AUTH_MOD,
//-- mod : announces (fix) -------------------------------------------------------------------------------
//-- add
"auth_global_announce" => AUTH_ADMIN,
//-- fin mod : announces (fix) -------------------------------------------------------------------------------
"auth_announce" => AUTH_MOD,
"auth_vote" => AUTH_REG,
"auth_pollcreate" => AUTH_REG
);