Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Ok - this one is very simple... but it's my first.
So I'll post as it may help someone else.

My users were missing the "attachment" link... as it's moved from the left to the top.

So this hack adds a clickable Disk Icon after the word "attachment" in showflat and showthreaded view.

Now.... if someone smarter than me could make that little icon appear before the subject in postlist... I'd be happy. I've been playing with it an haven't been able to get it to work (yet )

This affects showflat.php and showthreaded.php.
Enjoy!
Attachments
50131-ClickableAttachment.txt (0 Bytes, 26 downloads)

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Attachments
50133-screen.gif (0 Bytes, 25 downloads)

Last edited by JoshPet; 06/16/2002 12:38 PM.
Joined: Jan 2001
Posts: 374
Enthusiast
Enthusiast
Offline
Joined: Jan 2001
Posts: 374
Simple but very useful. Thank you.

(by the way: don't forget to add alt="" to the image tag, or XHTML would complain? )

Also fyi: in the 601-Update the look of the area, where you want to place your code, changed a lot.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
>don't forget to add alt=""
Thank you.... didn't know that.

Also.... actually this was done in 6.0.1.

Thanks!

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
nice one josh, would be cool if it recorded howe many times it was downloaded


- Allen wavey
- What Drives You?
Sponsored Links
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
[]
would be cool if it recorded howe many times it was downloaded



IIP 5.0 counts attachment hits.

Will be tossing in a "Top X Downloaded Files" list too.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
cool


- Allen wavey
- What Drives You?
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
better check out coming changes in 6.1

http://community.infopop.net/2/Open...094913&m=5013023206&r=5013023206

Added a download script instead of directly linking to file attachments. This will make sure the user has read access to the board the attachment is posted on.

Added a download counter that will track the # of times an attachment has been downloaded. Altered the showflat/showthreaded templates to display this # next to the attachment link.


Sounds cool... this one might need to be adjusted for 6.1 (yeah, still a good way off in the future )


- Allen wavey
- What Drives You?
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Cool, I missed that the first time I read it. I hope Rick uses a loop to download the file, rather than trying to slurp the whole file in at once.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This has been in Finished Mods here and updated for 6.1.

Please close thread.

Sponsored Links

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
Ruben Rocha
Ruben Rocha
Lutz,FL,USA
Posts: 254
Joined: January 2000
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 20240506)