Warning: Missing argument 8 for user_notification() in /home/mydomain/public_html/phpBB2/includes/functions_post.php on line 546
Warning: Missing argument 9 for user_notification() in /home/mydomain/public_html/phpBB2/includes/functions_post.php on line 546
Warning: Missing argument 10 for user_notification() in /home/mydomain/public_html/phpBB2/includes/functions_post.php on line 546
Warning: Missing argument 11 for user_notification() in /home/mydomain/public_html/phpBB2/includes/functions_post.php on line 546
Warning: Missing argument 12 for user_notification() in /home/mydomain/public_html/phpBB2/includes/functions_post.php on line 546
Warning: Missing argument 13 for user_notification() in /home/mydomain/public_html/phpBB2/includes/functions_post.php on line 546
Warning: Cannot modify header information - headers already sent by (output started at /home/mydomain/public_html/phpBB2/includes/functions_post.php:546) in /home/mydomain/public_html/phpBB2/posting.php on line 600
Warning: Cannot modify header information - headers already sent by (output started at /home/mydomain/public_html/phpBB2/includes/functions_post.php:546) in /home/mydomain/public_html/phpBB2/includes/page_header.php on line 506
Warning: Cannot modify header information - headers already sent by (output started at /home/mydomain/public_html/phpBB2/includes/functions_post.php:546) in /home/mydomain/public_html/phpBB2/includes/page_header.php on line 508
Warning: Cannot modify header information - headers already sent by (output started at /home/mydomain/public_html/phpBB2/includes/functions_post.php:546) in /home/mydomain/public_html/phpBB2/includes/page_header.php on line 509
kc5hwb wrote: Does anyone have a DEMO of the mod?
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 ]-----------------
#
//--- 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 ------------------------
#
#---[ 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
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : announces -------------------------------------------------------------------------------
//-- add
else if ( $topic_type == POST_GLOBAL_ANNOUNCE )
{
$is_auth_type = 'auth_global_announce';
}
//-- fin mod : announces ---------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
# this is a partial search, the full line is longer
#CHANGE TEH FOLLOWING LINE ON UR MOD
$select_sql = (!$submit) ?
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : announces -------------------------------------------------------------------------------
// here we added
// , t.topic_announce_duration
//-- modify
#
#-----[ IN-LINE FIND ]----------------------------------------
#
, t.topic_title
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
Code: Select all
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
AND t.topic_type <> " . POST_GLOBAL_ANNOUNCE . "
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- fin mod : announces ---------------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
# IT SAID
#make_jumpbox('viewforum.'.$phpEx);
# CHANGE WITH:
// Begin Simple Subforums MOD
$all_forums = array();
make_jumpbox_ref('viewforum.'.$phpEx, $forum_id, $all_forums);
// End Simple Subforums MOD
#
#-----[ AFTER, ADD ]------------------------------------------
#
//-- mod : announces -------------------------------------------------------------------------------
//-- add
Code: Select all
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------
#
#-----[ FIND ]------------------------------------------------
# IT SAID simply if ( empty($template) ) or something
# CHANGE THIS:
if ( empty($template) || empty($theme) )
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
//-- mod : language settings -----------------------------------------------------------------------
//-- add
include($phpbb_root_path . './includes/lang_extend_mac.' . $phpEx);
//-- fin mod : language settings -------------------------------------------------------------------
03swalker wrote:kc5hwb wrote:Does anyone have a DEMO of the mod?
You can find a DEMO here: http://www.samwal.x10hosting.com/site/forum/index.php
Sorry it's not exactly brilliant. There are several other mods install ed aswell. phpbb 2.0.21 it is running. I used this fix mentioned in the topic and it worked fine: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 ]----------------- # //--- 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 ------------------------ # #---[ 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 ------------------------
pkoury wrote: I'm running 2.0.21. When I post as a Global Annoucement the post becomes a Normal post instead. How do I fix that?
SQL PROCESSING ERROR:
No SQL alterations will be performed. However, you may skip SQL processing, continue installing the MOD, and deal with the SQL manually
The following error occured:
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_announce