SMF 2.0 CPG 1.5X gallery sorting. SMF 2.0 CPG 1.5X gallery sorting.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

SMF 2.0 CPG 1.5X gallery sorting.

Started by texasquest, December 24, 2011, 03:43:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

texasquest

So I have psuedo successfuly integrated SMF 2.0 to CPG 1.5.x.  I was wondering if someone can assist with my gallery sorting.  http://26liter.us/gallery/index.php?cat=1
I would like it alphabetical by username.  I have tried to edit the sort with the SMF's user_name but no such luck.  Any help appreciated.  Thanks.

Αndré

The default album sort order is by "category", which is calculated by user_id + 10000 in Coppermine. So you have to subtract that value and then join it with the SMF user table to be able to sort it by the SMF user names.

serge

Quote from: Αndré on January 04, 2012, 03:23:43 PM
The default album sort order is by "category", which is calculated by user_id + 10000 in Coppermine. So you have to subtract that value and then join it with the SMF user table to be able to sort it by the SMF user names.

How can i this?
I have Coppermine 1.5.24 and SMF 1.1.18.

Thanks.

Αndré

As I've currently no test environment where cpg1.5.x is bridged to SMF, I cannot create a working example for you, sorry.