Firefox PHP

File List module (shows all files from a thread)

Posted by Maurice Makaay 
All files from this thread

File Name File Size   Posted by Date  
filelist-1.0.5.tar.gz 4.6 KB open | download Maurice Makaay 01/31/2007 Read message
filelist-1.0.5.zip 7.6 KB open | download Maurice Makaay 01/31/2007 Read message
File List module (shows all files from a thread)
May 04, 2006 08:32AM
This module adds a file list to a thread, which lists all attachments that are available in the full thread. It was designed with this Phorum.org Modules forum in mind, so visitors have a quick and complete overview of all the files that are posted in a thread. So no more searching through all the messages for the latest version of a module.

The administrator can configure per forum if and how the file list should be displayed. The available options per forum are:

* No file list
* Only on the first page
* On every page

From the file list, the user can directly download the file or jump to the message which has the file attached to it.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 7 time(s). Last edit at 01/31/2007 04:26AM by mmakaay.
Attachments:
open | download - filelist-1.0.5.tar.gz (4.6 KB)
open | download - filelist-1.0.5.zip (7.6 KB)
Re: File List module (shows all files from a thread)
May 04, 2006 09:36AM
Maurice,

You are so good! and so quick to code this modules!

Supercoder!

[opensourceCMS.com]
[ongetc.com]
Chanh Ong
Re: File List module (shows all files from a thread)
May 04, 2006 11:51AM
Nice module.

I know you use Firefox and it look great in FF.

But in MSIE the module box is wider than the rest of the thread boxes.




Bill
Re: File List module (shows all files from a thread)
May 05, 2006 05:18AM
Released version 1.0.1 of the mod. See the first message in this thread for the download link. Changelog:

2006-05-05 v1.0.1

- Fixes in the default template: the <th> tags should use align="left" and removed stale </h3> closing tag (credits to Brian).

- Fixed displaying with of the block. In MSIE the block showed up wider than the other blocks (reported by CBiLL).


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 1 time(s). Last edit at 05/06/2006 07:55PM by mmakaay.
Re: File List module (shows all files from a thread)
May 06, 2006 07:29PM
I believe you mean align left don't you?

Brian - Cowboy Ninja Coder - Personal Blog - Twitter
Re: File List module (shows all files from a thread)
May 06, 2006 07:55PM
hehe, yes. I'm hopeless...
I confuse it IRL often too ;-)
Fixed it in the posting.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce



Edited 1 time(s). Last edit at 05/06/2006 07:55PM by mmakaay.
Re: File List module (shows all files from a thread)
May 10, 2006 04:35PM
Very cool, Maurice!

Steel Rat
[infinite-realities.com]
Re: File List module (shows all files from a thread)
May 12, 2006 04:54AM
this is a great module! especially for this forum. thankyoU!
Re: File List module (shows all files from a thread)
August 14, 2006 07:34AM
Hi Maurice,
that's a great module, thanks.
Maybe we should add here, that one has to add the following line to read.tpl:

{HOOK tpl_filelist}

Another thing is, that the author should only be linked to his profile, when he is registered. I changed the following:

In filelist.php:
"link_author"   => ($msg["user_id"] ? phorum_get_url(PHORUM_PROFILE_URL, $msg["user_id"]) : false),

In the template:
if ($file["link_author"]) {
  print "<td><a href=\"{$file["link_author"]}\">{$file["author"]}</a></td>";
} else {
  print "<td>{$file["author"]}</td>";
}

Greetings,
Clemens

--
Clemens Weiß
Webplain.de
Re: File List module (shows all files from a thread)
August 14, 2006 10:25AM
About adding the hook to the read.tpl template: I'm pretty sure the install guide in the README file is pretty clear on that :-)

As for the linked profile fix: thanks for the heads up. I'll upload an updated module package (version 1.0.3) to the first message in this thread.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login