4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 12, 2017, 05:24:44 AM

Login with username, password and session length
Search:     Advanced search
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Modifications / Modifikationen
| |-+  Mods & Plugins (Requests & Discussions) (Moderators: mawenzi, Rembrandt)
| | |-+  Uploader Toplist
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Uploader Toplist  (Read 1154 times)
helio
Pre-Newbie

Offline Offline

Posts: 8

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« on: July 28, 2017, 12:48:19 PM »

Hello,

I am using version 1.7.11 and I have installed the mod  Uploader Toplist/ Our  photographers (http://www.4homepages.de/forum/index.php?topic=31789.0).  When I click on the number of pictures of a user it returns me a list of pictures that this user has in his various sub-categories but sorted by the date they were created. I would like to sort these sub-categories by their name. Is it possible to do this?

Thanks
Logged
Jan-Lukas
Addicted member
******
Offline Offline

Posts: 1275

Thank You
-Given: 151
-Receive: 47


View Profile WWW
« Reply #1 on: August 10, 2017, 07:54:24 PM »

Fragen solltest Du immer im richtigen Thread posten.
Logged

Danke Harald



nobby
4images Guru
*******
Offline Offline

Posts: 2819

Thank You
-Given: 9
-Receive: 70


View Profile
« Reply #2 on: August 10, 2017, 08:53:31 PM »

Hello!

Please also use the search!

In ACP / General / Category Settings, you can sort the subcategories by name or date, ascending or descending.
In ACP / Manage categories / Edit category, you can use the up / down arrows to sort the main categories.
You can also change the order in ACP / Manage Categories / Edit Category / Category Sequence (for each category).

nobby
« Last Edit: August 10, 2017, 09:31:37 PM by nobby » Logged
helio
Pre-Newbie

Offline Offline

Posts: 8

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« Reply #3 on: August 12, 2017, 09:02:43 PM »

Hello,

Thank you for the reply. In ACP in settings I only see Categories no subcategories to sort. And the categories are already sorted by name ASC.

In toplist.php in the script there is a sort indication by cat_id and matches the way the list is sorted. Does this have anything to do with this? Can this be changed to sort by sub category name?


$sql2 = "SELECT cat_id, cat_name, cat_parent_id FROM ".$table_prefix."categories WHERE cat_id='".$row['cat_id']."' ORDER BY cat_id ASC";      
   $result2 = $site_db->query($sql2);
   while ($row2 = $site_db->fetch_array($result2)){
      if ($row2['cat_parent_id'] >= 1)
      {
      $sql3 = "SELECT cat_name FROM ".$table_prefix."categories WHERE cat_id='".$row2['cat_parent_id']."' ORDER BY cat_id ASC";


Helio
Logged
nobby
4images Guru
*******
Offline Offline

Posts: 2819

Thank You
-Given: 9
-Receive: 70


View Profile
« Reply #4 on: August 14, 2017, 08:26:26 PM »

Hello,

Admin, at the top left "Edit categories" then click the + sign next to a category
Then either right-arrows up and down, or the sub-category and "category-order" then the subcategory according to the desire.

A subcategory is nothing more than a category in a category

nobby
Logged
helio
Pre-Newbie

Offline Offline

Posts: 8

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« Reply #5 on: August 14, 2017, 10:02:50 PM »

Thanks nobby,

But I go up and down with the subcategories in Admin panel and have no effect on the  uploaders toplist. They keep ordered by ID # and not by name.

In my top uploaders list when I click on the number of pictures that a certain user has it gives the list I have attached. And I would like to see this list sorted by airlines name and it is sorted by subcategory ID # ASC.

Helio

* topuploaders.png (41.59 KB - downloaded 3 times.)
Logged
nobby
4images Guru
*******
Offline Offline

Posts: 2819

Thank You
-Given: 9
-Receive: 70


View Profile
« Reply #6 on: August 15, 2017, 07:28:40 PM »

Hello,

Now I understand. The sorting you need is not provided and must be adjusted.
But it is possible. You want to sort by Artline.
I look again.

nobby

EDIT:

search in: /lang/english/admin.php

1
2
3
4
5
6
7
8
9
10
11
/*-- Setting-Group 3 --*/
$setting_group[3]="Image settings";
$setting['image_order'] = "Sort images by";
$image_order_optionlist = array(
  
"image_name"      => "Name",
  
"image_date"      => "Date",
  
"image_downloads" => "Downloads",
  
"image_votes"     => "Votes",
  
"image_rating"    => "Rating",
  
"image_hits"      => "Hits"
);

replace by
1
2
3
4
5
6
7
8
9
10
11
12
/*-- Setting-Group 3 --*/
$setting_group[3]="Image settings";
$setting['image_order'] = "Sort images by";
$image_order_optionlist = array(
  
"image_name"      => "Name",
  
"image_date"      => "Date",
  
"image_downloads" => "Downloads",
  
"image_votes"     => "Votes",
  
"image_rating"    => "Rating",
  
"image_hits"      => "Hits",
  
"image_id"        => "ID-Nummer"
);

You can also replace "image_id" => "ID number" with: "image_media_file" => "File name"
« Last Edit: August 15, 2017, 08:46:18 PM by nobby » Logged
helio
Pre-Newbie

Offline Offline

Posts: 8

Thank You
-Given: 0
-Receive: 0


View Profile WWW
« Reply #7 on: August 16, 2017, 02:41:10 PM »

Hello,

It did not work. Gave an error and could not open the website.

Helio
Logged
nobby
4images Guru
*******
Offline Offline

Posts: 2819

Thank You
-Given: 9
-Receive: 70


View Profile
« Reply #8 on: August 16, 2017, 05:31:28 PM »

Hello,

OK, then I know at the moment synonymous not further  Neutral
If something new, I report.

nobby
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.159 seconds with 20 queries.