Message icons module
Posted by Maurice Makaay
July 27, 2006 05:08AM |
Admin Registered: 18 years ago Posts: 8,532 |
I uploaded a new release of the message_icons module. You can find it in the first posting of this thread.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team



Re: Message icons module August 30, 2006 06:13AM |
Registered: 18 years ago Posts: 117 |
August 30, 2006 06:42AM |
Admin Registered: 18 years ago Posts: 8,532 |
Please do so. If you place the translation in this thread, I'll add it to the package.
I'll see what I can do for moved threads. Shouldn't be too hard.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
I'll see what I can do for moved threads. Shouldn't be too hard.
Maurice Makaay
Phorum Development Team



Re: Message icons module August 30, 2006 09:07AM |
Registered: 18 years ago Posts: 117 |
Re: Message icons module August 31, 2006 09:23AM |
Registered: 18 years ago Posts: 117 |
September 01, 2006 04:36AM |
Admin Registered: 18 years ago Posts: 8,532 |
I changed "Discussion close" to "Discussion fermée". I think that is the correct French wording. Most French I know hate to use English words in their forums ;-)
About the title problem: I cannot reproduce that on my development server (see the link below). This is the most current Phorum 5.1 with this module installed. Can you reproduce the problem on this Phorum?
Phorum 5.1 development server.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
About the title problem: I cannot reproduce that on my development server (see the link below). This is the most current Phorum 5.1 with this module installed. Can you reproduce the problem on this Phorum?
Phorum 5.1 development server.
Maurice Makaay
Phorum Development Team



Re: Message icons module September 01, 2006 04:55AM |
Registered: 18 years ago Posts: 117 |
Oups i forgot to translate close. ;)
About the problem i put on my header the code from Brian :
[www.phorum.org]
I have :
$TITLE = htmlspecialchars($PHORUM["DATA"]["MESSAGE"]["subject"]);
I've used $TITLE variable for my title read page.
So you have <img src="..... before the real title. :(
I add a strip_tags on the title but it's not very good for title with "<" or others special characters.
About the problem i put on my header the code from Brian :
[www.phorum.org]
I have :
$TITLE = htmlspecialchars($PHORUM["DATA"]["MESSAGE"]["subject"]);
I've used $TITLE variable for my title read page.
So you have <img src="..... before the real title. :(
I add a strip_tags on the title but it's not very good for title with "<" or others special characters.
Re: Message icons module September 01, 2006 05:09AM |
Registered: 18 years ago Posts: 117 |
Re: Message icons module September 01, 2006 05:14AM |
Registered: 18 years ago Posts: 117 |
If you want to add moved icon in the module you should change :
if ($args[$id]["sort"] == PHORUM_SORT_ANNOUNCEMENT) {
$marker = "announcement";
} elseif ($args[$id]["sort"] == PHORUM_SORT_STICKY) {
$marker = "sticky";
} elseif ($args[$id]["closed"] || (isset($PHORUM["DATA"]["OPTION_ALLOWED"]["allow_reply"]) && !$PHORUM["DATA"]["OPTION_ALLOWED"]["allow_reply"])) {
$marker = "closed";
} elseif ($args[$id]["moved"]) {
$marker = "moved";
} else {
$marker = "message";
}
$args[$id]["meta"]["mod_message_icons"]["marker"] = $marker;
}
return $args;
I also moved sticky code to the top because if you have a sticky without allowed answer, the icons module add a closed icon and not a sticky icon.
if ($args[$id]["sort"] == PHORUM_SORT_ANNOUNCEMENT) {
$marker = "announcement";
} elseif ($args[$id]["sort"] == PHORUM_SORT_STICKY) {
$marker = "sticky";
} elseif ($args[$id]["closed"] || (isset($PHORUM["DATA"]["OPTION_ALLOWED"]["allow_reply"]) && !$PHORUM["DATA"]["OPTION_ALLOWED"]["allow_reply"])) {
$marker = "closed";
} elseif ($args[$id]["moved"]) {
$marker = "moved";
} else {
$marker = "message";
}
$args[$id]["meta"]["mod_message_icons"]["marker"] = $marker;
}
return $args;
I also moved sticky code to the top because if you have a sticky without allowed answer, the icons module add a closed icon and not a sticky icon.
September 01, 2006 06:33AM |
Admin Registered: 18 years ago Posts: 8,532 |
Quote
I suggest to change "Message" by "Discussion".
Message in french is for a post.
Better not do that, since the message icon will also be added in threaded view. Then it really is a message and not a discussion.
Quote
PS : In french we also say "close". It means "fermé".
It comes from "Clôturer" verbe.
Vraiment, mais j'ais vu que "fermée" est utilisé dans la fichier "francais.php".
(don't know if that was right, but it sure looks like French to me ;-)
Quote
} elseif ($args[$id]["moved"]) {
I added this, with an additional check to see if "moved" is set in the array (this is not always the case, which would cause undefined index warnings). I took the standard message icon and have drawn a kind of arrow on it. That's the new icon moved.gif for this feature.
I moved sticky up the list too, so now it's in sync with the way in which announcements are handled.
I'll upload the new "momo release" (1.0.4) to the start of this thread.
Maurice Makaay
Phorum Development Team



Sorry, only registered users may post in this forum.