UBB.Dev
Posted By: Sat4all Attachmentlist - 05/10/2002 12:50 AM
Using the original file from the index page hack and modifying it a bit I managed to put this together:
http://www.sat4all.com/ubbthreads/attachmentlist.php
Is there a way to make this page accessible to members only?

Regards,

Ron.
Posted By: Cola Re: Attachmentlist - 05/10/2002 1:09 PM
shure theres ever a way
I added some games to my Site which are only avaible for members.. so it should not be a great problem...

but 2 questions?

a) are you plan to share your hack?
b) where did you get the BR3 ? I can´t find it in the memberarea....

Posted By: Sat4all Re: Attachmentlist - 05/10/2002 1:34 PM
a.> Sure I'll share this. It is not a great hack. It took me 1 minute to make it. It is in fact no more that the original attachment page from the IIP hack with additional standard UBBT includes.

I want to share it when it is ready. Ready means a configuration option to make it accessible to members only, or not.

Anyone who knows how to do this?

b.> Just recently I was offered to beta test UBBT. It is not available in the member area yet, but it will be there soon I guess.

Regards,

Ron.
Posted By: Cola Re: Attachmentlist - 05/10/2002 2:37 PM
i could do make it so that there´s a option...

just PM we if you want or send it to [][email protected][/]
Posted By: Sat4all Re: Attachmentlist - 05/11/2002 2:22 AM
The first version of this hack modification (see attachment) makes attachments only accessible to members and has it's own language file:-)
I think there is still a small problem with displaying ratings. Can someone confirm this?

Regards,

Ron.

Attached File
47611-attachmentlist.zip  (285 downloads)
Posted By: Dave_L_dup1 Re: Attachmentlist - 05/11/2002 4:40 AM
Suggestion: add the file sizes and last-modified dates to the display.

$base_path = ...;
$filename = ...;

// $bytes = file size in bytes
// $mdate_local = file last-modified date (RFC 822 format)
$bytes = filesize ("$base_path/$filename") or die("filesize($filename)");
$mdate_unix = filemtime("$base_path/$filename") or die("filemtime($filename)");
$mdate_local = date('r', $mdate_unix);
Posted By: Sat4all Re: Attachmentlist - 05/11/2002 10:18 AM
Dave_L, you are free to modify this version to you likings and attach is to your message
The idea is very good. I like it but I am not a great PHP coder
I managed to create this hack by just adding the main and header includes and standard UBB threads userob check to JustDave's original attachmentlist file.

Regards,

Ron.
Posted By: JustDave Re: Attachmentlist - 05/11/2002 2:25 PM
I like the file size idea

I'm not to sure if the last modified date would matter though. The last modified date should be the same as the time the post was added as there is no way to edit the attachment at this time.
Posted By: Sat4all Re: Attachmentlist - 05/11/2002 3:21 PM
Dave, do you know why ratings are not showing on the attachmentlist.php?

Regards,

Ron
Posted By: JustDave Re: Attachmentlist - 05/12/2002 3:25 AM
No I didn't know IIP's attachment list ratings were not showing... it seems to be working for me.
Posted By: Sat4all Re: Attachmentlist - 05/12/2002 10:02 AM
Do you mind taking a look at the script I uploaded here?

Regards,

Ron
Posted By: Sat4all Re: Attachmentlist - 05/12/2002 11:33 AM
Never mind, problem fixed!
I forgot the images haha....

Regards,

Ron.

Attached File
47677-Attachment_list.zip  (218 downloads)
© UBB.Developers