Attachment extension

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
Mohammed AlSarsawi
Registered User
Posts: 41
Joined: Fri Mar 03, 2017 1:35 pm

Attachment extension

Post by Mohammed AlSarsawi » Tue Jul 04, 2017 2:11 pm

Hello

How to hide file extension in attachments
I want to show the file name only without the file extension

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20427
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Attachment extension

Post by RMcGirr83 » Tue Jul 04, 2017 6:12 pm

In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Mohammed AlSarsawi
Registered User
Posts: 41
Joined: Fri Mar 03, 2017 1:35 pm

Re: Attachment extension

Post by Mohammed AlSarsawi » Tue Jul 04, 2017 6:31 pm

Thank you

User avatar
canonknipser
Registered User
Posts: 1172
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Attachment extension

Post by canonknipser » Tue Jul 04, 2017 7:31 pm

As far as I read the code, you are not only removing the file extension, but dropping all parts of the filename after (and including) the first dot, so a filename like bla.1234.abc.jpg will become bla, right?
Greetings
Frank
phpbb.de support team member
English is not my native language
New arrival - Extensions and scripts for phpBB
no support via PM or mail

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20427
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Attachment extension

Post by RMcGirr83 » Wed Jul 05, 2017 8:52 am

Correct
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: Brf, canonknipser, Elias, Jimmy_Jamblez, MobyJet and 131 guests

cron