global annonouncement, sticky.

Allgemeiner Support zum phpBB 2 Board und phpBB 2 Modifikationen
Forumsregeln
Auch wenn hier der Support für phpBB 2 weiterhin aufrecht erhalten bleibt, weisen wir darauf hin, dass das phpBB 2 nicht mehr offiziell unterstützt und weiterentwickelt wird!
Antworten
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

global annonouncement, sticky.

Beitrag von Blisk »

When I post a new post and set it to be a global annonouncement, or, sticky or .
It doesn't work, post is always as normal post!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Which global announcement mod do you have installed?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I am sorry, but don't know, it is with 1.5 version.
I notice when I use a all post moderation, than global annonouncement, and sticky works. But when I try to set this up with a post doesn't work.
I try to set with post but always I get normal post.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

The settings in the acp doesn't override the user settings? Regarding the split topic type settings.
And on your profile settings the topic type are splitted too?
What's about permissions for announcements and sticky?
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I didn't change any of permission.
Don't know what you mean of profile settings topic type?
you can check my forum.
I mean annonouncement at the bottom of forum

Du kannst Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum antworten.
Du kannst deine Beiträge in diesem Forum bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum mitmachen.
(Rules) Du kannst Dateien in diesem Forum posten
Du kannst Dateien in diesem Forum herunterladen

when I can manage all topics, there I can setup topic like a sticky or annonouncement, that's why it is strange that doesn't work in new post, or old post.
__________________________________________________________________-
I did tested the whole thing again and now I see what is the point, global annonouncement doesn't work, because the post is signed as NEWS.
It works when I setup like I described at the top, but doesn't when I try to assign a news and global annonouncement with the same post.
I think that is a bug.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

This is not a bug. The same way global announcments will be defined, news works too. So a post just can be a (global) announce, sticky, news or normal post. Not more than one of them.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

So post cannot be a global annonounce and the news at the same time?
How than I can setup that with a form where I manage all posts?
I setted a post for a news and with a form, you can see on pic, an annonouncemnent too.
It is both.
But that cannot do with a post, to setup both!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Setting news to an announce (e.g.) the post will be not longer a news.
Both topic types are using the same field to decide between these topic type, so news can't be have another status at the same time.
Test it within the modcp.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

Yes the funny thing is that I tested, and it can be both at the same time, you can check on my forum, that is the strange thing.
look for this post "Natečaj za LOGO"
it is on the portal and it is on the top of index page like annonouncement.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Funny thing.
Okay I think the mod will here work different as I know him.
Or the news which are setted later on as announcements will be both because a news flag is setted on the post. I thought there was such a second flag, but I'm not sure.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

that's why I was thinking it is a bug, because in the post that doesn't work.
I did tested that on clean instalation and it is the same.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

What speciallly doesn't work on normal posts? Setting as news and split in the forum view?

Sorry for this question, much trouble here.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

when I make a new post and want to be a news and annonouncement.
But that is like it is, no need to change I will do that manualy through a moderator CP.
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

That's exactly no bug on normal posts, because setting posts as news or announcements are using the same data field for the specialy post.
The possibility to set a news at the same time as an announce via modcp is the bug!
But an interesting one ;)

Try this:
Post a "normal" news and change it within editing the post to an announcement.
If this will not work, the modcp haves a huge bug.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

yep useful bug, which should works in a post too
but it is ok like it is
:D
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Yes. A useful bug which you can't use while posting.
I'll check the news mod the next days to enable this.
Okay, I'll try it. I'm not sure that this really will work.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

If you feel you like to, than you do it.
If don't no problem.
If it will work, you can release like a addon
:D
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

Is so, I'll do it. so we will see later on.
And thx for all hints about this !
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

no problem
:D
TNX to you, for all the help!
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

After searching the reason for this "bug" I found a realy simple solution:

Code: Alles auswählen

#
#-----[ OPEN ]-----
#
includes/functions_post.php

#
#-----[ FIND ]-----
#
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length, &$topic_desc, $topic_announce_duration = 0, $post_icon = 0, $topic_calendar_time = 0, $topic_calendar_duration = 0, &$news_category)
{
	global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
	global $userdata, $user_ip;
	// BEGIN cmx_slash_news_mod
	if( isset( $news_category ) && is_numeric( $news_category ) )
	{
		$news_id = intval( $news_category );
		$topic_type = POST_NEWS;

#
#-----[ IN-LINE FIND ]-----
#
		$topic_type = POST_NEWS;

#
#-----[ IN-LINE REPLACE WITH ]-----
#
//		$topic_type = POST_NEWS;


#
#-----[ SAVE/CLOSE ALL FILES ]-----
#
# EoM
That's all!
After doing this, you can post News as Announcments, Sticky or Global Announcements, too.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I found out more interesting things, after a fev days the annonouncement was gone. I think when I put another post to news.
:D
Benutzeravatar
oxpus
Administrator
Beiträge: 28735
Registriert: Mo 27.Jan, 2003 22:13
Wohnort: Bad Wildungen
Kontaktdaten:

Beitrag von oxpus »

I don't know about such a function. Posting a new post will not affect existing ones.
The only thing is a settable time in the ACP after that an announce will not more be displayed above each forum but only above the forum the announcement was posted in.
Karsten Ude
-={ Das Mädchen für alles }=-
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Blisk
Beiträge: 873
Registriert: Di 21.Sep, 2004 12:06
Kontaktdaten:

Beitrag von Blisk »

I will test it, adn let you know, exactly how it is.
Antworten