Facebook 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4282
Latest: Eric87
New This Month: 7
New This Week: 0
New Today: 0
Stats
Total Posts: 43664
Total Topics: 7576
Most Online Today: 86
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 57
Total: 57

Author Topic: Gallery Selection List Order  (Read 26364 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: 16618
    • 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
14286 Views
Last post February 26, 2008, 07:50:17 pm
by SMFHacks
1 Replies
12698 Views
Last post August 06, 2008, 09:55:58 pm
by SMFHacks
0 Replies
7290 Views
Last post September 10, 2008, 11:18:45 pm
by lemontwist
1 Replies
11327 Views
Last post November 27, 2010, 10:24:24 am
by SMFHacks
6 Replies
9168 Views
Last post September 18, 2022, 02:40:06 am
by Anmer

+- Recent Topics

Administration Center Clean Up by Senkusha
February 14, 2025, 07:30:31 am

Unknown Column: money by Senkusha
February 13, 2025, 07:02:57 pm

Do you offer paid assistance with the SMFBlog mod? by Grammy
February 11, 2025, 02:58:04 pm

SMFBlog Mod by Grammy
February 10, 2025, 07:33:32 pm

[Mod]Bluesky Auto Embed by SMFHacks
January 30, 2025, 01:47:36 pm

Delete a Picture from Trash - Error by SMFHacks
January 29, 2025, 09:06:38 pm

RESOLVED: Store Not Logging Transactions or Sending Emails by SMFHacks
January 23, 2025, 06:24:27 pm

Ability to exclude categories from ezPortal SMF Gallery random image ezblock by Alistair
January 22, 2025, 08:20:13 am

How to move SMF to new server by SMFHacks
January 21, 2025, 08:45:53 pm

Figuring out settings by SMFHacks
January 12, 2025, 04:56:14 pm

Powered by EzPortal