CyberiaPC.com Community Forums Main Page
RSS Feeds: Late(st) News | Zenith Picture Gallery | Most Recent Community Topics | Tips, Tricks and Other Useful Stuff

Welcome Guest ( Log In | Register )

2 Pages V  < 1 2   Digg this topic Digg this topic   Add to my del.icio.us Add to my del.icio.us
Reply to this topicStart new topic
> Order pictures alphabetically
Dennis Evertse
post Apr 23 2008, 06:22 PM
Post #16


New Member
*

Group: Members
Posts: 39
Joined: 3-November 07
Member No.: 9,377

Netherlands




SuperB thumbsup.gif

It's a great mod, but not exact what I'm looking for. It would be even better if this Mod could be adjusted so that it is possible to choose a way of sorting for every category. cool.gif

But that's much work i think.... blushing.gif sad.gif




OR, an extra sorting option:

Being able to sort on the "new" label (see this tread: http://cyberiapc.com/forums/index.php?show...amp;#entry46809 )

I would like to have the pictures with the new label on top followed by the remaining pictures sorted by date. wink.gif


I'll try, maybe i can get it to work, but i do not think so..

This post has been edited by Dennis Evertse: Apr 23 2008, 07:52 PM
Go to the top of the page
 
+Quote Post
Usher
post Apr 27 2008, 05:40 PM
Post #17


New Member
*

Group: Members
Posts: 24
Joined: 7-April 08
Member No.: 9,602

United States




QUOTE(Dennis Evertse @ Apr 23 2008, 12:22 PM) *
SuperB thumbsup.gif

It's a great mod, but not exact what I'm looking for. It would be even better if this Mod could be adjusted so that it is possible to choose a way of sorting for every category. cool.gif

But that's much work i think.... blushing.gif sad.gif
OR, an extra sorting option:

Being able to sort on the "new" label (see this tread: http://cyberiapc.com/forums/index.php?show...amp;#entry46809 )

I would like to have the pictures with the new label on top followed by the remaining pictures sorted by date. wink.gif
I'll try, maybe i can get it to work, but i do not think so..


Don't quite get what you mean by "so that it is possible to choose a way of sorting for every category". If you mean every time you look at a page you can choose the sort type, I'm going to see if that's possible, otherwise could you please specify?

As far as the 'new' label.....that shouldn't be hard, i'll see what i can do.

~Usher


--------------------
-------------------
Everyone told me I was daft to build a castle on a swamp! So I did.
~Usher
Go to the top of the page
 
+Quote Post
Usher
post Apr 27 2008, 06:24 PM
Post #18


New Member
*

Group: Members
Posts: 24
Joined: 7-April 08
Member No.: 9,602

United States




QUOTE(Usher @ Apr 27 2008, 11:40 AM) *
Don't quite get what you mean by "so that it is possible to choose a way of sorting for every category". If you mean every time you look at a page you can choose the sort type, I'm going to see if that's possible, otherwise could you please specify?

As far as the 'new' label.....that shouldn't be hard, i'll see what i can do.

~Usher

For the 'New' label, i'm pretty sure looking through the code that that is a after SQL lookup check, and the sorting is currently being done on the SQL query, so if we can find a way to bubble up the new pictures, there may be a way. Or we could add a 'new pic' to the DB, but that wouldn't work too well.


--------------------
-------------------
Everyone told me I was daft to build a castle on a swamp! So I did.
~Usher
Go to the top of the page
 
+Quote Post
Usher
post Apr 29 2008, 10:43 AM
Post #19


New Member
*

Group: Members
Posts: 24
Joined: 7-April 08
Member No.: 9,602

United States




Made a correction to my changes, my sort change overlooked one thing. When you have a picture open and click the next/previous links, it would go to the wrong picture. So I modified the pic_details.php to match.
Here is the newest version:

Attached File(s)
Attached File  Sort_type_mod.txt ( 8.66K ) Number of downloads: 78
 


--------------------
-------------------
Everyone told me I was daft to build a castle on a swamp! So I did.
~Usher
Go to the top of the page
 
+Quote Post
Dennis Evertse
post Apr 29 2008, 11:03 AM
Post #20


New Member
*

Group: Members
Posts: 39
Joined: 3-November 07
Member No.: 9,377

Netherlands




QUOTE(Usher @ Apr 27 2008, 06:40 PM) *
Don't quite get what you mean by "so that it is possible to choose a way of sorting for every category". If you mean every time you look at a page you can choose the sort type, I'm going to see if that's possible, otherwise could you please specify?

As far as the 'new' label.....that shouldn't be hard, i'll see what i can do.

~Usher


My photoalbum looks like this:

Trucks:
- Scania
- Volvo
- Daf
- Mercedes
- .....
- .....

Cranes
Others
Machines
Heavy Haulage:
- Scania
- Volvo
- Daf
- ...
- ...

My idea is that you can choose from the ADMIN CP, which folders of the album are sorted by name, and which are sorted by date added.

For example:

I want Cranes to be sorted by title, but I want Trucks -> scania, volvo and daf to be sorted by date added..(newest on top).(A newest on top features would be great on it own, with this i mean that the photo's form the latest update are on top, and the rest is sorted by title)( http://cyberiapc.com/forums/index.php?showtopic=10657 )

Im hope you understand what I mean blushing.gif

I'm going to instal you new version right now dance.gif

This post has been edited by Dennis Evertse: Apr 29 2008, 03:15 PM
Go to the top of the page
 
+Quote Post
Dennis Evertse
post Apr 29 2008, 11:04 AM
Post #21


New Member
*

Group: Members
Posts: 39
Joined: 3-November 07
Member No.: 9,377

Netherlands




blushing.gif Double post..

This post has been edited by Dennis Evertse: Apr 29 2008, 11:05 AM
Go to the top of the page
 
+Quote Post
Usher
post Apr 29 2008, 04:33 PM
Post #22


New Member
*

Group: Members
Posts: 24
Joined: 7-April 08
Member No.: 9,602

United States




Hey Dennis,
This doesn't sound unreasonable as far as being possible. Basically we'd have to do some major changes that would include adding in a new table for your sorting orders, and probably add a new config page to update sort orders.
It would take me a while to take care of this for you, so if anyone wants to jump in and create this quickly, go ahead and post here, otherwise i think i could have something whipped up by next week. Only problem is that I'm not a very good php programmer yet, so I would not doubt that my fix will potentially have bugs.

I'll keep ya posted.

~Usher


--------------------
-------------------
Everyone told me I was daft to build a castle on a swamp! So I did.
~Usher
Go to the top of the page
 
+Quote Post
Usher
post Apr 30 2008, 01:26 PM
Post #23


New Member
*

Group: Members
Posts: 24
Joined: 7-April 08
Member No.: 9,602

United States




Alright, whipped something basic up, gonna need someone with more experience in the zenith code to get you a nice GUI to change your sort orders (could be done easily using the admincp i think) You will have to create a new table in your database, of the convention <prefix>category_sort_orders. (so for me: zenith_category_sort_orders) and give it an int(6) index of 'cid', and 4 varchar values named 'sort_1', 'sort_1_order', 'sort_2', 'sort_2_order'. Then for each folder you want specific rules in, you'll have to create a new entry, with the matching cid from the categories table, and appropriate entries in the sort fields.
Valid entries are:
for sort_1 and sort_2:
pid, file_name, file_size, title, date, pic_width, pic_height, keywords (don't know if that'll work), ip, submitter, counter, rating
for sort_1_order and sort_2_order
DESC, ASC

Note that it may very well be case sensitive, i don't know.

Good luck, and please, if someone could help me finish this up, I'm tired, and won't work on this for the rest of the week.

~Usher
Attached File(s)
Attached File  Sort_type_mod_part_2.txt ( 2.42K ) Number of downloads: 73
 


--------------------
-------------------
Everyone told me I was daft to build a castle on a swamp! So I did.
~Usher
Go to the top of the page
 
+Quote Post
Dennis Evertse
post May 22 2008, 08:22 PM
Post #24


New Member
*

Group: Members
Posts: 39
Joined: 3-November 07
Member No.: 9,377

Netherlands




Isn't there anybody who can help me accept Usher blushing.gif blushing.gif (who has already done a great job thumbsup.gif)
Go to the top of the page
 
+Quote Post
usr.c
post May 23 2008, 08:40 PM
Post #25


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




Thanks, Usher, for your work on the mod so far.

Dennis, I'll try my best to finish it up during the coming week.


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
Dennis Evertse
post Jun 11 2008, 05:43 PM
Post #26


New Member
*

Group: Members
Posts: 39
Joined: 3-November 07
Member No.: 9,377

Netherlands




Any progress yet?? blushing.gif blushing.gif
Go to the top of the page
 
+Quote Post
usr.c
post Jun 18 2008, 03:04 PM
Post #27


Boss, my code's compiling (xkcd)
Group Icon

Group: Admins
Posts: 10,440
Joined: 19-September 01
Member No.: 1

Nothing Selected




Sorry for not keeping my promise. I'm probably not going to be able to work on this in the time being since I'm really tied up at work. Our main product is being released in less than a month so things are a bit hectic right now.


--------------------


Things that I don't suck at: Photography (flickr, JPG Mag), Skydiving, Splitting atoms, Flying a space shuttle
"Don't bail; the best gold is at the bottom of barrels of crap!" -Randy Pausch
I have people-skills goddamnit! What is wrong with you people!!! | www.skyrill.com
Go to the top of the page
 
+Quote Post
Dennis Evertse
post Jun 22 2008, 08:53 AM
Post #28


New Member
*

Group: Members
Posts: 39
Joined: 3-November 07
Member No.: 9,377

Netherlands




No Problem, thumbsup.gif

I'm a patience man
Go to the top of the page
 
+Quote Post
Dennis Evertse
post Sep 13 2008, 04:45 PM
Post #29


New Member
*

Group: Members
Posts: 39
Joined: 3-November 07
Member No.: 9,377

Netherlands




Still tied up at work?
Go to the top of the page
 
+Quote Post
mefsteda73
post Oct 26 2009, 02:07 AM
Post #30


New Member
*

Group: Members
Posts: 7
Joined: 3-October 09
From: United States
Member No.: 11,804

Nothing Selected




hi

it is not easy to order correctly the item in the menu because you have split by table and by view. So first there are the table items, then the view ones. More over, i cant place-out chart items as i want....

Thanks


--------------------
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 24th May 2013 - 12:59 AM