Latest X Posts in a templated Phorum-Page
Posted by Thomas Seifert
Re: Latest X Posts in a templated Phorum-Page January 19, 2005 10:34AM |
Admin Registered: 22 years ago Posts: 9,240 |
> can somebody call "unallowed" files with the file.php too as far as he can find out the $_GET vars?)
I told you already, no! There is a "read-allowed"-check in file.php.
> has this been fixed in the newer version or can still anybody see "unallowed" threads?
try it. should work fine.
Thomas Seifert
I told you already, no! There is a "read-allowed"-check in file.php.
> has this been fixed in the newer version or can still anybody see "unallowed" threads?
try it. should work fine.
Thomas Seifert
Latest Post imbedded in the index template March 11, 2005 09:01AM |
Registered: 20 years ago Posts: 264 |
Modified to allow imbeding into index.tpl to see the most recent thread per forum.
----edit----
Updated attachment in later post
http://www.krang.org
Edited 1 time(s). Last edit at 03/11/2005 11:53AM by Krang.
----edit----
Updated attachment in later post
http://www.krang.org
Edited 1 time(s). Last edit at 03/11/2005 11:53AM by Krang.
Re: Latest Post imbedded in the index template March 11, 2005 11:52AM |
Registered: 20 years ago Posts: 264 |
I made a small mistake in the template for the index embedding. I forgot the new flag indicator.
http://www.krang.org
http://www.krang.org
Re: Latest Post imbedded in the index template March 21, 2005 11:52AM |
Registered: 20 years ago Posts: 17 |
Dear all,
we've finally made the switch from phpBB to Phorum and most things have gone quite well. There are a number of things which we need to tweak as integrating any forum within an existing website is quite a challenge...
Our users were soon screaming for a "newest" view and we were happy to find this exists already. I've looked at the base code. It seems strange that the query is date independent (ie. last 24 hours or since last login). So we'll be extending it allow for this. Assuming that this might be of interest to others - what do you think should be the criteria?
we've finally made the switch from phpBB to Phorum and most things have gone quite well. There are a number of things which we need to tweak as integrating any forum within an existing website is quite a challenge...
Our users were soon screaming for a "newest" view and we were happy to find this exists already. I've looked at the base code. It seems strange that the query is date independent (ie. last 24 hours or since last login). So we'll be extending it allow for this. Assuming that this might be of interest to others - what do you think should be the criteria?
Re: Latest Post imbedded in the index template March 21, 2005 11:54AM |
Admin Registered: 22 years ago Posts: 9,240 |
Re: Latest Post imbedded in the index template March 21, 2005 12:09PM |
Registered: 20 years ago Posts: 17 |
Re: Latest Post imbedded in the index template March 21, 2005 12:10PM |
Admin Registered: 22 years ago Posts: 9,240 |
Re: Latest Post imbedded in the index template March 22, 2005 11:01AM |
Registered: 20 years ago Posts: 17 |
Yes, it's quite easy to compare timestamps (oh where are my datetime objects? ;-).
Our Forum is bilingual so this needs to be checked in the Query anyway.
This is my modified query for
phorum_db_get_recent_messages() in mysql.php
$sql = "SELECT {$PHORUM['message_table']}.*
FROM {$PHORUM['message_table']}
INNER JOIN {$PHORUM['forums_table']} ON
({$PHORUM['forums_table']}.forum_id = {$PHORUM['message_table']}.forum_id)
WHERE
language = '{$PHORUM['language']}'
AND status=".PHORUM_STATUS_APPROVED;
Our Forum is bilingual so this needs to be checked in the Query anyway.
This is my modified query for
phorum_db_get_recent_messages() in mysql.php
$sql = "SELECT {$PHORUM['message_table']}.*
FROM {$PHORUM['message_table']}
INNER JOIN {$PHORUM['forums_table']} ON
({$PHORUM['forums_table']}.forum_id = {$PHORUM['message_table']}.forum_id)
WHERE
language = '{$PHORUM['language']}'
AND status=".PHORUM_STATUS_APPROVED;
Re: Latest X Posts in a templated Phorum-Page March 23, 2005 04:04AM |
Registered: 22 years ago Posts: 793 |
Re: Latest X Posts in a templated Phorum-Page March 23, 2005 04:07AM |
Admin Registered: 22 years ago Posts: 9,240 |
Sorry, only registered users may post in this forum.