Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4253
Latest: Ineedsmfhelp
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43242
Total Topics: 7516
Most Online Today: 126
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 1
Guests: 95
Total: 96

Author Topic: Gallery Selection List Order  (Read 25793 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: 16428
    • 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
13938 Views
Last post February 26, 2008, 07:50:17 pm
by SMFHacks
1 Replies
12465 Views
Last post August 06, 2008, 09:55:58 pm
by SMFHacks
0 Replies
7209 Views
Last post September 10, 2008, 11:18:45 pm
by lemontwist
1 Replies
11034 Views
Last post November 27, 2010, 10:24:24 am
by SMFHacks
6 Replies
8911 Views
Last post September 18, 2022, 02:40:06 am
by Anmer

+- Recent Topics

is it possible to add support for odysee.com by SMFHacks
March 13, 2024, 10:53:28 pm

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

User Gallery Feature: move / bulk move images by SMFHacks
January 30, 2024, 05:48:25 pm

In the future it may be for smf 2.1.x? by smithloo
January 30, 2024, 12:55:34 am

Powered by EzPortal