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: 43295
Total Topics: 7523
Most Online Today: 218
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 207
Total: 208

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - VisiGod

Pages: [1]
1
Support / Re: Modification: Subcategories total in main gallery view
« on: November 26, 2022, 11:27:34 am »
Feel free to implement it on the core code if you want

2
Support / Modification: Subcategories total in main gallery view
« on: November 26, 2022, 11:17:10 am »
Hello all,

Since I cannot post modifications on the modifications forum, I'm adding this here. If I'm doing something wrong, just let me know. [ Guests cannot view attachments ]

It's my first mod so let's see how it goes. It works with SMF 2.1 and Gallery Pro 9.0.7

3
Support / Re: Some questions
« on: July 29, 2022, 05:37:02 pm »
Forgot that in the table header, I've added the following:

Code: [Select]
    if(!isset($_GET[cat])) {
        echo '<th scope="col" class="smalltext" align="center">Total Bands</th>';
}

So it will only appear on the main gallery index

4
Support / Re: Some questions
« on: July 29, 2022, 05:32:53 pm »
I've been having some fun customizing the main layout to my needs and made a simple function to display the number of subcats that can be of use to someone (or added to the core if you want):

Code: [Select]
function GetTotalSubCats($id_cat) {
    global $modSettings, $smcFunc, $subcats_linktree, $scripturl, $gallerySettings;

    $total = 0;

    $dbresult3 = $smcFunc['db_query']('', "
 SELECT count(ID_CAT) as total
 FROM {db_prefix}gallery_cat
 WHERE ID_PARENT = ".$id_cat);

    return $smcFunc['db_fetch_assoc']($dbresult3)['total'];
}

in the template, just add
Code: [Select]
echo '<td align="center" valign="middle" class="windowbg">'.GetTotalSubCats($row['id_cat']).'</td>'; to get the number of subcats to the main cat

5
Support / Re: Some questions
« on: July 20, 2022, 01:42:17 pm »
Thanks SMFHacks and mickjav.

I will only use pagination for the subcategories since the main category will have all the 54 subcategories in one page (that's why I wanted to change the main category page to accommodate all the subcategories).

I'll do some experiments this weekend and then will let you know how it went  ;D

6
Support / Re: Some questions
« on: July 18, 2022, 05:33:44 pm »
I've tried the coppermine converter but it seems it's for the 1.4 version and it times out using on the 1.5 version (have around 13k photos). I can share the sql I did for categories, subcategories (called albums in coppermine) and photos (didn't import the comments since I really don't use them).

I'll use a common gallery where the users can upload pictures and the the admins move them to the correct folder (after being approved).

Regarding the pages (and sorry if this is something more SMF related), can I change the layout (even if it is on the code) since the main page has around 54 categories (alphabet letters, # signal and user uploads) and inside each category I have all my subdivisions?

7
Support / Some questions
« on: July 17, 2022, 06:09:02 am »
Hello all,

I'm new to the SMF Gallery pro and I'm importing from my Coppermine 1.5 but I have some questions:

- How can I generate the thumbs and medium images after the import (I've imported using sql queries);
- Is it possible to have each gallery and subgallery on it's own folder?;
- How can I change the layout of the Gallery main page (number of galleries per row) and on the subgalleries?

Thanks for any help in advance

Pages: [1]

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

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