Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 177
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 173
Total: 173

Author Topic: Length of image filename  (Read 3746 times)

0 Members and 1 Guest are viewing this topic.

Offline Father Jack

  • Member
  • *
  • Posts: 2
    • View Profile
Length of image filename
« on: January 02, 2007, 02:11:06 pm »
Hi,
new (and very impressed) pro user here.

The subject describes a slight problem I have.
The filenames allocated by the gallery are preventing my users adding more than 3 images to their sigs. The limit in SMF is 300 characters but with more than 3 images, the urls for them is a lot more.
Is there a way I can change the filename the gallery allocates to image files?
I've checked the settings and can't see it there.

I know I can raise the limit in SMF but I'd prefer to keep it at 300 if I can.

Thanks all.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Length of image filename
« Reply #1 on: January 02, 2007, 02:23:29 pm »
Filenames are kept long in order to make srue that they do not get overwritten.

In Gallery.php there is

$filename = $ID_MEMBER . '_' . date('d_m_y_g_i_s') . '.' . $extension;

Basiclly they are the members id + plus the date month year hour minute second and then the extension of the file.

You would only save a couple characters if you reduce them not sure if it is worth it to change.
You could probably change the date('d_m_y_g_i_s')  to date('dmygis') which would dave five characters.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
4806 Views
Last post June 16, 2007, 02:32:52 pm
by SMFHacks
4 Replies
7400 Views
Last post September 16, 2007, 07:47:19 am
by Rafferty
5 Replies
5617 Views
Last post February 17, 2010, 01:53:34 pm
by SMFHacks
1 Replies
2673 Views
Last post March 14, 2013, 09:31:39 am
by SMFHacks
2 Replies
4677 Views
Last post March 03, 2014, 02:25:39 am
by Michel68

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal