Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4260
Latest: Verrick
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 43301
Total Topics: 7525
Most Online Today: 83
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 87
Total: 87

Author Topic: Gallery Selection List Order  (Read 25975 times)

0 Members and 1 Guest are viewing this topic.

Offline mickjav

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Database Dreams
Gallery Selection List Order
« on: March 04, 2023, 03:44:30 pm »
Have managed to sort most of the Gallery selection lists so the all look like below.

[ Guests cannot view attachments ]

But one list is not playing nice  :o

[ Guests cannot view attachments ]

I found a number of the lists were sorted by roworder but when I checked the lists that displayed correctly they used title ASC which worked a treat lol

any suggestions for the last list

All the best mick

Edit: I don't think it's using the array ordering function CreateGalleryPrettyCategory
« Last Edit: March 04, 2023, 03:59:04 pm by mickjav »

Home of Chart Tracker Elite, Apollo & DJ 2020, Coming soon The Librarian.

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16455
    • View Profile
Re: Gallery Selection List Order
« Reply #1 on: March 04, 2023, 11:26:14 pm »
Update for it SMF 2.0+
9.0.8
!Fixed gallery drop downs for add/edit audio video to be ordered
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/

Offline mickjav

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Database Dreams
Re: Gallery Selection List Order
« Reply #2 on: March 05, 2023, 10:49:10 am »
Thanks

Home of Chart Tracker Elite, Apollo & DJ 2020, Coming soon The Librarian.

Offline mickjav

  • Full Member
  • ***
  • Posts: 142
    • View Profile
    • Database Dreams
Re: Gallery Selection List Order
« Reply #3 on: September 07, 2023, 12:46:31 pm »
Hi.

As I have numerous Galleries I wanted to alter the lists to make search as you type work better so I altered the CreateGalleryPrettyCategory(), Ive added below just in case it's of use for other users.

Code: (Find) [Select]
$context['gallery_cat'][$i]['title'] = str_repeat('-', $spacer) .$context['gallery_cat'][$i]['title'];
Code: (Replace with) [Select]
$context['gallery_cat'][$i]['title'] = ($spacer > 1 ? str_repeat('-', $spacer) : '') .$context['gallery_cat'][$i]['title'];
this works for me as a have a main gallery with 800 plus sub galleries which in turn have 2-3 sub galleries.

  [ Guests cannot view attachments ]

Home of Chart Tracker Elite, Apollo & DJ 2020, Coming soon The Librarian.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
14004 Views
Last post February 26, 2008, 07:50:17 pm
by SMFHacks
1 Replies
12528 Views
Last post August 06, 2008, 09:55:58 pm
by SMFHacks
0 Replies
7232 Views
Last post September 10, 2008, 11:18:45 pm
by lemontwist
1 Replies
11101 Views
Last post November 27, 2010, 10:24:24 am
by SMFHacks
6 Replies
8988 Views
Last post September 18, 2022, 02:40:06 am
by Anmer

+- Recent Topics

Pretty Urls extras by SMFHacks
May 13, 2024, 10:28:54 am

Mod question by Verrick
May 11, 2024, 02:42:50 pm

i have paid but cant download ad pro. by SMFHacks
May 02, 2024, 11:29:38 pm

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

Powered by EzPortal