Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43294
Total Topics: 7523
Most Online Today: 118
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 106
Total: 106

Author Topic: Max Images Per File - Question  (Read 1863 times)

0 Members and 1 Guest are viewing this topic.

Offline The Wizard

  • Member
  • *
  • Posts: 17
    • View Profile
Max Images Per File - Question
« on: November 23, 2012, 04:49:05 am »
Hello:

I now own SMF Gallery pro and I need to know if there is a set number of max images a single file will hold? The reason I ask is I want to put 4,000 images per file. In my pre-sales question someone suggested it was 1000 and that I might need to tweak the code. If so please tell me where and how to tweak the code.

thanks

Wiz

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16451
    • View Profile
Re: Max Images Per File - Question
« Reply #1 on: November 23, 2012, 11:09:59 am »
In Sources/Gallery2.php
Around line 8067
Find
Code: [Select]
function ComputeNextFolderID($id_picture)
{
global $modSettings;

$folderid = floor($id_picture / 1000);

// If the current folder ID does not match the new folder ID update the settings
if ($modSettings['gallery_folder_id'] != $folderid)
updateSettings(array('gallery_folder_id' => $folderid));
}

Change 1000 to the number of images you want to store per folder.
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
3 Replies
5422 Views
Last post March 13, 2008, 09:04:59 pm
by Weathernut
2 Replies
5807 Views
Last post April 05, 2008, 09:10:49 pm
by Cebby
2 Replies
5492 Views
Last post April 01, 2009, 09:44:04 pm
by Wegg
8 Replies
8434 Views
Last post July 24, 2012, 01:57:28 pm
by SMFHacks
3 Replies
4046 Views
Last post March 07, 2015, 11:19:20 pm
by SMFHacks

+- Recent Topics

Please Help! by fmofmpls
Today at 01:47:09 pm

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

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

Powered by EzPortal