Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4239
Latest: 3dickulus
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 43126
Total Topics: 7500
Most Online Today: 52
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 2
Guests: 53
Total: 55

Author Topic: Gallery Selection List Order  (Read 13299 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: 16378
    • 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
7842 Views
Last post February 26, 2008, 07:50:17 pm
by SMFHacks
1 Replies
6411 Views
Last post August 06, 2008, 09:55:58 pm
by SMFHacks
0 Replies
4281 Views
Last post September 10, 2008, 11:18:45 pm
by lemontwist
1 Replies
5030 Views
Last post November 27, 2010, 10:24:24 am
by SMFHacks
6 Replies
3423 Views
Last post September 18, 2022, 02:40:06 am
by Anmer

+- Recent Topics

“Insert from Gallery” by apothocary
November 21, 2023, 07:25:28 am

SMFHacks Black Friday Sale 2023! by SMFHacks
November 19, 2023, 12:05:51 pm

File Count by SMFHacks
November 11, 2023, 11:46:46 am

Theme Changer by SMFHacks
November 09, 2023, 04:30:05 pm

Pretty Urls extras by SMFHacks
November 08, 2023, 05:23:14 pm

Member group access to emojis by SMFHacks
October 22, 2023, 07:24:12 am

Miscellaneous errors - don't know why by SMFHacks
October 13, 2023, 09:28:50 am

Follow / Follower Mod? by Nicole
October 06, 2023, 07:37:20 am

Mods supporting custom themes? by SMFHacks
October 02, 2023, 04:20:18 pm

Version 6.1.6 issues by SMFHacks
September 30, 2023, 07:54:52 am

Powered by EzPortal