... I would like to have the option to Sort By Downloads. ...
here we go ...
Extended-Assortment-Options for Memberlist( my insignificant solution for my memberlist ... )
The Extended-Assortment-Options presupposes the following fields in table '4images_users' and of course in your memberlist :
- user_t_images ... (users total images)
- user_h_images ... (users hit images)
- user_p_images ... (users postcard images)
- user_dn_images ... (users downloaded images)
- user_dz_images ... (users zip-downloaded images)
- user_v_images ... (users voted images)
1. Stepin memberlist.php find (or similarly by modification) :
$mode_types_text = array($lang['lang_sort_username'], ... );
$mode_types = array('user_name', ... );
replace with :
$mode_types_text = array($lang['lang_sort_username'], $lang['lang_sort_joindate'],$lang['lang_sort_user_lastaction'], $lang['lang_sort_useremail'], $lang['lang_sort_comments'], $lang['lang_sort_user_t_images'], $lang['lang_sort_user_h_images'], $lang['lang_sort_user_p_images'], $lang['lang_sort_user_dn_images'], $lang['lang_sort_user_dz_images'], $lang['lang_sort_user_v_images']);
$mode_types = array('user_name', 'user_joindate', 'user_lastaction','user_email','user_comments', 'user_t_images', 'user_h_images', 'user_p_images', 'user_dn_images', 'user_dz_images', 'user_v_images' );
2. Stepin memberlist.php find (or similarly by modification) :
case 'user_comments':
$order_by = "user_comments $sort_order";
break;
add after :
//--- Extended Assortment Options -----------------
case 'user_t_images':
$order_by = "user_t_images $sort_order";
break;
case 'user_h_images':
$order_by = "user_h_images $sort_order";
break;
case 'user_p_images':
$order_by = "user_p_images $sort_order";
break;
case 'user_dn_images':
$order_by = "user_dn_images $sort_order";
break;
case 'user_dz_images':
$order_by = "user_dz_images $sort_order";
break;
case 'user_v_images':
$order_by = "user_v_images $sort_order";
break;
//--- Extended Assortment Options -----------------
3. Stepin lang/<your_lang>/main.php find (or similarly by modification) * :
$lang['lang_userlist_title'] = "Die Mitgliederliste";
add after * :
//--- Extended Assortment Options -----------------
$lang['lang_sort_user_t_images'] = "Bilder veröffentlicht";
$lang['lang_sort_user_h_images'] = "Bilder gesehen";
$lang['lang_sort_user_p_images'] = "eCards gesendet";
$lang['lang_sort_user_dn_images'] = "Bilder Download";
$lang['lang_sort_user_dz_images'] = "Bilder Zip-Download";
$lang['lang_sort_user_v_images'] = "Bilder abgestimmt";
//--- Extended Assortment Options -----------------
* of course in your language .
- in my memberlist the Extended-Assortment-Options works prefekt in this way ...
- if only some options should are desired, then is to be proceeded similarly.
mawenzi