Module: Recent Messages
Posted by Maurice Makaay
|
Re: Module: Recent Messages October 16, 2008 11:10AM |
Registered: 24 years ago Posts: 156 |
Using the Module "Recent Messages" 2.0.13, I ran into a problem right now. I had set up a new iCalamus forum (Polish) and have created some groups in the admin area.
Afterwards, the "Recent Messages" page created this error:
[code="php"]Warning: array_shift() [<a href='function.array-shift'>function.array-shift</a>]:
The argument should be an array in
[...]/phorum/mods/recent_messages/recent_messages.php
on line 231[/code]
The relevant part looks liks this:
[code="php"]
if (empty($folders[$folder_id])) {
array_shift($path);
if (empty($path)) $path = array($PHORUM['DATA']['LANG']['Forums']);
$folders[$folder_id]['path_name'] = join(" » ", $path);
}
[/code]
I changed it into this:
[code="php"]
if (empty($folders[$folder_id]))
{
if (is_array($path)
array_shift($path);
if (empty($path))
$path = array($PHORUM['DATA']['LANG']['Forums']);
$folders[$folder_id]['path_name'] = join(" » ", $path);
}
[/code]
Now it works fine here, but I have no idea if it was a Module bug or something else. Please check this and give me a note. Thank you.
Regards, Ulf Dunkel
Afterwards, the "Recent Messages" page created this error:
[code="php"]Warning: array_shift() [<a href='function.array-shift'>function.array-shift</a>]:
The argument should be an array in
[...]/phorum/mods/recent_messages/recent_messages.php
on line 231[/code]
The relevant part looks liks this:
[code="php"]
if (empty($folders[$folder_id])) {
array_shift($path);
if (empty($path)) $path = array($PHORUM['DATA']['LANG']['Forums']);
$folders[$folder_id]['path_name'] = join(" » ", $path);
}
[/code]
I changed it into this:
[code="php"]
if (empty($folders[$folder_id]))
{
if (is_array($path)
array_shift($path);
if (empty($path))
$path = array($PHORUM['DATA']['LANG']['Forums']);
$folders[$folder_id]['path_name'] = join(" » ", $path);
}
[/code]
Now it works fine here, but I have no idea if it was a Module bug or something else. Please check this and give me a note. Thank you.
Regards, Ulf Dunkel
|
Re: Module: Recent Messages October 16, 2008 12:51PM |
Admin Registered: 23 years ago Posts: 9,240 |
|
Re: Module: Recent Messages October 16, 2008 11:00PM |
Registered: 24 years ago Posts: 156 |
No, I didn't. I just set up a new forum instance (#12, Polish). Then I created some new groups in the admin area and linked some users to these groups. After that I checked the forum pages and saw the php warning.
Regards, Ulf Dunkel
Regards, Ulf Dunkel
|
Re: Module: Recent Messages October 17, 2008 02:43AM |
Admin Registered: 23 years ago Posts: 9,240 |
then please try this as it sounds like the path hasn't been built for this forum (if maurice doesn't have another idea directly about this forum) which you can see with the missing breadcrumbs.
your lang files for at least danish, italian and latvian are missing the home-entry, when you check the breadcrumbs again.
Oh, and upgrading could be a good idea too.
Thomas Seifert
Edited 1 time(s). Last edit at 10/17/2008 02:43AM by Thomas Seifert.
your lang files for at least danish, italian and latvian are missing the home-entry, when you check the breadcrumbs again.
Oh, and upgrading could be a good idea too.
Thomas Seifert
Edited 1 time(s). Last edit at 10/17/2008 02:43AM by Thomas Seifert.
|
Re: Module: Recent Messages October 17, 2008 04:09AM |
Registered: 24 years ago Posts: 156 |
Hi Thomas. I wonder what went wrong when I set up the new Polish forum instance, but rebuilding the Phorum paths seemed to help much as now even the Polish forum title is properly shown. I also added the 'Home' entries to all relevant files, thank you for pointing me to this.
Upgrading to what? I run 5.2.7 in all my sites.
Regards, Ulf Dunkel
Upgrading to what? I run 5.2.7 in all my sites.
Regards, Ulf Dunkel
|
Re: Module: Recent Messages October 17, 2008 04:18AM |
Admin Registered: 22 years ago Posts: 8,532 |
I think Thomas means an upgrade to 5.2.9a, the current stable version.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: Recent Messages October 17, 2008 04:32AM |
Registered: 24 years ago Posts: 156 |
|
Re: Module: Recent Messages October 17, 2008 04:39AM |
Admin Registered: 23 years ago Posts: 9,240 |
it is recommended but the new version check in 5.2.7 is broken and got fixed in 5.2.9
Addition by Maurice: see changeset 3506
Thomas Seifert
Edited 1 time(s). Last edit at 10/17/2008 04:53AM by Maurice Makaay.
Addition by Maurice: see changeset 3506
Thomas Seifert
Edited 1 time(s). Last edit at 10/17/2008 04:53AM by Maurice Makaay.
|
Re: Module: Recent Messages October 22, 2008 03:26AM |
Registered: 22 years ago Posts: 65 |
Hello,
I've installed this mod for my forum but I don't understand why messages that have been read are still in the list of news messages.
I've attached a screenshot of the problem.
We can see that the last messages have been read but are still in the list why ?
Thank you in advance.
mmakaay: removed the image from this message, to clean up the file listing at the top of the page a bit.
--------------------------------
Christophe, [www.notre-planete.info]
Edited 1 time(s). Last edit at 07/22/2009 10:58AM by Maurice Makaay.
I've installed this mod for my forum but I don't understand why messages that have been read are still in the list of news messages.
I've attached a screenshot of the problem.
We can see that the last messages have been read but are still in the list why ?
Thank you in advance.
mmakaay: removed the image from this message, to clean up the file listing at the top of the page a bit.
--------------------------------
Christophe, [www.notre-planete.info]
Edited 1 time(s). Last edit at 07/22/2009 10:58AM by Maurice Makaay.
|
Re: Module: Recent Messages October 22, 2008 03:33AM |
Admin Registered: 23 years ago Posts: 9,240 |
Sorry, only registered users may post in this forum.



