Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 4229
Latest: Ghost
New This Month: 3
New This Week: 0
New Today: 0
Stats
Total Posts: 43077
Total Topics: 7493
Most Online Today: 62
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 62
Total: 62

Author Topic: Gallery Selection List Order  (Read 407 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: 16355
    • 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
5035 Views
Last post February 26, 2008, 07:50:17 pm
by SMFHacks
1 Replies
3586 Views
Last post August 06, 2008, 09:55:58 pm
by SMFHacks
0 Replies
2789 Views
Last post September 10, 2008, 11:18:45 pm
by lemontwist
1 Replies
2236 Views
Last post November 27, 2010, 10:24:24 am
by SMFHacks
6 Replies
593 Views
Last post September 18, 2022, 02:40:06 am
by Anmer

+- Recent Topics

Version 6.1.6 issues by SMFHacks
September 25, 2023, 09:52:10 am

Follow / Follower Mod? by SMFHacks
September 23, 2023, 08:44:44 am

Looking for a good video player by replayuk
September 23, 2023, 12:17:39 am

[Mod]Discord Web Hooks by SMFHacks
September 22, 2023, 03:57:28 pm

SMF 2.1.4 Search by Anmer
September 22, 2023, 01:55:15 pm

Error in thise mode by Ghost
September 15, 2023, 08:42:24 am

Gallery Selection List Order by mickjav
September 07, 2023, 12:46:31 pm

[Mod]Tidy Child Boards 2.0 by Norwinjose
September 02, 2023, 11:42:54 am

PrettyUrls SEO Pro: Unable to submit sitemap to google search conmsole by SMFHacks
August 31, 2023, 10:55:22 am

PrettyURL - SEO4SMF Rewrites? by SMFHacks
August 28, 2023, 06:35:33 pm

Powered by EzPortal