I am running phpBB version 2.0.18 (installed the mod after the upgrade)
Can someone please help me?
I've already searched this entire forum for the answer, with no luck.
Moderator: Moderators

kajin wrote:I installed the mod using easymod with no hitches, but when I selected "Global announcement" in the little check box and tried posting, it came up as a Regular Post. I treied editing it, but with no luck; it still came up as a regular post.
I am running phpBB version 2.0.18 (installed the mod after the upgrade)
Can someone please help me?
I've already searched this entire forum for the answer, with no luck.

The Global Announcement problem will be caused by this change to posting.php. This will also break any hack that adds new topic types.
- Code: Select all
##
##----------[ FIND ]-------------------------------------
##
$topic_type = ( !empty($HTTP_POST_VARS['topictype']) ) ? intval($HTTP_POST_VARS['topictype']) : POST_NORMAL;
##
##----------[ AFTER, ADD ]-------------------------------
##
$topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE)) ) ? $topic_type : POST_NORMAL;
For Global Announcement, that line needs to be changed to:
- Code: Select all
$topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE, POST_GLOBAL_ANNOUNCE)) ) ? $topic_type : POST_NORMAL;

kajin wrote:Well, I went over to phpBB hacks forum and found this:The Global Announcement problem will be caused by this change to posting.php. This will also break any hack that adds new topic types.
- Code: Select all
##
##----------[ FIND ]-------------------------------------
##
$topic_type = ( !empty($HTTP_POST_VARS['topictype']) ) ? intval($HTTP_POST_VARS['topictype']) : POST_NORMAL;
##
##----------[ AFTER, ADD ]-------------------------------
##
$topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE)) ) ? $topic_type : POST_NORMAL;
For Global Announcement, that line needs to be changed to:
- Code: Select all
$topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE, POST_GLOBAL_ANNOUNCE)) ) ? $topic_type : POST_NORMAL;
I tried it, and it seems to have done something. Now when I try to post a global announcement, instead of it being a normal post, it just dosn't show up a t all.

$topic_rowset = array();
$total_announcements = 0;// 2 rows deleted - Global announcement MOD 
$topic_type = ( in_array($topic_type, array(POST_NORMAL, POST_STICKY, POST_ANNOUNCE)) ) ? $topic_type : POST_NORMAL;

Return to Global announcement [2.0.6/EM]
Users browsing this forum: No registered users and 1 guest