Previous Thread
Next Thread
Print Thread
Rate Thread
#216563 05/09/2002 5:50 PM
Joined: Apr 2002
Posts: 141
Member
Member
Offline
Joined: Apr 2002
Posts: 141
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.


Those who fail to read ask many questions:-)
Sponsored Links
Joined: Mar 2002
Posts: 14
Newbie
Newbie
Offline
Joined: Mar 2002
Posts: 14
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....


Joined: Apr 2002
Posts: 141
Member
Member
Offline
Joined: Apr 2002
Posts: 141
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.

Last edited by Toxicq; 05/10/2002 6:37 AM.

Those who fail to read ask many questions:-)
Joined: Mar 2002
Posts: 14
Newbie
Newbie
Offline
Joined: Mar 2002
Posts: 14
i could do make it so that there´s a option...

just PM we if you want or send it to [][email protected][/]

Joined: Apr 2002
Posts: 141
Member
Member
Offline
Joined: Apr 2002
Posts: 141
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.
Attachments
47611-attachmentlist.zip (0 Bytes, 285 downloads)


Those who fail to read ask many questions:-)
Sponsored Links
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
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);

joeuser #216569 05/11/2002 3:18 AM
Joined: Apr 2002
Posts: 141
Member
Member
Offline
Joined: Apr 2002
Posts: 141
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.


Those who fail to read ask many questions:-)
joeuser #216570 05/11/2002 7:25 AM
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
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.

Joined: Apr 2002
Posts: 141
Member
Member
Offline
Joined: Apr 2002
Posts: 141
Dave, do you know why ratings are not showing on the attachmentlist.php?

Regards,

Ron


Those who fail to read ask many questions:-)
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
No I didn't know IIP's attachment list ratings were not showing... it seems to be working for me.

Sponsored Links
Joined: Apr 2002
Posts: 141
Member
Member
Offline
Joined: Apr 2002
Posts: 141
Do you mind taking a look at the script I uploaded here?

Regards,

Ron


Those who fail to read ask many questions:-)
Joined: Apr 2002
Posts: 141
Member
Member
Offline
Joined: Apr 2002
Posts: 141
Never mind, problem fixed!
I forgot the images haha....

Regards,

Ron.
Attachments
47677-Attachment_list.zip (0 Bytes, 218 downloads)


Those who fail to read ask many questions:-)

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)