Module: Recent Messages
Posted by Maurice Makaay
|
Re: Module: Recent Messages January 15, 2011 09:07AM |
Registered: 17 years ago Posts: 754 |
|
Re: Module: Recent Messages January 15, 2011 09:13AM |
Admin Registered: 23 years ago Posts: 9,240 |
|
Re: Module: Recent Messages January 15, 2011 09:44AM |
Registered: 17 years ago Posts: 754 |
|
Re: Module: Recent Messages January 15, 2011 10:54AM |
Admin Registered: 21 years ago Posts: 8,532 |
The only thing that should be run for the URL to work is the hook function phorum_mod_recent_messages_start_output(), which sets up that variable. Therefore, if you want to debug, you should check if that function is being called or not.
The URL works perfectly for me in an unhacked module. If things don't work in a hacked up version, then expect no guarantees or help from my side.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
The URL works perfectly for me in an unhacked module. If things don't work in a hacked up version, then expect no guarantees or help from my side.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: Recent Messages January 15, 2011 01:50PM |
Registered: 17 years ago Posts: 754 |
Odd but it worked when I replaced
[code="php"]
function phorum_mod_recent_messages_start_output()
{
global $PHORUM;
$backup_id = $PHORUM['forum_id'];
$PHORUM['forum_id'] = 0;
$PHORUM['DATA']['URL']['RECENT_MESSAGES'] =
phorum_get_url(PHORUM_ADDON_URL, 'module=recent_messages');
$PHORUM['forum_id'] = $backup_id;
}
with:
function phorum_mod_recent_messages_start_output()
{
global $PHORUM;
$PHORUM['DATA']['URL']['RECENT_MESSAGES'] =
phorum_get_url(PHORUM_ADDON_URL, 'module=recent_messages');
}
[/code]
Edited 1 time(s). Last edit at 01/16/2011 08:15AM by korsakov.
[code="php"]
function phorum_mod_recent_messages_start_output()
{
global $PHORUM;
$backup_id = $PHORUM['forum_id'];
$PHORUM['forum_id'] = 0;
$PHORUM['DATA']['URL']['RECENT_MESSAGES'] =
phorum_get_url(PHORUM_ADDON_URL, 'module=recent_messages');
$PHORUM['forum_id'] = $backup_id;
}
with:
function phorum_mod_recent_messages_start_output()
{
global $PHORUM;
$PHORUM['DATA']['URL']['RECENT_MESSAGES'] =
phorum_get_url(PHORUM_ADDON_URL, 'module=recent_messages');
}
[/code]
Edited 1 time(s). Last edit at 01/16/2011 08:15AM by korsakov.
|
Re: Module: Recent Messages January 16, 2011 07:46AM |
Admin Registered: 21 years ago Posts: 8,532 |
The original code is correct. Maybe some other module or some hack that you did break this code. Disable other modules to see if there's one that causes a conflict. If you find one, then report the issue in the correct thread.
You started a sentence about the Post Preview module, but maybe you stopped writing it, realizing that this thread is not about that module.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
You started a sentence about the Post Preview module, but maybe you stopped writing it, realizing that this thread is not about that module.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: Recent Messages March 07, 2011 05:41AM |
Registered: 20 years ago Posts: 54 |
With the option 'Recent Messages', when I click on the line, I get the last message of the topic
I prefer the choice 'Updated topics', but when I click on line I go on the first message of the topic and I would like to show the laste message of the topic. How is it possible to do (I am not an expert in software)
Many thanks for your help
I prefer the choice 'Updated topics', but when I click on line I go on the first message of the topic and I would like to show the laste message of the topic. How is it possible to do (I am not an expert in software)
Many thanks for your help
|
Re: Module: Recent Messages March 24, 2011 04:00PM |
Registered: 20 years ago Posts: 54 |
|
Re: Module: Recent Messages March 24, 2011 04:14PM |
Admin Registered: 21 years ago Posts: 8,532 |
If you click the red flag, you will jump to the newest message.
If you want the subject to work likewise, you will have to create a custom template for the recent messages module, in which you take care of that. I'm currently at a PC without Phorum code on it, so I can't cook up example code. But maybe the red flag link already helps you out.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
If you want the subject to work likewise, you will have to create a custom template for the recent messages module, in which you take care of that. I'm currently at a PC without Phorum code on it, so I can't cook up example code. But maybe the red flag link already helps you out.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: Recent Messages March 28, 2011 07:15AM |
Registered: 20 years ago Posts: 54 |
Thanks Maurice for your answer. As my english is bad, I am some difficulty to understand.
I discover a red file but only when I am logged but I don't log in to read messages ont the Forum.
I tried to clic on the read file but I go on a message bu not the last ?
I have read your readme file but as I am not an expert in software it is difficult for me to see what I have to and in which files ?
Edited 1 time(s). Last edit at 03/28/2011 07:53AM by victoria.
I discover a red file but only when I am logged but I don't log in to read messages ont the Forum.
I tried to clic on the read file but I go on a message bu not the last ?
I have read your readme file but as I am not an expert in software it is difficult for me to see what I have to and in which files ?
Edited 1 time(s). Last edit at 03/28/2011 07:53AM by victoria.
Sorry, only registered users may post in this forum.


